llvm.org GIT mirror llvm / cba931f
Add CreateGetResult() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49398 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 12 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9999 ReturnInst *CreateRet(Value * const* retVals, unsigned N) {
100100 return Insert(ReturnInst::Create(retVals, N));
101101 }
102
102
103 GetResultInst *CreateGetResult(Value *V, unsigned Index, const char *Name = "") {
104 return Insert(new GetResultInst(V, Index, Name));
105 }
106
103107 /// CreateBr - Create an unconditional 'br label X' instruction.
104108 BranchInst *CreateBr(BasicBlock *Dest) {
105109 return Insert(BranchInst::Create(Dest));