mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-29 16:12:44 +00:00
X86 asm -> gcc asm translation table (incomplete)
llvm-svn: 31973
This commit is contained in:
parent
c51f451af5
commit
c0ee1250ad
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user