| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | CodeViewDebug.cpp | 236 auto SiteInsertion = CurFn->InlineSites.insert({InlinedAt, InlineSite()}); in getInlineSite() 239 unsigned ParentFuncId = CurFn->FuncId; in getInlineSite() 524 if (!CurFn->HaveLineInfo) in maybeRecordLocation() 525 CurFn->HaveLineInfo = true; in maybeRecordLocation() 528 FileId = CurFn->LastFileId; in maybeRecordLocation() 530 FileId = CurFn->LastFileId = maybeRecordFile(DL->getFile()); in maybeRecordLocation() 533 unsigned FuncId = CurFn->FuncId; in maybeRecordLocation() 552 addLocIfNotPresent(CurFn->ChildSites, Loc); in maybeRecordLocation() 1458 CurFn = Insertion.first->second.get(); in beginFunctionImpl() 1459 CurFn->FuncId = NextFuncId++; in beginFunctionImpl() [all …]
|
| H A D | DwarfDebug.h | 326 const MachineFunction *CurFn = nullptr; variable 803 const MachineFunction *getCurrentFunction() const { return CurFn; } in getCurrentFunction()
|
| H A D | DwarfDebug.cpp | 1435 assert(CurFn == nullptr); in endModule() 2181 CurFn = MF; in beginFunctionImpl() 2227 CurFn = nullptr; in skippedNonDebugFunction() 2234 assert(CurFn == MF && in endFunctionImpl() 2245 CurFn = nullptr; in endFunctionImpl() 2265 CurFn = nullptr; in endFunctionImpl() 2312 CurFn = nullptr; in endFunctionImpl()
|
| H A D | CodeViewDebug.h | 195 FunctionInfo *CurFn = nullptr; variable
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CodeGenFunction.cpp | 89 if (getLangOpts().OpenMP && CurFn) in ~CodeGenFunction() 97 if (CGM.getLangOpts().OpenMPIRBuilder && CurFn) in ~CodeGenFunction() 98 CGM.getOpenMPRuntime().getOMPBuilder().finalize(CurFn); in ~CodeGenFunction() 169 CGF.CurFn->getFnAttribute(Name).getValueAsBool(); in ConstructorHelper() 172 CGF.CurFn->addFnAttr(Name, llvm::toStringRef(NewValue)); in ConstructorHelper() 324 CGF.CurFn->insert(CGF.CurFn->end(), BB); in EmitIfUsed() 386 CurFn->addFnAttr("instrument-function-exit", "__cyg_profile_func_exit"); in FinishFunction() 388 CurFn->addFnAttr("instrument-function-exit-inlined", in FinishFunction() 394 DI->EmitFunctionEnd(Builder, CurFn); in FinishFunction() 475 llvm::DominatorTree DT(*CurFn); in FinishFunction() [all …]
|
| H A D | CGAtomic.cpp | 399 CGF.createBasicBlock("cmpxchg.store_expected", CGF.CurFn); in emitAtomicCmpXchg() 404 CGF.createBasicBlock("cmpxchg.continue", CGF.CurFn); in emitAtomicCmpXchg() 463 auto *MonotonicBB = CGF.createBasicBlock("monotonic_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet() 464 auto *AcquireBB = CGF.createBasicBlock("acquire_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet() 465 auto *SeqCstBB = CGF.createBasicBlock("seqcst_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet() 466 auto *ContBB = CGF.createBasicBlock("atomic.continue", CGF.CurFn); in emitAtomicCmpXchgFailureSet() 555 CGF.createBasicBlock("cmpxchg.strong", CGF.CurFn); in EmitAtomicOp() 556 llvm::BasicBlock *WeakBB = CGF.createBasicBlock("cmxchg.weak", CGF.CurFn); in EmitAtomicOp() 558 CGF.createBasicBlock("cmpxchg.continue", CGF.CurFn); in EmitAtomicOp() 753 BB[S] = CGF.createBasicBlock(getAsString(ScopeModel->map(S)), CGF.CurFn); in EmitAtomicOp() [all …]
|
| H A D | CGException.cpp | 784 if (!CurFn->hasPersonalityFn()) in getInvokeDestImpl() 785 CurFn->setPersonalityFn(getOpaquePersonalityFn(CGM, Personality)); in getInvokeDestImpl() 1521 if (!CurFn->hasPersonalityFn()) in getTerminateLandingPad() 1522 CurFn->setPersonalityFn(getOpaquePersonalityFn(CGM, Personality)); in getTerminateLandingPad() 1716 FP = &CGF.CurFn->arg_begin()[1]; in Emit() 1823 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in recoverAddrOfEscapedLocal() 1876 auto AI = CurFn->arg_begin(); in EmitCapturedLocals() 1889 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in EmitCapturedLocals() 1926 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in EmitCapturedLocals() 2050 CGM.SetInternalFunctionAttributes(GlobalDecl(), CurFn, FnInfo); in startOutlinedSEHHelper() [all …]
|
| H A D | CodeGenABITypes.cpp | 126 CGF.CurFn = InsertBlock->getParent(); in getCXXDestructorImplicitParam()
|
| H A D | CGCUDANV.cpp | 312 EmittedKernels.push_back({CGF.CurFn, CGF.CurFuncDecl}); in emitDeviceStub() 314 dyn_cast<llvm::GlobalVariable>(KernelHandles[CGF.CurFn->getName()])) { in emitDeviceStub() 315 GV->setLinkage(CGF.CurFn->getLinkage()); in emitDeviceStub() 316 GV->setInitializer(CGF.CurFn); in emitDeviceStub() 405 KernelHandles[CGF.CurFn->getName()], VoidPtrTy); in emitDeviceStubBodyNew() 461 KernelHandles[CGF.CurFn->getName()], CharPtrTy); in emitDeviceStubBodyLegacy()
|
| H A D | CGStmt.cpp | 578 CurFn->insert(std::next(CurBB->getIterator()), BB); in EmitBlock() 580 CurFn->insert(CurFn->end(), BB); in EmitBlock() 605 CurFn->insert(std::next(insn->getParent()->getIterator()), block); in EmitBlockAfterUses() 612 CurFn->insert(CurFn->end(), block); in EmitBlockAfterUses() 1472 CurFn->insert(CurFn->end(), CaseRangeBlock); in EmitCaseStmtRange()
|
| H A D | CGOpenMPRuntime.cpp | 1169 auto &Decls = FunctionUDRMap.FindAndConstruct(CGF->CurFn); in emitUserDefinedReduction() 1330 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in setLocThreadIdInsertPt() 1345 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in clearLocThreadIdInsertPt() 1393 assert(CGF.CurFn && "No function in current CodeGenFunction."); in getThreadID() 1409 auto I = OpenMPLocThreadIDMap.find(CGF.CurFn); in getThreadID() 1434 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in getThreadID() 1446 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in getThreadID() 1461 assert(CGF.CurFn && "No function in current CodeGenFunction."); in functionFinished() 1462 if (OpenMPLocThreadIDMap.count(CGF.CurFn)) { in functionFinished() 1464 OpenMPLocThreadIDMap.erase(CGF.CurFn); in functionFinished() [all …]
|
| H A D | CGOpenMPRuntimeGPU.cpp | 1009 auto I = Rt.FunctionGlobalizedDecls.try_emplace(CGF.CurFn).first; in emitTeamsOutlinedFunction() 1042 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in emitGenericVarsProlog() 1127 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in emitGenericVarsEpilog() 3268 assert(FunctionGlobalizedDecls.count(CGF.CurFn) == 0 && in emitFunctionProlog() 3297 auto I = FunctionGlobalizedDecls.try_emplace(CGF.CurFn).first; in emitFunctionProlog() 3372 auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in getAddressOfLocalVariable() 3394 FunctionGlobalizedDecls.erase(CGF.CurFn); in functionFinished()
|
| H A D | CGObjCRuntime.cpp | 208 llvm::Function *FinallyFunc = HelperCGF.CurFn; in EmitTryCatchStmt()
|
| H A D | CGVTables.cpp | 194 CurFn = Fn; in GenerateVarArgsThunk() 403 SmallVector<llvm::Value *, 8> Args(llvm::make_pointer_range(CurFn->args())); in EmitMustTailThunk()
|
| H A D | CGCoroutine.cpp | 658 CurFn->setPresplitCoroutine(); in EmitCoroutineBody()
|
| H A D | CGBuiltin.cpp | 1534 BasicBlock *End = createBasicBlock("bitscan_end", this->CurFn); in EmitMSVCBuiltinExpr() 1540 BasicBlock *NotZero = createBasicBlock("bitscan_not_zero", this->CurFn); in EmitMSVCBuiltinExpr() 3354 BasicBlock *End = createBasicBlock("fpclassify_end", this->CurFn); in EmitBuiltinExpr() 3365 BasicBlock *NotZero = createBasicBlock("fpclassify_not_zero", this->CurFn); in EmitBuiltinExpr() 3373 BasicBlock *NotNan = createBasicBlock("fpclassify_not_nan", this->CurFn); in EmitBuiltinExpr() 3384 BasicBlock *NotInf = createBasicBlock("fpclassify_not_inf", this->CurFn); in EmitBuiltinExpr() 4070 llvm::BasicBlock *ContBB = createBasicBlock("atomic.continue", CurFn); in EmitBuiltinExpr() 4073 createBasicBlock("monotonic", CurFn), in EmitBuiltinExpr() 4074 createBasicBlock("acquire", CurFn), in EmitBuiltinExpr() 4075 createBasicBlock("release", CurFn), in EmitBuiltinExpr() [all …]
|
| H A D | CGExprScalar.cpp | 2584 llvm::BasicBlock *opBB = CGF.createBasicBlock("atomic_op", CGF.CurFn); in EmitScalarPrePostIncDec() 2821 llvm::BasicBlock *contBB = CGF.createBasicBlock("atomic_cont", CGF.CurFn); in EmitScalarPrePostIncDec() 3310 llvm::BasicBlock *opBB = CGF.createBasicBlock("atomic_op", CGF.CurFn); in EmitCompoundAssignLValue() 3341 llvm::BasicBlock *contBB = CGF.createBasicBlock("atomic_cont", CGF.CurFn); in EmitCompoundAssignLValue() 3564 CGF.createBasicBlock("nooverflow", CGF.CurFn, initialBB->getNextNode()); in EmitOverflowCheckedBinOp() 3565 llvm::BasicBlock *overflowBB = CGF.createBasicBlock("overflow", CGF.CurFn); in EmitOverflowCheckedBinOp()
|
| H A D | CGClass.cpp | 1538 CurFn->addFnAttr(llvm::Attribute::AlwaysInline); in EmitDestructorBody() 1733 CGF.CurFn->addFnAttr("disable-tail-calls", "true"); in Emit() 1784 CGF.CurFn->addFnAttr("disable-tail-calls", "true"); in Emit()
|
| H A D | CodeGenFunction.h | 326 llvm::Function *CurFn = nullptr; 1531 !CurFn->hasFnAttribute(llvm::Attribute::NoProfile) && 1532 !CurFn->hasFnAttribute(llvm::Attribute::SkipProfile))
|
| H A D | CGObjCMac.cpp | 4343 I = CGF.CurFn->begin(), E = CGF.CurFn->end(); I != E; ++I) in FragileHazards() 4409 FI = CGF.CurFn->begin(), FE = CGF.CurFn->end(); FI != FE; ++FI) { in emitHazardsInNewBlocks() 4453 llvm::BasicBlock &Entry = CGF.CurFn->getEntryBlock(); in collectLocals()
|
| /openbsd-src/gnu/llvm/llvm/lib/XRay/ |
| H A D | InstrumentationMap.cpp | 167 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()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/xray/ |
| H A D | xray_interface.cpp | 184 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | EntryExitInstrumenter.cpp | 25 static void insertCall(Function &CurFn, StringRef Func, in insertCall() argument 71 Value *Args[] = {ConstantExpr::getBitCast(&CurFn, Type::getInt8PtrTy(C)), in insertCall()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | AnalysisBasedWarnings.cpp | 1350 const sema::FunctionScopeInfo *CurFn, in diagnoseRepeatedUseOfWeak() argument 1361 const WeakObjectUseMap &WeakMap = CurFn->getWeakObjectUses(); in diagnoseRepeatedUseOfWeak() 1435 if (isa<sema::BlockScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak() 1437 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
|
| /openbsd-src/gnu/llvm/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 1630 Function *CurFn = Continue->getParent(); in createSections() local 1636 M.getContext(), "omp_section_loop.body.case", CurFn, Continue); in createSections() 3633 Function *CurFn = EntryBB->getParent(); in emitCommonDirectiveEntry() local 3634 CurFn->insert(std::next(EntryBB->getIterator()), ThenBB); in emitCommonDirectiveEntry() 3705 Function *CurFn = OMP_Entry->getParent(); in createCopyinClauseBlocks() local 3707 BasicBlock::Create(M.getContext(), "copyin.not.master", CurFn); in createCopyinClauseBlocks() 3718 BasicBlock::Create(M.getContext(), "copyin.not.master.end", CurFn); in createCopyinClauseBlocks()
|