[llvm-commits] [llvm] r122180 - /llvm/trunk/include/llvm/Support/IRBuilder.h
Chris Lattner
sabre at nondot.org
Sun Dec 19 11:16:22 PST 2010
Author: lattner
Date: Sun Dec 19 13:16:22 2010
New Revision: 122180
URL: http://llvm.org/viewvc/llvm-project?rev=122180&view=rev
Log:
add a version of IRBuilder::SetInsertPoint that takes an instruction.
Modified:
llvm/trunk/include/llvm/Support/IRBuilder.h
Modified: llvm/trunk/include/llvm/Support/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=122180&r1=122179&r2=122180&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/IRBuilder.h Sun Dec 19 13:16:22 2010
@@ -74,6 +74,13 @@
}
/// SetInsertPoint - This specifies that created instructions should be
+ /// inserted before the specified instruction.
+ void SetInsertPoint(Instruction *I) {
+ BB = I->getParent();
+ InsertPt = I;
+ }
+
+ /// SetInsertPoint - This specifies that created instructions should be
/// inserted at the specified point.
void SetInsertPoint(BasicBlock *TheBB, BasicBlock::iterator IP) {
BB = TheBB;
More information about the llvm-commits
mailing list