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 | c933344f1e3b4d9112c2005e3fc2e51385e91aed (patch) | |
tree | 944373643b64348f4b11512c472437759ba7aea0 /lib/Transforms/TransformInternals.h | |
parent | 7991c281c51b303f345cf86608b152977da8bc1a (diff) | |
download | external_llvm-c933344f1e3b4d9112c2005e3fc2e51385e91aed.zip external_llvm-c933344f1e3b4d9112c2005e3fc2e51385e91aed.tar.gz external_llvm-c933344f1e3b4d9112c2005e3fc2e51385e91aed.tar.bz2 |
* isFirstClassType is now provided by the Type class
* Add ReplaceInstWithInst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/TransformInternals.h')
-rw-r--r-- | lib/Transforms/TransformInternals.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Transforms/TransformInternals.h b/lib/Transforms/TransformInternals.h index 3131b8d..200a4d7 100644 --- a/lib/Transforms/TransformInternals.h +++ b/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 |