diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-30 00:45:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-30 00:45:46 +0000 |
commit | 39697a83b5ebb857263fc8b9a83ea1834e9d7fe4 (patch) | |
tree | fc7ee3ddb254ad8abc2c3022b1e7abd7fe7ae4ae /include/llvm/CodeGen/MachineInstr.h | |
parent | 8019f41c0b7fda031d494e3900eada7d4e494772 (diff) |
Shrinkify the machine operand creation method names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 006a8722b5..1eaceefa41 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -298,42 +298,42 @@ public: Op.auxInfo.subReg = SubReg; return Op; } - static MachineOperand CreateBasicBlock(MachineBasicBlock *MBB) { + static MachineOperand CreateMBB(MachineBasicBlock *MBB) { MachineOperand Op; Op.opType = MachineOperand::MO_MachineBasicBlock; Op.contents.MBB = MBB; Op.auxInfo.offset = 0; return Op; } - static MachineOperand CreateFrameIndex(unsigned Idx) { + static MachineOperand CreateFI(unsigned Idx) { MachineOperand Op; Op.opType = MachineOperand::MO_FrameIndex; Op.contents.immedVal = Idx; Op.auxInfo.offset = 0; return Op; } - static MachineOperand CreateConstantPoolIndex(unsigned Idx, int Offset) { + static MachineOperand CreateCPI(unsigned Idx, int Offset) { MachineOperand Op; Op.opType = MachineOperand::MO_ConstantPoolIndex; Op.contents.immedVal = Idx; Op.auxInfo.offset = Offset; return Op; } - static MachineOperand CreateJumpTableIndex(unsigned Idx) { + static MachineOperand CreateJTI(unsigned Idx) { MachineOperand Op; Op.opType = MachineOperand::MO_JumpTableIndex; Op.contents.immedVal = Idx; Op.auxInfo.offset = 0; return Op; } - static MachineOperand CreateGlobalAddress(GlobalValue *GV, int Offset) { + static MachineOperand CreateGA(GlobalValue *GV, int Offset) { MachineOperand Op; Op.opType = MachineOperand::MO_GlobalAddress; Op.contents.GV = GV; Op.auxInfo.offset = Offset; return Op; } - static MachineOperand CreateExternalSymbol(const char *SymName, int Offset) { + static MachineOperand CreateES(const char *SymName, int Offset) { MachineOperand Op; Op.opType = MachineOperand::MO_ExternalSymbol; Op.contents.SymbolName = SymName; @@ -524,39 +524,39 @@ public: } void addMachineBasicBlockOperand(MachineBasicBlock *MBB) { - addOperand(MachineOperand::CreateBasicBlock(MBB)); + addOperand(MachineOperand::CreateMBB(MBB)); } /// addFrameIndexOperand - Add an abstract frame index to the instruction /// void addFrameIndexOperand(unsigned Idx) { - addOperand(MachineOperand::CreateFrameIndex(Idx)); + addOperand(MachineOperand::CreateFI(Idx)); } /// addConstantPoolndexOperand - Add a constant pool object index to the /// instruction. /// void addConstantPoolIndexOperand(unsigned Idx, int Offset) { - addOperand(MachineOperand::CreateConstantPoolIndex(Idx, Offset)); + addOperand(MachineOperand::CreateCPI(Idx, Offset)); } /// addJumpTableIndexOperand - Add a jump table object index to the /// instruction. /// void addJumpTableIndexOperand(unsigned Idx) { - addOperand(MachineOperand::CreateJumpTableIndex(Idx)); + addOperand(MachineOperand::CreateJTI(Idx)); } void addGlobalAddressOperand(GlobalValue *GV, int Offset) { - addOperand(MachineOperand::CreateGlobalAddress(GV, Offset)); + addOperand(MachineOperand::CreateGA(GV, Offset)); } /// addExternalSymbolOperand - Add an external symbol operand to this instr /// void addExternalSymbolOperand(const char *SymName, int Offset = 0) { - addOperand(MachineOperand::CreateExternalSymbol(SymName, Offset)); + addOperand(MachineOperand::CreateES(SymName, Offset)); } - + //===--------------------------------------------------------------------===// // Accessors used to modify instructions in place. // |