File tree Expand file tree Collapse file tree 5 files changed +22
-0
lines changed
llvm/test/CodeGen/DirectX/ShaderFlags Expand file tree Collapse file tree 5 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1
1
; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
2
2
3
+ ; This test checks to ensure that setting the LLVM module flag "dx.resmayalias"
4
+ ; to 0 has no effect on the DXIL shader flag analysis for the flag
5
+ ; ResMayNotAlias.
6
+
3
7
target triple = "dxil-pc-shadermodel6.8-library"
4
8
5
9
; CHECK: Combined Shader Flags for Module
Original file line number Diff line number Diff line change 1
1
; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
2
2
3
+ ; This test checks to ensure that setting the LLVM module flag "dx.resmayalias"
4
+ ; to 1 prevents the DXIL shader flag analysis from setting the flag
5
+ ; ResMayNotAlias.
6
+
3
7
target triple = "dxil-pc-shadermodel6.8-library"
4
8
5
9
; CHECK: Combined Shader Flags for Module
Original file line number Diff line number Diff line change 1
1
; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
2
2
3
+ ; This test checks to ensure the behavior of the DXIL shader flag analysis
4
+ ; for the flag ResMayNotAlias is correct when the DXIL Version is 1.6. The
5
+ ; ResMayNotAlias flag (0x20000000) should not be set at all.
6
+
3
7
target triple = "dxil-pc-shadermodel6.6-library"
4
8
5
9
; CHECK: Combined Shader Flags for Module
Original file line number Diff line number Diff line change 1
1
; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
2
2
3
+ ; This test checks to ensure the behavior of the DXIL shader flag analysis
4
+ ; for the flag ResMayNotAlias is correct when the DXIL Version is 1.7. The
5
+ ; ResMayNotAlias flag (0x20000000) should be set on all functions if there are
6
+ ; one or more UAVs present globally in the module.
7
+
3
8
target triple = "dxil-pc-shadermodel6.7-library"
4
9
5
10
; CHECK: Combined Shader Flags for Module
Original file line number Diff line number Diff line change 1
1
; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
2
2
3
+ ; This test checks to ensure the behavior of the DXIL shader flag analysis
4
+ ; for the flag ResMayNotAlias is correct when the DXIL Version is 1.8. The
5
+ ; ResMayNotAlias flag (0x20000000) should only be set when a function uses a
6
+ ; UAV.
7
+
3
8
target triple = "dxil-pc-shadermodel6.8-library"
4
9
5
10
; CHECK: Combined Shader Flags for Module
You can’t perform that action at this time.
0 commit comments