[llvm-commits] [llvm] r76198 - in /llvm/trunk: docs/LangRef.html include/llvm-c/Core.h include/llvm/Attributes.h lib/AsmParser/LLLexer.cpp lib/AsmParser/LLParser.cpp lib/AsmParser/LLToken.h lib/CodeGen/PrologEpilogInserter.cpp lib/VMCore/Attribut

Eli Friedman eli.friedman at gmail.com
Fri Jul 17 13:33:31 PDT 2009


On Fri, Jul 17, 2009 at 1:28 PM, Anton
Korobeynikov<anton at korobeynikov.info> wrote:
> Eli,
>
>> The way llvm-gcc lowers global register variables is quite broken;
>> llvm-gcc should really be rejecting them rather than compiling them to
>> almost-working code.
> If they are tied to some general purpose registers (which are compile
> allocable, etc) - then yes. Otherwise it's perfectly legal. As I said
> - consider register variable tied to some "control" register. It's ok
> to do loads from and stores to such variable.

Hmm, I wasn't thinking in terms of a non-allocatable register.  But
does LLVM actually support loads and stores from such registers
anyway?

-Eli



More information about the llvm-commits mailing list