[clang] [HLSL] Treat `main` as any other function (PR #110546)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 30 12:35:37 PDT 2024
================
@@ -4,7 +4,7 @@
// SPIRV: error: '-fnative-half-type' option requires target HLSL Version >= 2018, but HLSL Version is 'hlsl2016'
// valid: "spirv-unknown-vulkan-library"
-// valid: define spir_func void @main() #0 {
+// valid: define spir_func void @{{.*}}main{{.*}}() #0 {
----------------
farzonl wrote:
```suggestion
valid: define spir_func void @{{.*main.*}}() #0 {
```
https://github.com/llvm/llvm-project/pull/110546
More information about the cfe-commits
mailing list