Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp239 auto SiteInsertion = CurFn->InlineSites.try_emplace(InlinedAt); in getInlineSite()
242 unsigned ParentFuncId = CurFn->FuncId; in getInlineSite()
257 CurFn->Inlinees.insert(InlineeIdx); in getInlineSite()
530 if (!CurFn->HaveLineInfo) in maybeRecordLocation()
531 CurFn->HaveLineInfo = true; in maybeRecordLocation()
534 FileId = CurFn->LastFileId; in maybeRecordLocation()
536 FileId = CurFn->LastFileId = maybeRecordFile(DL->getFile()); in maybeRecordLocation()
539 unsigned FuncId = CurFn->FuncId; in maybeRecordLocation()
558 addLocIfNotPresent(CurFn->ChildSites, Loc); in maybeRecordLocation()
1496 CurFn = Insertion.first->second.get(); in beginFunctionImpl()
[all …]
H A DDwarfDebug.h388 const MachineFunction *CurFn = nullptr; variable
897 const MachineFunction *getCurrentFunction() const { return CurFn; } in getCurrentFunction()
H A DDwarfDebug.cpp1417 assert(CurFn == nullptr); in endModule()
2643 CurFn = MF; in beginFunctionImpl()
2699 CurFn = nullptr; in skippedNonDebugFunction()
2706 assert(CurFn == MF && in endFunctionImpl()
2717 CurFn = nullptr; in endFunctionImpl()
2740 CurFn = nullptr; in endFunctionImpl()
2792 CurFn = nullptr; in endFunctionImpl()
H A DCodeViewDebug.h219 FunctionInfo *CurFn = nullptr; variable
/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/clang/lib/CodeGen/
H A DCodeGenFunction.cpp99 if (getLangOpts().OpenMP && CurFn) in ~CodeGenFunction()
107 if (CGM.getLangOpts().OpenMPIRBuilder && CurFn) in ~CodeGenFunction()
108 CGM.getOpenMPRuntime().getOMPBuilder().finalize(CurFn); in ~CodeGenFunction()
179 CGF.CurFn->getFnAttribute(Name).getValueAsBool(); in ConstructorHelper()
182 CGF.CurFn->addFnAttr(Name, llvm::toStringRef(NewValue)); in ConstructorHelper()
363 CGF.CurFn->insert(CGF.CurFn->end(), BB); in EmitIfUsed()
435 CurFn->addFnAttr("instrument-function-exit", "__cyg_profile_func_exit"); in FinishFunction()
437 CurFn->addFnAttr("instrument-function-exit-inlined", in FinishFunction()
443 DI->EmitFunctionEnd(Builder, CurFn); in FinishFunction()
526 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()
467 auto *MonotonicBB = CGF.createBasicBlock("monotonic_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
468 auto *AcquireBB = CGF.createBasicBlock("acquire_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
469 auto *SeqCstBB = CGF.createBasicBlock("seqcst_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
470 auto *ContBB = CGF.createBasicBlock("atomic.continue", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
563 CGF.createBasicBlock("cmpxchg.strong", CGF.CurFn); in EmitAtomicOp()
564 llvm::BasicBlock *WeakBB = CGF.createBasicBlock("cmxchg.weak", CGF.CurFn); in EmitAtomicOp()
566 CGF.createBasicBlock("cmpxchg.continue", CGF.CurFn); in EmitAtomicOp()
826 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()
1107 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in isDelayedVariableLengthDecl()
1155 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in emitGenericVarsEpilog()
1730 auto *CurFn = CGF.CurFn; in emitReduction() local
1731 CGF.CurFn = NewFunc; in emitReduction()
1744 CGF.CurFn = CurFn; in emitReduction()
1983 assert(FunctionGlobalizedDecls.count(CGF.CurFn) == 0 && in emitFunctionProlog()
2015 auto I = FunctionGlobalizedDecls.try_emplace(CGF.CurFn).first; in emitFunctionProlog()
2090 auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in getAddressOfLocalVariable()
[all …]
H A DCodeGenABITypes.cpp132 CGF.CurFn = InsertBlock->getParent(); in getCXXDestructorImplicitParam()
H A DCGCUDANV.cpp311 EmittedKernels.push_back({CGF.CurFn, CGF.CurFuncDecl}); in emitDeviceStub()
313 dyn_cast<llvm::GlobalVariable>(KernelHandles[CGF.CurFn->getName()])) { in emitDeviceStub()
314 GV->setLinkage(CGF.CurFn->getLinkage()); in emitDeviceStub()
315 GV->setInitializer(CGF.CurFn); in emitDeviceStub()
459 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyNew()
542 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyLegacy()
H A DCGStmt.cpp666 CurFn->insert(std::next(CurBB->getIterator()), BB); in EmitBlock()
668 CurFn->insert(CurFn->end(), BB); in EmitBlock()
693 CurFn->insert(std::next(insn->getParent()->getIterator()), block); in EmitBlockAfterUses()
700 CurFn->insert(CurFn->end(), block); in EmitBlockAfterUses()
1045 CurFn->removeFnAttr(llvm::Attribute::MustProgress); in checkIfLoopMustProgress()
1818 CurFn->insert(CurFn->end(), CaseRangeBlock); in EmitCaseStmtRange()
H A DCGCoroutine.cpp251 CGF.CurFn->getName(), Prefix, S); in emitSuspendExpression()
977 CurFn->setPresplitCoroutine(); in EmitCoroutineBody()
981 CurFn->setCoroDestroyOnlyWhenComplete(); in EmitCoroutineBody()
H A DCGBuiltin.cpp1840 BasicBlock *End = createBasicBlock("bitscan_end", this->CurFn); in EmitMSVCBuiltinExpr()
1846 BasicBlock *NotZero = createBasicBlock("bitscan_not_zero", this->CurFn); in EmitMSVCBuiltinExpr()
4267 BasicBlock *End = createBasicBlock("fpclassify_end", this->CurFn); in EmitBuiltinExpr()
4278 BasicBlock *NotZero = createBasicBlock("fpclassify_not_zero", this->CurFn); in EmitBuiltinExpr()
4286 BasicBlock *NotNan = createBasicBlock("fpclassify_not_nan", this->CurFn); in EmitBuiltinExpr()
4297 BasicBlock *NotInf = createBasicBlock("fpclassify_not_inf", this->CurFn); in EmitBuiltinExpr()
5028 AcquireBB = createBasicBlock("acquire", CurFn); in EmitBuiltinExpr()
5029 ReleaseBB = createBasicBlock("release", CurFn); in EmitBuiltinExpr()
5030 AcqRelBB = createBasicBlock("acqrel", CurFn); in EmitBuiltinExpr()
5031 SeqCstBB = createBasicBlock("seqcst", CurFn); in EmitBuiltinExpr()
[all …]
H A DCGOpenMPRuntime.cpp1149 FunctionUDRMap[CGF->CurFn].push_back(D); in emitUserDefinedReduction()
1250 return getOutlinedHelperName(CGF.CurFn->getName()); in getOutlinedHelperName()
1327 auto &Elem = OpenMPLocThreadIDMap[CGF.CurFn]; in setLocThreadIdInsertPt()
1341 auto &Elem = OpenMPLocThreadIDMap[CGF.CurFn]; in clearLocThreadIdInsertPt()
1398 assert(CGF.CurFn && "No function in current CodeGenFunction."); in getThreadID()
1414 auto I = OpenMPLocThreadIDMap.find(CGF.CurFn); in getThreadID()
1439 OpenMPLocThreadIDMap[CGF.CurFn].ThreadID = ThreadID; in getThreadID()
1449 auto &Elem = OpenMPLocThreadIDMap[CGF.CurFn]; in getThreadID()
1465 assert(CGF.CurFn && "No function in current CodeGenFunction."); in functionFinished()
1466 if (OpenMPLocThreadIDMap.count(CGF.CurFn)) { in functionFinished()
[all …]
H A DCGObjCRuntime.cpp204 llvm::Function *FinallyFunc = HelperCGF.CurFn; in EmitTryCatchStmt()
H A DCGHLSLBuiltins.cpp77 BasicBlock *LT0 = CGF->createBasicBlock("lt0", CGF->CurFn); in handleHlslClip()
78 BasicBlock *End = CGF->createBasicBlock("end", CGF->CurFn); in handleHlslClip()
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.cpp1543 CurFn->addFnAttr(llvm::Attribute::AlwaysInline); in EmitDestructorBody()
1739 CGF.CurFn->addFnAttr("disable-tail-calls", "true"); in Emit()
1788 CGF.CurFn->addFnAttr("disable-tail-calls", "true"); in Emit()
3123 llvm::Value *ThisArg = CurFn->getArg(0); in EmitLambdaInAllocaCallOpBody()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEntryExitInstrumenter.cpp25 static void insertCall(Function &CurFn, StringRef Func, in insertCall() argument
69 CurFn.addFnAttr( in insertCall()
91 Value *Args[] = {&CurFn, RetAddr}; in insertCall()
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_interface.cpp204 int32_t CurFn = 0; in findFunctionSleds() local
208 for (std::size_t I = 0; I < InstrMap.Entries && CurFn <= FuncId; I++) { in findFunctionSleds()
212 CurFn++; in findFunctionSleds()
216 if (CurFn == FuncId) { in findFunctionSleds()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp1237 auto CurFn = Builder.GetInsertBlock()->getParent(); in emitKernelLaunch() local
1238 emitBlock(OffloadFailedBlock, CurFn); in emitKernelLaunch()
1244 emitBlock(OffloadContBlock, CurFn, /*IsFinished=*/true); in emitKernelLaunch()
2246 Function *CurFn = Continue->getParent(); in createSections() local
2252 M.getContext(), "omp_section_loop.body.case", CurFn, Continue); in createSections()
2839 auto *CurFn = Builder.GetInsertBlock()->getParent(); in emitInterWarpCopyFunction() local
2841 emitBlock(ExitBB, CurFn); in emitInterWarpCopyFunction()
6088 Function *CurFn = EntryBB->getParent(); in emitCommonDirectiveEntry() local
6089 CurFn->insert(std::next(EntryBB->getIterator()), ThenBB); in emitCommonDirectiveEntry()
6161 Function *CurFn = OMP_Entry->getParent(); in createCopyinClauseBlocks() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DX86.cpp3163 createBasicBlock(BlockName + "_no_error", this->CurFn); in EmitX86BuiltinExpr()
3164 BasicBlock *Error = createBasicBlock(BlockName + "_error", this->CurFn); in EmitX86BuiltinExpr()
3165 BasicBlock *End = createBasicBlock(BlockName + "_end", this->CurFn); in EmitX86BuiltinExpr()
3220 createBasicBlock(BlockName + "_no_error", this->CurFn); in EmitX86BuiltinExpr()
3221 BasicBlock *Error = createBasicBlock(BlockName + "_error", this->CurFn); in EmitX86BuiltinExpr()
3222 BasicBlock *End = createBasicBlock(BlockName + "_end", this->CurFn); in EmitX86BuiltinExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp895 bool InferAddressSpacesImpl::run(Function &CurFn) { in run() argument
896 F = &CurFn; in run()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp1514 const sema::FunctionScopeInfo *CurFn, in diagnoseRepeatedUseOfWeak() argument
1525 const WeakObjectUseMap &WeakMap = CurFn->getWeakObjectUses(); in diagnoseRepeatedUseOfWeak()
1599 if (isa<sema::BlockScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
1601 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()

12