On 27 March 2014 11:33, Jakub Jelinek <ja...@redhat.com> wrote: > Sure, normally register keyword is just a hint, that e.g. GCC I think > ignores whenever optimizing (for -O0 it means a variable doesn't have to > be allocated on the stack), but when it is part of the GNU global/local > register > variable extension (i.e. there is both register keyword and > asm ("<registername>"), then register is not a mere hint, but a requirement.
Yes, I know. That's why I said it was a "joint issue" of that AND the IR problem. The extension syntax is clear and precise. > E.g. glibc uses such inline asms for inline syscalls heavily, other projects > similarly. Good to know. I had plans of compiling glibc with LLVM soon, and this might just be another strong point towards implementing named registers in LLVM. Thanks, --renato