forked from OSchip/llvm-project
Initialize IsDef of all non-register MachineOperand to false.
llvm-svn: 30116
This commit is contained in:
parent
845b223da4
commit
fd500a27f2
|
@ -295,6 +295,7 @@ public:
|
||||||
void addImmOperand(int64_t Val) {
|
void addImmOperand(int64_t Val) {
|
||||||
MachineOperand &Op = AddNewOperand();
|
MachineOperand &Op = AddNewOperand();
|
||||||
Op.opType = MachineOperand::MO_Immediate;
|
Op.opType = MachineOperand::MO_Immediate;
|
||||||
|
Op.IsDef = false;
|
||||||
Op.contents.immedVal = Val;
|
Op.contents.immedVal = Val;
|
||||||
Op.offset = 0;
|
Op.offset = 0;
|
||||||
}
|
}
|
||||||
|
@ -302,6 +303,7 @@ public:
|
||||||
void addMachineBasicBlockOperand(MachineBasicBlock *MBB) {
|
void addMachineBasicBlockOperand(MachineBasicBlock *MBB) {
|
||||||
MachineOperand &Op = AddNewOperand();
|
MachineOperand &Op = AddNewOperand();
|
||||||
Op.opType = MachineOperand::MO_MachineBasicBlock;
|
Op.opType = MachineOperand::MO_MachineBasicBlock;
|
||||||
|
Op.IsDef = false;
|
||||||
Op.contents.MBB = MBB;
|
Op.contents.MBB = MBB;
|
||||||
Op.offset = 0;
|
Op.offset = 0;
|
||||||
}
|
}
|
||||||
|
@ -311,6 +313,7 @@ public:
|
||||||
void addFrameIndexOperand(unsigned Idx) {
|
void addFrameIndexOperand(unsigned Idx) {
|
||||||
MachineOperand &Op = AddNewOperand();
|
MachineOperand &Op = AddNewOperand();
|
||||||
Op.opType = MachineOperand::MO_FrameIndex;
|
Op.opType = MachineOperand::MO_FrameIndex;
|
||||||
|
Op.IsDef = false;
|
||||||
Op.contents.immedVal = Idx;
|
Op.contents.immedVal = Idx;
|
||||||
Op.offset = 0;
|
Op.offset = 0;
|
||||||
}
|
}
|
||||||
|
@ -321,6 +324,7 @@ public:
|
||||||
void addConstantPoolIndexOperand(unsigned Idx, int Offset) {
|
void addConstantPoolIndexOperand(unsigned Idx, int Offset) {
|
||||||
MachineOperand &Op = AddNewOperand();
|
MachineOperand &Op = AddNewOperand();
|
||||||
Op.opType = MachineOperand::MO_ConstantPoolIndex;
|
Op.opType = MachineOperand::MO_ConstantPoolIndex;
|
||||||
|
Op.IsDef = false;
|
||||||
Op.contents.immedVal = Idx;
|
Op.contents.immedVal = Idx;
|
||||||
Op.offset = Offset;
|
Op.offset = Offset;
|
||||||
}
|
}
|
||||||
|
@ -331,6 +335,7 @@ public:
|
||||||
void addJumpTableIndexOperand(unsigned Idx) {
|
void addJumpTableIndexOperand(unsigned Idx) {
|
||||||
MachineOperand &Op = AddNewOperand();
|
MachineOperand &Op = AddNewOperand();
|
||||||
Op.opType = MachineOperand::MO_JumpTableIndex;
|
Op.opType = MachineOperand::MO_JumpTableIndex;
|
||||||
|
Op.IsDef = false;
|
||||||
Op.contents.immedVal = Idx;
|
Op.contents.immedVal = Idx;
|
||||||
Op.offset = 0;
|
Op.offset = 0;
|
||||||
}
|
}
|
||||||
|
@ -338,6 +343,7 @@ public:
|
||||||
void addGlobalAddressOperand(GlobalValue *GV, int Offset) {
|
void addGlobalAddressOperand(GlobalValue *GV, int Offset) {
|
||||||
MachineOperand &Op = AddNewOperand();
|
MachineOperand &Op = AddNewOperand();
|
||||||
Op.opType = MachineOperand::MO_GlobalAddress;
|
Op.opType = MachineOperand::MO_GlobalAddress;
|
||||||
|
Op.IsDef = false;
|
||||||
Op.contents.GV = GV;
|
Op.contents.GV = GV;
|
||||||
Op.offset = Offset;
|
Op.offset = Offset;
|
||||||
}
|
}
|
||||||
|
@ -347,6 +353,7 @@ public:
|
||||||
void addExternalSymbolOperand(const char *SymName) {
|
void addExternalSymbolOperand(const char *SymName) {
|
||||||
MachineOperand &Op = AddNewOperand();
|
MachineOperand &Op = AddNewOperand();
|
||||||
Op.opType = MachineOperand::MO_ExternalSymbol;
|
Op.opType = MachineOperand::MO_ExternalSymbol;
|
||||||
|
Op.IsDef = false;
|
||||||
Op.contents.SymbolName = SymName;
|
Op.contents.SymbolName = SymName;
|
||||||
Op.offset = 0;
|
Op.offset = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue