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()
167 CGF.CurFn->getFnAttribute(Name).getValueAsBool(); in ConstructorHelper()
170 CGF.CurFn->addFnAttr(Name, llvm::toStringRef(NewValue)); in ConstructorHelper()
321 return CGF.CurFn->getBasicBlockList().push_back(BB); in EmitIfUsed()
380 CurFn->addFnAttr("instrument-function-exit", "__cyg_profile_func_exit"); in FinishFunction()
382 CurFn->addFnAttr("instrument-function-exit-inlined", in FinishFunction()
388 DI->EmitFunctionEnd(Builder, CurFn); in FinishFunction()
469 llvm::DominatorTree DT(*CurFn); in FinishFunction()
476 for (llvm::Argument &A : CurFn->args()) in FinishFunction()
483 if (auto *VT = dyn_cast<llvm::VectorType>(CurFn->getReturnType())) in FinishFunction()
498 CurFn->addFnAttr("min-legal-vector-width", llvm::utostr(LargestVectorWidth)); in FinishFunction()
504 CurFn->addFnAttr(llvm::Attribute::getWithVScaleRangeArgs( in FinishFunction()
693 assert(!CurFn && in StartFunction()
705 CurFn = Fn; in StartFunction()
707 assert(CurFn->isDeclaration() && "Function already has body?"); in StartFunction()
753 CurFn->addFnAttr(llvm::Attribute::DisableSanitizerInstrumentation); in StartFunction()
846 CurFn->getName().bytes_begin(), CurFn->getName().bytes_end()); in StartFunction()
991 llvm::BasicBlock *EntryBB = createBasicBlock("entry", CurFn); in StartFunction()
1017 DI->getFunctionType(FD, RetTy, Args), CurFn, in StartFunction()
1023 CurFn->addFnAttr("instrument-function-entry", "__cyg_profile_func_enter"); in StartFunction()
1025 CurFn->addFnAttr("instrument-function-entry-inlined", in StartFunction()
1028 CurFn->addFnAttr("instrument-function-entry-inlined", in StartFunction()
1085 auto AI = CurFn->arg_begin(); in StartFunction()
1101 llvm::Function::arg_iterator EI = CurFn->arg_end(); in StartFunction()
1131 EmitFunctionProlog(*CurFnInfo, CurFn, Args); in StartFunction()
1232 CurFn->addFnAttr(llvm::Attribute::MustProgress); in EmitFunctionBody()
1412 PGO.assignRegionCounters(GD, CurFn); in GenerateCode()
1469 if (!CurFn->doesNotThrow()) in GenerateCode()
1470 TryMarkNoThrow(CurFn); in GenerateCode()
2031 return llvm::BlockAddress::get(CurFn, BB); in GetAddrOfLabel()