[llvm] [LLVM][Parser] Check invalid overload suffix for intrinsics (PR #108315)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 12 04:25:57 PDT 2024


jurahul wrote:

Additionally, if mangling can always be reconstructed, maybe LLVM should always elide it? I know that's a bigger change but may be worth considering. That means LLVM assembly syntax won't require mangling (it does not today as well due to it being ignored) but in strict mode LLVM assembly for overloaded intrinsics will have no mangling (We assert that Suffix = "" in the code above) and ASM parser will also hide the mangling. In memoy IR (i.e., Function objects) will still have mangled names (that's required I think as 2 different Global Values cannot have same name).

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


More information about the llvm-commits mailing list