brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 5cf4fe8 Raw
37 lines · plain
1; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s2; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC3 4target triple = "dxil-pc-shadermodel6.7-library"5 6; CHECK: ; Combined Shader Flags for Module7; CHECK-NEXT: ; Shader Flags Value: 0x000000008; CHECK-NEXT: ;9; CHECK-NOT:  ; Note: shader requires additional functionality:10; CHECK-NOT:  ;       64-Bit integer11; CHECK-NOT:  ; Note: extra DXIL module flags:12; CHECK-NOT:  ;13; CHECK-NEXT: ; Shader Flags for Module Functions14; CHECK-NEXT: ; Function lifetimes : 0x0000000015 16define void @lifetimes() #0 {17  %a = alloca [4 x i32], align 818  call void @llvm.lifetime.start.p0(ptr nonnull %a)19  call void @llvm.lifetime.end.p0(ptr nonnull %a)20  ret void21}22 23; Function Attrs: nounwind memory(argmem: readwrite)24declare void @llvm.lifetime.start.p0(ptr) #125 26; Function Attrs: nounwind memory(argmem: readwrite)27declare void @llvm.lifetime.end.p0(ptr) #128 29attributes #0 = { convergent norecurse nounwind "hlsl.export"}30attributes #1 = { nounwind memory(argmem: readwrite) }31 32; DXC: - Name:            SFI033; DXC-NEXT:     Size:            834; DXC-NOT:     Flags:35; DXC-NOT:         Int64Ops:        true36; DXC: ...37