llvm-6502/lib/CodeGen/AsmPrinter
Jack Carter d5e11ad51a 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.

This change is needed when test/CodeGen/generic/asm-large-immediate.ll
failed on a native Mips board. The test was assuming a generic
implementation was in place.

Affected files:

    lib/Target/Mips/MipsAsmPrinter.cpp:
        Changed the default case to call the base method.
    lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
        Added 'c' to the switch cases.
    test/CodeGen/Mips/asm-large-immediate.ll
        Mips compiled version of the generic one

Contributer: Jack Carter



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158925 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-21 17:14:46 +00:00
..
ARMException.cpp
AsmPrinter.cpp Switch all register list clients to the new MC*Iterator interface. 2012-06-01 23:28:30 +00:00
AsmPrinterDwarf.cpp Convert assert(0) to llvm_unreachable 2012-02-05 08:31:47 +00:00
AsmPrinterInlineAsm.cpp The inline asm operand modifier 'c' is suppose 2012-06-21 17:14:46 +00:00
CMakeLists.txt
DIE.cpp Convert assert(0) to llvm_unreachable 2012-02-05 08:31:47 +00:00
DIE.h
DwarfAccelTable.cpp Reduce malloc traffic in DwarfAccelTable 2012-04-13 20:06:17 +00:00
DwarfAccelTable.h Reduce malloc traffic in DwarfAccelTable 2012-04-13 20:06:17 +00:00
DwarfCFIException.cpp
DwarfCompileUnit.cpp Add support for enum forward declarations. 2012-06-01 00:22:32 +00:00
DwarfCompileUnit.h Add support for objc property decls according to the page at: 2012-03-29 08:42:56 +00:00
DwarfDebug.cpp Allocate the contents of DwarfDebug's StringMaps in a single big BumpPtrAllocator. 2012-06-09 10:34:15 +00:00
DwarfDebug.h Allocate the contents of DwarfDebug's StringMaps in a single big BumpPtrAllocator. 2012-06-09 10:34:15 +00:00
DwarfException.cpp Convert assert(0) to llvm_unreachable 2012-02-05 08:31:47 +00:00
DwarfException.h
LLVMBuild.txt
Makefile
OcamlGCPrinter.cpp
Win64Exception.cpp