Home | History | Annotate | Download | only in CodeGen

Lines Matching full:builder

336     CGF.Builder.CreateSExtOrBitCast(VBPtrToNewBase, CGM.PtrDiffTy);
337 return CGF.Builder.CreateNSWAdd(VBPtrOffset, VBPtrToNewBase);
364 CGF.Builder.CreateIsNotNull(IsMostDerivedClass, "is_complete_object");
368 CGF.Builder.CreateCondBr(IsCompleteObject,
389 CGF.Builder.CreateBitCast(getThisValue(CGF), CGM.Int8PtrTy, "this.int8");
399 CGF.Builder.CreateConstInBoundsGEP1_64(ThisInt8Ptr, Offs);
400 VBPtr = CGF.Builder.CreateBitCast(VBPtr, I->GV->getType()->getPointerTo(0),
402 CGF.Builder.CreateStore(I->GV, VBPtr);
472 CGF.Builder.CreateStore(getThisValue(CGF), CGF.ReturnValue);
479 = CGF.Builder.CreateLoad(
488 = CGF.Builder.CreateLoad(
592 CGF.Builder.CreateBitCast(allocPtr, CGF.SizeTy->getPointerTo(AS));
593 return CGF.Builder.CreateLoad(numElementsPtr);
612 = CGF.Builder.CreateBitCast(cookiePtr, CGF.SizeTy->getPointerTo(AS));
613 CGF.Builder.CreateStore(numElements, numElementsPtr);
617 return CGF.Builder.CreateConstInBoundsGEP1_64(newPtr,
850 CGBuilderTy &Builder = CGF.Builder;
870 return Builder.CreateICmp(Eq, L, R);
873 llvm::Value *L0 = Builder.CreateExtractValue(L, 0, "lhs.0");
874 llvm::Value *R0 = Builder.CreateExtractValue(R, 0, "rhs.0");
875 llvm::Value *Cmp0 = Builder.CreateICmp(Eq, L0, R0, "memptr.cmp.first");
881 llvm::Value *LF = Builder.CreateExtractValue(L, I);
882 llvm::Value *RF = Builder.CreateExtractValue(R, I);
883 llvm::Value *Cmp = Builder.CreateICmp(Eq, LF, RF, "memptr.cmp.rest");
885 Res = Builder.CreateBinOp(And, Res, Cmp);
894 llvm::Value *IsZero = Builder.CreateICmp(Eq, L0, Zero, "memptr.cmp.iszero");
895 Res = Builder.CreateBinOp(Or, Res, IsZero);
900 return Builder.CreateBinOp(And, Res, Cmp0, "memptr.cmp");
907 CGBuilderTy &Builder = CGF.Builder;
917 FirstField = Builder.CreateExtractValue(MemPtr, 0);
918 llvm::Value *Res = Builder.CreateICmpNE(FirstField, fields[0], "memptr.cmp0");
927 llvm::Value *Field = Builder.CreateExtractValue(MemPtr, I);
928 llvm::Value *Next = Builder.CreateICmpNE(Field, fields[I], "memptr.cmp");
929 Res = Builder.CreateAnd(Res, Next, "memptr.tobool");
971 CGBuilderTy &Builder = CGF.Builder;
973 This = Builder.CreateBitCast(This, CGM.Int8PtrTy);
975 Builder.CreateInBoundsGEP(This, VBPtrOffset, "vbptr");
977 VBPtr = Builder.CreateBitCast(VBPtr, CGM.Int8PtrTy->getPointerTo(0));
978 llvm::Value *VBTable = Builder.CreateLoad(VBPtr, "vbtable");
981 llvm::Value *VBaseOffs = Builder.CreateInBoundsGEP(VBTable, VBTableOffset);
982 VBaseOffs = Builder.CreateBitCast(VBaseOffs, CGM.Int32Ty->getPointerTo(0));
983 return Builder.CreateLoad(VBaseOffs, "vbase_offs");
993 CGBuilderTy &Builder = CGF.Builder;
994 Base = Builder.CreateBitCast(Base, CGM.Int8PtrTy);
1004 OriginalBB = Builder.GetInsertBlock();
1008 Builder.CreateICmpNE(VBTableOffset, getZeroInt(),
1010 Builder.CreateCondBr(IsVirtual, VBaseAdjustBB, SkipAdjustBB);
1026 llvm::Value *AdjustedBase = Builder.CreateInBoundsGEP(VBPtr, VBaseOffs);
1030 Builder.CreateBr(SkipAdjustBB);
1032 llvm::PHINode *Phi = Builder.CreatePHI(CGM.Int8PtrTy, 2, "memptr.base");
1049 CGBuilderTy &Builder = CGF.Builder;
1061 FieldOffset = Builder.CreateExtractValue(MemPtr, I++);
1063 VBPtrOffset = Builder.CreateExtractValue(MemPtr, I++);
1065 VirtualBaseAdjustmentOffset = Builder.CreateExtractValue(MemPtr, I++);
1073 Builder.CreateInBoundsGEP(Base, FieldOffset, "memptr.offset");
1077 return Builder.CreateBitCast(Addr, PType);
1113 CGBuilderTy &Builder = CGF.Builder;
1125 return Builder.CreateSelect(IsNotNull, Src, DstNull);
1128 llvm::BasicBlock *OriginalBB = Builder.GetInsertBlock();
1131 Builder.CreateCondBr(IsNotNull, ConvertBB, ContinueBB);
1142 FirstField = Builder.CreateExtractValue(Src, I++);
1144 NonVirtualBaseAdjustment = Builder.CreateExtractValue(Src, I++);
1146 VBPtrOffset = Builder.CreateExtractValue(Src, I++);
1148 VirtualBaseAdjustmentOffset = Builder.CreateExtractValue(Src, I++);
1161 NVAdjustField = Builder.CreateNSWSub(NVAdjustField, Adj, "adj");
1163 NVAdjustField = Builder.CreateNSWAdd(NVAdjustField, Adj, "adj");
1175 Dst = Builder.CreateInsertValue(Dst, FirstField, Idx++);
1177 Dst = Builder
1180 Dst = Builder.CreateInsertValue(
1183 Dst = Builder.CreateInsertValue(
1186 Builder.CreateBr(ContinueBB);
1190 llvm::PHINode *Phi = Builder.CreatePHI(DstNull->getType(), 2, "memptr.converted");
1280 CGBuilderTy &Builder = CGF.Builder;
1293 FunctionPointer = Builder.CreateExtractValue(MemPtr, I++);
1295 NonVirtualBaseAdjustment = Builder.CreateExtractValue(MemPtr, I++);
1297 VBPtrOffset = Builder.CreateExtractValue(MemPtr, I++);
1299 VirtualBaseAdjustmentOffset = Builder.CreateExtractValue(MemPtr, I++);
1309 llvm::Value *Ptr = Builder.CreateBitCast(This, Builder.getInt8PtrTy());
1310 Ptr = Builder.CreateInBoundsGEP(Ptr, NonVirtualBaseAdjustment);
1311 This = Builder.CreateBitCast(Ptr, This->getType(), "this.adjusted");
1314 return Builder.CreateBitCast(FunctionPointer, FTy->getPointerTo());