Home
last modified time | relevance | path

Searched refs:FuncInfo (Results 1 – 25 of 50) sorted by relevance

12

/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp103 if (!FuncInfo.MBB->empty()) in startNewBlock()
104 EmitStartPt = &FuncInfo.MBB->back(); in startNewBlock()
109 if (!FuncInfo.CanLowerReturn) in lowerArguments()
118 for (Function::const_arg_iterator I = FuncInfo.Fn->arg_begin(), in lowerArguments()
119 E = FuncInfo.Fn->arg_end(); in lowerArguments()
123 FuncInfo.ValueMap[&*I] = VI->second; in lowerArguments()
132 SavedInsertPt = FuncInfo.InsertPt; in flushLocalValueMap()
195 !FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(V)))) in getRegForValue()
196 return FuncInfo.InitializeRegForValue(V); in getRegForValue()
256 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in materializeConstant()
[all …]
DSelectionDAGISel.cpp356 FuncInfo(new FunctionLoweringInfo()), in SelectionDAGISel()
358 SDB(new SelectionDAGBuilder(*CurDAG, *FuncInfo, OL)), in SelectionDAGISel()
373 delete FuncInfo; in ~SelectionDAGISel()
459 FuncInfo->set(Fn, *MF, CurDAG); in runOnMachineFunction()
462 FuncInfo->BPI = &getAnalysis<BranchProbabilityInfoWrapperPass>().getBPI(); in runOnMachineFunction()
464 FuncInfo->BPI = nullptr; in runOnMachineFunction()
470 FuncInfo->SplitCSR = false; in runOnMachineFunction()
476 FuncInfo->SplitCSR = true; in runOnMachineFunction()
487 Returns.push_back(FuncInfo->MBBMap[&BB]); in runOnMachineFunction()
492 FuncInfo->SplitCSR = false; in runOnMachineFunction()
[all …]
DStatepointLowering.cpp58 AllocatedStackSlots.resize(Builder.FuncInfo.StatepointStackSlots.size()); in startNewStatepoint()
83 assert(Builder.FuncInfo.StatepointStackSlots.size() == in allocateStackSlot()
98 Builder.FuncInfo.StatepointStackSlots.push_back(FI); in allocateStackSlot()
103 const int FI = Builder.FuncInfo.StatepointStackSlots[NextSlotToAllocate]; in allocateStackSlot()
131 Builder.FuncInfo.StatepointRelocatedValues[RelocOps.getStatepoint()]; in findPreviousSpillSlot()
223 auto Itr = std::find(Builder.FuncInfo.StatepointStackSlots.begin(), in reservePreviousStackSlotForValue()
224 Builder.FuncInfo.StatepointStackSlots.end(), *Index); in reservePreviousStackSlotForValue()
225 assert(Itr != Builder.FuncInfo.StatepointStackSlots.end() && in reservePreviousStackSlotForValue()
230 std::distance(Builder.FuncInfo.StatepointStackSlots.begin(), Itr); in reservePreviousStackSlotForValue()
363 unsigned Reg = Builder.FuncInfo.CreateRegs(ISP.getActualReturnType()); in lowerCallFromStatepoint()
[all …]
DSelectionDAGBuilder.cpp620 FunctionLoweringInfo &FuncInfo, in getCopyFromRegs() argument
659 FuncInfo.GetLiveOutRegInfo(Regs[Part+i]); in getCopyFromRegs()
970 DenseMap<const Value *, unsigned>::iterator It = FuncInfo.ValueMap.find(V); in getCopyFromRegs()
973 if (It != FuncInfo.ValueMap.end()) { in getCopyFromRegs()
978 Result = RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V); in getCopyFromRegs()
1010 (FuncInfo.ValueMap.find(V) != FuncInfo.ValueMap.end()); in findValue()
1158 FuncInfo.StaticAllocaMap.find(AI); in getValueImpl()
1159 if (SI != FuncInfo.StaticAllocaMap.end()) in getValueImpl()
1166 unsigned InReg = FuncInfo.InitializeRegForValue(Inst); in getValueImpl()
1170 return RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V); in getValueImpl()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp96 explicit PPCFastISel(FunctionLoweringInfo &FuncInfo, in PPCFastISel() argument
98 : FastISel(FuncInfo, LibInfo), TM(FuncInfo.MF->getTarget()), in PPCFastISel()
99 PPCSubTarget(&FuncInfo.MF->getSubtarget<PPCSubtarget>()), in PPCFastISel()
100 PPCFuncInfo(FuncInfo.MF->getInfo<PPCFunctionInfo>()), in PPCFastISel()
103 Context(&FuncInfo.Fn->getContext()) {} in PPCFastISel()
296 if (FuncInfo.MBBMap[I->getParent()] == FuncInfo.MBB) in isValueAvailable()
310 if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(Obj)) || in PPCComputeAddress()
311 FuncInfo.MBBMap[I->getParent()] == FuncInfo.MBB) { in PPCComputeAddress()
387 FuncInfo.StaticAllocaMap.find(AI); in PPCComputeAddress()
388 if (SI != FuncInfo.StaticAllocaMap.end()) { in PPCComputeAddress()
[all …]
DPPCFrameLowering.cpp389 const PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in spillsCR() local
390 return FuncInfo->isCRSpilled(); in spillsCR()
394 const PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in spillsVRSAVE() local
395 return FuncInfo->isVRSAVESpilled(); in spillsVRSAVE()
399 const PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in hasSpills() local
400 return FuncInfo->hasSpills(); in hasSpills()
404 const PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in hasNonRISpills() local
405 return FuncInfo->hasNonRISpills(); in hasNonRISpills()
1586 PPCFunctionInfo *FuncInfo = MF->getInfo<PPCFunctionInfo>(); in spillCalleeSavedRegisters() local
1589 FuncInfo->addMustSaveCR(Reg); in spillCalleeSavedRegisters()
[all …]
DPPCInstrInfo.cpp1040 PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in storeRegToStackSlot() local
1041 FuncInfo->setHasSpills(); in storeRegToStackSlot()
1046 FuncInfo->setSpillsCR(); in storeRegToStackSlot()
1049 FuncInfo->setSpillsVRSAVE(); in storeRegToStackSlot()
1052 FuncInfo->setHasNonRISpills(); in storeRegToStackSlot()
1152 PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in loadRegFromStackSlot() local
1153 FuncInfo->setHasSpills(); in loadRegFromStackSlot()
1158 FuncInfo->setSpillsCR(); in loadRegFromStackSlot()
1161 FuncInfo->setSpillsVRSAVE(); in loadRegFromStackSlot()
1164 FuncInfo->setHasNonRISpills(); in loadRegFromStackSlot()
/external/llvm/lib/CodeGen/
DWinEHPrepare.cpp116 static int addUnwindMapEntry(WinEHFuncInfo &FuncInfo, int ToState, in addUnwindMapEntry() argument
121 FuncInfo.CxxUnwindMap.push_back(UME); in addUnwindMapEntry()
122 return FuncInfo.getLastStateNumber(); in addUnwindMapEntry()
125 static void addTryBlockMapEntry(WinEHFuncInfo &FuncInfo, int TryLow, in addTryBlockMapEntry() argument
148 FuncInfo.TryBlockMap.push_back(TBME); in addTryBlockMapEntry()
159 WinEHFuncInfo &FuncInfo) { in calculateStateNumbersForInvokes() argument
188 auto BaseStateI = FuncInfo.FuncletBaseStateMap.find(FuncletPad); in calculateStateNumbersForInvokes()
189 if (BaseStateI != FuncInfo.FuncletBaseStateMap.end()) in calculateStateNumbersForInvokes()
194 FuncInfo.InvokeStateMap[II] = BaseState; in calculateStateNumbersForInvokes()
197 assert(FuncInfo.EHPadStateMap.count(PadInst) && "EH Pad has no state!"); in calculateStateNumbersForInvokes()
[all …]
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp294 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, in fastEmitInst_r()
297 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in fastEmitInst_r()
299 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in fastEmitInst_r()
320 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in fastEmitInst_rr()
324 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in fastEmitInst_rr()
327 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in fastEmitInst_rr()
350 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in fastEmitInst_rrr()
355 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in fastEmitInst_rrr()
359 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in fastEmitInst_rrr()
378 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in fastEmitInst_ri()
[all …]
/external/llvm/lib/Target/X86/
DX86FastISel.cpp422 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg); in X86FastEmitLoad()
425 MIB->addMemOperand(*FuncInfo.MF, MMO); in X86FastEmitLoad()
449 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in X86FastEmitStore()
515 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in X86FastEmitStore()
518 MIB->addMemOperand(*FuncInfo.MF, MMO); in X86FastEmitStore()
549 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in X86FastEmitStore()
553 MIB->addMemOperand(*FuncInfo.MF, MMO); in X86FastEmitStore()
606 AM.Base.Reg = getInstrInfo()->getGlobalBaseReg(FuncInfo.MF); in handleConstantAddresses()
653 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), LoadReg); in handleConstantAddresses()
698 if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(V)) || in X86SelectAddress()
[all …]
DX86WinEHState.cpp70 void addStateStores(Function &F, WinEHFuncInfo &FuncInfo);
179 WinEHFuncInfo FuncInfo; in runOnFunction() local
180 addStateStores(F, FuncInfo); in runOnFunction()
401 void WinEHStatePass::addStateStores(Function &F, WinEHFuncInfo &FuncInfo) { in addStateStores() argument
412 calculateSEHStateNumbers(&F, FuncInfo); in addStateStores()
414 calculateWinCXXEHStateNumbers(&F, FuncInfo); in addStateStores()
428 auto BaseStateI = FuncInfo.FuncletBaseStateMap.find(FuncletPad); in addStateStores()
429 if (BaseStateI != FuncInfo.FuncletBaseStateMap.end()) in addStateStores()
442 assert(FuncInfo.InvokeStateMap.count(II) && "invoke has no state!"); in addStateStores()
443 int State = FuncInfo.InvokeStateMap[II]; in addStateStores()
DX86CallFrameOptimization.cpp518 X86MachineFunctionInfo *FuncInfo = MF.getInfo<X86MachineFunctionInfo>(); in adjustCallSequence() local
519 FuncInfo->setHasPushSequences(true); in adjustCallSequence()
/external/llvm/lib/CodeGen/AsmPrinter/
DWinException.cpp303 const WinEHFuncInfo &FuncInfo) { in getFrameIndexOffset() argument
310 assert(FuncInfo.EHRegNodeEndOffset != INT_MAX); in getFrameIndexOffset()
312 Offset += FuncInfo.EHRegNodeEndOffset; in getFrameIndexOffset()
509 const WinEHFuncInfo &FuncInfo = *MF->getWinEHFuncInfo(); in emitCSpecificHandlerTable() local
518 MCConstantExpr::create(FuncInfo.SEHSetFrameOffset, Ctx); in emitCSpecificHandlerTable()
550 InvokeStateChangeIterator::range(FuncInfo, MF->begin(), Stop)) { in emitCSpecificHandlerTable()
554 emitSEHActionsForRange(FuncInfo, LastStartLabel, in emitCSpecificHandlerTable()
563 void WinException::emitSEHActionsForRange(const WinEHFuncInfo &FuncInfo, in emitSEHActionsForRange() argument
571 const SEHUnwindMapEntry &UME = FuncInfo.SEHUnwindMap[State]; in emitSEHActionsForRange()
599 const WinEHFuncInfo &FuncInfo = *MF->getWinEHFuncInfo(); in emitCXXFrameHandler3Table() local
[all …]
DWinException.h45 void emitSEHActionsForRange(const WinEHFuncInfo &FuncInfo,
61 const MachineFunction *MF, const WinEHFuncInfo &FuncInfo,
66 void emitEHRegistrationOffsetLabel(const WinEHFuncInfo &FuncInfo,
80 int getFrameIndexOffset(int FrameIndex, const WinEHFuncInfo &FuncInfo);
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyFastISel.cpp53 WebAssemblyFastISel(FunctionLoweringInfo &FuncInfo, in WebAssemblyFastISel() argument
55 : FastISel(FuncInfo, LibInfo, /*SkipTargetIndependentISel=*/true) { in WebAssemblyFastISel()
56 Subtarget = &FuncInfo.MF->getSubtarget<WebAssemblySubtarget>(); in WebAssemblyFastISel()
57 Context = &FuncInfo.Fn->getContext(); in WebAssemblyFastISel()
78 FastISel *WebAssembly::createFastISel(FunctionLoweringInfo &FuncInfo, in createFastISel() argument
80 return new WebAssemblyFastISel(FuncInfo, LibInfo); in createFastISel()
DWebAssemblyISelLowering.h47 FastISel *createFastISel(FunctionLoweringInfo &FuncInfo,
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp248 explicit AArch64FastISel(FunctionLoweringInfo &FuncInfo, in AArch64FastISel() argument
250 : FastISel(FuncInfo, LibInfo, /*SkipTargetIndependentISel=*/true) { in AArch64FastISel()
252 &static_cast<const AArch64Subtarget &>(FuncInfo.MF->getSubtarget()); in AArch64FastISel()
253 Context = &FuncInfo.Fn->getContext(); in AArch64FastISel()
317 if (!FuncInfo.StaticAllocaMap.count(AI)) in fastMaterializeAlloca()
321 FuncInfo.StaticAllocaMap.find(AI); in fastMaterializeAlloca()
323 if (SI != FuncInfo.StaticAllocaMap.end()) { in fastMaterializeAlloca()
325 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADDXri), in fastMaterializeAlloca()
348 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(TargetOpcode::COPY), in materializeInt()
381 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc1), TmpReg) in materializeFP()
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp314 FuncPGOInstrumentation<PGOEdge, BBInfo> FuncInfo(F, true, BPI, BFI); in instrumentOneFunc() local
315 for (auto &E : FuncInfo.MST.AllEdges) { in instrumentOneFunc()
321 for (auto &E : FuncInfo.MST.AllEdges) { in instrumentOneFunc()
322 BasicBlock *InstrBB = FuncInfo.getInstrBB(E.get()); in instrumentOneFunc()
332 {llvm::ConstantExpr::getBitCast(FuncInfo.FuncNameVar, I8PtrTy), in instrumentOneFunc()
333 Builder.getInt64(FuncInfo.FunctionHash), Builder.getInt32(NumCounters), in instrumentOneFunc()
406 FuncPGOInstrumentation<PGOUseEdge, UseBBInfo> FuncInfo; member in __anondc7bfcd90211::PGOUseFunc
410 return FuncInfo.getBBInfo(BB); in getBBInfo()
425 const std::string getFuncName() const { return FuncInfo.FuncName; } in getFuncName()
446 : F(Func), M(Modu), FuncInfo(Func, false, BPI, BFI) {} in PGOUseFunc()
[all …]
/external/llvm/include/llvm/CodeGen/
DWinEHFuncInfo.h120 WinEHFuncInfo &FuncInfo);
123 WinEHFuncInfo &FuncInfo);
125 void calculateClrEHStateNumbers(const Function *Fn, WinEHFuncInfo &FuncInfo);
128 WinEHFuncInfo &FuncInfo);
/external/llvm/lib/Target/Mips/
DMipsFastISel.cpp150 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in emitInst()
153 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), in emitInst()
281 FuncInfo.StaticAllocaMap.find(AI); in fastMaterializeAlloca()
283 if (SI != FuncInfo.StaticAllocaMap.end()) { in fastMaterializeAlloca()
285 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Mips::LEA_ADDiu), in fastMaterializeAlloca()
414 if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(Obj)) || in computeAddress()
415 FuncInfo.MBBMap[I->getParent()] == FuncInfo.MBB) { in computeAddress()
477 FuncInfo.StaticAllocaMap.find(AI); in computeAddress()
478 if (SI != FuncInfo.StaticAllocaMap.end()) { in computeAddress()
497 if (I->getParent() == FuncInfo.MBB->getBasicBlock()) { in computeCallAddress()
[all …]
DMips16ISelLowering.cpp430 MipsFunctionInfo *FuncInfo = MF.getInfo<MipsFunctionInfo>(); in getOpndList() local
452 if (!IsPICCall && (Signature && (FuncInfo->StubsNeeded.find(Symbol) == in getOpndList()
453 FuncInfo->StubsNeeded.end()))) { in getOpndList()
454 FuncInfo->StubsNeeded[Symbol] = Signature; in getOpndList()
469 FuncInfo->setSaveS2(); in getOpndList()
510 FuncInfo->callPtrInfo(S->getSymbol())); in getOpndList()
/external/google-breakpad/src/common/solaris/
Ddump_symbols.cc98 struct FuncInfo { struct
124 std::vector<struct FuncInfo> func_info;
250 struct FuncInfo *func_info) { in LoadStackParamSize()
264 struct FuncInfo *func_info) { in LoadLineInfo()
313 struct FuncInfo func_info; in LoadFuncSymbols()
351 std::vector<struct FuncInfo> *sorted_functions = &(source_file.func_info); in ComputeSizeAndRVA()
355 struct FuncInfo &func_info = (*sorted_functions)[j]; in ComputeSizeAndRVA()
524 const struct FuncInfo &func_info){ in WriteOneFunction()
561 const struct FuncInfo &func_info = file_info.func_info[j]; in WriteFunctionInfo()
/external/llvm/lib/Target/Sparc/
DSparcFrameLowering.cpp87 SparcMachineFunctionInfo *FuncInfo = MF.getInfo<SparcMachineFunctionInfo>(); in emitPrologue() local
116 if (FuncInfo->isLeafProc()) { in emitPrologue()
204 SparcMachineFunctionInfo *FuncInfo = MF.getInfo<SparcMachineFunctionInfo>(); in emitEpilogue() local
211 if (!FuncInfo->isLeafProc()) { in emitEpilogue()
249 const SparcMachineFunctionInfo *FuncInfo = MF.getInfo<SparcMachineFunctionInfo>(); in getFrameIndexReference() local
259 if (FuncInfo->isLeafProc()) { in getFrameIndexReference()
/external/llvm/lib/Target/AMDGPU/
DSIFrameLowering.cpp22 static bool hasOnlySGPRSpills(const SIMachineFunctionInfo *FuncInfo, in hasOnlySGPRSpills() argument
24 if (!FuncInfo->hasSpilledSGPRs()) in hasOnlySGPRSpills()
27 if (FuncInfo->hasSpilledVGPRs()) in hasOnlySGPRSpills()
/external/llvm/lib/Target/MSP430/
DMSP430ISelLowering.cpp434 MSP430MachineFunctionInfo *FuncInfo = MF.getInfo<MSP430MachineFunctionInfo>(); in LowerCCCArguments() local
445 FuncInfo->setVarArgsFrameIndex(MFI->CreateFixedObject(1, Offset, true)); in LowerCCCArguments()
1018 MSP430MachineFunctionInfo *FuncInfo = MF.getInfo<MSP430MachineFunctionInfo>(); in getReturnAddressFrameIndex() local
1019 int ReturnAddrIndex = FuncInfo->getRAIndex(); in getReturnAddressFrameIndex()
1027 FuncInfo->setRAIndex(ReturnAddrIndex); in getReturnAddressFrameIndex()
1080 MSP430MachineFunctionInfo *FuncInfo = MF.getInfo<MSP430MachineFunctionInfo>(); in LowerVASTART() local
1085 DAG.getFrameIndex(FuncInfo->getVarArgsFrameIndex(), PtrVT); in LowerVASTART()

12