Home
last modified time | relevance | path

Searched refs:PtrMI (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUInstructionSelector.cpp396 const MachineInstr *PtrMI = MRI.getUniqueVRegDef(Load.getOperand(1).getReg()); in getAddrModeInfo() local
398 assert(PtrMI); in getAddrModeInfo()
400 if (PtrMI->getOpcode() != TargetOpcode::G_GEP) in getAddrModeInfo()
403 GEPInfo GEPInfo(*PtrMI); in getAddrModeInfo()
406 const MachineOperand &GEPOp = PtrMI->getOperand(i); in getAddrModeInfo()
424 getAddrModeInfo(*PtrMI, MRI, AddrInfo); in getAddrModeInfo()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64InstructionSelector.cpp1040 auto *PtrMI = MRI.getVRegDef(PtrReg); in select() local
1043 if (PtrMI->getOpcode() == TargetOpcode::G_GEP) { in select()
1044 if (auto COff = getConstantVRegVal(PtrMI->getOperand(2).getReg(), MRI)) { in select()
1049 unsigned Ptr2Reg = PtrMI->getOperand(1).getReg(); in select()
1051 PtrMI = MRI.getVRegDef(Ptr2Reg); in select()
1059 if (!Offset && PtrMI->getOpcode() == TargetOpcode::G_FRAME_INDEX) in select()
1060 I.getOperand(1).ChangeToFrameIndex(PtrMI->getOperand(1).getIndex()); in select()