llvm.org GIT mirror llvm / e9fe2bc
Fix indentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19649 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 18 addition(s) and 19 deletion(s). Raw diff Collapse all Expand all
3232 /// with BP or SP and Disp being offsetted accordingly. The displacement may
3333 /// also include the offset of a global value.
3434 struct X86AddressMode {
35 enum {
36 RegBase,
37 FrameIndexBase,
38 } BaseType;
39
40 union {
41 unsigned Reg;
42 int FrameIndex;
43 } Base;
44
45 unsigned Scale;
46 unsigned IndexReg;
47 unsigned Disp;
48 GlobalValue *GV;
49
50 X86AddressMode() : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0),
51 GV(NULL) {
52 Base.Reg = 0;
53 }
35 enum {
36 RegBase,
37 FrameIndexBase,
38 } BaseType;
39
40 union {
41 unsigned Reg;
42 int FrameIndex;
43 } Base;
44
45 unsigned Scale;
46 unsigned IndexReg;
47 unsigned Disp;
48 GlobalValue *GV;
49
50 X86AddressMode() : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(0) {
51 Base.Reg = 0;
52 }
5453 };
5554
5655 /// addDirectMem - This function is used to add a direct memory reference to the