Home | History | Annotate | Download | only in CodeGen

Lines Matching full:cgf

267 static void EmitIfUsed(CodeGenFunction &CGF, llvm::BasicBlock *BB) {
270 return CGF.CurFn->getBasicBlockList().push_back(BB);
1394 static void emitNonZeroVLAInit(CodeGenFunction &CGF, QualType baseType,
1397 CGBuilderTy &Builder = CGF.Builder;
1399 CharUnits baseSize = CGF.getContext().getTypeSizeInChars(baseType);
1401 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSize.getQuantity());
1404 Builder.CreateElementBitCast(dest, CGF.Int8Ty, "vla.begin");
1408 llvm::BasicBlock *originBB = CGF.Builder.GetInsertBlock();
1409 llvm::BasicBlock *loopBB = CGF.createBasicBlock("vla-init.loop");
1410 llvm::BasicBlock *contBB = CGF.createBasicBlock("vla-init.cont");
1414 CGF.EmitBlock(loopBB);
1428 Builder.CreateInBoundsGEP(CGF.Int8Ty, cur, baseSizeInChars, "vla.next");
1435 CGF.EmitBlock(contBB);
1898 CodeGenFunction::SanitizerScope::SanitizerScope(CodeGenFunction *CGF)
1899 : CGF(CGF) {
1900 assert(!CGF->IsSanitizerScope);
1901 CGF->IsSanitizerScope = true;
1905 CGF->IsSanitizerScope = false;
1921 if (CGF)
1922 CGF->InsertHelper(I, Name, BB, InsertPt);