mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Finish implementation of alias list impl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5083 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -12,11 +12,18 @@
|
|||||||
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
||||||
#include "llvm/CodeGen/MachineFunction.h"
|
#include "llvm/CodeGen/MachineFunction.h"
|
||||||
|
|
||||||
|
// Create static lists to contain register alias sets...
|
||||||
|
#define ALIASLIST(NAME, ...) \
|
||||||
|
static const unsigned NAME[] = { __VA_ARGS__ };
|
||||||
|
#include "X86RegisterInfo.def"
|
||||||
|
|
||||||
|
|
||||||
// X86Regs - Turn the X86RegisterInfo.def file into a bunch of register
|
// X86Regs - Turn the X86RegisterInfo.def file into a bunch of register
|
||||||
// descriptors
|
// descriptors
|
||||||
//
|
//
|
||||||
static const MRegisterDesc X86Regs[] = {
|
static const MRegisterDesc X86Regs[] = {
|
||||||
#define R(ENUM, NAME, FLAGS, TSFLAGS, ALIAS_SET) { NAME, FLAGS, TSFLAGS },
|
#define R(ENUM, NAME, FLAGS, TSFLAGS, ALIAS_SET) \
|
||||||
|
{ NAME, ALIAS_SET, FLAGS, TSFLAGS },
|
||||||
#include "X86RegisterInfo.def"
|
#include "X86RegisterInfo.def"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -119,6 +119,7 @@ ALIASLIST(A_AH , X86::EAX, X86::AX, 0)
|
|||||||
ALIASLIST(A_CH , X86::ECX, X86::CX, 0)
|
ALIASLIST(A_CH , X86::ECX, X86::CX, 0)
|
||||||
ALIASLIST(A_DH , X86::EDX, X86::DX, 0)
|
ALIASLIST(A_DH , X86::EDX, X86::DX, 0)
|
||||||
ALIASLIST(A_BH , X86::EBX, X86::BX, 0)
|
ALIASLIST(A_BH , X86::EBX, X86::BX, 0)
|
||||||
|
#undef ALIASLIST
|
||||||
|
|
||||||
// We are now done with the R* macros
|
// We are now done with the R* macros
|
||||||
#undef R
|
#undef R
|
||||||
|
Reference in New Issue
Block a user