Lines Matching refs:CurFn

87   if (getLangOpts().OpenMP && CurFn)  in ~CodeGenFunction()
95 if (CGM.getLangOpts().OpenMPIRBuilder && CurFn) in ~CodeGenFunction()
96 CGM.getOpenMPRuntime().getOMPBuilder().finalize(CurFn); in ~CodeGenFunction()
178 CGF.CurFn->getFnAttribute(Name).getValueAsBool(); in ConstructorHelper()
181 CGF.CurFn->addFnAttr(Name, llvm::toStringRef(NewValue)); in ConstructorHelper()
331 return CGF.CurFn->getBasicBlockList().push_back(BB); in EmitIfUsed()
390 CurFn->addFnAttr("instrument-function-exit", "__cyg_profile_func_exit"); in FinishFunction()
392 CurFn->addFnAttr("instrument-function-exit-inlined", in FinishFunction()
398 DI->EmitFunctionEnd(Builder, CurFn); in FinishFunction()
471 llvm::DominatorTree DT(*CurFn); in FinishFunction()
478 for (llvm::Argument &A : CurFn->args()) in FinishFunction()
485 if (auto *VT = dyn_cast<llvm::VectorType>(CurFn->getReturnType())) in FinishFunction()
497 CurFn->addFnAttr("min-legal-vector-width", llvm::utostr(LargestVectorWidth)); in FinishFunction()
502 CurFn->addFnAttr(llvm::Attribute::getWithVScaleRangeArgs(getLLVMContext(), in FinishFunction()
706 assert(!CurFn && in StartFunction()
718 CurFn = Fn; in StartFunction()
720 assert(CurFn->isDeclaration() && "Function already has body?"); in StartFunction()
842 CurFn->getName().bytes_begin(), CurFn->getName().bytes_end()); in StartFunction()
959 llvm::BasicBlock *EntryBB = createBasicBlock("entry", CurFn); in StartFunction()
992 DI->emitFunctionStart(GD, Loc, StartLoc, FnType, CurFn, CurFuncIsThunk); in StartFunction()
997 CurFn->addFnAttr("instrument-function-entry", "__cyg_profile_func_enter"); in StartFunction()
999 CurFn->addFnAttr("instrument-function-entry-inlined", in StartFunction()
1002 CurFn->addFnAttr("instrument-function-entry-inlined", in StartFunction()
1054 auto AI = CurFn->arg_begin(); in StartFunction()
1069 llvm::Function::arg_iterator EI = CurFn->arg_end(); in StartFunction()
1097 EmitFunctionProlog(*CurFnInfo, CurFn, Args); in StartFunction()
1198 CurFn->addFnAttr(llvm::Attribute::MustProgress); in EmitFunctionBody()
1338 PGO.assignRegionCounters(GD, CurFn); in GenerateCode()
1395 if (!CurFn->doesNotThrow()) in GenerateCode()
1396 TryMarkNoThrow(CurFn); in GenerateCode()
1957 return llvm::BlockAddress::get(CurFn, BB); in GetAddrOfLabel()