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 11; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
22
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+
37target triple = "dxil-pc-shadermodel6.8-library"
48
59; CHECK: Combined Shader Flags for Module
Original file line number Diff line number Diff line change 11; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
22
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+
37target triple = "dxil-pc-shadermodel6.8-library"
48
59; CHECK: Combined Shader Flags for Module
Original file line number Diff line number Diff line change 11; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
22
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+
37target triple = "dxil-pc-shadermodel6.6-library"
48
59; CHECK: Combined Shader Flags for Module
Original file line number Diff line number Diff line change 11; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
22
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+
38target triple = "dxil-pc-shadermodel6.7-library"
49
510; CHECK: Combined Shader Flags for Module
Original file line number Diff line number Diff line change 11; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
22
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+
38target triple = "dxil-pc-shadermodel6.8-library"
49
510; CHECK: Combined Shader Flags for Module
You can’t perform that action at this time.
0 commit comments