[clang] [llvm] [HLSL] Add list of exported functions as named metadata node `dx.exports` (PR #102275)

Joshua Batista via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 11:11:09 PDT 2024


================
@@ -0,0 +1,19 @@
+; RUN: opt -S -dxil-metadata-emit %s | FileCheck %s
+
+target triple = "dxilv1.3-unknown-shadermodel6.3-library"
+
+define void @"?f1@@YAXXZ"() #0 {
+entry:
+  ret void
+}
+
+define void @"?f2 at MyNamespace@@YAXXZ"() #0 {
+entry:
+  ret void
+}
+
----------------
bob80905 wrote:

Is there a function you can add here that isn't exported (lacks `#0`), and thus won't show up in dx.exports below?

https://github.com/llvm/llvm-project/pull/102275


More information about the llvm-commits mailing list