Skip to content

Commit 5c14432

Browse files
committed
Add comments to tests for clarity of purpose
1 parent 7172146 commit 5c14432

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

llvm/test/CodeGen/DirectX/ShaderFlags/res-may-alias-0.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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+
37
target triple = "dxil-pc-shadermodel6.8-library"
48

59
; CHECK: Combined Shader Flags for Module

llvm/test/CodeGen/DirectX/ShaderFlags/res-may-alias-1.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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+
37
target triple = "dxil-pc-shadermodel6.8-library"
48

59
; CHECK: Combined Shader Flags for Module

llvm/test/CodeGen/DirectX/ShaderFlags/res-may-not-alias-shadermodel6.6.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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+
37
target triple = "dxil-pc-shadermodel6.6-library"
48

59
; CHECK: Combined Shader Flags for Module

llvm/test/CodeGen/DirectX/ShaderFlags/res-may-not-alias-shadermodel6.7.ll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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+
38
target triple = "dxil-pc-shadermodel6.7-library"
49

510
; CHECK: Combined Shader Flags for Module

llvm/test/CodeGen/DirectX/ShaderFlags/res-may-not-alias-shadermodel6.8.ll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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+
38
target triple = "dxil-pc-shadermodel6.8-library"
49

510
; CHECK: Combined Shader Flags for Module

0 commit comments

Comments
 (0)