[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetAsmInfo.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Tue Nov 28 11:53:08 PST 2006
Changes in directory llvm/lib/Target/X86:
X86TargetAsmInfo.cpp updated: 1.7 -> 1.8
---
Log message:
X86 asm -> gcc asm translation table (incomplete)
---
Diffs of the changes: (+18 -1)
X86TargetAsmInfo.cpp | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86TargetAsmInfo.cpp
diff -u llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.7 llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.8
--- llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.7 Tue Oct 31 02:31:24 2006
+++ llvm/lib/Target/X86/X86TargetAsmInfo.cpp Tue Nov 28 13:52:49 2006
@@ -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;
More information about the llvm-commits
mailing list