/llvm-project/llvm/test/CodeGen/AMDGPU/ |
H A D | amdgpu-nsa-threshold.ll | 2 ; RUN: llc -mtriple=amdgcn -mcpu=gfx1100 -verify-machineinstrs < %s | FileCheck -check-prefix=ATTRI… 3 ; RUN: llc -mtriple=amdgcn -mcpu=gfx1100 -amdgpu-nsa-threshold=2 -verify-machineinstrs < %s | FileC… 4 ; RUN: llc -mtriple=amdgcn -mcpu=gfx1100 -amdgpu-nsa-threshold=3 -verify-machineinstrs < %s | FileC… 5 ; RUN: llc -mtriple=amdgcn -mcpu=gfx1100 -amdgpu-nsa-threshold=4 -verify-machineinstrs < %s | FileC… 10 ; ATTRIB-LABEL: sample_2d_nsa2: 12 ; ATTRIB-NEXT: s_mov_b32 s12, exec_lo 13 ; ATTRIB-NEXT: s_wqm_b32 exec_lo, exec_lo 14 ; ATTRIB-NEXT: s_delay_alu instid0(SALU_CYCLE_1) 15 ; ATTRIB-NEXT: s_and_b32 exec_lo, exec_lo, s12 16 ; ATTRIB-NEXT: image_sample v[0:3], [v1, v0], s[0:7], s[8:11] dmask:0xf dim:SQ_RSRC_IMG_2D [all …]
|
/llvm-project/llvm/test/CodeGen/AArch64/ |
H A D | force-enable-intervals.mir | 1 # RUN: llc -mtriple=aarch64-none-linux-gnu -mcpu=cortex-a55 \ 2 # RUN: -misched-dump-reserved-cycle [all...] |
/llvm-project/clang-tools-extra/clang-tidy/ |
H A D | ClangTidyForceLinker.h | 1 //===- ClangTidyForceLinker.h - clang-tidy --------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 #include "clang-tidy-config.h" 17 // This anchor is used to force the linker to link the AbseilModule. 22 // This anchor is used to force the linker to link the AlteraModule. 27 // This anchor is used to force the linker to link the AndroidModule. 32 // This anchor is used to force the linker to link the BoostModule. 37 // This anchor is used to force the linker to link the BugproneModule. 42 // This anchor is used to force the linker to link the CERTModule. [all …]
|
/llvm-project/llvm/test/Transforms/FunctionSpecialization/ |
H A D | function-specialization3.ll | 1 ; RUN: opt -passes="ipsccp<func-spec>" -S < %s | \ 2 ; RUN: FileCheck %s --check-prefixes=COMMON,DISABLED 3 ; RUN: opt -passes="ipsccp<func-spec>" -force-specialization -S < %s | \ 4 ; RUN: FileCheck %s --check-prefixes=COMMON,FORCE 8 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" 14 ; COMMON-LABEL: @bar 15 ; FORCE: %call = call i32 @foo.specialized.1(i32 %x, ptr @A) 16 ; FORCE: %call1 = call i32 @foo.specialized.2(i32 %y, ptr @B) 17 ; DISABLED-NOT: %call1 = call i32 @foo.specialized.1( 35 ; FORCE-NOT: define internal i32 @foo( [all …]
|
/llvm-project/lld/test/MachO/ |
H A D | force-load.s | 2 # RUN: rm -rf %t; split-file %s %t 3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/archive-foo.s -o %t/archive-foo.o 4 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/archive-baz.s -o %t/archive-baz.o 5 # RUN: llvm-ar rcs %t/foo.a %t/archive-foo.o 6 # RUN: llvm-ar rcs %t/baz.a %t/archive-baz.o 7 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/foo.s -o %t/foo.o 8 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o 10 # RUN: %lld -lSystem -force_load %t/foo.a %t/foo.o %t/test.o -o %t/test-force-load-first 11 # FORCE-LOAD-FIRST: __TEXT,archive _foo 12 # RUN: llvm-objdump --syms %t/test-force-load-first | FileCheck %s --check-prefix=FORCE-LOAD-FIRST [all …]
|
H A D | load-hidden.s | 2 # RUN: rm -rf %t; split-file %s %t 3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/archive-foo.s -o %t/archive-foo.o 4 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/archive-baz.s -o %t/archive-baz.o 5 # RUN: llvm-ar rcs %t/libfoo.a %t/archive-foo.o 6 # RUN: llvm-ar rcs %t/libbaz.a %t/archive-baz.o 7 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/obj.s -o %t/obj.o 8 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/obj-bar.s -o %t/obj-bar.o 10 # RUN: %lld -dylib -lSystem %t/obj.o -load_hidden %t/libfoo.a -o %t/test.dylib 11 # RUN: llvm-nm %t/test.dylib | FileCheck %s 12 # RUN: %lld -dylib -lSystem -L%t %t/obj.o -hidden-lfoo -o %t/test2.dylib [all …]
|
/llvm-project/llvm/test/Transforms/LoopVectorize/AArch64/ |
H A D | arbitrary-induction-step.ll | 1 ; RUN: opt -S < %s -passes=loop-vectorize -force-vector-interleave=2 -force-vecto [all...] |
H A D | sme-vectorize.ll | 2 … sed -e s/REPLACE_PSTATE_MACRO/aarch64_pstate_sm_enabled/ %s | opt -mattr="+sme" -passes=loop-vect… 3 …ed -e s/REPLACE_PSTATE_MACRO/aarch64_pstate_sm_enabled/ %s | opt -mattr="+sme,+sve" -passes=loop-v… 4 …N: sed -e s/REPLACE_PSTATE_MACRO/aarch64_pstate_sm_body/ %s | opt -mattr="+sme" -passes=loop-vecto… 5 …sed -e s/REPLACE_PSTATE_MACRO/aarch64_pstate_sm_body/ %s | opt -mattr="+sme,+sve" -passes=loop-vec… 7 ; __arm_streaming function, force use of scalable autovec. Should vectorize. 8 …-e s/REPLACE_PSTATE_MACRO/aarch64_pstate_sm_enabled/ %s | opt -mattr="+sme" -passes=loop-vectorize… 9 …-e s/REPLACE_PSTATE_MACRO/aarch64_pstate_sm_enabled/ %s | opt -mattr="+sme,+sve" -passes=loop-vect… 10 …-e s/REPLACE_PSTATE_MACRO/aarch64_pstate_sm_body/ %s | opt -mattr="+sme" -passes=loop-vectorize,sl… 11 …-e s/REPLACE_PSTATE_MACRO/aarch64_pstate_sm_body/ %s | opt -mattr="+sme,+sve" -passes=loop-vectori… 13 ; __arm_streaming function, force use of fixed-width autovec. Should vectorize. [all …]
|
/llvm-project/llvm/test/Transforms/LoopVectorize/X86/ |
H A D | consecutive-ptr-uniforms.ll | 2 ; RUN: opt < %s -aa-pipeline=basic-aa -passes=loop-vectorize,instcombine -S -debug-only=loop-vectorize -disabl [all...] |
/llvm-project/clang/test/Driver/ |
H A D | visibility-global-new-delete.cl | 1 /// Check driver handling for "-fvisibility-global-new-delete-hidden" and "-fvisibility-global-new-… 4 // RUN: %clang -### --target=x86_64-unknown-unknown -c -emit-llvm %s 2>&1 | \ 5 // RUN: FileCheck -check-prefix=DEFAULTS %s 6 // DEFAULTS-NOT: "-fvisibility-global-new-delete=" 7 // DEFAULTS-NOT: "-fvisibility-global-new-delete-hidden" 9 …FINE: %{implicit-check-nots} = --implicit-check-not=-fvisibility-global-new-delete= --implicit-che… 11 /// "-fvisibility-global-new-delete=source" added by default for PS5. 12 // RUN: %clang -### --target=x86_64-sie-ps5 -c -emit-llvm %s 2>&1 | \ 13 // RUN: FileCheck -check-prefix=PS5 %s 14 // PS5: "-fvisibility-global-new-delete=source" [all …]
|
/llvm-project/flang/include/flang/Lower/ |
H A D | SymbolMap.h | 1 //===-- SymbolMap.h -- lowering internal symbol map ------ [all...] |
/llvm-project/lld/test/ELF/ |
H A D | aarch64-feature-bti.s | 2 # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu %s -o %t.o 3 # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu --defsym CANONICAL_PLT=1 %s -o %tcanon.o 4 # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu --defsym RELVTABLE_PLT=1 %s -o %trelvtable.o 5 # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu %p/Inputs/aarch64-bti1.s -o %t1.o 6 # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu %p/Inputs/aarch64-func3.s -o %t2.o 7 # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu %p/Inputs/aarch64-func3-bti.s -o %t3.o 8 # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu %p/Inputs/aarch64-func2.s -o %tno.o 13 # RUN: ld.lld %tno.o %t3.o --shared -o %tno.so 14 # RUN: llvm-objdump --no-print-imm-hex -d --mattr=+bti --no-show-raw-insn %tno.so | FileCheck --che… 15 # RUN: llvm-readelf -x .got.plt %tno.so | FileCheck --check-prefix SOGOTPLT %s [all …]
|
/llvm-project/mlir/test/Dialect/SCF/ |
H A D | wrap-while-loop-in-zero-trip-check.mlir | 1 // RUN: mlir-opt %s -test-wrap-scf-while-loop-in-zero-trip-chec [all...] |
/llvm-project/clang/test/CodeGenCXX/ |
H A D | vtable-available-externally.cpp | 1 // RUN: %clang_cc1 %s -I%S -triple=x86_64-apple-darwin10 -std=c++98 -emit-llvm -o %t 2 // RUN: %clang_cc1 %s -I%S -tripl [all...] |
/llvm-project/llvm/test/Transforms/ForcedFunctionAttrs/ |
H A D | forced.ll | 1 ; RUN: opt < %s -S -passes=forceattrs | FileCheck %s --check-prefix=CHECK-CONTROL 2 ; RUN: opt < %s -S -passes=forceattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=C… 3 ; RUN: opt < %s -S -passes=forceattrs -force-remove-attribute goo:cold | FileCheck %s --check-prefi… 4 ; RUN: opt < %s -S -passes=forceattrs -force-remove-attribute goo:noinline | FileCheck %s --check-p… 5 …: opt < %s -S -passes=forceattrs -force-attribute goo:cold -force-remove-attribute goo:noinline | … 6 …t < %s -S -passes=forceattrs -force-attribute goo:noinline -force-remove-attribute goo:noinline | … 7 ; RUN: opt < %s -S -passes=forceattrs -force-attribute optsize | FileCheck %s --check-prefix=CHECK-… 8 ; RUN: opt < %s -S -passes=forceattrs -force-remove-attribute noinline | FileCheck %s --check-prefi… 10 ; CHECK-CONTROL: define void @foo() { 11 ; CHECK-FOO: define void @foo() #0 { [all …]
|
/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | HardwareLoops.h | 1 //===- HardwareLoops.h ------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 24 std::optional<bool> Force; member 37 HardwareLoopOptions &setForce(bool Force) { in setForce() 38 this->Force = Force; in setForce() 41 HardwareLoopOptions &setForcePhi(bool Force) { in setForcePhi() 42 ForcePhi = Force; in setForcePhi() 45 HardwareLoopOptions &setForceNested(bool Force) { in setForceNested() [all …]
|
/llvm-project/clang/test/CodeGen/ |
H A D | thinlto-loop-vectorize-pm.c | 1 // REQUIRES: x86-registered-target 2 // RUN: %clang_cc1 -o %t.o -O2 -flto=thin -triple x86_64-unknown-linux-gnu -emit-llvm-bc %s 3 // RUN: llvm-lto -thinlto -o %t %t.o 6 // ThinLTO backend. -vectorize-loops is a cc1 option and will be added 8 // "-mllvm -vectorize-loops=false" will disable loop vectorization, overriding 11 …-triple x86_64-unknown-linux-gnu -O2 -vectorize-loops -mllvm -force-vector-width=2 -mllvm -force-v… 12 …-triple x86_64-unknown-linux-gnu -O2 -vectorize-loops -mllvm -vectorize-loops=false -mllvm -force-… 13 …-triple x86_64-unknown-linux-gnu -O0 -vectorize-loops -mllvm -force-vector-width=2 -mllvm -force-v… 14 // O2-LPV: = !{!"llvm.loop.isvectorized", i32 1} 15 // O2-NOLPV-NOT: = !{!"llvm.loop.isvectorized", i32 1} [all …]
|
/llvm-project/lld/test/COFF/ |
H A D | merge.test | 1 # RUN: yaml2obj %s -o %t.obj 2 # RUN: lld-link /out:%t.exe /entry:main /subsystem:console /force \ 4 # RUN: llvm-readobj --sections %t.exe | FileCheck %s 6 # RUN: lld-link /out:%t.exe /entry:main /subsystem:console /force \ 8 # RUN: llvm-readobj --sections %t.exe | FileCheck --check-prefix=CHECK2 %s 10 # RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:main /subsystem:console /force \ 11 # RUN: /merge:.rsrc=.foo %t.obj /debug 2>&1 | FileCheck --check-prefix=NO-RSRC %s 12 # RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:main /subsystem:console /force \ 13 # RUN: /merge:.foo=.rsrc %t.obj /debug 2>&1 | FileCheck --check-prefix=NO-RSRC %s 14 # RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:main /subsystem:console /force \ [all …]
|
H A D | dependentflags.test | 3 // ---- precomp-a.obj - x86_64, hotpatch 4 RUN: llvm-mc -triple x86_64-windows-msv [all...] |
H A D | functionpadmin.test | 1 // ---- precomp-a.obj - x86_64, hotpatch 2 RUN: lld-link %S/Inputs/precomp-a.obj /out:%t.exe /nodefaultlib /force 3 RUN: llvm-objdump -s %t.exe | FileCheck %s --check-prefix BASE 5 RUN: lld-link %S/Inputs/precomp-a.obj /out:%t.exe /nodefaultlib /force /functionpadmin 6 RUN: llvm-objdump -s %t.exe | FileCheck %s --check-prefix PADDED 8 RUN: lld-link %S/Inputs/precomp-a.obj /out:%t.exe /nodefaultlib /force /functionpadmin:17 9 RUN: llvm-objdump -s %t.exe | FileCheck %s --check-prefix PADDED-MORE 11 // ---- Many arguments 12 RUN: lld-link %S/Inputs/precomp-a.obj /out:%t.exe /nodefaultlib /force /functionpadmin:17 /function… 13 RUN: llvm-objdump -s %t.exe | FileCheck %s --check-prefix PADDED [all …]
|
/llvm-project/flang/test/Lower/OpenMP/ |
H A D | force-usm.f90 | 1 ! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-force-usm %s -o - | FileCheck %s 2 ! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-is-target-device -fopenmp-force-usm %s -o - | FileC… 3 ! RUN: bbc -fopenmp -fopenmp-force-usm -emit-hlfir %s -o - | FileCheck %s 4 ! RUN: bbc -fopenmp -fopenmp-is-target-device -fopenmp-force-usm -emit-hlfir %s -o - | FileCheck %s 7 ! -fopenmp-force-usm is set 10 !CHECK-SAME: omp.requires = #omp<clause_requires unified_shared_memory>
|
H A D | requires-force-usm.f90 | 1 ! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-force-usm %s -o - | FileCheck %s 2 ! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-is-target-device -fopenmp-force-usm %s -o - | FileC… 3 ! RUN: bbc -fopenmp -fopenmp-force-usm -emit-hlfir %s -o - | FileCheck %s 4 ! RUN: bbc -fopenmp -fopenmp-is-target-device -fopenmp-force-usm -emit-hlfir %s -o - | FileCheck %s 7 ! -fopenmp-force-usm is set, even when other requires directives are present 10 !CHECK-SAME: omp.requires = #omp<clause_requires reverse_offload|unified_shared_memory>
|
/llvm-project/llvm/test/Transforms/LoopVectorize/ |
H A D | vector-loop-backedge-elimination.ll | 1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 2 ; RUN: opt -passes='loop-vectorize,verify<loops>' -force-vector-width=8 -force [all...] |
H A D | vector-freeze.ll | 1 ; RUN: opt -passes=loop-vectorize -force-vector-width=16 -force-vector-interleav [all...] |
/llvm-project/llvm/test/Other/ |
H A D | module-pass-printer.ll | 3 ; RUN: opt < %s 2>&1 -passes=forceattrs -disable-output -print-after-all -filter-print-funcs=foo | … 4 ; RUN: opt < %s 2>&1 -passes=forceattrs -disable-output -print-after-all -filter-print-funcs=foo | … 8 ; RUN: opt < %s 2>&1 -passes=forceattrs -disable-output -print-after-all -filter-print-funcs=foo,ba… 9 ; RUN: opt < %s 2>&1 -passes=forceattrs -disable-output -print-after-all -filter-print-funcs=foo,ba… 11 … name is not printed if a module/SCC doesn't include any function specified in -filter-print-funcs. 12 ; RUN: opt < %s 2>&1 -passes=forceattrs -disable-output -print-after-all -filter-print-funcs=baz | … 13 ; RUN: opt < %s 2>&1 -passes=forceattrs -disable-output -print-after-all -filter-print-funcs=baz | … 14 … RUN: opt < %s 2>&1 -passes=no-op-cgscc -disable-output -print-after-all -filter-print-funcs=baz |… 16 ; Check whole module is printed with user-specified wildcast switch -filter-print-funcs=* or -print… 17 ; RUN: opt < %s 2>&1 -passes=forceattrs -disable-output -print-after-all | FileCheck %s -check-pref… [all …]
|