Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp243 auto SiteInsertion = CurFn->InlineSites.insert({InlinedAt, InlineSite()}); in getInlineSite()
246 unsigned ParentFuncId = CurFn->FuncId; in getInlineSite()
522 if (!CurFn->HaveLineInfo) in maybeRecordLocation()
523 CurFn->HaveLineInfo = true; in maybeRecordLocation()
526 FileId = CurFn->LastFileId; in maybeRecordLocation()
528 FileId = CurFn->LastFileId = maybeRecordFile(DL->getFile()); in maybeRecordLocation()
531 unsigned FuncId = CurFn->FuncId; in maybeRecordLocation()
550 addLocIfNotPresent(CurFn->ChildSites, Loc); in maybeRecordLocation()
1373 CurFn = Insertion.first->second.get(); in beginFunctionImpl()
1374 CurFn->FuncId = NextFuncId++; in beginFunctionImpl()
[all …]
H A DDwarfDebug.h325 const MachineFunction *CurFn = nullptr; variable
812 const MachineFunction *getCurrentFunction() const { return CurFn; } in getCurrentFunction()
H A DDwarfDebug.cpp1427 assert(CurFn == nullptr); in endModule()
2091 CurFn = MF; in beginFunctionImpl()
2119 CurFn = nullptr; in skippedNonDebugFunction()
2126 assert(CurFn == MF && in endFunctionImpl()
2137 CurFn = nullptr; in endFunctionImpl()
2157 CurFn = nullptr; in endFunctionImpl()
2204 CurFn = nullptr; in endFunctionImpl()
H A DCodeViewDebug.h187 FunctionInfo *CurFn = nullptr; variable
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenFunction.cpp87 if (getLangOpts().OpenMP && CurFn) in ~CodeGenFunction()
95 if (CGM.getLangOpts().OpenMPIRBuilder && CurFn) in ~CodeGenFunction()
96 CGM.getOpenMPRuntime().getOMPBuilder().finalize(CurFn); in ~CodeGenFunction()
178 CGF.CurFn->getFnAttribute(Name).getValueAsBool(); in ConstructorHelper()
181 CGF.CurFn->addFnAttr(Name, llvm::toStringRef(NewValue)); in ConstructorHelper()
331 return CGF.CurFn->getBasicBlockList().push_back(BB); in EmitIfUsed()
390 CurFn->addFnAttr("instrument-function-exit", "__cyg_profile_func_exit"); in FinishFunction()
392 CurFn->addFnAttr("instrument-function-exit-inlined", in FinishFunction()
398 DI->EmitFunctionEnd(Builder, CurFn); in FinishFunction()
471 llvm::DominatorTree DT(*CurFn); in FinishFunction()
[all …]
H A DCGAtomic.cpp390 CGF.createBasicBlock("cmpxchg.store_expected", CGF.CurFn); in emitAtomicCmpXchg()
395 CGF.createBasicBlock("cmpxchg.continue", CGF.CurFn); in emitAtomicCmpXchg()
454 auto *MonotonicBB = CGF.createBasicBlock("monotonic_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
455 auto *AcquireBB = CGF.createBasicBlock("acquire_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
456 auto *SeqCstBB = CGF.createBasicBlock("seqcst_fail", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
457 auto *ContBB = CGF.createBasicBlock("atomic.continue", CGF.CurFn); in emitAtomicCmpXchgFailureSet()
544 CGF.createBasicBlock("cmpxchg.strong", CGF.CurFn); in EmitAtomicOp()
545 llvm::BasicBlock *WeakBB = CGF.createBasicBlock("cmxchg.weak", CGF.CurFn); in EmitAtomicOp()
547 CGF.createBasicBlock("cmpxchg.continue", CGF.CurFn); in EmitAtomicOp()
732 BB[S] = CGF.createBasicBlock(getAsString(ScopeModel->map(S)), CGF.CurFn); in EmitAtomicOp()
[all …]
H A DCGException.cpp778 if (!CurFn->hasPersonalityFn()) in getInvokeDestImpl()
779 CurFn->setPersonalityFn(getOpaquePersonalityFn(CGM, Personality)); in getInvokeDestImpl()
1517 if (!CurFn->hasPersonalityFn()) in getTerminateLandingPad()
1518 CurFn->setPersonalityFn(getOpaquePersonalityFn(CGM, Personality)); in getTerminateLandingPad()
1713 FP = &CGF.CurFn->arg_begin()[1]; in Emit()
1820 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in recoverAddrOfEscapedLocal()
1873 auto AI = CurFn->arg_begin(); in EmitCapturedLocals()
1886 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in EmitCapturedLocals()
1923 llvm::ConstantExpr::getBitCast(ParentCGF.CurFn, Int8PtrTy); in EmitCapturedLocals()
2046 CGM.SetInternalFunctionAttributes(GlobalDecl(), CurFn, FnInfo); in startOutlinedSEHHelper()
[all …]
H A DCGCUDANV.cpp292 EmittedKernels.push_back({CGF.CurFn, CGF.CurFuncDecl}); in emitDeviceStub()
293 if (auto *GV = dyn_cast<llvm::GlobalVariable>(KernelHandles[CGF.CurFn])) { in emitDeviceStub()
294 GV->setLinkage(CGF.CurFn->getLinkage()); in emitDeviceStub()
295 GV->setInitializer(CGF.CurFn); in emitDeviceStub()
376 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn], VoidPtrTy); in emitDeviceStubBodyNew()
432 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn], CharPtrTy); in emitDeviceStubBodyLegacy()
H A DCodeGenABITypes.cpp126 CGF.CurFn = InsertBlock->getParent(); in getCXXDestructorImplicitParam()
H A DCGStmt.cpp536 CurFn->getBasicBlockList().insertAfter(CurBB->getIterator(), BB); in EmitBlock()
538 CurFn->getBasicBlockList().push_back(BB); in EmitBlock()
563 CurFn->getBasicBlockList().insertAfter(insn->getParent()->getIterator(), in EmitBlockAfterUses()
571 CurFn->getBasicBlockList().push_back(block); in EmitBlockAfterUses()
1362 CurFn->getBasicBlockList().push_back(CaseRangeBlock); in EmitCaseStmtRange()
2483 llvm::BlockAddress::get(CurFn, Dest.getBlock()); in EmitAsmStmt()
H A DCGObjCRuntime.cpp208 llvm::Function *FinallyFunc = HelperCGF.CurFn; in EmitTryCatchStmt()
H A DCGOpenMPRuntime.cpp1190 auto &Decls = FunctionUDRMap.FindAndConstruct(CGF->CurFn); in emitUserDefinedReduction()
1396 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in setLocThreadIdInsertPt()
1411 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in clearLocThreadIdInsertPt()
1457 assert(CGF.CurFn && "No function in current CodeGenFunction."); in getThreadID()
1472 auto I = OpenMPLocThreadIDMap.find(CGF.CurFn); in getThreadID()
1497 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in getThreadID()
1509 auto &Elem = OpenMPLocThreadIDMap.FindAndConstruct(CGF.CurFn); in getThreadID()
1524 assert(CGF.CurFn && "No function in current CodeGenFunction."); in functionFinished()
1525 if (OpenMPLocThreadIDMap.count(CGF.CurFn)) { in functionFinished()
1527 OpenMPLocThreadIDMap.erase(CGF.CurFn); in functionFinished()
[all …]
H A DCGVTables.cpp192 CurFn = Fn; in GenerateVarArgsThunk()
400 for (llvm::Argument &A : CurFn->args()) in EmitMustTailThunk()
H A DCGOpenMPRuntimeGPU.cpp1681 auto I = Rt.FunctionGlobalizedDecls.try_emplace(CGF.CurFn).first; in emitTeamsOutlinedFunction()
1717 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in emitGenericVarsProlog()
2006 const auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in emitGenericVarsEpilog()
4154 assert(FunctionGlobalizedDecls.count(CGF.CurFn) == 0 && in emitFunctionProlog()
4183 auto I = FunctionGlobalizedDecls.try_emplace(CGF.CurFn).first; in emitFunctionProlog()
4274 auto I = FunctionGlobalizedDecls.find(CGF.CurFn); in getAddressOfLocalVariable()
4296 FunctionGlobalizedDecls.erase(CGF.CurFn); in functionFinished()
H A DCGExprScalar.cpp2494 llvm::BasicBlock *opBB = CGF.createBasicBlock("atomic_op", CGF.CurFn); in EmitScalarPrePostIncDec()
2725 llvm::BasicBlock *contBB = CGF.createBasicBlock("atomic_cont", CGF.CurFn); in EmitScalarPrePostIncDec()
3070 llvm::BasicBlock *opBB = CGF.createBasicBlock("atomic_op", CGF.CurFn); in EmitCompoundAssignLValue()
3097 llvm::BasicBlock *contBB = CGF.createBasicBlock("atomic_cont", CGF.CurFn); in EmitCompoundAssignLValue()
3320 CGF.createBasicBlock("nooverflow", CGF.CurFn, initialBB->getNextNode()); in EmitOverflowCheckedBinOp()
3321 llvm::BasicBlock *overflowBB = CGF.createBasicBlock("overflow", CGF.CurFn); in EmitOverflowCheckedBinOp()
H A DCGBuiltin.cpp1445 BasicBlock *End = createBasicBlock("bitscan_end", this->CurFn); in EmitMSVCBuiltinExpr()
1451 BasicBlock *NotZero = createBasicBlock("bitscan_not_zero", this->CurFn); in EmitMSVCBuiltinExpr()
3174 BasicBlock *End = createBasicBlock("fpclassify_end", this->CurFn); in EmitBuiltinExpr()
3185 BasicBlock *NotZero = createBasicBlock("fpclassify_not_zero", this->CurFn); in EmitBuiltinExpr()
3193 BasicBlock *NotNan = createBasicBlock("fpclassify_not_nan", this->CurFn); in EmitBuiltinExpr()
3204 BasicBlock *NotInf = createBasicBlock("fpclassify_not_inf", this->CurFn); in EmitBuiltinExpr()
3874 llvm::BasicBlock *ContBB = createBasicBlock("atomic.continue", CurFn); in EmitBuiltinExpr()
3877 createBasicBlock("monotonic", CurFn), in EmitBuiltinExpr()
3878 createBasicBlock("acquire", CurFn), in EmitBuiltinExpr()
3879 createBasicBlock("release", CurFn), in EmitBuiltinExpr()
[all …]
H A DCGClass.cpp1542 CurFn->addFnAttr(llvm::Attribute::AlwaysInline); in EmitDestructorBody()
1692 CGF.CurFn->addFnAttr("disable-tail-calls", "true"); in Emit()
H A DCGObjCMac.cpp4400 I = CGF.CurFn->begin(), E = CGF.CurFn->end(); I != E; ++I) in FragileHazards()
4458 FI = CGF.CurFn->begin(), FE = CGF.CurFn->end(); FI != FE; ++FI) { in emitHazardsInNewBlocks()
4502 llvm::BasicBlock &Entry = CGF.CurFn->getEntryBlock(); in collectLocals()
H A DCodeGenFunction.h326 llvm::Function *CurFn = nullptr;
1488 !CurFn->hasFnAttribute(llvm::Attribute::NoProfile))
H A DCGExprConstant.cpp2006 functionName = CGF->CurFn->getName(); in VisitBlockExpr()
H A DCGCall.cpp3431 llvm::Function::arg_iterator EI = CurFn->arg_end(); in EmitFunctionEpilog()
3443 auto AI = CurFn->arg_begin(); in EmitFunctionEpilog()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/XRay/
H A DInstrumentationMap.cpp169 uint64_t CurFn = 0; in loadObj() local
207 if (CurFn == 0) { in loadObj()
208 CurFn = Entry.Function; in loadObj()
212 if (Entry.Function != CurFn) { in loadObj()
214 CurFn = Entry.Function; in loadObj()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp926 auto *CurFn = CodeGenIP.getBlock()->getParent(); in createSections() local
937 "omp_section_loop.body.case", CurFn); in createSections()
2034 Function *CurFn = EntryBB->getParent(); in emitCommonDirectiveEntry() local
2035 CurFn->getBasicBlockList().insertAfter(EntryBB->getIterator(), ThenBB); in emitCommonDirectiveEntry()
2106 Function *CurFn = OMP_Entry->getParent(); in createCopyinClauseBlocks() local
2108 BasicBlock::Create(M.getContext(), "copyin.not.master", CurFn); in createCopyinClauseBlocks()
2119 BasicBlock::Create(M.getContext(), "copyin.not.master.end", CurFn); in createCopyinClauseBlocks()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp1354 const sema::FunctionScopeInfo *CurFn, in diagnoseRepeatedUseOfWeak() argument
1365 const WeakObjectUseMap &WeakMap = CurFn->getWeakObjectUses(); in diagnoseRepeatedUseOfWeak()
1439 if (isa<sema::BlockScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
1441 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()

12