[llvm] [LangRef] inline asm: the instructions are treated opaquely (PR #157080)
Patrick Simmons via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 22 10:55:12 PDT 2025
linuxrocks123 wrote:
@jyknight the current wording doesn't just break magic comments. It also breaks parsing the assembly and then doing optimizations based on that even if those optimizations would not compromise the correctness of the code if the assembly were changed. Why break those potential optimizations?
Re magic comments, I'm not too familiar with clang, so I'll ask: do we have backend-specific hooks that would allow parsing an inline assembly string for a particular architecture? Like, is there enough backend-specific code in clang to where there would be a place to put that, if someone wanted to do it?
https://github.com/llvm/llvm-project/pull/157080
More information about the llvm-commits
mailing list