Home
last modified time | relevance | path

Searched refs:RBI (Results 1 – 25 of 37) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMipsInstructionSelector.cpp32 const MipsRegisterBankInfo &RBI);
44 const MipsRegisterBankInfo &RBI; member in __anonca8e812d0111::MipsInstructionSelector
63 const MipsRegisterBankInfo &RBI) in MipsInstructionSelector() argument
65 TRI(*STI.getRegisterInfo()), RBI(RBI), in MipsInstructionSelector()
78 const RegisterBankInfo &RBI) { in selectCopy() argument
85 if (!RBI.constrainGenericRegister(DstReg, *RC, MRI)) { in selectCopy()
102 return selectCopy(I, TII, MRI, TRI, RBI); in select()
132 const unsigned DestRegBank = RBI.getRegBank(DestReg, MRI, TRI)->getID(); in select()
161 if (!constrainSelectedInstRegOperands(*LUi, TII, TRI, RBI)) in select()
163 if (!constrainSelectedInstRegOperands(*ORi, TII, TRI, RBI)) in select()
[all …]
DMipsSubtarget.cpp203 auto *RBI = new MipsRegisterBankInfo(*getRegisterInfo()); in MipsSubtarget() local
204 RegBankInfo.reset(RBI); in MipsSubtarget()
206 *static_cast<const MipsTargetMachine *>(&TM), *this, *RBI)); in MipsSubtarget()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMInstructionSelector.cpp36 const ARMRegisterBankInfo &RBI);
76 const ARMRegisterBankInfo &RBI; member in __anon30372f3b0111::ARMInstructionSelector
95 const ARMRegisterBankInfo &RBI) { in createARMInstructionSelector() argument
96 return new ARMInstructionSelector(TM, STI, RBI); in createARMInstructionSelector()
108 const ARMRegisterBankInfo &RBI) in ARMInstructionSelector() argument
110 TRI(*STI.getRegisterInfo()), TM(TM), RBI(RBI), STI(STI), in ARMInstructionSelector()
123 const RegisterBankInfo &RBI) { in guessRegClass() argument
124 const RegisterBank *RegBank = RBI.getRegBank(Reg, MRI, TRI); in guessRegClass()
148 const RegisterBankInfo &RBI) { in selectCopy() argument
153 const TargetRegisterClass *RC = guessRegClass(DstReg, MRI, TRI, RBI); in selectCopy()
[all …]
DARMSubtarget.cpp112 auto *RBI = new ARMRegisterBankInfo(*getRegisterInfo()); in ARMSubtarget() local
118 *static_cast<const ARMBaseTargetMachine *>(&TM), *this, *RBI)); in ARMSubtarget()
120 RegBankInfo.reset(RBI); in ARMSubtarget()
DARM.h55 const ARMRegisterBankInfo &RBI);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64InstructionSelector.cpp50 const AArch64RegisterBankInfo &RBI);
106 const AArch64RegisterBankInfo &RBI; member in __anon0efbf18d0111::AArch64InstructionSelector
127 const AArch64RegisterBankInfo &RBI) in AArch64InstructionSelector() argument
129 TRI(*STI.getRegisterInfo()), RBI(RBI), in AArch64InstructionSelector()
143 const RegisterBankInfo &RBI, in getRegClassForTypeOnBank() argument
177 const AArch64RegisterBankInfo &RBI, in unsupportedBinOp() argument
203 const RegisterBank *OpBank = RBI.getRegBank(MO.getReg(), MRI, TRI); in unsupportedBinOp()
344 const RegisterBankInfo &RBI) { in selectCopy() argument
352 const RegisterBank &RegBank = *RBI.getRegBank(SrcReg, MRI, TRI); in selectCopy()
354 MRI.getType(SrcReg), RegBank, RBI, /* GetAllRegSet */ true); in selectCopy()
[all …]
DAArch64Subtarget.cpp162 auto *RBI = new AArch64RegisterBankInfo(*getRegisterInfo()); in AArch64Subtarget() local
168 *static_cast<const AArch64TargetMachine *>(&TM), *this, *RBI)); in AArch64Subtarget()
170 RegBankInfo.reset(RBI); in AArch64Subtarget()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86InstructionSelector.cpp62 const X86RegisterBankInfo &RBI);
135 const X86RegisterBankInfo &RBI; member in __anonacd089870111::X86InstructionSelector
154 const X86RegisterBankInfo &RBI) in X86InstructionSelector() argument
156 TRI(*STI.getRegisterInfo()), RBI(RBI), in X86InstructionSelector()
199 const RegisterBank &RegBank = *RBI.getRegBank(Reg, MRI, TRI); in getRegClass()
234 const unsigned DstSize = RBI.getSizeInBits(DstReg, MRI, TRI); in selectCopy()
235 const RegisterBank &DstRegBank = *RBI.getRegBank(DstReg, MRI, TRI); in selectCopy()
238 const unsigned SrcSize = RBI.getSizeInBits(SrcReg, MRI, TRI); in selectCopy()
239 const RegisterBank &SrcRegBank = *RBI.getRegBank(SrcReg, MRI, TRI); in selectCopy()
274 DstSize <= RBI.getSizeInBits(SrcReg, MRI, TRI))) && in selectCopy()
[all …]
DX86Subtarget.cpp332 auto *RBI = new X86RegisterBankInfo(*getRegisterInfo()); in X86Subtarget() local
333 RegBankInfo.reset(RBI); in X86Subtarget()
334 InstSelector.reset(createX86InstructionSelector(TM, *this, *RBI)); in X86Subtarget()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUInstructionSelector.cpp46 const GCNSubtarget &STI, const AMDGPURegisterBankInfo &RBI, in AMDGPUInstructionSelector() argument
49 TRI(*STI.getRegisterInfo()), RBI(RBI), TM(TM), in AMDGPUInstructionSelector()
77 RBI.constrainGenericRegister(MO.getReg(), *RC, MRI); in selectCOPY()
126 unsigned Size = RBI.getSizeInBits(I.getOperand(0).getReg(), MRI, TRI); in selectG_ADD()
158 RBI.constrainGenericRegister(MO.getReg(), AMDGPU::SReg_64RegClass, MRI); in selectG_ADD()
177 RBI.constrainGenericRegister(MO.getReg(), *RC, MRI); in selectG_IMPLICIT_DEF()
257 return constrainSelectedInstRegOperands(*Exp, TII, TRI, RBI); in selectG_INTRINSIC_W_SIDE_EFFECTS()
274 return constrainSelectedInstRegOperands(*Exp, TII, TRI, RBI); in selectG_INTRINSIC_W_SIDE_EFFECTS()
285 unsigned StoreSize = RBI.getSizeInBits(I.getOperand(0).getReg(), MRI, TRI); in selectG_STORE()
316 bool Ret = constrainSelectedInstRegOperands(*Flat, TII, TRI, RBI); in selectG_STORE()
[all …]
DAMDGPUInstructionSelector.h46 const AMDGPURegisterBankInfo &RBI,
95 const AMDGPURegisterBankInfo &RBI; variable
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/
DUtils.cpp33 const RegisterBankInfo &RBI, in constrainRegToClass() argument
36 if (!RBI.constrainGenericRegister(Reg, RegClass, MRI)) { in constrainRegToClass()
50 const RegisterBankInfo &RBI, MachineInstr &InsertPt, const MCInstrDesc &II, in constrainOperandRegClass() argument
85 return constrainRegToClass(MRI, TII, RBI, InsertPt, Reg, *RegClass); in constrainOperandRegClass()
91 const RegisterBankInfo &RBI) { in constrainSelectedInstRegOperands() argument
121 MO.setReg(constrainOperandRegClass(MF, TRI, MRI, TII, RBI, I, I.getDesc(), in constrainSelectedInstRegOperands()
DRegBankSelect.cpp84 RBI = MF.getSubtarget().getRegBankInfo(); in init()
85 assert(RBI && "Cannot work without RegisterBankInfo"); in init()
122 const RegisterBank *CurRegBank = RBI->getRegBank(Reg, *MRI, *TRI); in assignmentMatch()
195 const RegisterBank *CurRegBank = RBI->getRegBank(MO.getReg(), *MRI, *TRI); in getRepairCost()
226 unsigned Cost = RBI->copyCost(*DesiredRegBrank, *CurRegBank, in getRepairCost()
227 RBI->getSizeInBits(MO.getReg(), *MRI, *TRI)); in getRepairCost()
565 RBI->applyMapping(OpdMapper); in applyMapping()
577 BestMapping = &RBI->getInstrMapping(MI); in assignInstr()
584 RBI->getInstrPossibleMappings(MI); in assignInstr()
DInstructionSelector.cpp40 const RegisterBankInfo &RBI) const { in constrainOperandRegToRegClass()
46 constrainRegToClass(MRI, TII, RBI, I, I.getOperand(OpIdx).getReg(), RC); in constrainOperandRegToRegClass()
DRegisterBankInfo.cpp558 const RegisterBankInfo *RBI = MF.getSubtarget().getRegBankInfo(); in verify() local
559 (void)RBI; in verify()
577 assert(MOMapping.verify(RBI->getSizeInBits( in verify()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp292 for (BasicBlock::reverse_iterator RBI = Pred0->rbegin(), RBE = Pred0->rend(); in mergeStores() local
293 RBI != RBE;) { in mergeStores()
295 Instruction *I = &*RBI; in mergeStores()
296 ++RBI; in mergeStores()
315 RBI = Pred0->rbegin(); in mergeStores()
317 LLVM_DEBUG(dbgs() << "Search again\n"; Instruction *I = &*RBI; I->dump()); in mergeStores()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/GlobalISel/
DUtils.h46 const RegisterBankInfo &RBI,
61 const RegisterBankInfo &RBI,
77 const RegisterBankInfo &RBI);
DInstructionSelector.h412 const RegisterBankInfo &RBI, const PredicateBitset &AvailableFeatures,
444 const RegisterBankInfo &RBI) const;
DInstructionSelectorImpl.h55 const RegisterBankInfo &RBI, const PredicateBitset &AvailableFeatures, in executeMatchTable() argument
512 &RBI.getRegBankFromRegClass(*TRI.getRegClass(RCEnum)) != in executeMatchTable()
513 RBI.getRegBank(MO.getReg(), MRI, TRI)) { in executeMatchTable()
866 *TRI.getRegClass(RCEnum), TII, TRI, RBI); in executeMatchTable()
878 RBI); in executeMatchTable()
/external/llvm/lib/CodeGen/GlobalISel/
DRegBankSelect.cpp48 : MachineFunctionPass(ID), RBI(nullptr), MRI(nullptr), TRI(nullptr), in RegBankSelect()
59 RBI = MF.getSubtarget().getRegBankInfo(); in init()
60 assert(RBI && "Cannot work without RegisterBankInfo"); in init()
93 const RegisterBank *CurRegBank = RBI->getRegBank(Reg, *MRI, *TRI); in assignmentMatch()
161 const RegisterBank *CurRegBank = RBI->getRegBank(MO.getReg(), *MRI, *TRI); in getRepairCost()
193 RBI->copyCost(*DesiredRegBrank, *CurRegBank, in getRepairCost()
506 RBI->applyMapping(OpdMapper); in applyMapping()
516 BestMapping = RBI->getInstrMapping(MI); in assignInstr()
523 RBI->getInstrPossibleMappings(MI); in assignInstr()
/external/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp490 for (BasicBlock::reverse_iterator RBI = Pred0->rbegin(), RBE = Pred0->rend(); in mergeStores() local
491 RBI != RBE;) { in mergeStores()
493 Instruction *I = &*RBI; in mergeStores()
494 ++RBI; in mergeStores()
513 RBI = Pred0->rbegin(); in mergeStores()
515 DEBUG(dbgs() << "Search again\n"; Instruction *I = &*RBI; I->dump()); in mergeStores()
/external/swiftshader/third_party/LLVM/tools/bugpoint/
DExtractFunction.cpp69 Function::iterator RBI = RFI->begin(); // Get iterator to corresponding BB in deleteInstructionFromProgram() local
70 std::advance(RBI, std::distance(PF->begin(), Function::const_iterator(PBB))); in deleteInstructionFromProgram()
72 BasicBlock::iterator RI = RBI->begin(); // Get iterator to corresponding inst in deleteInstructionFromProgram()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/bugpoint/
DExtractFunction.cpp97 Function::iterator RBI = RFI->begin(); // Get iterator to corresponding BB in deleteInstructionFromProgram() local
98 std::advance(RBI, std::distance(PF->begin(), Function::const_iterator(PBB))); in deleteInstructionFromProgram()
100 BasicBlock::iterator RI = RBI->begin(); // Get iterator to corresponding inst in deleteInstructionFromProgram()
/external/llvm/tools/bugpoint/
DExtractFunction.cpp98 Function::iterator RBI = RFI->begin(); // Get iterator to corresponding BB in deleteInstructionFromProgram() local
99 std::advance(RBI, std::distance(PF->begin(), Function::const_iterator(PBB))); in deleteInstructionFromProgram()
101 BasicBlock::iterator RI = RBI->begin(); // Get iterator to corresponding inst in deleteInstructionFromProgram()
/external/llvm/lib/CodeGen/MIRParser/
DMIRParser.cpp730 const RegisterBankInfo *RBI = MF.getSubtarget().getRegBankInfo(); in initNames2RegBanks() local
733 if (!RBI) in initNames2RegBanks()
735 for (unsigned I = 0, E = RBI->getNumRegBanks(); I < E; ++I) { in initNames2RegBanks()
736 const auto &RegBank = RBI->getRegBank(I); in initNames2RegBanks()

12