aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstr.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-30 01:04:05 +0000
committerChris Lattner <sabre@nondot.org>2007-12-30 01:04:05 +0000
commitb4e48cb096d6fd0761c95cba013cc230ee62fdeb (patch)
tree5c84b19459534748aca54896cb3621970ec258ab /include/llvm/CodeGen/MachineInstr.h
parentc8bd287f3c782ae15d0d36720d874b1054dbd143 (diff)
remove a bunch of now-dead methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h51
1 files changed, 1 insertions, 50 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index 4bf0cad0aa..2058dae57f 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -82,6 +82,7 @@ private:
unsigned char subReg;
} auxInfo;
+
MachineOperand() {}
void print(std::ostream &os) const;
@@ -506,56 +507,6 @@ public:
// Insert a real operand before any implicit ones.
Operands.insert(Operands.begin()+Operands.size()-NumImplicitOps, Op);
}
-
- /// addRegOperand - Add a register operand.
- ///
- void addRegOperand(unsigned Reg, bool IsDef, bool IsImp = false,
- bool IsKill = false, bool IsDead = false,
- unsigned SubReg = 0) {
- addOperand(MachineOperand::CreateReg(Reg, IsDef, IsImp, IsKill,
- IsDead, SubReg));
- }
-
- /// addImmOperand - Add a zero extended constant argument to the
- /// machine instruction.
- ///
- void addImmOperand(int64_t Val) {
- addOperand(MachineOperand::CreateImm(Val));
- }
-
- void addMachineBasicBlockOperand(MachineBasicBlock *MBB) {
- addOperand(MachineOperand::CreateMBB(MBB));
- }
-
- /// addFrameIndexOperand - Add an abstract frame index to the instruction
- ///
- void addFrameIndexOperand(unsigned Idx) {
- addOperand(MachineOperand::CreateFI(Idx));
- }
-
- /// addConstantPoolndexOperand - Add a constant pool object index to the
- /// instruction.
- ///
- void addConstantPoolIndexOperand(unsigned Idx, int Offset) {
- addOperand(MachineOperand::CreateCPI(Idx, Offset));
- }
-
- /// addJumpTableIndexOperand - Add a jump table object index to the
- /// instruction.
- ///
- void addJumpTableIndexOperand(unsigned Idx) {
- addOperand(MachineOperand::CreateJTI(Idx));
- }
-
- void addGlobalAddressOperand(GlobalValue *GV, int 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::CreateES(SymName, Offset));
- }
//===--------------------------------------------------------------------===//
// Accessors used to modify instructions in place.