brintos

brintos / llvm-project-archived public Read only

0
0
Text · 627 B · cd3bf94 Raw
18 lines · plain
1// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \2// RUN:   dxil-pc-shadermodel6.3-compute %s -hlsl-entry foo \3// RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s4 5// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \6// RUN:   spirv-unknown-vulkan-compute %s -hlsl-entry foo \7// RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s8 9// Make sure not mangle entry.10// CHECK:define void @foo()11// Make sure add function attribute and numthreads attribute.12// CHECK:"hlsl.numthreads"="16,8,1"13// CHECK:"hlsl.shader"="compute"14[numthreads(16,8,1)]15void foo() {16 17}18