| 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 %s |
| 4 |
|
| 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 %s |
| 8 |
|
| 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)] |
| 15 |
void foo() { |
| 16 |
|
| 17 |
} |