1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

* isFirstClassType is now provided by the Type class

* Add ReplaceInstWithInst

llvm-svn: 1468
This commit is contained in:
Chris Lattner 2001-12-14 16:39:22 +00:00
parent 553ec6b72f
commit 98a6e485b0

View File

@ -31,13 +31,6 @@ static int getConstantValue(const ConstantInt *CPI) {
}
// isFirstClassType - Return true if a value of the specified type can be held
// in a register.
//
static inline bool isFirstClassType(const Type *Ty) {
return Ty->isPrimitiveType() || Ty->isPointerType();
}
// getPointedToComposite - If the argument is a pointer type, and the pointed to
// value is a composite type, return the composite type, else return null.
//
@ -60,6 +53,8 @@ void ReplaceInstWithValue(BasicBlock::InstListType &BIL,
void ReplaceInstWithInst(BasicBlock::InstListType &BIL,
BasicBlock::iterator &BI, Instruction *I);
void ReplaceInstWithInst(Instruction *From, Instruction *To);
// ConvertableToGEP - This function returns true if the specified value V is
// a valid index into a pointer of type Ty. If it is valid, Idx is filled in