Home
last modified time | relevance | path

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

12

/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp87 if (!FuncInfo.MBB->empty()) in startNewBlock()
88 EmitStartPt = &FuncInfo.MBB->back(); in startNewBlock()
93 if (!FuncInfo.CanLowerReturn) in LowerArguments()
102 for (Function::const_arg_iterator I = FuncInfo.Fn->arg_begin(), in LowerArguments()
103 E = FuncInfo.Fn->arg_end(); I != E; ++I) { in LowerArguments()
106 FuncInfo.ValueMap[I] = VI->second; in LowerArguments()
170 !FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(V)))) in getRegForValue()
171 return FuncInfo.InitializeRegForValue(V); in getRegForValue()
236 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in materializeRegForValue()
259 DenseMap<const Value *, unsigned>::iterator I = FuncInfo.ValueMap.find(V); in lookUpRegForValue()
[all …]
DSelectionDAGISel.cpp339 FuncInfo(new FunctionLoweringInfo(TM)), in SelectionDAGISel()
341 SDB(new SelectionDAGBuilder(*CurDAG, *FuncInfo, OL)), in SelectionDAGISel()
354 delete FuncInfo; in ~SelectionDAGISel()
440 FuncInfo->set(Fn, *MF, CurDAG); in runOnMachineFunction()
443 FuncInfo->BPI = &getAnalysis<BranchProbabilityInfo>(); in runOnMachineFunction()
445 FuncInfo->BPI = nullptr; in runOnMachineFunction()
460 if (!FuncInfo->ArgDbgValues.empty()) in runOnMachineFunction()
467 for (unsigned i = 0, e = FuncInfo->ArgDbgValues.size(); i != e; ++i) { in runOnMachineFunction()
468 MachineInstr *MI = FuncInfo->ArgDbgValues[e-i-1]; in runOnMachineFunction()
555 I = FuncInfo->RegFixups.begin(), E = FuncInfo->RegFixups.end(); in runOnMachineFunction()
[all …]
DSelectionDAGBuilder.cpp639 SDValue getCopyFromRegs(SelectionDAG &DAG, FunctionLoweringInfo &FuncInfo,
666 FunctionLoweringInfo &FuncInfo, in getCopyFromRegs() argument
705 FuncInfo.GetLiveOutRegInfo(Regs[Part+i]); in getCopyFromRegs()
1018 DenseMap<const Value *, unsigned>::iterator It = FuncInfo.ValueMap.find(V); in getValue()
1019 if (It != FuncInfo.ValueMap.end()) { in getValue()
1024 N = RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V); in getValue()
1170 FuncInfo.StaticAllocaMap.find(AI); in getValueImpl()
1171 if (SI != FuncInfo.StaticAllocaMap.end()) in getValueImpl()
1177 unsigned InReg = FuncInfo.InitializeRegForValue(Inst); in getValueImpl()
1180 return RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V); in getValueImpl()
[all …]
DSelectionDAGBuilder.h519 FunctionLoweringInfo &FuncInfo; variable
542 DAG(dag), FuncInfo(funcinfo), OptLevel(ol), in SelectionDAGBuilder()
/external/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp93 explicit PPCFastISel(FunctionLoweringInfo &FuncInfo, in PPCFastISel() argument
95 : FastISel(FuncInfo, LibInfo), in PPCFastISel()
96 TM(FuncInfo.MF->getTarget()), in PPCFastISel()
100 Context(&FuncInfo.Fn->getContext()) { } in PPCFastISel()
289 if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(Obj)) || in PPCComputeAddress()
290 FuncInfo.MBBMap[I->getParent()] == FuncInfo.MBB) { in PPCComputeAddress()
365 FuncInfo.StaticAllocaMap.find(AI); in PPCComputeAddress()
366 if (SI != FuncInfo.StaticAllocaMap.end()) { in PPCComputeAddress()
408 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(PPC::ADDI8), in PPCSimplifyAddress()
495 FuncInfo.MF->getMachineMemOperand( in PPCEmitLoad()
[all …]
DPPCFrameLowering.cpp339 const PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in spillsCR() local
340 return FuncInfo->isCRSpilled(); in spillsCR()
344 const PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in spillsVRSAVE() local
345 return FuncInfo->isVRSAVESpilled(); in spillsVRSAVE()
349 const PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in hasSpills() local
350 return FuncInfo->hasSpills(); in hasSpills()
354 const PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in hasNonRISpills() local
355 return FuncInfo->hasNonRISpills(); in hasNonRISpills()
1397 PPCFunctionInfo *FuncInfo = MF->getInfo<PPCFunctionInfo>(); in spillCalleeSavedRegisters() local
1400 FuncInfo->addMustSaveCR(Reg); in spillCalleeSavedRegisters()
[all …]
DPPCInstrInfo.cpp858 PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in storeRegToStackSlot() local
859 FuncInfo->setHasSpills(); in storeRegToStackSlot()
864 FuncInfo->setSpillsCR(); in storeRegToStackSlot()
867 FuncInfo->setSpillsVRSAVE(); in storeRegToStackSlot()
870 FuncInfo->setHasNonRISpills(); in storeRegToStackSlot()
955 PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in loadRegFromStackSlot() local
956 FuncInfo->setHasSpills(); in loadRegFromStackSlot()
961 FuncInfo->setSpillsCR(); in loadRegFromStackSlot()
964 FuncInfo->setSpillsVRSAVE(); in loadRegFromStackSlot()
967 FuncInfo->setHasNonRISpills(); in loadRegFromStackSlot()
DPPCISelLowering.h510 FastISel *createFastISel(FunctionLoweringInfo &FuncInfo,
676 FastISel *createFastISel(FunctionLoweringInfo &FuncInfo,
DPPCISelLowering.cpp1279 PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in fixupFuncForFI() local
1280 FuncInfo->setHasNonRISpills(); in fixupFuncForFI()
1949 PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in LowerVASTART() local
1957 SDValue FR = DAG.getFrameIndex(FuncInfo->getVarArgsFrameIndex(), PtrVT); in LowerVASTART()
1989 SDValue ArgGPR = DAG.getConstant(FuncInfo->getVarArgsNumGPR(), MVT::i32); in LowerVASTART()
1990 SDValue ArgFPR = DAG.getConstant(FuncInfo->getVarArgsNumFPR(), MVT::i32); in LowerVASTART()
1995 SDValue StackOffsetFI = DAG.getFrameIndex(FuncInfo->getVarArgsStackOffset(), in LowerVASTART()
1997 SDValue FR = DAG.getFrameIndex(FuncInfo->getVarArgsFrameIndex(), in LowerVASTART()
2233 PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>(); in LowerFormalArguments_32SVR4() local
2334 FuncInfo->setMinReservedArea(MinReservedArea); in LowerFormalArguments_32SVR4()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp179 if (!FuncInfo.StaticAllocaMap.count(AI)) in TargetMaterializeAlloca()
183 FuncInfo.StaticAllocaMap.find(AI); in TargetMaterializeAlloca()
185 if (SI != FuncInfo.StaticAllocaMap.end()) { in TargetMaterializeAlloca()
187 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADDXri), in TargetMaterializeAlloca()
218 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in AArch64MaterializeFP()
231 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADRP), in AArch64MaterializeFP()
236 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg) in AArch64MaterializeFP()
263 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADRP), in AArch64MaterializeGV()
268 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::LDRXui), in AArch64MaterializeGV()
275 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(AArch64::ADRP), in AArch64MaterializeGV()
[all …]
DAArch64ISelLowering.cpp1814 AArch64FunctionInfo *FuncInfo = MF.getInfo<AArch64FunctionInfo>(); in LowerFormalArguments() local
1825 FuncInfo->setArgumentStackToRestore(StackArgSize); in LowerFormalArguments()
1833 FuncInfo->setBytesInStackArgArea(StackArgSize); in LowerFormalArguments()
1843 AArch64FunctionInfo *FuncInfo = MF.getInfo<AArch64FunctionInfo>(); in saveVarArgRegisters() local
1872 FuncInfo->setVarArgsGPRIndex(GPRIdx); in saveVarArgRegisters()
1873 FuncInfo->setVarArgsGPRSize(GPRSaveSize); in saveVarArgRegisters()
1902 FuncInfo->setVarArgsFPRIndex(FPRIdx); in saveVarArgRegisters()
1903 FuncInfo->setVarArgsFPRSize(FPRSaveSize); in saveVarArgRegisters()
2059 const AArch64FunctionInfo *FuncInfo = MF.getInfo<AArch64FunctionInfo>(); in isEligibleForTailCallOptimization() local
2063 return CCInfo.getNextStackOffset() <= FuncInfo->getBytesInStackArgArea(); in isEligibleForTailCallOptimization()
[all …]
/external/llvm/lib/Target/X86/
DX86FastISel.cpp414 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), ResultReg); in X86FastEmitLoad()
417 MIB->addMemOperand(*FuncInfo.MF, MMO); in X86FastEmitLoad()
436 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in X86FastEmitStore()
478 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in X86FastEmitStore()
481 MIB->addMemOperand(*FuncInfo.MF, MMO); in X86FastEmitStore()
512 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in X86FastEmitStore()
516 MIB->addMemOperand(*FuncInfo.MF, MMO); in X86FastEmitStore()
569 AM.Base.Reg = getInstrInfo()->getGlobalBaseReg(FuncInfo.MF); in handleConstantAddresses()
616 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), LoadReg); in handleConstantAddresses()
661 if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(V)) || in X86SelectAddress()
[all …]
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp296 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, in FastEmitInst_r()
299 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in FastEmitInst_r()
301 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in FastEmitInst_r()
322 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in FastEmitInst_rr()
326 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in FastEmitInst_rr()
329 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in FastEmitInst_rr()
352 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in FastEmitInst_rrr()
357 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II) in FastEmitInst_rrr()
361 AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, in FastEmitInst_rrr()
380 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg) in FastEmitInst_ri()
[all …]
/external/llvm/lib/Target/Sparc/
DSparcFrameLowering.cpp86 SparcMachineFunctionInfo *FuncInfo = MF.getInfo<SparcMachineFunctionInfo>(); in emitPrologue() local
100 if (FuncInfo->isLeafProc()) { in emitPrologue()
153 SparcMachineFunctionInfo *FuncInfo = MF.getInfo<SparcMachineFunctionInfo>(); in emitEpilogue() local
160 if (!FuncInfo->isLeafProc()) { in emitEpilogue()
DSparcRegisterInfo.cpp166 SparcMachineFunctionInfo *FuncInfo = MF.getInfo<SparcMachineFunctionInfo>(); in eliminateFrameIndex() local
168 if (FuncInfo->isLeafProc()) { in eliminateFrameIndex()
/external/llvm/lib/Target/Mips/
DMipsFastISel.cpp98 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc)); in EmitInst()
102 return BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(Opc), in EmitInst()
296 if (!FuncInfo.CanLowerReturn) in SelectRet()
DMips16ISelLowering.cpp426 MipsFunctionInfo *FuncInfo = MF.getInfo<MipsFunctionInfo>(); in getOpndList() local
448 if (!IsPICCall && (Signature && (FuncInfo->StubsNeeded.find(Symbol) == in getOpndList()
449 FuncInfo->StubsNeeded.end()))) { in getOpndList()
450 FuncInfo->StubsNeeded[Symbol] = Signature; in getOpndList()
465 FuncInfo->setSaveS2(); in getOpndList()
505 FuncInfo->callPtrInfo(S->getSymbol())); in getOpndList()
/external/llvm/lib/Target/Hexagon/
DHexagonFrameLowering.cpp95 HexagonMachineFunctionInfo *FuncInfo = in emitPrologue() local
98 FuncInfo->getAllocaAdjustInsts(); in emitPrologue()
205 const HexagonMachineFunctionInfo *FuncInfo = in hasFP() local
208 FuncInfo->hasClobberLR() ); in hasFP()
DHexagonISelLowering.cpp692 HexagonMachineFunctionInfo *FuncInfo = in LowerINLINEASM() local
701 if (FuncInfo->hasClobberLR()) in LowerINLINEASM()
728 FuncInfo->setHasClobberLR(true); in LowerINLINEASM()
840 HexagonMachineFunctionInfo *FuncInfo = in LowerFormalArguments() local
931 FuncInfo->setVarArgsFrameIndex(FrameIndex); in LowerFormalArguments()
1526 HexagonMachineFunctionInfo *FuncInfo = in LowerEH_RETURN() local
1528 FuncInfo->setHasEHReturn(); in LowerEH_RETURN()
1582 HexagonMachineFunctionInfo *FuncInfo = in EmitInstrWithCustomInserter() local
1584 FuncInfo->addAllocaAdjustInst(MI); in EmitInstrWithCustomInserter()
/external/llvm/lib/Target/MSP430/
DMSP430ISelLowering.cpp436 MSP430MachineFunctionInfo *FuncInfo = MF.getInfo<MSP430MachineFunctionInfo>(); in LowerCCCArguments() local
447 FuncInfo->setVarArgsFrameIndex(MFI->CreateFixedObject(1, Offset, true)); in LowerCCCArguments()
1027 MSP430MachineFunctionInfo *FuncInfo = MF.getInfo<MSP430MachineFunctionInfo>(); in getReturnAddressFrameIndex() local
1028 int ReturnAddrIndex = FuncInfo->getRAIndex(); in getReturnAddressFrameIndex()
1035 FuncInfo->setRAIndex(ReturnAddrIndex); in getReturnAddressFrameIndex()
1088 MSP430MachineFunctionInfo *FuncInfo = MF.getInfo<MSP430MachineFunctionInfo>(); in LowerVASTART() local
1091 SDValue FrameIndex = DAG.getFrameIndex(FuncInfo->getVarArgsFrameIndex(), in LowerVASTART()
/external/llvm/include/llvm/CodeGen/
DSelectionDAGISel.h45 FunctionLoweringInfo *FuncInfo; variable
DFastISel.h51 FunctionLoweringInfo &FuncInfo; variable
/external/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp674 SystemZMachineFunctionInfo *FuncInfo = in LowerFormalArguments() local
745 FuncInfo->setVarArgsFirstGPR(NumFixedGPRs); in LowerFormalArguments()
746 FuncInfo->setVarArgsFirstFPR(NumFixedFPRs); in LowerFormalArguments()
751 FuncInfo->setVarArgsFrameIndex(MFI->CreateFixedObject(1, StackSize, true)); in LowerFormalArguments()
757 FuncInfo->setRegSaveFrameIndex(RegSaveIndex); in LowerFormalArguments()
1952 SystemZMachineFunctionInfo *FuncInfo = in lowerVASTART() local
1964 DAG.getConstant(FuncInfo->getVarArgsFirstGPR(), PtrVT), in lowerVASTART()
1965 DAG.getConstant(FuncInfo->getVarArgsFirstFPR(), PtrVT), in lowerVASTART()
1966 DAG.getFrameIndex(FuncInfo->getVarArgsFrameIndex(), PtrVT), in lowerVASTART()
1967 DAG.getFrameIndex(FuncInfo->getRegSaveFrameIndex(), PtrVT) in lowerVASTART()
/external/clang/lib/CodeGen/
DCGAtomic.cpp726 const CGFunctionInfo &FuncInfo = in EmitAtomicExpr() local
729 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType(FuncInfo); in EmitAtomicExpr()
731 RValue Res = EmitCall(FuncInfo, Func, ReturnValueSlot(), Args); in EmitAtomicExpr()
/external/llvm/lib/Target/R600/
DAMDGPUISelDAGToDAG.cpp572 const BasicBlock *CurBlock = FuncInfo->MBB->getBasicBlock(); in isCFDepth0()
573 const Function *Fn = FuncInfo->Fn; in isCFDepth0()

12