Lines Matching refs:CurFn

90   if (getLangOpts().OpenMP && CurFn)  in ~CodeGenFunction()
98 if (CGM.getLangOpts().OpenMPIRBuilder && CurFn) in ~CodeGenFunction()
99 CGM.getOpenMPRuntime().getOMPBuilder().finalize(CurFn); in ~CodeGenFunction()
170 CGF.CurFn->getFnAttribute(Name).getValueAsBool(); in ConstructorHelper()
173 CGF.CurFn->addFnAttr(Name, llvm::toStringRef(NewValue)); in ConstructorHelper()
325 CGF.CurFn->insert(CGF.CurFn->end(), BB); in EmitIfUsed()
387 CurFn->addFnAttr("instrument-function-exit", "__cyg_profile_func_exit"); in FinishFunction()
389 CurFn->addFnAttr("instrument-function-exit-inlined", in FinishFunction()
395 DI->EmitFunctionEnd(Builder, CurFn); in FinishFunction()
476 llvm::DominatorTree DT(*CurFn); in FinishFunction()
483 for (llvm::Argument &A : CurFn->args()) in FinishFunction()
490 if (auto *VT = dyn_cast<llvm::VectorType>(CurFn->getReturnType())) in FinishFunction()
506 CurFn->addFnAttr("min-legal-vector-width", in FinishFunction()
513 CurFn->addFnAttr(llvm::Attribute::getWithVScaleRangeArgs( in FinishFunction()
714 assert(!CurFn && in StartFunction()
726 CurFn = Fn; in StartFunction()
728 assert(CurFn->isDeclaration() && "Function already has body?"); in StartFunction()
781 CurFn->addFnAttr(llvm::Attribute::DisableSanitizerInstrumentation); in StartFunction()
873 auto FuncName = llvm::ArrayRef<uint8_t>(CurFn->getName().bytes_begin(), in StartFunction()
874 CurFn->getName().bytes_end()); in StartFunction()
1023 llvm::BasicBlock *EntryBB = createBasicBlock("entry", CurFn); in StartFunction()
1049 DI->getFunctionType(FD, RetTy, Args), CurFn, in StartFunction()
1055 CurFn->addFnAttr("instrument-function-entry", "__cyg_profile_func_enter"); in StartFunction()
1057 CurFn->addFnAttr("instrument-function-entry-inlined", in StartFunction()
1060 CurFn->addFnAttr("instrument-function-entry-inlined", in StartFunction()
1117 auto AI = CurFn->arg_begin(); in StartFunction()
1132 llvm::Function::arg_iterator EI = CurFn->arg_end(); in StartFunction()
1166 EmitFunctionProlog(*CurFnInfo, CurFn, Args); in StartFunction()
1445 CurFn->addFnAttr(llvm::Attribute::MustProgress); in GenerateCode()
1448 PGO.assignRegionCounters(GD, CurFn); in GenerateCode()
1516 if (!CurFn->doesNotThrow()) in GenerateCode()
1517 TryMarkNoThrow(CurFn); in GenerateCode()
2118 return llvm::BlockAddress::get(CurFn, BB); in GetAddrOfLabel()