[PATCH] D124753: [HLSL] Set main as default entry.
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 31 22:45:45 PDT 2022
MaskRay added inline comments.
================
Comment at: clang/test/CodeGenHLSL/entry_default.hlsl:6
+// Make sure not mangle entry.
+// CHECK:define void @main() [[MAIN_ATTR:#[0-9]]]
+// CHECK:define void @_Z3foov() [[FOO_ATTR:#[0-9]]]
----------------
space between `:` and the value.
================
Comment at: clang/test/CodeGenHLSL/entry_default.hlsl:9
+// Make sure only main has dx.shader attribute.
+// CHECK:[[MAIN_ATTR]]
+// CHECK:"dx.shader"="compute"
----------------
[[MAIN_ATTR]] and the value should be on the same line.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124753/new/
https://reviews.llvm.org/D124753
More information about the cfe-commits
mailing list