[PATCH] D76848: [CodeGen] Error when writing to reserved registers in inline asm
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 30 15:17:11 PDT 2020
efriedma added a comment.
Forbidding sp references would probably going to break real code for no reason; probably not a good idea.
Probably we want to try to follow gcc for whatever other obscure edge cases exist. Off the top of my head, the only other one on ARM is "fixed" registers. For example, with -ffixed-r4, gcc allows referencing r4.
What does that mean in terms of whitelisting/blacklisting? Probably makes sense to blacklist, if we're just talking about forbidding pc, the frame pointer, and the base pointer.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76848/new/
https://reviews.llvm.org/D76848
More information about the llvm-commits
mailing list