Lines Matching full:builder
216 llvm::IRBuilder<> Builder(Begin);
217 Builder.CreateRetVoid();
229 /// After the loop has been created, the builder is set such that
232 /// @param Builder The builder to use to build this loop. The current
233 /// position of the builder is the position the loop
239 llvm::BasicBlock *createLoop(llvm::IRBuilder<> &Builder,
249 CondBB = Builder.GetInsertBlock();
250 AfterBB = llvm::SplitBlock(CondBB, Builder.GetInsertPoint(), this);
258 Builder.SetInsertPoint(CondBB);
259 Cond = Builder.CreateICmpULT(LowerBound, UpperBound);
260 Builder.CreateCondBr(Cond, HeaderBB, AfterBB);
268 Builder.SetInsertPoint(HeaderBB);
269 IV = Builder.CreatePHI(LowerBound->getType(), 2, "X");
271 IVNext = Builder.CreateNUWAdd(IV, Builder.getInt32(1));
273 Cond = Builder.CreateICmpULT(IVNext, UpperBound);
274 Builder.CreateCondBr(Cond, HeaderBB, AfterBB);
276 Builder.SetInsertPoint(HeaderBB->getFirstNonPHI());
332 llvm::IRBuilder<> Builder(ExpandedFunc->getEntryBlock().begin());
344 InBasePtr = Builder.CreateLoad(Builder.CreateStructGEP(Arg_p, 0));
354 OutBasePtr = Builder.CreateLoad(Builder.CreateStructGEP(Arg_p, 1));
361 UsrData = Builder.CreatePointerCast(Builder.CreateLoad(
362 Builder.CreateStructGEP(Arg_p, 2)), UsrDataTy);
373 Y = Builder.CreateLoad(Builder.CreateStructGEP(Arg_p, 5), "Y");
380 createLoop(Builder, Arg_x1, Arg_x2, &IV);
397 llvm::Value *OutOffset = Builder.CreateSub(IV, Arg_x1);
398 OutOffset = Builder.CreateMul(OutOffset, OutStep);
399 OutPtr = Builder.CreateGEP(OutBasePtr, OutOffset);
400 OutPtr = Builder.CreatePointerCast(OutPtr, OutTy);
403 llvm::Value *InOffset = Builder.CreateSub(IV, Arg_x1);
404 InOffset = Builder.CreateMul(InOffset, InStep);
405 InPtr = Builder.CreateGEP(InBasePtr, InOffset);
406 InPtr = Builder.CreatePointerCast(InPtr, InTy);
430 Builder.CreateCall(F, RootArgs);
470 llvm::IRBuilder<> Builder(ExpandedFunc->getEntryBlock().begin());
499 OutBasePtr = Builder.CreateLoad(Builder.CreateStructGEP(Arg_p, 1));
511 InBasePtr = Builder.CreateLoad(Builder.CreateStructGEP(Arg_p, 0));
526 Y = Builder.CreateLoad(Builder.CreateStructGEP(Arg_p, 5), "Y");
533 createLoop(Builder, Arg_x1, Arg_x2, &IV);
550 llvm::Value *OutOffset = Builder.CreateSub(IV, Arg_x1);
551 OutOffset = Builder.CreateMul(OutOffset, OutStep);
552 OutPtr = Builder.CreateGEP(OutBasePtr, OutOffset);
553 OutPtr = Builder.CreatePointerCast(OutPtr, OutTy);
556 llvm::Value *InOffset = Builder.CreateSub(IV, Arg_x1);
557 InOffset = Builder.CreateMul(InOffset, InStep);
558 InPtr = Builder.CreateGEP(InBasePtr, InOffset);
559 InPtr = Builder.CreatePointerCast(InPtr, InTy);
567 llvm::LoadInst *In = Builder.CreateLoad(InPtr, "In");
581 llvm::Value *RetVal = Builder.CreateCall(F, RootArgs);
584 llvm::StoreInst *Store = Builder.CreateStore(RetVal, OutPtr);