Initial checkin of X86 backend.
[oota-llvm.git] / lib / Target / X86 / X86RegisterInfo.cpp
1 //===- X86RegisterInfo.cpp - X86 Register Information ---------------------===//
2 //
3 // This file contains the X86 implementation of the MRegisterInfo class.
4 //
5 //===----------------------------------------------------------------------===//
6
7 #include "X86RegisterInfo.h"
8
9 // X86Regs - Turn the X86RegisterInfo.def file into a bunch of register
10 // descriptors
11 //
12 static const MRegisterDesc X86Regs[] = {
13 #define R(ENUM, NAME, FLAGS, TSFLAGS) { NAME, FLAGS, TSFLAGS },
14 #include "X86RegisterInfo.def"
15 };
16
17 X86RegisterInfo::X86RegisterInfo()
18   : MRegisterInfo(X86Regs, sizeof(X86Regs)/sizeof(X86Regs[0])) {
19 }