/llvm-project/flang/runtime/ |
H A D | numeric-templates.h | 127 static constexpr RT_API_ATTRS T compute(T x) { return std::abs(x); } 136 static constexpr RT_API_ATTRS T compute(T x, int *e) { 144 static constexpr RT_API_ATTRS int compute(T x) { return std::ilogb(x); } 148 static constexpr RT_API_ATTRS bool compute(T x) { return std::isinf(x); } 152 static constexpr RT_API_ATTRS bool compute(T x) { return std::isnan(x); } 156 template <typename ET> static constexpr RT_API_ATTRS T compute(T x, ET e) { 162 static constexpr RT_API_ATTRS T compute() { 169 static CppTypeFor<TypeCategory::Real, 16> compute() { 176 static constexpr RT_API_ATTRS T compute() { return MinValue<PREC, T>::get(); } 180 static constexpr RT_API_ATTRS T compute() { [all...] |
/llvm-project/flang/runtime/Float128Math/ |
H A D | numeric-template-specs.h | 19 static F128Type compute(F128Type x) { return Abs<true>::invoke(x); } 23 static F128Type compute(F128Type x, int *e) { 29 static int compute(F128Type x) { return Ilogb<true>::invoke(x); } 33 static bool compute(F128Type x) { return Isinf<true>::invoke(x); } 37 static bool compute(F128Type x) { return Isnan<true>::invoke(x); } 41 template <typename ET> static F128Type compute(F128Type x, ET p) { 47 static F128Type compute() { return F128_RT_QNAN; } 51 static F128Type compute(F128Type x) { return Sqrt<true>::invoke(x); }
|
/llvm-project/llvm/test/Transforms/FunctionSpecialization/ |
H A D | function-specialization.ll | 10 ; CHECK-NEXT: [[TMP0:%.+]] = call i64 @compute.specialized.1(i64 %x, ptr @plus) 13 ; CHECK-NEXT: [[TMP1:%.+]] = call i64 @compute.specialized.2(i64 %x, ptr @minus) 21 ; NOFSPEC-NOT: call i64 @compute.specialized.{{[0-9]+}}( 22 ; NOFSPEC: call i64 @compute( 28 %tmp0 = call i64 @compute(i64 %x, ptr @plus) 32 %tmp1 = call i64 @compute(i64 %x, ptr @minus) 40 ; CHECK-NOT: define internal i64 @compute( 42 ; CHECK-LABEL: define internal i64 @compute.specialized.1(i64 %x, ptr %binop) { 48 ; CHECK-LABEL: define internal i64 @compute.specialized.2(i64 %x, ptr %binop) { 54 ; NOFSPEC: define internal i64 @compute( [all …]
|
H A D | identical-specializations.ll | 9 %cmp0 = call i64 @compute(i64 %x, i64 %y, ptr @plus, ptr @minus) 13 %cmp1 = call i64 @compute(i64 %x, i64 %y, ptr @minus, ptr @plus) 18 %cmp2 = call i64 @compute(i64 %ph, i64 42, ptr @plus, ptr @minus) 22 define internal i64 @compute(i64 %x, i64 %y, ptr %binop1, ptr %binop2) { 26 %op2 = call i64 @compute(i64 %x, i64 %y, ptr %binop1, ptr @plus) 54 ; CHECK-NEXT: [[CMP0:%.*]] = call i64 @compute.specialized.2(i64 [[X]], i64 [[Y]], ptr @plus, ptr @minus) 57 ; CHECK-NEXT: [[CMP1:%.*]] = call i64 @compute.specialized.3(i64 [[X]], i64 [[Y]], ptr @minus, ptr @plus) 61 ; CHECK-NEXT: [[CMP2:%.*]] = call i64 @compute.specialized.2(i64 [[PH]], i64 42, ptr @plus, ptr @minus) 79 ; CHECK-LABEL: define internal i64 @compute.specialized.1( 84 ; CHECK-NEXT: [[OP2:%.*]] = call i64 @compute [all...] |
H A D | remove-dead-recursive-function.ll | 8 %tmp0 = call i64 @compute(i64 %x, ptr @plus) 12 %tmp1 = call i64 @compute(i64 %x, ptr @minus) 20 ; CHECK-NOT: define internal i64 @compute( 22 ; CHECK-LABEL: define internal i64 @compute.specialized.1(i64 %n, ptr %binop) { 24 ; CHECK: [[TMP1:%.+]] = call i64 @compute.specialized.1(i64 [[TMP2:%.+]], ptr @plus) 27 ; CHECK-LABEL: define internal i64 @compute.specialized.2(i64 %n, ptr %binop) { 29 ; CHECK: [[TMP1:%.+]] = call i64 @compute.specialized.2(i64 [[TMP2:%.+]], ptr @minus) 32 define internal i64 @compute(i64 %n, ptr %binop) { 40 %call1 = call i64 @compute(i64 %sub, ptr %binop)
|
H A D | specialize-multiple-arguments.ll | 8 ; FnSpecialization: Specializations for function compute 24 ; NONE-NEXT: [[TMP0:%.*]] = call i64 @compute(i64 [[X:%.*]], i64 [[Y:%.*]], ptr @power, ptr @mul) 27 ; NONE-NEXT: [[TMP1:%.*]] = call i64 @compute(i64 [[X]], i64 [[Y]], ptr @plus, ptr @minus) 31 ; NONE-NEXT: [[TMP3:%.*]] = call i64 @compute(i64 [[TMP2]], i64 42, ptr @minus, ptr @power) 38 ; ONE-NEXT: [[TMP0:%.*]] = call i64 @compute(i64 [[X:%.*]], i64 [[Y:%.*]], ptr @power, ptr @mul) 41 ; ONE-NEXT: [[TMP1:%.*]] = call i64 @compute.specialized.1(i64 [[X]], i64 [[Y]], ptr @plus, ptr @minus) 45 ; ONE-NEXT: [[TMP3:%.*]] = call i64 @compute(i64 [[TMP2]], i64 42, ptr @minus, ptr @power) 52 ; TWO-NEXT: [[TMP0:%.*]] = call i64 @compute(i64 [[X:%.*]], i64 [[Y:%.*]], ptr @power, ptr @mul) 55 ; TWO-NEXT: [[TMP1:%.*]] = call i64 @compute.specialized.2(i64 [[X]], i64 [[Y]], ptr @plus, ptr @minus) 59 ; TWO-NEXT: [[TMP3:%.*]] = call i64 @compute [all...] |
H A D | function-specialization-minsize.ll | 3 ; CHECK-NOT: @compute.specialized.1 4 ; CHECK-NOT: @compute.specialized.2 11 %tmp0 = call i64 @compute(i64 %x, ptr @plus) 15 %tmp1 = call i64 @compute(i64 %x, ptr @minus) 23 define internal i64 @compute(i64 %x, ptr %binop) minsize {
|
H A D | function-specialization-minsize2.ll | 6 ; CHECK-NOT: @compute.specialized.1 7 ; CHECK-NOT: @compute.specialized.2 14 %tmp0 = call i64 @compute(i64 %x, ptr @plus) #0 18 %tmp1 = call i64 @compute(i64 %x, ptr @minus) #0 26 define internal i64 @compute(i64 %x, ptr %binop) {
|
H A D | function-specialization-minsize3.ll | 7 ; CHECK: %tmp0 = call i64 @compute.specialized.1(i64 %x, ptr @plus) 10 ; CHECK: %tmp1 = call i64 @compute(i64 %x, ptr @minus) #0 18 %tmp0 = call i64 @compute(i64 %x, ptr @plus) 22 %tmp1 = call i64 @compute(i64 %x, ptr @minus) #0 30 define internal i64 @compute(i64 %x, ptr %binop) {
|
/llvm-project/clang/test/SemaHLSL/Availability/ |
H A D | avail-diag-strict-compute.hlsl | 1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute \ 11 __attribute__((availability(shadermodel, introduced = 6.5, environment = compute))) 22 …// expected-error@#also_alive_fy_call {{'fy' is only available in compute environment on Shader Mo… 23 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 26 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 35 …// expected-error@#alive_fy_call {{'fy' is only available in compute environment on Shader Model 6… 36 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 39 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 49 …// expected-error@#also_dead_fy_call {{'fy' is only available in compute environment on Shader Mod… 50 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… [all …]
|
H A D | avail-diag-relaxed-lib.hlsl | 11 __attribute__((availability(shadermodel, introduced = 6.5, environment = compute))) 23 …// expected-warning@#also_alive_fy_call {{'fy' is only available in compute environment on Shader … 24 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 28 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 39 …// expected-warning@#alive_fy_call {{'fy' is only available in compute environment on Shader Model… 40 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 44 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 71 …// expected-warning@#aliveTemp_fy_call {{'fy' is only available in compute environment on Shader M… 72 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 75 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} [all …]
|
H A D | avail-lib-multiple-stages.hlsl | 8 __attribute__((availability(shadermodel, introduced = 6.5, environment = compute))) 11 __attribute__((availability(shadermodel, introduced = 5.0, environment = compute))) 17 // in compute shader context and once in pixel shader context. 22 …// expected-error@#fy_call {{'fy' is only available in compute environment on Shader Model 6.5 or … 23 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 27 …// expected-note@#fz {{'fz' has been marked as being introduced in Shader Model 5.0 in compute env… 45 [shader("compute")] 51 // Second compute shader to make sure we do not get duplicate messages if F is called 53 [shader("compute")]
|
H A D | avail-diag-default-lib.hlsl | 11 __attribute__((availability(shadermodel, introduced = 6.5, environment = compute))) 23 …// expected-error@#also_alive_fy_call {{'fy' is only available in compute environment on Shader Mo… 24 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 28 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 39 …// expected-error@#alive_fy_call {{'fy' is only available in compute environment on Shader Model 6… 40 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 44 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 71 …// expected-error@#aliveTemp_fy_call {{'fy' is only available in compute environment on Shader Mod… 72 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 75 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} [all …]
|
H A D | avail-diag-relaxed-compute.hlsl | 1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute \ 11 __attribute__((availability(shadermodel, introduced = 6.5, environment = compute))) 22 …// expected-warning@#also_alive_fy_call {{'fy' is only available in compute environment on Shader … 23 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 26 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 35 …// expected-warning@#alive_fy_call {{'fy' is only available in compute environment on Shader Model… 36 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 39 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 67 …// expected-warning@#aliveTemp_fy_call {{'fy' is only available in compute environment on Shader M… 68 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… [all …]
|
H A D | avail-diag-default-compute.hlsl | 1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute \ 11 __attribute__((availability(shadermodel, introduced = 6.5, environment = compute))) 22 …// expected-error@#also_alive_fy_call {{'fy' is only available in compute environment on Shader Mo… 23 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 26 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 35 …// expected-error@#alive_fy_call {{'fy' is only available in compute environment on Shader Model 6… 36 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 39 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 67 …// expected-error@#aliveTemp_fy_call {{'fy' is only available in compute environment on Shader Mod… 68 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… [all …]
|
H A D | avail-diag-strict-lib.hlsl | 11 __attribute__((availability(shadermodel, introduced = 6.5, environment = compute))) 27 …// expected-error@#also_alive_fy_call {{'fy' is only available in compute environment on Shader Mo… 28 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 32 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 43 …// expected-error@#alive_fy_call {{'fy' is only available in compute environment on Shader Model 6… 44 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 48 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} 91 …// expected-error@#aliveTemp_fy_call {{'fy' is only available in compute environment on Shader Mod… 92 …ng introduced in Shader Model 6.5 in compute environment here, but the deployment target is Shader… 95 …l 6.5 in mesh environment here, but the deployment target is Shader Model 6.0 compute environment}} [all …]
|
H A D | attr-availability-compute.hlsl | 1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel5.0-compute -fsyntax-only -verify %s 26 __attribute__((availability(shadermodel, introduced = 6.0, environment = compute))) 35 __attribute__((availability(shadermodel, introduced = 5.0, environment = compute))) 57 …// expected-error@#f6_call {{'f6' is only available in compute environment on Shader Model 6.0 or … 58 …// expected-note@#f6 {{'f6' has been marked as being introduced in Shader Model 6.0 in compute env… 62 …l 6.0 in mesh environment here, but the deployment target is Shader Model 5.0 compute environment}}
|
/llvm-project/clang/test/SemaHLSL/ |
H A D | entry_shader_redecl.hlsl | 1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -hlsl-entry cs1 -o - %s -ast-dump… 2 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -hlsl-entry cs2 -o - %s -ast-dump… 3 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-compute -x hlsl -hlsl-entry cs3 -o - %s -ast-dump… 26 [shader("compute"), numthreads(1,1,1)] void s1() {} 33 [shader("compute")] void s2(); 34 [shader("compute"), numthreads(1,1,1)] void s2() {} 42 [shader("compute"), numthreads(1,1,1)] void s3() {} 49 [shader("compute"), numthreads(1,1,1)] void s4(); 50 [shader("compute")][numthreads(1,1,1)] void s4() {} 57 [shader("compute"), numthreads(1,1,1)] void s5(); [all …]
|
/llvm-project/clang/test/Driver/ |
H A D | hlsl-lang-targets-spirv.hlsl | 6 // RUN: %clang -target dxil-unknown-shadermodel6.2-compute %s -S -o /dev/null 2>&1 | FileCheck --al… 7 // RUN: %clang -target spirv-unknown-vulkan-compute %s -S -o /dev/null 2>&1 | FileCheck --allow-emp… 8 // RUN: %clang -target spirv-unknown-vulkan1.2-compute %s -S -o /dev/null 2>&1 | FileCheck --allow-… 9 // RUN: %clang -target spirv-unknown-vulkan1.3-compute %s -S -o /dev/null 2>&1 | FileCheck --allow-… 10 // RUN: %clang -target spirv1.5-unknown-vulkan1.2-compute %s -S -o /dev/null 2>&1 | FileCheck --all… 11 // RUN: %clang -target spirv1.6-unknown-vulkan1.3-compute %s -S -o /dev/null 2>&1 | FileCheck --all… 20 // RUN: not %clang -target spirv-unknown-vulkan1.0-compute %s -S -o /dev/null 2>&1 | FileCheck --ch… 21 // RUN: not %clang -target spirv1.5-unknown-vulkan1.3-compute %s -S -o /dev/null 2>&1 | FileCheck -… 24 // RUN: not %clang -target spirv1.0-unknown-vulkan-compute %s -S -o /dev/null 2>&1 | FileCheck --ch… 41 [shader("compute"), numthreads(1,1,1)]
|
/llvm-project/llvm/unittests/Target/SPIRV/ |
H A D | SPIRVConvergenceRegionAnalysisTests.cpp | 139 define void @main() convergent "hlsl.numthreads"="4,8,16" "hlsl.shader"="compute" { in TEST_F() 153 define void @main() convergent "hlsl.numthreads"="4,8,16" "hlsl.shader"="compute" { in TEST_F() 172 define void @main() convergent "hlsl.numthreads"="4,8,16" "hlsl.shader"="compute" { in TEST_F() 212 define void @main() convergent "hlsl.numthreads"="4,8,16" "hlsl.shader"="compute" { in TEST_F() 249 define void @main() convergent "hlsl.numthreads"="4,8,16" "hlsl.shader"="compute" { in TEST_F() 285 define void @main() convergent "hlsl.numthreads"="4,8,16" "hlsl.shader"="compute" { in TEST_F() 337 define void @main() convergent "hlsl.numthreads"="4,8,16" "hlsl.shader"="compute" { in TEST_F() 407 define void @main() convergent "hlsl.numthreads"="4,8,16" "hlsl.shader"="compute" { in TEST_F() 460 define void @main() convergent "hlsl.numthreads"="4,8,16" "hlsl.shader"="compute" { in TEST_F() 551 define void @main() convergent "hlsl.numthreads"="4,8,16" "hlsl.shader"="compute" { in TEST_F() [all …]
|
/llvm-project/llvm/test/CodeGen/MIR/X86/ |
H A D | register-mask-operands.mir | 6 define i32 @compute(i32 %a) #0 { 14 %b = call i32 @compute(i32 %a) 22 name: compute 34 ; CHECK-NEXT: CALL64pcrel32 @compute, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, implicit-def $eax 36 CALL64pcrel32 @compute, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, implicit-def $eax
|
H A D | undef-register-flag.mir | 7 define i32 @compute(i32 %a) #0 { 15 %b = call i32 @compute(i32 %a) 23 name: compute 35 CALL64pcrel32 @compute, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, implicit-def $eax
|
H A D | frame-setup-instruction-flag.mir | 6 define i32 @compute(i32 %a) { 14 %b = call i32 @compute(i32 %a) 20 name: compute 32 CALL64pcrel32 @compute, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, implicit-def $eax
|
/llvm-project/clang/test/Analysis/inlining/ |
H A D | eager-reclamation-path-notes.c | 10 int compute(void) { in compute() function 21 use(p, compute()); in testSimple() 33 use2(p, compute()); in passThrough()
|
/llvm-project/llvm/test/Transforms/LowerMatrixIntrinsics/ |
H A D | remarks-inlining.ll | 50 ; CHECK-LABEL: remark: load.h:41:43: Lowered with 0 stores, 10 loads, 0 compute ops, 0 exposed tran… 53 ; CHECK-LABEL: remark: load.h:41:43: Lowered with 0 stores, 10 loads, 0 compute ops, 0 exposed tran… 56 ; CHECK-LABEL: remark: load.h:41:11: Lowered with 0 stores, 1 loads, 0 compute ops, 0 exposed trans… 59 ; CHECK-LABEL: remark: assign.h:32:43: Lowered with 0 stores, 10 loads, 0 compute ops, 0 exposed tr… 62 ; CHECK-LABEL: remark: assign.h:32:43: Lowered with 0 stores, 10 loads, 0 compute ops, 0 exposed tr… 65 ; CHECK-LABEL: remark: toplevel.c:410:0: Lowered with 10 stores, 20 loads, 10 compute ops, 0 expose… 72 ; CHECK-LABEL: remark: toplevel.c:510:0: Lowered with 2 stores, 1 loads, 4 compute ops, 1 exposed t… 77 ; CHECK-LABEL: remark: add.h:66:11: Lowered with 0 stores, 0 loads, 10 compute ops, 0 exposed trans… 82 ; CHECK-LABEL: remark: store.h:10:11: Lowered with 10 stores, 0 loads, 0 compute ops, 0 exposed tra… 87 ; CHECK-LABEL: remark: store.h:66:11: Lowered with 2 stores, 0 loads, 0 compute ops, 0 exposed tran… [all …]
|