Lines Matching refs:Builder
166 IRBuilder<> Builder(C);
167 Builder.SetInsertPoint(CI->getParent(), CI);
179 Rep = Builder.CreateICmpEQ(CI->getArgOperand(0), CI->getArgOperand(1),
182 Rep = Builder.CreateSExt(Rep, CI->getType(), "");
185 Rep = Builder.CreateICmpSGT(CI->getArgOperand(0), CI->getArgOperand(1),
188 Rep = Builder.CreateSExt(Rep, CI->getType(), "");
192 IRBuilder<> Builder(C);
193 Builder.SetInsertPoint(CI->getParent(), CI);
204 Value *BC = Builder.CreateBitCast(Arg0,
207 StoreInst *SI = Builder.CreateStore(Arg1, BC);
257 Rep = Builder.CreateCall3(VPCOM, CI->getArgOperand(0),
258 CI->getArgOperand(1), Builder.getInt8(Imm));
277 Idxs.push_back(Builder.getInt32((Imm >> i) & 0x1));
281 Idxs.push_back(Builder.getInt32(((Imm >> (l+i)) & 0x1) + l));
284 Idxs.push_back(Builder.getInt32((Imm >> (2 * i)) & 0x3));
288 Idxs.push_back(Builder.getInt32(((Imm >> (2 * i)) & 0x3) + l));
292 Rep = Builder.CreateShuffleVector(Op0, Op0, ConstantVector::get(Idxs));
314 CI->replaceAllUsesWith(Builder.CreateCall2(NewFn, CI->getArgOperand(0),
315 Builder.getFalse(), Name));
321 CI->replaceAllUsesWith(Builder.CreateCall2(NewFn, CI->getArgOperand(0),
322 Builder.getFalse(),
328 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, CI->getArgOperand(0)));
335 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, CI->getArgOperand(1),
355 Builder.CreateBitCast(Arg0,
359 Builder.CreateBitCast(Arg1,
363 CallInst* NewCall = Builder.CreateCall2(NewFn, BC0, BC1, Name);