Home
last modified time | relevance | path

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

123

/external/llvm-project/llvm/lib/Target/PowerPC/GISel/
DPPCInstructionSelector.cpp36 const PPCRegisterBankInfo &RBI);
48 const PPCRegisterBankInfo &RBI; member in __anon83597b350111::PPCInstructionSelector
67 const PPCRegisterBankInfo &RBI) in PPCInstructionSelector() argument
69 TRI(*STI.getRegisterInfo()), RBI(RBI), in PPCInstructionSelector()
89 const PPCRegisterBankInfo &RBI) { in createPPCInstructionSelector() argument
90 return new PPCInstructionSelector(TM, Subtarget, RBI); in createPPCInstructionSelector()
/external/llvm-project/llvm/lib/Target/ARM/
DARMInstructionSelector.cpp36 const ARMRegisterBankInfo &RBI);
76 const ARMRegisterBankInfo &RBI; member in __anon9959c9ef0111::ARMInstructionSelector
162 const ARMRegisterBankInfo &RBI) { in createARMInstructionSelector() argument
163 return new ARMInstructionSelector(TM, STI, RBI); in createARMInstructionSelector()
173 const ARMRegisterBankInfo &RBI) in ARMInstructionSelector() argument
175 TRI(*STI.getRegisterInfo()), TM(TM), RBI(RBI), STI(STI), Opcodes(STI), in ARMInstructionSelector()
188 const RegisterBankInfo &RBI) { in guessRegClass() argument
189 const RegisterBank *RegBank = RBI.getRegBank(Reg, MRI, TRI); in guessRegClass()
213 const RegisterBankInfo &RBI) { in selectCopy() argument
218 const TargetRegisterClass *RC = guessRegClass(DstReg, MRI, TRI, RBI); in selectCopy()
[all …]
/external/llvm-project/llvm/lib/Target/RISCV/
DRISCVInstructionSelector.cpp36 const RISCVRegisterBankInfo &RBI);
47 const RISCVRegisterBankInfo &RBI; member in __anonec89487d0111::RISCVInstructionSelector
71 const RISCVRegisterBankInfo &RBI) in RISCVInstructionSelector() argument
73 TRI(*STI.getRegisterInfo()), RBI(RBI), in RISCVInstructionSelector()
101 RISCVRegisterBankInfo &RBI) { in createRISCVInstructionSelector() argument
102 return new RISCVInstructionSelector(TM, Subtarget, RBI); in createRISCVInstructionSelector()
DRISCVSubtarget.cpp63 auto *RBI = new RISCVRegisterBankInfo(*getRegisterInfo()); in RISCVSubtarget() local
64 RegBankInfo.reset(RBI); in RISCVSubtarget()
66 *static_cast<const RISCVTargetMachine *>(&TM), *this, *RBI)); in RISCVSubtarget()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVInstructionSelector.cpp35 const RISCVRegisterBankInfo &RBI);
46 const RISCVRegisterBankInfo &RBI; member in __anon46b094710111::RISCVInstructionSelector
70 const RISCVRegisterBankInfo &RBI) in RISCVInstructionSelector() argument
72 TRI(*STI.getRegisterInfo()), RBI(RBI), in RISCVInstructionSelector()
100 RISCVRegisterBankInfo &RBI) { in createRISCVInstructionSelector() argument
101 return new RISCVInstructionSelector(TM, Subtarget, RBI); in createRISCVInstructionSelector()
DRISCVSubtarget.cpp59 auto *RBI = new RISCVRegisterBankInfo(*getRegisterInfo()); in RISCVSubtarget() local
60 RegBankInfo.reset(RBI); in RISCVSubtarget()
62 *static_cast<const RISCVTargetMachine *>(&TM), *this, *RBI)); in RISCVSubtarget()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMInstructionSelector.cpp36 const ARMRegisterBankInfo &RBI);
76 const ARMRegisterBankInfo &RBI; member in __anon71f13be30111::ARMInstructionSelector
162 const ARMRegisterBankInfo &RBI) { in createARMInstructionSelector() argument
163 return new ARMInstructionSelector(TM, STI, RBI); in createARMInstructionSelector()
175 const ARMRegisterBankInfo &RBI) in ARMInstructionSelector() argument
177 TRI(*STI.getRegisterInfo()), TM(TM), RBI(RBI), STI(STI), Opcodes(STI), in ARMInstructionSelector()
190 const RegisterBankInfo &RBI) { in guessRegClass() argument
191 const RegisterBank *RegBank = RBI.getRegBank(Reg, MRI, TRI); in guessRegClass()
215 const RegisterBankInfo &RBI) { in selectCopy() argument
220 const TargetRegisterClass *RC = guessRegClass(DstReg, MRI, TRI, RBI); in selectCopy()
[all …]
/external/llvm-project/llvm/lib/Target/Mips/
DMipsInstructionSelector.cpp36 const MipsRegisterBankInfo &RBI);
63 const MipsRegisterBankInfo &RBI; member in __anon06c298e10111::MipsInstructionSelector
82 const MipsRegisterBankInfo &RBI) in MipsInstructionSelector() argument
84 TRI(*STI.getRegisterInfo()), RBI(RBI), in MipsInstructionSelector()
97 return RBI.getRegBank(Reg, MRI, TRI)->getID() == Mips::GPRBRegBankID; in isRegInGprb()
102 return RBI.getRegBank(Reg, MRI, TRI)->getID() == Mips::FPRBRegBankID; in isRegInFprb()
112 if (!RBI.constrainGenericRegister(DstReg, *RC, MRI)) { in selectCopy()
152 return constrainSelectedInstRegOperands(*Inst, TII, TRI, RBI); in materialize32BitImm()
158 return constrainSelectedInstRegOperands(*Inst, TII, TRI, RBI); in materialize32BitImm()
165 return constrainSelectedInstRegOperands(*Inst, TII, TRI, RBI); in materialize32BitImm()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64InstructionSelector.cpp53 const AArch64RegisterBankInfo &RBI);
294 const AArch64RegisterBankInfo &RBI; member in __anonb1ac26350111::AArch64InstructionSelector
317 const AArch64RegisterBankInfo &RBI) in AArch64InstructionSelector() argument
319 TRI(*STI.getRegisterInfo()), RBI(RBI), in AArch64InstructionSelector()
333 const RegisterBankInfo &RBI, in getRegClassForTypeOnBank() argument
431 const AArch64RegisterBankInfo &RBI, in unsupportedBinOp() argument
457 const RegisterBank *OpBank = RBI.getRegBank(MO.getReg(), MRI, TRI); in unsupportedBinOp()
586 const RegisterBankInfo &RBI) { in isValidCopy() argument
589 const unsigned DstSize = RBI.getSizeInBits(DstReg, MRI, TRI); in isValidCopy()
590 const unsigned SrcSize = RBI.getSizeInBits(SrcReg, MRI, TRI); in isValidCopy()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsInstructionSelector.cpp36 const MipsRegisterBankInfo &RBI);
57 const MipsRegisterBankInfo &RBI; member in __anon62fe57d50111::MipsInstructionSelector
76 const MipsRegisterBankInfo &RBI) in MipsInstructionSelector() argument
78 TRI(*STI.getRegisterInfo()), RBI(RBI), in MipsInstructionSelector()
91 return RBI.getRegBank(Reg, MRI, TRI)->getID() == Mips::GPRBRegBankID; in isRegInGprb()
96 return RBI.getRegBank(Reg, MRI, TRI)->getID() == Mips::FPRBRegBankID; in isRegInFprb()
106 if (!RBI.constrainGenericRegister(DstReg, *RC, MRI)) { in selectCopy()
146 return constrainSelectedInstRegOperands(*Inst, TII, TRI, RBI); in materialize32BitImm()
152 return constrainSelectedInstRegOperands(*Inst, TII, TRI, RBI); in materialize32BitImm()
159 return constrainSelectedInstRegOperands(*Inst, TII, TRI, RBI); in materialize32BitImm()
[all …]
/external/llvm-project/llvm/lib/Target/AArch64/GISel/
DAArch64InstructionSelector.cpp59 const AArch64RegisterBankInfo &RBI);
415 const AArch64RegisterBankInfo &RBI; member in __anon128cdb240111::AArch64InstructionSelector
443 const AArch64RegisterBankInfo &RBI) in AArch64InstructionSelector() argument
445 TRI(*STI.getRegisterInfo()), RBI(RBI), in AArch64InstructionSelector()
459 const RegisterBankInfo &RBI, in getRegClassForTypeOnBank() argument
590 const AArch64RegisterBankInfo &RBI, in unsupportedBinOp() argument
616 const RegisterBank *OpBank = RBI.getRegBank(MO.getReg(), MRI, TRI); in unsupportedBinOp()
745 const RegisterBankInfo &RBI) { in isValidCopy() argument
748 const unsigned DstSize = RBI.getSizeInBits(DstReg, MRI, TRI); in isValidCopy()
749 const unsigned SrcSize = RBI.getSizeInBits(SrcReg, MRI, TRI); in isValidCopy()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InstructionSelector.cpp62 const X86RegisterBankInfo &RBI);
135 const X86RegisterBankInfo &RBI; member in __anonee8a962f0111::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 …]
/external/llvm-project/llvm/lib/Target/X86/
DX86InstructionSelector.cpp63 const X86RegisterBankInfo &RBI);
136 const X86RegisterBankInfo &RBI; member in __anon15f3243b0111::X86InstructionSelector
155 const X86RegisterBankInfo &RBI) in X86InstructionSelector() argument
157 TRI(*STI.getRegisterInfo()), RBI(RBI), in X86InstructionSelector()
200 const RegisterBank &RegBank = *RBI.getRegBank(Reg, MRI, TRI); in getRegClass()
235 const unsigned DstSize = RBI.getSizeInBits(DstReg, MRI, TRI); in selectCopy()
236 const RegisterBank &DstRegBank = *RBI.getRegBank(DstReg, MRI, TRI); in selectCopy()
239 const unsigned SrcSize = RBI.getSizeInBits(SrcReg, MRI, TRI); in selectCopy()
240 const RegisterBank &SrcRegBank = *RBI.getRegBank(SrcReg, MRI, TRI); in selectCopy()
275 DstSize <= RBI.getSizeInBits(SrcReg, MRI, TRI))) && in selectCopy()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUInstructionSelector.cpp50 const GCNSubtarget &STI, const AMDGPURegisterBankInfo &RBI, in AMDGPUInstructionSelector() argument
53 TRI(*STI.getRegisterInfo()), RBI(RBI), TM(TM), in AMDGPUInstructionSelector()
107 return RBI.constrainGenericRegister(DstReg, *RC, *MRI); in selectCOPY()
112 if (!RBI.constrainGenericRegister(DstReg, *TRI.getBoolRC(), *MRI)) in selectCOPY()
141 if (RC && !RBI.constrainGenericRegister(DstReg, *RC, *MRI)) in selectCOPY()
153 if (SrcRC && !RBI.constrainGenericRegister(SrcReg, *SrcRC, *MRI)) in selectCOPY()
168 RBI.constrainGenericRegister(MO.getReg(), *RC, *MRI); in selectCOPY()
200 return RBI.constrainGenericRegister(DefReg, *DefRC, *MRI); in selectPHI()
256 unsigned Size = RBI.getSizeInBits(DstReg, *MRI, TRI); in selectG_AND_OR_XOR()
258 const RegisterBank *DstRB = RBI.getRegBank(DstReg, *MRI, TRI); in selectG_AND_OR_XOR()
[all …]
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUInstructionSelector.cpp56 const GCNSubtarget &STI, const AMDGPURegisterBankInfo &RBI, in AMDGPUInstructionSelector() argument
59 TRI(*STI.getRegisterInfo()), RBI(RBI), TM(TM), in AMDGPUInstructionSelector()
119 return RBI.constrainGenericRegister(Dst.getReg(), *DstRC, *MRI) && in constrainCopyLikeIntrin()
120 RBI.constrainGenericRegister(Src.getReg(), *SrcRC, *MRI); in constrainCopyLikeIntrin()
139 return RBI.constrainGenericRegister(DstReg, *RC, *MRI); in selectCOPY()
144 if (!RBI.constrainGenericRegister(DstReg, *TRI.getBoolRC(), *MRI)) in selectCOPY()
173 if (RC && !RBI.constrainGenericRegister(DstReg, *RC, *MRI)) in selectCOPY()
187 RBI.constrainGenericRegister(MO.getReg(), *RC, *MRI); in selectCOPY()
227 return RBI.constrainGenericRegister(DefReg, *DefRC, *MRI); in selectPHI()
280 unsigned Size = RBI.getSizeInBits(DstReg, *MRI, TRI); in selectG_AND_OR_XOR()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DUtils.h47 const RegisterBankInfo &RBI, unsigned Reg,
61 const RegisterBankInfo &RBI,
79 const RegisterBankInfo &RBI,
95 const RegisterBankInfo &RBI);
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DUtils.h49 const RegisterBankInfo &RBI, Register Reg,
63 const RegisterBankInfo &RBI,
81 const RegisterBankInfo &RBI,
97 const RegisterBankInfo &RBI);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp307 for (BasicBlock::reverse_iterator RBI = Pred0->rbegin(), RBE = Pred0->rend(); in mergeStores() local
308 RBI != RBE;) { in mergeStores()
310 Instruction *I = &*RBI; in mergeStores()
311 ++RBI; in mergeStores()
339 RBI = Pred0->rbegin(); in mergeStores()
341 LLVM_DEBUG(dbgs() << "Search again\n"; Instruction *I = &*RBI; I->dump()); in mergeStores()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp307 for (BasicBlock::reverse_iterator RBI = Pred0->rbegin(), RBE = Pred0->rend(); in mergeStores() local
308 RBI != RBE;) { in mergeStores()
310 Instruction *I = &*RBI; in mergeStores()
311 ++RBI; in mergeStores()
339 RBI = Pred0->rbegin(); in mergeStores()
341 LLVM_DEBUG(dbgs() << "Search again\n"; Instruction *I = &*RBI; I->dump()); in mergeStores()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DUtils.cpp32 const RegisterBankInfo &RBI, unsigned Reg, in constrainRegToClass() argument
34 if (!RBI.constrainGenericRegister(Reg, RegClass, MRI)) in constrainRegToClass()
43 const RegisterBankInfo &RBI, MachineInstr &InsertPt, in constrainOperandRegClass() argument
50 unsigned ConstrainedReg = constrainRegToClass(MRI, TII, RBI, Reg, RegClass); in constrainOperandRegClass()
73 const RegisterBankInfo &RBI, MachineInstr &InsertPt, const MCInstrDesc &II, in constrainOperandRegClass() argument
107 return constrainOperandRegClass(MF, TRI, MRI, TII, RBI, InsertPt, *RegClass, in constrainOperandRegClass()
114 const RegisterBankInfo &RBI) { in constrainSelectedInstRegOperands() argument
144 MO.setReg(constrainOperandRegClass(MF, TRI, MRI, TII, RBI, I, I.getDesc(), in constrainSelectedInstRegOperands()
DRegBankSelect.cpp83 RBI = MF.getSubtarget().getRegBankInfo(); in init()
84 assert(RBI && "Cannot work without RegisterBankInfo"); in init()
121 const RegisterBank *CurRegBank = RBI->getRegBank(Reg, *MRI, *TRI); in assignmentMatch()
244 const RegisterBank *CurRegBank = RBI->getRegBank(MO.getReg(), *MRI, *TRI); in getRepairCost()
260 return RBI->getBreakDownCost(ValMapping, CurRegBank); in getRepairCost()
279 unsigned Cost = RBI->copyCost(*DesiredRegBank, *CurRegBank, in getRepairCost()
280 RBI->getSizeInBits(MO.getReg(), *MRI, *TRI)); in getRepairCost()
618 RBI->applyMapping(OpdMapper); in applyMapping()
630 BestMapping = &RBI->getInstrMapping(MI); in assignInstr()
637 RBI->getInstrPossibleMappings(MI); in assignInstr()
DInstructionSelector.cpp39 const RegisterBankInfo &RBI) const { in constrainOperandRegToRegClass()
44 return constrainOperandRegClass(MF, TRI, MRI, TII, RBI, I, RC, in constrainOperandRegToRegClass()
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DRegBankSelect.cpp83 RBI = MF.getSubtarget().getRegBankInfo(); in init()
84 assert(RBI && "Cannot work without RegisterBankInfo"); in init()
121 const RegisterBank *CurRegBank = RBI->getRegBank(Reg, *MRI, *TRI); in assignmentMatch()
244 const RegisterBank *CurRegBank = RBI->getRegBank(MO.getReg(), *MRI, *TRI); in getRepairCost()
260 return RBI->getBreakDownCost(ValMapping, CurRegBank); in getRepairCost()
279 unsigned Cost = RBI->copyCost(*DesiredRegBank, *CurRegBank, in getRepairCost()
280 RBI->getSizeInBits(MO.getReg(), *MRI, *TRI)); in getRepairCost()
618 RBI->applyMapping(OpdMapper); in applyMapping()
630 BestMapping = &RBI->getInstrMapping(MI); in assignInstr()
637 RBI->getInstrPossibleMappings(MI); in assignInstr()
DInstructionSelector.cpp39 const RegisterBankInfo &RBI) const { in constrainOperandRegToRegClass()
44 return constrainOperandRegClass(MF, TRI, MRI, TII, RBI, I, RC, in constrainOperandRegToRegClass()
/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()

123