brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 4bdb7ec Raw
35 lines · plain
1; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s2 3 4; CHECK: ; Combined Shader Flags for Module5; CHECK-NEXT: ; Shader Flags Value: 0x000000016 7; CHECK: ; Note: extra DXIL module flags:8; CHECK-NEXT: ;       Disable shader optimizations9 10; CHECK: ; Shader Flags for Module Functions11; CHECK: ; Function main : 0x0000000112; The test source in this file generated from the following command:13; clang -cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -emit-llvm -O0 -o - <<EOF14; [numthreads(1,1,1)]15; [shader("compute")]16; void main() {}17; EOF18 19target triple = "dxilv1.0-pc-shadermodel6.0-compute"20 21; Function Attrs: convergent noinline norecurse optnone22define void @main() #0 {23entry:24  ret void25}26 27; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind28define noundef i32 @_Z3foov() #1 {29entry:30  ret i32 031}32 33attributes #0 = { convergent noinline norecurse optnone "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }34attributes #1 = { alwaysinline convergent mustprogress norecurse nounwind "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }35