aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/DirectX/strip-rootsignatures.ll
blob: 3ac617ae871fcbc53410955cb0d270f1622e7369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: opt -S -dxil-prepare < %s | FileCheck %s

; Ensures that dxil-prepare will remove the dx.rootsignatures metadata

target triple = "dxil-unknown-shadermodel6.0-compute"

define void @main() {
entry:
  ret void
}

; CHECK-NOT: !dx.rootsignatures
; CHECK-NOT: {{^!}}

!dx.rootsignatures = !{!2} ; list of function/root signature pairs
!2 = !{ ptr @main, !3, i32 2 } ; function, root signature
!3 = !{ !4 } ; list of root signature elements
!4 = !{ !"RootFlags", i32 1 } ; 1 = allow_input_assembler_input_layout