diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-22 03:46:24 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-22 03:46:24 +0000 |
commit | 00876a2808f1a8061f7e0852c7949fc5074ecb04 (patch) | |
tree | 1963463fa0b10be10845d9a8801a7271f34c5bcf /include/llvm/CodeGen/MachineInstr.h | |
parent | 21bbf8d0222383cbba01191bd046736c40e25c9a (diff) | |
download | external_llvm-00876a2808f1a8061f7e0852c7949fc5074ecb04.zip external_llvm-00876a2808f1a8061f7e0852c7949fc5074ecb04.tar.gz external_llvm-00876a2808f1a8061f7e0852c7949fc5074ecb04.tar.bz2 |
Convert tabs to spaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index ea2233f..b070518 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -43,29 +43,29 @@ typedef short MachineOpCode; // first and initialize each one later. // // E.g, for this VM instruction: -// ptr = alloca type, numElements +// ptr = alloca type, numElements // we generate 2 machine instructions on the SPARC: // -// mul Constant, Numelements -> Reg -// add %sp, Reg -> Ptr +// mul Constant, Numelements -> Reg +// add %sp, Reg -> Ptr // // Each instruction has 3 operands, listed above. Of those: -// - Reg, NumElements, and Ptr are of operand type MO_Register. -// - Constant is of operand type MO_SignExtendedImmed on the SPARC. -// +// - Reg, NumElements, and Ptr are of operand type MO_Register. +// - Constant is of operand type MO_SignExtendedImmed on the SPARC. +// // For the register operands, the virtual register type is as follows: -// -// - Reg will be of virtual register type MO_MInstrVirtualReg. The field -// MachineInstr* minstr will point to the instruction that computes reg. // -// - %sp will be of virtual register type MO_MachineReg. -// The field regNum identifies the machine register. +// - Reg will be of virtual register type MO_MInstrVirtualReg. The field +// MachineInstr* minstr will point to the instruction that computes reg. +// +// - %sp will be of virtual register type MO_MachineReg. +// The field regNum identifies the machine register. // -// - NumElements will be of virtual register type MO_VirtualReg. -// The field Value* value identifies the value. +// - NumElements will be of virtual register type MO_VirtualReg. +// The field Value* value identifies the value. // -// - Ptr will also be of virtual register type MO_VirtualReg. -// Again, the field Value* value identifies the value. +// - Ptr will also be of virtual register type MO_VirtualReg. +// Again, the field Value* value identifies the value. // //===----------------------------------------------------------------------===// @@ -96,8 +96,8 @@ public: }; enum MachineOperandType { - MO_VirtualRegister, // virtual register for *value - MO_MachineRegister, // pre-assigned machine register `regNum' + MO_VirtualRegister, // virtual register for *value + MO_MachineRegister, // pre-assigned machine register `regNum' MO_CCRegister, MO_SignExtendedImmed, MO_UnextendedImmed, @@ -118,7 +118,7 @@ private: // the generated machine code. // LLVM global for MO_GlobalAddress. - int64_t immedVal; // Constant value for an explicit constant + int64_t immedVal; // Constant value for an explicit constant MachineBasicBlock *MBB; // For MO_MachineBasicBlock type const char *SymbolName; // For MO_ExternalSymbol type @@ -127,7 +127,7 @@ private: char flags; // see bit field definitions above MachineOperandType opType:8; // Pack into 8 bits efficiently after flags. union { - int regNum; // register number for an explicit register + int regNum; // register number for an explicit register // will be set for a value after reg allocation int offset; // Offset to address of global or external, only @@ -154,7 +154,7 @@ private: } MachineOperand(Value *V, MachineOperandType OpTy, UseType UseTy, - bool isPCRelative = false) + bool isPCRelative = false) : flags(UseTy | (isPCRelative?PCRELATIVE:0)), opType(OpTy) { assert(OpTy != MachineOperand::MO_GlobalAddress); zeroContents(); @@ -163,7 +163,7 @@ private: } MachineOperand(GlobalValue *V, MachineOperandType OpTy, UseType UseTy, - bool isPCRelative = false, int Offset = 0) + bool isPCRelative = false, int Offset = 0) : flags(UseTy | (isPCRelative?PCRELATIVE:0)), opType(OpTy) { assert(OpTy == MachineOperand::MO_GlobalAddress); zeroContents (); @@ -366,7 +366,7 @@ private: /// void setRegForValue(int reg) { assert(opType == MO_VirtualRegister || opType == MO_CCRegister || - opType == MO_MachineRegister); + opType == MO_MachineRegister); extra.regNum = reg; } |