diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:39:22 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:39:22 +0000 |
| commit | 3655cfb4e274dcdc188b56b42b21aeafda9ae788 (patch) | |
| tree | 43cc87c68a65a7e40a32fc4939b397e75a9fcee1 /llvm/lib/Transforms | |
| parent | 9dedd32ff48c0bf3ca74d75afa9f20d72393b779 (diff) | |
| download | bcm5719-llvm-3655cfb4e274dcdc188b56b42b21aeafda9ae788.tar.gz bcm5719-llvm-3655cfb4e274dcdc188b56b42b21aeafda9ae788.zip | |
* isFirstClassType is now provided by the Type class
* Add ReplaceInstWithInst
llvm-svn: 1468
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/TransformInternals.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/TransformInternals.h b/llvm/lib/Transforms/TransformInternals.h index 3131b8d3675..200a4d7b98a 100644 --- a/llvm/lib/Transforms/TransformInternals.h +++ b/llvm/lib/Transforms/TransformInternals.h @@ -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 |

