Lines Matching refs:CurFn
97 if (getLangOpts().OpenMP && CurFn) in ~CodeGenFunction()
105 if (CGM.getLangOpts().OpenMPIRBuilder && CurFn) in ~CodeGenFunction()
106 CGM.getOpenMPRuntime().getOMPBuilder().finalize(CurFn); in ~CodeGenFunction()
177 CGF.CurFn->getFnAttribute(Name).getValueAsBool(); in ConstructorHelper()
180 CGF.CurFn->addFnAttr(Name, llvm::toStringRef(NewValue)); in ConstructorHelper()
359 CGF.CurFn->insert(CGF.CurFn->end(), BB); in EmitIfUsed()
431 CurFn->addFnAttr("instrument-function-exit", "__cyg_profile_func_exit"); in FinishFunction()
433 CurFn->addFnAttr("instrument-function-exit-inlined", in FinishFunction()
439 DI->EmitFunctionEnd(Builder, CurFn); in FinishFunction()
520 llvm::DominatorTree DT(*CurFn); in FinishFunction()
527 for (llvm::Argument &A : CurFn->args()) in FinishFunction()
534 if (auto *VT = dyn_cast<llvm::VectorType>(CurFn->getReturnType())) in FinishFunction()
550 CurFn->addFnAttr("min-legal-vector-width", in FinishFunction()
557 CurFn->addFnAttr(llvm::Attribute::getWithVScaleRangeArgs( in FinishFunction()
759 assert(!CurFn && in StartFunction()
771 CurFn = Fn; in StartFunction()
773 assert(CurFn->isDeclaration() && "Function already has body?"); in StartFunction()
826 CurFn->addFnAttr(llvm::Attribute::DisableSanitizerInstrumentation); in StartFunction()
931 auto FuncName = llvm::ArrayRef<uint8_t>(CurFn->getName().bytes_begin(), in StartFunction()
932 CurFn->getName().bytes_end()); in StartFunction()
1090 llvm::BasicBlock *EntryBB = createBasicBlock("entry", CurFn); in StartFunction()
1116 DI->getFunctionType(FD, RetTy, Args), CurFn, in StartFunction()
1122 CurFn->addFnAttr("instrument-function-entry", "__cyg_profile_func_enter"); in StartFunction()
1124 CurFn->addFnAttr("instrument-function-entry-inlined", in StartFunction()
1127 CurFn->addFnAttr("instrument-function-entry-inlined", in StartFunction()
1184 auto AI = CurFn->arg_begin(); in StartFunction()
1200 llvm::Function::arg_iterator EI = CurFn->arg_end(); in StartFunction()
1234 EmitFunctionProlog(*CurFnInfo, CurFn, Args); in StartFunction()
1326 ConvergenceTokenStack.push_back(getOrEmitConvergenceEntryToken(CurFn)); in StartFunction()
1524 CurFn->addFnAttr(llvm::Attribute::MustProgress); in GenerateCode()
1527 PGO.assignRegionCounters(GD, CurFn); in GenerateCode()
1595 if (!CurFn->doesNotThrow()) in GenerateCode()
1596 TryMarkNoThrow(CurFn); in GenerateCode()
2198 return llvm::BlockAddress::get(CurFn, BB); in GetAddrOfLabel()