Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp526 if (!CurFn->HaveLineInfo) in maybeRecordLocation()
527 CurFn->HaveLineInfo = true; in maybeRecordLocation()
530 FileId = CurFn->LastFileId; in maybeRecordLocation()
535 unsigned FuncId = CurFn->FuncId; in maybeRecordLocation()
1448 CurFn->FuncId = NextFuncId++; in beginFunctionImpl()
1463 if (CurFn->FrameSize > 0) { in beginFunctionImpl()
1513 CurFn->FrameProcOpts = FPO; in beginFunctionImpl()
2278 assert(CurFn == nullptr); in clear()
3027 CurFn = nullptr; in endFunctionImpl()
3044 CurFn->End = Asm->getFunctionEnd(); in endFunctionImpl()
[all …]
H A DDwarfDebug.h324 const MachineFunction *CurFn = nullptr; variable
801 const MachineFunction *getCurrentFunction() const { return CurFn; } in getCurrentFunction()
H A DDwarfDebug.cpp1409 assert(CurFn == nullptr); in endModule()
2145 CurFn = MF; in beginFunctionImpl()
2191 CurFn = nullptr; in skippedNonDebugFunction()
2198 assert(CurFn == MF && in endFunctionImpl()
2209 CurFn = nullptr; in endFunctionImpl()
2229 CurFn = nullptr; in endFunctionImpl()
2276 CurFn = nullptr; in endFunctionImpl()
H A DCodeViewDebug.h194 FunctionInfo *CurFn = nullptr; variable
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenFunction.cpp87 if (getLangOpts().OpenMP && CurFn) in ~CodeGenFunction()
388 DI->EmitFunctionEnd(Builder, CurFn); in FinishFunction()
469 llvm::DominatorTree DT(*CurFn); in FinishFunction()
476 for (llvm::Argument &A : CurFn->args()) in FinishFunction()
693 assert(!CurFn && in StartFunction()
705 CurFn = Fn; in StartFunction()
846 CurFn->getName().bytes_begin(), CurFn->getName().bytes_end()); in StartFunction()
1085 auto AI = CurFn->arg_begin(); in StartFunction()
1412 PGO.assignRegionCounters(GD, CurFn); in GenerateCode()
1469 if (!CurFn->doesNotThrow()) in GenerateCode()
[all …]
H A DCGAtomic.cpp399 CGF.createBasicBlock("cmpxchg.store_expected", CGF.CurFn); in emitAtomicCmpXchg()
404 CGF.createBasicBlock("cmpxchg.continue", CGF.CurFn); in emitAtomicCmpXchg()
465 auto *SeqCstBB = CGF.createBasicBlock("seqcst_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
555 CGF.createBasicBlock("cmpxchg.strong", CGF.CurFn); in EmitAtomicOp()
558 CGF.createBasicBlock("cmpxchg.continue", CGF.CurFn); in EmitAtomicOp()
756 CGF.createBasicBlock("atomic.scope.continue", CGF.CurFn); in EmitAtomicOp()
1403 MonotonicBB = createBasicBlock("monotonic", CurFn); in EmitAtomicExpr()
1405 AcquireBB = createBasicBlock("acquire", CurFn); in EmitAtomicExpr()
1407 ReleaseBB = createBasicBlock("release", CurFn); in EmitAtomicExpr()
1409 AcqRelBB = createBasicBlock("acqrel", CurFn); in EmitAtomicExpr()
[all …]
H A DCGException.cpp784 if (!CurFn->hasPersonalityFn()) in getInvokeDestImpl()
1523 if (!CurFn->hasPersonalityFn()) in getTerminateLandingPad()
1719 FP = &CGF.CurFn->arg_begin()[1]; in Emit()
1826 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in recoverAddrOfEscapedLocal()
1879 auto AI = CurFn->arg_begin(); in EmitCapturedLocals()
1892 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in EmitCapturedLocals()
2053 CGM.SetInternalFunctionAttributes(GlobalDecl(), CurFn, FnInfo); in startOutlinedSEHHelper()
2074 return CurFn; in GenerateSEHFilterFunction()
2088 return CurFn; in GenerateSEHFinallyFunction()
2098 SEHInfo = &*CurFn->arg_begin(); in EmitSEHExceptionCodeSave()
[all …]
H A DCodeGenABITypes.cpp126 CGF.CurFn = InsertBlock->getParent(); in getCXXDestructorImplicitParam()
H A DCGCUDANV.cpp299 EmittedKernels.push_back({CGF.CurFn, CGF.CurFuncDecl}); in emitDeviceStub()
300 if (auto *GV = dyn_cast<llvm::GlobalVariable>(KernelHandles[CGF.CurFn])) { in emitDeviceStub()
301 GV->setLinkage(CGF.CurFn->getLinkage()); in emitDeviceStub()
302 GV->setInitializer(CGF.CurFn); in emitDeviceStub()
391 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn], VoidPtrTy); in emitDeviceStubBodyNew()
447 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn], CharPtrTy); in emitDeviceStubBodyLegacy()
H A DCGStmt.cpp574 CurFn->getBasicBlockList().insertAfter(CurBB->getIterator(), BB); in EmitBlock()
576 CurFn->getBasicBlockList().push_back(BB); in EmitBlock()
601 CurFn->getBasicBlockList().insertAfter(insn->getParent()->getIterator(), in EmitBlockAfterUses()
609 CurFn->getBasicBlockList().push_back(block); in EmitBlockAfterUses()
1461 CurFn->getBasicBlockList().push_back(CaseRangeBlock); in EmitCaseStmtRange()
H A DCGOpenMPRuntime.cpp1412 auto I = OpenMPLocThreadIDMap.find(CGF.CurFn); in getThreadID()
1465 if (OpenMPLocThreadIDMap.count(CGF.CurFn)) { in functionFinished()
1467 OpenMPLocThreadIDMap.erase(CGF.CurFn); in functionFinished()
1469 if (FunctionUDRMap.count(CGF.CurFn) > 0) { in functionFinished()
1472 FunctionUDRMap.erase(CGF.CurFn); in functionFinished()
1474 auto I = FunctionUDMMap.find(CGF.CurFn); in functionFinished()
1480 LastprivateConditionalToTypes.erase(CGF.CurFn); in functionFinished()
1481 FunctionToUntiedTaskStackMap.erase(CGF.CurFn); in functionFinished()
12415 Data.Fn = CGF.CurFn;
12432 Data.Fn = CGF.CurFn; in LastprivateConditionalRAII()
[all …]
H A DCGObjCRuntime.cpp207 llvm::Function *FinallyFunc = HelperCGF.CurFn; in EmitTryCatchStmt()
H A DCGOpenMPRuntimeGPU.cpp1361 auto I = Rt.FunctionGlobalizedDecls.try_emplace(CGF.CurFn).first; in emitTeamsOutlinedFunction()
1394 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in emitGenericVarsProlog()
1479 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in emitGenericVarsEpilog()
3620 assert(FunctionGlobalizedDecls.count(CGF.CurFn) == 0 && in emitFunctionProlog()
3649 auto I = FunctionGlobalizedDecls.try_emplace(CGF.CurFn).first; in emitFunctionProlog()
3734 auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in getAddressOfLocalVariable()
3756 FunctionGlobalizedDecls.erase(CGF.CurFn); in functionFinished()
H A DCGVTables.cpp194 CurFn = Fn; in GenerateVarArgsThunk()
403 SmallVector<llvm::Value *, 8> Args(llvm::make_pointer_range(CurFn->args())); in EmitMustTailThunk()
H A DCGCoroutine.cpp658 CurFn->setPresplitCoroutine(); in EmitCoroutineBody()
H A DCGBuiltin.cpp4033 createBasicBlock("monotonic", CurFn), in EmitBuiltinExpr()
4034 createBasicBlock("acquire", CurFn), in EmitBuiltinExpr()
4035 createBasicBlock("release", CurFn), in EmitBuiltinExpr()
4036 createBasicBlock("acqrel", CurFn), in EmitBuiltinExpr()
4037 createBasicBlock("seqcst", CurFn) in EmitBuiltinExpr()
4100 createBasicBlock("monotonic", CurFn), in EmitBuiltinExpr()
4101 createBasicBlock("release", CurFn), in EmitBuiltinExpr()
4102 createBasicBlock("seqcst", CurFn) in EmitBuiltinExpr()
4161 AcquireBB = createBasicBlock("acquire", CurFn); in EmitBuiltinExpr()
4163 AcqRelBB = createBasicBlock("acqrel", CurFn); in EmitBuiltinExpr()
[all …]
H A DCGExprScalar.cpp2561 llvm::BasicBlock *opBB = CGF.createBasicBlock("atomic_op", CGF.CurFn); in EmitScalarPrePostIncDec()
2798 llvm::BasicBlock *contBB = CGF.createBasicBlock("atomic_cont", CGF.CurFn); in EmitScalarPrePostIncDec()
3143 llvm::BasicBlock *opBB = CGF.createBasicBlock("atomic_op", CGF.CurFn); in EmitCompoundAssignLValue()
3170 llvm::BasicBlock *contBB = CGF.createBasicBlock("atomic_cont", CGF.CurFn); in EmitCompoundAssignLValue()
3393 CGF.createBasicBlock("nooverflow", CGF.CurFn, initialBB->getNextNode()); in EmitOverflowCheckedBinOp()
3394 llvm::BasicBlock *overflowBB = CGF.createBasicBlock("overflow", CGF.CurFn); in EmitOverflowCheckedBinOp()
H A DCGClass.cpp1537 CurFn->addFnAttr(llvm::Attribute::AlwaysInline); in EmitDestructorBody()
1693 CGF.CurFn->addFnAttr("disable-tail-calls", "true"); in Emit()
1741 CGF.CurFn->addFnAttr("disable-tail-calls", "true"); in Emit()
H A DCGObjCMac.cpp4335 I = CGF.CurFn->begin(), E = CGF.CurFn->end(); I != E; ++I) in FragileHazards()
4401 FI = CGF.CurFn->begin(), FE = CGF.CurFn->end(); FI != FE; ++FI) { in emitHazardsInNewBlocks()
4445 llvm::BasicBlock &Entry = CGF.CurFn->getEntryBlock(); in collectLocals()
H A DCGExpr.cpp3039 StringRef FnName = CurFn->getName(); in EmitPredefinedLValue()
5054 CGF.CurFn->getAttributes().hasFnAttr(NoBuiltinFD) || in EmitDirectCallee()
5055 CGF.CurFn->getAttributes().hasFnAttr(NoBuiltins); in EmitDirectCallee()
5059 if (CGF.CurFn->getName() != FDInlineName && in EmitDirectCallee()
/llvm-project-15.0.7/llvm/lib/XRay/
H A DInstrumentationMap.cpp167 uint64_t CurFn = 0; in loadObj() local
205 if (CurFn == 0) { in loadObj()
206 CurFn = Entry.Function; in loadObj()
210 if (Entry.Function != CurFn) { in loadObj()
212 CurFn = Entry.Function; in loadObj()
/llvm-project-15.0.7/compiler-rt/lib/xray/
H A Dxray_interface.cpp184 int32_t CurFn = 0; in findFunctionSleds() local
188 for (std::size_t I = 0; I < InstrMap.Entries && CurFn <= FuncId; I++) { in findFunctionSleds()
192 CurFn++; in findFunctionSleds()
196 if (CurFn == FuncId) { in findFunctionSleds()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DEntryExitInstrumenter.cpp24 static void insertCall(Function &CurFn, StringRef Func, in insertCall() argument
55 Value *Args[] = {ConstantExpr::getBitCast(&CurFn, Type::getInt8PtrTy(C)), in insertCall()
/llvm-project-15.0.7/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp1346 const sema::FunctionScopeInfo *CurFn, in diagnoseRepeatedUseOfWeak() argument
1357 const WeakObjectUseMap &WeakMap = CurFn->getWeakObjectUses(); in diagnoseRepeatedUseOfWeak()
1431 if (isa<sema::BlockScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
1433 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
/llvm-project-15.0.7/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp1541 Function *CurFn = Continue->getParent(); in createSections() local
1547 M.getContext(), "omp_section_loop.body.case", CurFn, Continue); in createSections()
3425 Function *CurFn = EntryBB->getParent(); in emitCommonDirectiveEntry() local
3426 CurFn->getBasicBlockList().insertAfter(EntryBB->getIterator(), ThenBB); in emitCommonDirectiveEntry()
3497 Function *CurFn = OMP_Entry->getParent(); in createCopyinClauseBlocks() local
3499 BasicBlock::Create(M.getContext(), "copyin.not.master", CurFn); in createCopyinClauseBlocks()
3510 BasicBlock::Create(M.getContext(), "copyin.not.master.end", CurFn); in createCopyinClauseBlocks()

12