Add a method

llvm-svn: 13105
This commit is contained in:
Chris Lattner 2004-04-22 14:56:51 +00:00
parent af532f27e7
commit 334bee87f4
1 changed files with 8 additions and 0 deletions

View File

@ -250,6 +250,14 @@ namespace llvm {
/// starts at zero and steps by one on each iteration.
Value *GetOrInsertCanonicalInductionVariable(const Loop *L, const Type *Ty);
/// addInsertedValue - Remember the specified instruction as being the
/// canonical form for the specified SCEV.
void addInsertedValue(Instruction *I, SCEV *S) {
InsertedExpressions[S] = I;
InsertedInstructions.insert(I);
}
/// ExpandCodeFor - Insert code to directly compute the specified SCEV
/// expression into the program. The inserted code is inserted into the
/// specified block.