Lines Matching full:builder
78 IRBuilder<> Builder(CI->getParent(), CI);
80 CallInst *NewCI = Builder.CreateCall(FCache, Args);
171 IRBuilder<> Builder(IP->getParent(), IP);
176 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
178 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
180 V = Builder.CreateOr(Tmp1, Tmp2, "bswap.i16");
184 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24),
186 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
188 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
190 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24),
192 Tmp3 = Builder.CreateAnd(Tmp3,
195 Tmp2 = Builder.CreateAnd(Tmp2,
198 Tmp4 = Builder.CreateOr(Tmp4, Tmp3, "bswap.or1");
199 Tmp2 = Builder.CreateOr(Tmp2, Tmp1, "bswap.or2");
200 V = Builder.CreateOr(Tmp4, Tmp2, "bswap.i32");
204 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56),
206 Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40),
208 Value *Tmp6 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24),
210 Value *Tmp5 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
212 Value* Tmp4 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
214 Value* Tmp3 = Builder.CreateLShr(V,
217 Value* Tmp2 = Builder.CreateLShr(V,
220 Value* Tmp1 = Builder.CreateLShr(V,
223 Tmp7 = Builder.CreateAnd(Tmp7,
227 Tmp6 = Builder.CreateAnd(Tmp6,
231 Tmp5 = Builder.CreateAnd(Tmp5,
235 Tmp4 = Builder.CreateAnd(Tmp4,
239 Tmp3 = Builder.CreateAnd(Tmp3,
243 Tmp2 = Builder.CreateAnd(Tmp2,
247 Tmp8 = Builder.CreateOr(Tmp8, Tmp7, "bswap.or1");
248 Tmp6 = Builder.CreateOr(Tmp6, Tmp5, "bswap.or2");
249 Tmp4 = Builder.CreateOr(Tmp4, Tmp3, "bswap.or3");
250 Tmp2 = Builder.CreateOr(Tmp2, Tmp1, "bswap.or4");
251 Tmp8 = Builder.CreateOr(Tmp8, Tmp6, "bswap.or5");
252 Tmp4 = Builder.CreateOr(Tmp4, Tmp2, "bswap.or6");
253 V = Builder.CreateOr(Tmp8, Tmp4, "bswap.i64");
271 IRBuilder<> Builder(IP->getParent(), IP);
282 Value *LHS = Builder.CreateAnd(PartValue, MaskCst, "cppop.and1");
283 Value *VShift = Builder.CreateLShr(PartValue,
286 Value *RHS = Builder.CreateAnd(VShift, MaskCst, "cppop.and2");
287 PartValue = Builder.CreateAdd(LHS, RHS, "ctpop.step");
289 Count = Builder.CreateAdd(PartValue, Count, "ctpop.part");
291 V = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 64),
304 IRBuilder<> Builder(IP->getParent(), IP);
309 ShVal = Builder.CreateLShr(V, ShVal, "ctlz.sh");
310 V = Builder.CreateOr(V, ShVal, "ctlz.step");
313 V = Builder.CreateNot(V);
341 IRBuilder<> Builder(CI->getParent(), CI);
406 Value *NotSrc = Builder.CreateNot(Src);
409 SrcM1 = Builder.CreateSub(Src, SrcM1);
410 Src = LowerCTPOP(Context, Builder.CreateAnd(NotSrc, SrcM1), CI);
467 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr,
478 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr,
489 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr,
494 Ops[1] = Builder.CreateIntCast(CI->getArgOperand(1),