diff options
| author | Andrew Lenharth <andrewl@lenharth.org> | 2006-11-28 19:52:49 +0000 |
|---|---|---|
| committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-11-28 19:52:49 +0000 |
| commit | 2675e23a7e45081b25c48206bbbb5b861e6983b6 (patch) | |
| tree | 07193359ef876b55dd258f755f9c7e8919e926f7 /llvm/lib/Target | |
| parent | ff35b449a0b14b513d5ae44af5999b7315e3c05e (diff) | |
| download | bcm5719-llvm-2675e23a7e45081b25c48206bbbb5b861e6983b6.tar.gz bcm5719-llvm-2675e23a7e45081b25c48206bbbb5b861e6983b6.zip | |
X86 asm -> gcc asm translation table (incomplete)
llvm-svn: 31973
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/X86/X86TargetAsmInfo.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp index 229473c89c1..ed813db2454 100644 --- a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp @@ -14,14 +14,31 @@ #include "X86TargetAsmInfo.h" #include "X86TargetMachine.h" #include "X86Subtarget.h" +#include <iostream> using namespace llvm; +static const char* x86_asm_table[] = {"{si}", "S", + "{di}", "D", + "{ax}", "a", + "{cx}", "c", + "q", "q", + "r", "r", + "m", "m", + "{memory}", "memory", + "{flags}", "", + "{dirflag}", "", + "{fpsr}", "", + "{cc}", "cc", + 0,0}; + X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) { const X86Subtarget *Subtarget = &TM.getSubtarget<X86Subtarget>(); // FIXME - Should be simplified. - + + AsmTransCBE = x86_asm_table; + switch (Subtarget->TargetType) { case X86Subtarget::isDarwin: AlignmentIsInBytes = false; |

