[llvm] [DirectX] Infrastructure to collect shader flags for each function (PR #112967)
S. Bharadwaj Yadavalli via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 22 14:36:21 PST 2024
================
@@ -0,0 +1,17 @@
+; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s
+
+target triple = "dxil-pc-shadermodel6.7-library"
+define double @div(double %a, double %b) #0 {
+ %res = fdiv double %a, %b
+ ret double %res
+}
+
+attributes #0 = { convergent norecurse nounwind "hlsl.export"}
+
+; CHECK: - Name: SFI0
+; CHECK-NEXT: Size: 8
+; CHECK-NEXT: Flags:
+; CHECK-NEXT: Doubles: true
+; CHECK-NOT: {{[A-Za-z]+: +true}}
+; CHECK: DX11_1_DoubleExtensions: true
----------------
bharadwajy wrote:
Changed.
https://github.com/llvm/llvm-project/pull/112967
More information about the llvm-commits
mailing list