forked from OSchip/llvm-project
Remove some unnecessary LoadInst constructors, missed during Twinification.
llvm-svn: 78689
This commit is contained in:
parent
73e9f8c636
commit
5c13812e2f
|
@ -248,7 +248,7 @@ class LoadInst : public UnaryInstruction {
|
||||||
public:
|
public:
|
||||||
LoadInst(Value *Ptr, const Twine &NameStr, Instruction *InsertBefore);
|
LoadInst(Value *Ptr, const Twine &NameStr, Instruction *InsertBefore);
|
||||||
LoadInst(Value *Ptr, const Twine &NameStr, BasicBlock *InsertAtEnd);
|
LoadInst(Value *Ptr, const Twine &NameStr, BasicBlock *InsertAtEnd);
|
||||||
LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile = false,
|
LoadInst(Value *Ptr, const Twine &NameStr = "", bool isVolatile = false,
|
||||||
Instruction *InsertBefore = 0);
|
Instruction *InsertBefore = 0);
|
||||||
LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile,
|
LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile,
|
||||||
unsigned Align, Instruction *InsertBefore = 0);
|
unsigned Align, Instruction *InsertBefore = 0);
|
||||||
|
@ -257,13 +257,6 @@ public:
|
||||||
LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile,
|
LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile,
|
||||||
unsigned Align, BasicBlock *InsertAtEnd);
|
unsigned Align, BasicBlock *InsertAtEnd);
|
||||||
|
|
||||||
LoadInst(Value *Ptr, const char *NameStr, Instruction *InsertBefore);
|
|
||||||
LoadInst(Value *Ptr, const char *NameStr, BasicBlock *InsertAtEnd);
|
|
||||||
explicit LoadInst(Value *Ptr, const char *NameStr = 0,
|
|
||||||
bool isVolatile = false, Instruction *InsertBefore = 0);
|
|
||||||
LoadInst(Value *Ptr, const char *NameStr, bool isVolatile,
|
|
||||||
BasicBlock *InsertAtEnd);
|
|
||||||
|
|
||||||
/// isVolatile - Return true if this is a load from a volatile memory
|
/// isVolatile - Return true if this is a load from a volatile memory
|
||||||
/// location.
|
/// location.
|
||||||
///
|
///
|
||||||
|
|
|
@ -863,46 +863,6 @@ LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile,
|
||||||
setName(Name);
|
setName(Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
LoadInst::LoadInst(Value *Ptr, const char *Name, Instruction *InsertBef)
|
|
||||||
: UnaryInstruction(cast<PointerType>(Ptr->getType())->getElementType(),
|
|
||||||
Load, Ptr, InsertBef) {
|
|
||||||
setVolatile(false);
|
|
||||||
setAlignment(0);
|
|
||||||
AssertOK();
|
|
||||||
if (Name && Name[0]) setName(Name);
|
|
||||||
}
|
|
||||||
|
|
||||||
LoadInst::LoadInst(Value *Ptr, const char *Name, BasicBlock *InsertAE)
|
|
||||||
: UnaryInstruction(cast<PointerType>(Ptr->getType())->getElementType(),
|
|
||||||
Load, Ptr, InsertAE) {
|
|
||||||
setVolatile(false);
|
|
||||||
setAlignment(0);
|
|
||||||
AssertOK();
|
|
||||||
if (Name && Name[0]) setName(Name);
|
|
||||||
}
|
|
||||||
|
|
||||||
LoadInst::LoadInst(Value *Ptr, const char *Name, bool isVolatile,
|
|
||||||
Instruction *InsertBef)
|
|
||||||
: UnaryInstruction(cast<PointerType>(Ptr->getType())->getElementType(),
|
|
||||||
Load, Ptr, InsertBef) {
|
|
||||||
setVolatile(isVolatile);
|
|
||||||
setAlignment(0);
|
|
||||||
AssertOK();
|
|
||||||
if (Name && Name[0]) setName(Name);
|
|
||||||
}
|
|
||||||
|
|
||||||
LoadInst::LoadInst(Value *Ptr, const char *Name, bool isVolatile,
|
|
||||||
BasicBlock *InsertAE)
|
|
||||||
: UnaryInstruction(cast<PointerType>(Ptr->getType())->getElementType(),
|
|
||||||
Load, Ptr, InsertAE) {
|
|
||||||
setVolatile(isVolatile);
|
|
||||||
setAlignment(0);
|
|
||||||
AssertOK();
|
|
||||||
if (Name && Name[0]) setName(Name);
|
|
||||||
}
|
|
||||||
|
|
||||||
void LoadInst::setAlignment(unsigned Align) {
|
void LoadInst::setAlignment(unsigned Align) {
|
||||||
assert((Align & (Align-1)) == 0 && "Alignment is not a power of 2!");
|
assert((Align & (Align-1)) == 0 && "Alignment is not a power of 2!");
|
||||||
SubclassData = (SubclassData & 1) | ((Log2_32(Align)+1)<<1);
|
SubclassData = (SubclassData & 1) | ((Log2_32(Align)+1)<<1);
|
||||||
|
|
Loading…
Reference in New Issue