[llvm-commits] [llvm] r158925 - in /llvm/trunk: lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp lib/Target/Mips/MipsAsmPrinter.cpp test/CodeGen/Mips/asm-large-immediate.ll

Eric Christopher echristo at apple.com
Thu Jun 28 13:42:45 PDT 2012


On Jun 21, 2012, at 10:14 AM, Jack Carter <jcarter at mips.com> wrote:

> The inline asm operand modifier 'c' is suppose 
> to be generic across architectures. It has the
> following description in the gnu sources:
> 
>    Substitute immediate value without immediate syntax
> 
> Several Architectures such as x86 have local implementations
> of operand modifier 'c' which go beyond the above description
> slightly. To make use of the generic modifiers without overriding
> local implementation one can make a call to the base class method
> for AsmPrinter::PrintAsmOperand() in the locally derived method's 
> "default" case in the switch statement. That way if it is already
> defined locally the generic version will never get called.

Looks fine. Thanks!

-eric



More information about the llvm-commits mailing list