Home
last modified time | relevance | path

Searched refs:CurFn (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSplitModule.cpp319 const auto &CurFn = *WorkList.pop_back_val(); in addAllDependencies() local
320 assert(!CurFn.isDeclaration()); in addAllDependencies()
326 for (auto &CGEntry : *CG[&CurFn]) { in addAllDependencies()
341 SML << "Indirect call detected in " << getName(CurFn) in addAllDependencies()
520 for (auto &CurFn : WorkList) { in doPartitioning() local
524 if (CurFn.HasIndirectCall) { in doPartitioning()
525 SML << "Function with indirect call(s): " << getName(*CurFn.Fn) in doPartitioning()
527 AssignToPartition(0, CurFn); in doPartitioning()
535 if (CurFn.HasNonDuplicatableDependecy) { in doPartitioning()
537 << getName(*CurFn.Fn) << " defaulting to P0\n"; in doPartitioning()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp237 auto SiteInsertion = CurFn->InlineSites.insert({InlinedAt, InlineSite()}); in getInlineSite()
240 unsigned ParentFuncId = CurFn->FuncId; in getInlineSite()
255 CurFn->Inlinees.insert(InlineeIdx);
528 if (!CurFn->HaveLineInfo) in maybeRecordLocation()
529 CurFn->HaveLineInfo = true; in maybeRecordLocation()
532 FileId = CurFn->LastFileId; in maybeRecordLocation()
534 FileId = CurFn->LastFileId = maybeRecordFile(DL->getFile()); in maybeRecordLocation()
537 unsigned FuncId = CurFn->FuncId; in maybeRecordLocation()
556 addLocIfNotPresent(CurFn->ChildSites, Loc); in maybeRecordLocation()
1482 CurFn in beginFunctionImpl()
[all...]
H A DDwarfDebug.h386 const MachineFunction *CurFn = nullptr;
879 const MachineFunction *getCurrentFunction() const { return CurFn; }
331 const MachineFunction *CurFn = nullptr; global() variable
H A DDwarfDebug.cpp1407 assert(CurFn == nullptr); in endModule()
2218 CurFn = MF; in beginFunctionImpl()
2264 CurFn = nullptr; in skippedNonDebugFunction()
2271 assert(CurFn == MF && in endFunctionImpl()
2282 CurFn = nullptr; in endFunctionImpl()
2305 CurFn = nullptr; in endFunctionImpl()
2354 CurFn = nullptr; in endFunctionImpl()
H A DCodeViewDebug.h214 FunctionInfo *CurFn = nullptr; variable
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp97 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()
[all …]
H A DCGAtomic.cpp401 CGF.createBasicBlock("cmpxchg.store_expected", CGF.CurFn); in emitAtomicCmpXchg()
406 CGF.createBasicBlock("cmpxchg.continue", CGF.CurFn); in emitAtomicCmpXchg()
465 auto *MonotonicBB = CGF.createBasicBlock("monotonic_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
466 auto *AcquireBB = CGF.createBasicBlock("acquire_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
467 auto *SeqCstBB = CGF.createBasicBlock("seqcst_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
468 auto *ContBB = CGF.createBasicBlock("atomic.continue", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
561 CGF.createBasicBlock("cmpxchg.strong", CGF.CurFn); in EmitAtomicOp()
562 llvm::BasicBlock *WeakBB = CGF.createBasicBlock("cmxchg.weak", CGF.CurFn); in EmitAtomicOp()
564 CGF.createBasicBlock("cmpxchg.continue", CGF.CurFn); in EmitAtomicOp()
789 BB[S] = CGF.createBasicBlock(getAsString(ScopeModel->map(S)), CGF.CurFn); in EmitAtomicOp()
[all …]
H A DCGException.cpp802 if (!CurFn->hasPersonalityFn()) in getInvokeDestImpl()
803 CurFn->setPersonalityFn(getOpaquePersonalityFn(CGM, Personality)); in getInvokeDestImpl()
1546 if (!CurFn->hasPersonalityFn()) in getTerminateLandingPad()
1547 CurFn->setPersonalityFn(getOpaquePersonalityFn(CGM, Personality)); in getTerminateLandingPad()
1741 FP = &CGF.CurFn->arg_begin()[1]; in Emit()
1849 FrameRecoverFn, {ParentCGF.CurFn, ParentFP, in recoverAddrOfEscapedLocal()
1900 auto AI = CurFn->arg_begin(); in EmitCapturedLocals()
1912 ParentFP = Builder.CreateCall(RecoverFPIntrin, {ParentCGF.CurFn, EntryFP}); in EmitCapturedLocals()
1948 FrameRecoverFn, {ParentCGF.CurFn, ParentFP, in EmitCapturedLocals()
2069 CGM.SetInternalFunctionAttributes(GlobalDecl(), CurFn, FnInfo); in startOutlinedSEHHelper()
[all …]
H A DCGOpenMPRuntimeGPU.cpp1016 auto I = Rt.FunctionGlobalizedDecls.try_emplace(CGF.CurFn).first; in emitTeamsOutlinedFunction()
1047 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in emitGenericVarsProlog()
1108 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in isDelayedVariableLengthDecl()
1156 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in emitGenericVarsEpilog()
1732 auto *CurFn = CGF.CurFn; in emitReduction() local
1733 CGF.CurFn = NewFunc; in emitReduction()
1746 CGF.CurFn = CurFn; in emitReduction()
1984 assert(FunctionGlobalizedDecls.count(CGF.CurFn) == 0 && in emitFunctionProlog()
2016 auto I = FunctionGlobalizedDecls.try_emplace(CGF.CurFn).first; in emitFunctionProlog()
2093 auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in getAddressOfLocalVariable()
[all …]
H A DCodeGenABITypes.cpp125 CGF.CurFn = InsertBlock->getParent(); in getCXXDestructorImplicitParam()
H A DCGCUDANV.cpp300 EmittedKernels.push_back({CGF.CurFn, CGF.CurFuncDecl}); in emitDeviceStub()
302 dyn_cast<llvm::GlobalVariable>(KernelHandles[CGF.CurFn->getName()])) { in emitDeviceStub()
303 GV->setLinkage(CGF.CurFn->getLinkage()); in emitDeviceStub()
304 GV->setInitializer(CGF.CurFn); in emitDeviceStub()
397 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyNew()
480 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyLegacy()
H A DCGStmt.cpp602 CurFn->insert(std::next(CurBB->getIterator()), BB); in EmitBlock()
604 CurFn->insert(CurFn->end(), BB); in EmitBlock()
629 CurFn->insert(std::next(insn->getParent()->getIterator()), block); in EmitBlockAfterUses()
636 CurFn->insert(CurFn->end(), block); in EmitBlockAfterUses()
954 CurFn->removeFnAttr(llvm::Attribute::MustProgress); in checkIfLoopMustProgress()
1669 CurFn->insert(CurFn->end(), CaseRangeBlock); in EmitCaseStmtRange()
H A DCGCoroutine.cpp250 CGF.CurFn->getName(), Prefix, S); in emitSuspendExpression()
950 CurFn->setPresplitCoroutine(); in EmitCoroutineBody()
954 CurFn->setCoroDestroyOnlyWhenComplete(); in EmitCoroutineBody()
H A DCGOpenMPRuntime.cpp1153 auto &Decls = FunctionUDRMap.FindAndConstruct(CGF->CurFn); in emitUserDefinedReduction()
1255 return getOutlinedHelperName(CGF.CurFn->getName()); in getOutlinedHelperName()
1332 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in setLocThreadIdInsertPt()
1347 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in clearLocThreadIdInsertPt()
1395 assert(CGF.CurFn && "No function in current CodeGenFunction."); in getThreadID()
1411 auto I = OpenMPLocThreadIDMap.find(CGF.CurFn); in getThreadID()
1436 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in getThreadID()
1448 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in getThreadID()
1464 assert(CGF.CurFn && "No function in current CodeGenFunction."); in functionFinished()
1465 if (OpenMPLocThreadIDMap.count(CGF.CurFn)) { in functionFinished()
[all …]
H A DCGObjCRuntime.cpp206 llvm::Function *FinallyFunc = HelperCGF.CurFn; in EmitTryCatchStmt()
H A DCGVTables.cpp201 CurFn = Fn; in GenerateVarArgsThunk()
416 SmallVector<llvm::Value *, 8> Args(llvm::make_pointer_range(CurFn->args())); in EmitMustTailThunk()
H A DCGClass.cpp1540 CurFn->addFnAttr(llvm::Attribute::AlwaysInline); in EmitDestructorBody()
1735 CGF.CurFn->addFnAttr("disable-tail-calls", "true"); in Emit()
1784 CGF.CurFn->addFnAttr("disable-tail-calls", "true"); in Emit()
3101 llvm::Value *ThisArg = CurFn->getArg(0); in EmitLambdaInAllocaCallOpBody()
H A DCGExprScalar.cpp2857 llvm::BasicBlock *opBB = CGF.createBasicBlock("atomic_op", CGF.CurFn); in EmitScalarPrePostIncDec()
3107 llvm::BasicBlock *contBB = CGF.createBasicBlock("atomic_cont", CGF.CurFn); in EmitScalarPrePostIncDec()
3603 llvm::BasicBlock *opBB = CGF.createBasicBlock("atomic_op", CGF.CurFn); in EmitCompoundAssignLValue()
3641 llvm::BasicBlock *contBB = CGF.createBasicBlock("atomic_cont", CGF.CurFn); in EmitCompoundAssignLValue()
3855 CGF.createBasicBlock("nooverflow", CGF.CurFn, initialBB->getNextNode()); in EmitOverflowCheckedBinOp()
3856 llvm::BasicBlock *overflowBB = CGF.createBasicBlock("overflow", CGF.CurFn); in EmitOverflowCheckedBinOp()
H A DCGBuiltin.cpp1828 BasicBlock *End = createBasicBlock("bitscan_end", this->CurFn); in EmitMSVCBuiltinExpr()
1834 BasicBlock *NotZero = createBasicBlock("bitscan_not_zero", this->CurFn); in EmitMSVCBuiltinExpr()
4074 BasicBlock *End = createBasicBlock("fpclassify_end", this->CurFn); in EmitBuiltinExpr()
4085 BasicBlock *NotZero = createBasicBlock("fpclassify_not_zero", this->CurFn); in EmitBuiltinExpr()
4093 BasicBlock *NotNan = createBasicBlock("fpclassify_not_nan", this->CurFn); in EmitBuiltinExpr()
4104 BasicBlock *NotInf = createBasicBlock("fpclassify_not_inf", this->CurFn); in EmitBuiltinExpr()
4818 llvm::BasicBlock *ContBB = createBasicBlock("atomic.continue", CurFn); in EmitBuiltinExpr()
4821 createBasicBlock("monotonic", CurFn), in EmitBuiltinExpr()
4822 createBasicBlock("acquire", CurFn), in EmitBuiltinExpr()
4823 createBasicBlock("release", CurFn), in EmitBuiltinExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/XRay/
H A DInstrumentationMap.cpp168 uint64_t CurFn = 0; in loadObj() local
206 if (CurFn == 0) { in loadObj()
207 CurFn = Entry.Function; in loadObj()
211 if (Entry.Function != CurFn) { in loadObj()
213 CurFn = Entry.Function; in loadObj()
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_interface.cpp186 int32_t CurFn = 0; in findFunctionSleds() local
190 for (std::size_t I = 0; I < InstrMap.Entries && CurFn <= FuncId; I++) { in findFunctionSleds()
194 CurFn++; in findFunctionSleds()
198 if (CurFn == FuncId) { in findFunctionSleds()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEntryExitInstrumenter.cpp25 static void insertCall(Function &CurFn, StringRef Func, in insertCall() argument
71 Value *Args[] = {&CurFn, RetAddr}; in insertCall()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp1122 auto CurFn = Builder.GetInsertBlock()->getParent(); in emitKernelLaunch() local
1123 emitBlock(OffloadFailedBlock, CurFn); in emitKernelLaunch()
1126 emitBlock(OffloadContBlock, CurFn, /*IsFinished=*/true); in emitKernelLaunch()
2109 Function *CurFn = Continue->getParent(); in createSections() local
2115 M.getContext(), "omp_section_loop.body.case", CurFn, Continue); in createSections()
2698 auto *CurFn = Builder.GetInsertBlock()->getParent(); in emitInterWarpCopyFunction() local
2700 emitBlock(ExitBB, CurFn); in emitInterWarpCopyFunction()
5763 Function *CurFn = EntryBB->getParent(); in emitCommonDirectiveEntry() local
5764 CurFn->insert(std::next(EntryBB->getIterator()), ThenBB); in emitCommonDirectiveEntry()
5835 Function *CurFn = OMP_Entry->getParent(); in createCopyinClauseBlocks() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp1374 const sema::FunctionScopeInfo *CurFn, in diagnoseRepeatedUseOfWeak() argument
1385 const WeakObjectUseMap &WeakMap = CurFn->getWeakObjectUses(); in diagnoseRepeatedUseOfWeak()
1459 if (isa<sema::BlockScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
1461 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
/freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h1269 Value **LHS, Value **RHS, Function *CurFn)>;
2100 void emitBlock(BasicBlock *BB, Function *CurFn, bool IsFinished = false);

12