Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp528 if (!CurFn->HaveLineInfo) in maybeRecordLocation()
529 CurFn->HaveLineInfo = true; in maybeRecordLocation()
532 FileId = CurFn->LastFileId; in maybeRecordLocation()
537 unsigned FuncId = CurFn->FuncId; in maybeRecordLocation()
1483 CurFn->FuncId = NextFuncId++; in beginFunctionImpl()
1498 if (CurFn->FrameSize > 0) { in beginFunctionImpl()
1503 CurFn->HasFramePointer = true; in beginFunctionImpl()
1557 CurFn->FrameProcOpts = FPO; in beginFunctionImpl()
2330 assert(CurFn == nullptr); in clear()
3089 CurFn = nullptr; in endFunctionImpl()
[all …]
H A DDwarfDebug.h386 const MachineFunction *CurFn = nullptr; variable
879 const MachineFunction *getCurrentFunction() const { return CurFn; } in getCurrentFunction()
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-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp90 if (getLangOpts().OpenMP && CurFn) in ~CodeGenFunction()
325 CGF.CurFn->insert(CGF.CurFn->end(), BB); in EmitIfUsed()
395 DI->EmitFunctionEnd(Builder, CurFn); in FinishFunction()
476 llvm::DominatorTree DT(*CurFn); in FinishFunction()
483 for (llvm::Argument &A : CurFn->args()) in FinishFunction()
714 assert(!CurFn && in StartFunction()
726 CurFn = Fn; in StartFunction()
1117 auto AI = CurFn->arg_begin(); in StartFunction()
1448 PGO.assignRegionCounters(GD, CurFn); in GenerateCode()
1516 if (!CurFn->doesNotThrow()) in GenerateCode()
[all …]
H A DCGException.cpp802 if (!CurFn->hasPersonalityFn()) in getInvokeDestImpl()
1545 if (!CurFn->hasPersonalityFn()) in getTerminateLandingPad()
1740 FP = &CGF.CurFn->arg_begin()[1]; in Emit()
1847 FrameRecoverFn, {ParentCGF.CurFn, ParentFP, in recoverAddrOfEscapedLocal()
1898 auto AI = CurFn->arg_begin(); in EmitCapturedLocals()
1945 FrameRecoverFn, {ParentCGF.CurFn, ParentFP, in EmitCapturedLocals()
2066 CGM.SetInternalFunctionAttributes(GlobalDecl(), CurFn, FnInfo); in startOutlinedSEHHelper()
2087 return CurFn; in GenerateSEHFilterFunction()
2101 return CurFn; in GenerateSEHFinallyFunction()
2111 SEHInfo = &*CurFn->arg_begin(); in EmitSEHExceptionCodeSave()
[all …]
H A DCGAtomic.cpp398 CGF.createBasicBlock("cmpxchg.store_expected", CGF.CurFn); in emitAtomicCmpXchg()
403 CGF.createBasicBlock("cmpxchg.continue", CGF.CurFn); in emitAtomicCmpXchg()
464 auto *SeqCstBB = CGF.createBasicBlock("seqcst_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
558 CGF.createBasicBlock("cmpxchg.strong", CGF.CurFn); in EmitAtomicOp()
561 CGF.createBasicBlock("cmpxchg.continue", CGF.CurFn); in EmitAtomicOp()
789 CGF.createBasicBlock("atomic.scope.continue", CGF.CurFn); in EmitAtomicOp()
1511 MonotonicBB = createBasicBlock("monotonic", CurFn); in EmitAtomicExpr()
1513 AcquireBB = createBasicBlock("acquire", CurFn); in EmitAtomicExpr()
1515 ReleaseBB = createBasicBlock("release", CurFn); in EmitAtomicExpr()
1517 AcqRelBB = createBasicBlock("acqrel", CurFn); in EmitAtomicExpr()
[all …]
H A DCodeGenABITypes.cpp125 CGF.CurFn = InsertBlock->getParent(); in getCXXDestructorImplicitParam()
H A DCGCUDANV.cpp306 EmittedKernels.push_back({CGF.CurFn, CGF.CurFuncDecl}); in emitDeviceStub()
308 dyn_cast<llvm::GlobalVariable>(KernelHandles[CGF.CurFn->getName()])) { in emitDeviceStub()
309 GV->setLinkage(CGF.CurFn->getLinkage()); in emitDeviceStub()
310 GV->setInitializer(CGF.CurFn); in emitDeviceStub()
402 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyNew()
458 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyLegacy()
H A DCGStmt.cpp585 CurFn->insert(std::next(CurBB->getIterator()), BB); in EmitBlock()
587 CurFn->insert(CurFn->end(), BB); in EmitBlock()
612 CurFn->insert(std::next(insn->getParent()->getIterator()), block); in EmitBlockAfterUses()
619 CurFn->insert(CurFn->end(), block); in EmitBlockAfterUses()
1490 CurFn->insert(CurFn->end(), CaseRangeBlock); in EmitCaseStmtRange()
H A DCGOpenMPRuntimeGPU.cpp1036 auto I = Rt.FunctionGlobalizedDecls.try_emplace(CGF.CurFn).first; in emitTeamsOutlinedFunction()
1067 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in emitGenericVarsProlog()
1127 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in isDelayedVariableLengthDecl()
1175 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in emitGenericVarsEpilog()
2881 CGF.CurFn->getName(), Loc, CGF.ConvertTypeForMem(ReductionArrayTy), in emitReduction()
3190 assert(FunctionGlobalizedDecls.count(CGF.CurFn) == 0 && in emitFunctionProlog()
3222 auto I = FunctionGlobalizedDecls.try_emplace(CGF.CurFn).first; in emitFunctionProlog()
3299 auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in getAddressOfLocalVariable()
3321 FunctionGlobalizedDecls.erase(CGF.CurFn); in functionFinished()
H A DCGCoroutine.cpp817 CurFn->setPresplitCoroutine(); in EmitCoroutineBody()
821 CurFn->setCoroDestroyOnlyWhenComplete(); in EmitCoroutineBody()
H A DCGOpenMPRuntime.cpp1409 auto I = OpenMPLocThreadIDMap.find(CGF.CurFn); in getThreadID()
1463 if (OpenMPLocThreadIDMap.count(CGF.CurFn)) { in functionFinished()
1465 OpenMPLocThreadIDMap.erase(CGF.CurFn); in functionFinished()
1467 if (FunctionUDRMap.count(CGF.CurFn) > 0) { in functionFinished()
1470 FunctionUDRMap.erase(CGF.CurFn); in functionFinished()
1472 auto I = FunctionUDMMap.find(CGF.CurFn); in functionFinished()
1478 LastprivateConditionalToTypes.erase(CGF.CurFn); in functionFinished()
1479 FunctionToUntiedTaskStackMap.erase(CGF.CurFn); in functionFinished()
11566 Data.Fn = CGF.CurFn;
11583 Data.Fn = CGF.CurFn; in LastprivateConditionalRAII()
[all …]
H A DCGObjCRuntime.cpp206 llvm::Function *FinallyFunc = HelperCGF.CurFn; in EmitTryCatchStmt()
H A DCGVTables.cpp195 CurFn = Fn; in GenerateVarArgsThunk()
404 SmallVector<llvm::Value *, 8> Args(llvm::make_pointer_range(CurFn->args())); in EmitMustTailThunk()
H A DCGClass.cpp1531 CurFn->addFnAttr(llvm::Attribute::AlwaysInline); in EmitDestructorBody()
1726 CGF.CurFn->addFnAttr("disable-tail-calls", "true"); in Emit()
1775 CGF.CurFn->addFnAttr("disable-tail-calls", "true"); in Emit()
3058 llvm::Value *ThisArg = CurFn->getArg(0); in EmitLambdaInAllocaCallOpBody()
H A DCGBuiltin.cpp4636 createBasicBlock("monotonic", CurFn), in EmitBuiltinExpr()
4637 createBasicBlock("acquire", CurFn), in EmitBuiltinExpr()
4638 createBasicBlock("release", CurFn), in EmitBuiltinExpr()
4639 createBasicBlock("acqrel", CurFn), in EmitBuiltinExpr()
4640 createBasicBlock("seqcst", CurFn) in EmitBuiltinExpr()
4703 createBasicBlock("monotonic", CurFn), in EmitBuiltinExpr()
4704 createBasicBlock("release", CurFn), in EmitBuiltinExpr()
4705 createBasicBlock("seqcst", CurFn) in EmitBuiltinExpr()
4764 AcquireBB = createBasicBlock("acquire", CurFn); in EmitBuiltinExpr()
4766 AcqRelBB = createBasicBlock("acqrel", CurFn); in EmitBuiltinExpr()
[all …]
H A DCGExprScalar.cpp2600 llvm::BasicBlock *opBB = CGF.createBasicBlock("atomic_op", CGF.CurFn); in EmitScalarPrePostIncDec()
2836 llvm::BasicBlock *contBB = CGF.createBasicBlock("atomic_cont", CGF.CurFn); in EmitScalarPrePostIncDec()
3329 llvm::BasicBlock *opBB = CGF.createBasicBlock("atomic_op", CGF.CurFn); in EmitCompoundAssignLValue()
3360 llvm::BasicBlock *contBB = CGF.createBasicBlock("atomic_cont", CGF.CurFn); in EmitCompoundAssignLValue()
3569 CGF.createBasicBlock("nooverflow", CGF.CurFn, initialBB->getNextNode()); in EmitOverflowCheckedBinOp()
3570 llvm::BasicBlock *overflowBB = CGF.createBasicBlock("overflow", CGF.CurFn); in EmitOverflowCheckedBinOp()
H A DCodeGenFunction.h329 llvm::Function *CurFn = nullptr;
1542 !CurFn->hasFnAttribute(llvm::Attribute::NoProfile) &&
1543 !CurFn->hasFnAttribute(llvm::Attribute::SkipProfile))
1551 !CurFn->hasFnAttribute(llvm::Attribute::NoProfile));
/freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEntryExitInstrumenter.cpp22 static void insertCall(Function &CurFn, StringRef Func, in insertCall() argument
68 Value *Args[] = {&CurFn, RetAddr}; in insertCall()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp1064 auto CurFn = Builder.GetInsertBlock()->getParent(); in emitKernelLaunch() local
1065 emitBlock(OffloadFailedBlock, CurFn); in emitKernelLaunch()
1068 emitBlock(OffloadContBlock, CurFn, /*IsFinished=*/true); in emitKernelLaunch()
1967 Function *CurFn = Continue->getParent(); in createSections() local
4208 Function *CurFn = EntryBB->getParent(); in emitCommonDirectiveEntry() local
4280 Function *CurFn = OMP_Entry->getParent(); in createCopyinClauseBlocks() local
5657 CurFn->insert(std::next(CurBB->getIterator()), BB); in emitBlock()
5659 CurFn->insert(CurFn->end(), BB); in emitBlock()
5686 emitBlock(ThenBlock, CurFn); in emitIfClause()
5691 emitBlock(ElseBlock, CurFn); in emitIfClause()
[all …]
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h1522 void emitBlock(BasicBlock *BB, Function *CurFn, bool IsFinished = false);

12