/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | LiveRangeEdit.cpp | 82 bool LiveRangeEdit::allUsesAvailableAt(const MachineInstr *OrigMI, in allUsesAvailableAt() argument 88 for (unsigned i = 0, e = OrigMI->getNumOperands(); i != e; ++i) { in allUsesAvailableAt() 89 const MachineOperand &MO = OrigMI->getOperand(i); in allUsesAvailableAt() 123 if (RM.OrigMI) in canRematerializeAt() 124 DefIdx = lis.getInstructionIndex(RM.OrigMI); in canRematerializeAt() 127 RM.OrigMI = lis.getInstructionFromIndex(DefIdx); in canRematerializeAt() 128 assert(RM.OrigMI && "No defining instruction for remattable value"); in canRematerializeAt() 132 if (cheapAsAMove && !RM.OrigMI->getDesc().isAsCheapAsAMove()) in canRematerializeAt() 136 if (!allUsesAvailableAt(RM.OrigMI, DefIdx, UseIdx, lis)) in canRematerializeAt() 150 assert(RM.OrigMI && "Invalid remat"); in rematerializeAt() [all …]
|
D | LiveRangeEdit.h | 81 bool allUsesAvailableAt(const MachineInstr *OrigMI, SlotIndex OrigIdx, 151 MachineInstr *OrigMI; // Instruction defining ParentVNI. member 152 explicit Remat(VNInfo *ParentVNI) : ParentVNI(ParentVNI), OrigMI(0) {} in Remat()
|
D | InlineSpiller.cpp | 857 RM.OrigMI = SibI->second.DefMI; in reMaterializeFor() 882 if (RM.OrigMI->getDesc().canFoldAsLoad() && in reMaterializeFor() 883 foldMemoryOperand(MI, Ops, RM.OrigMI)) { in reMaterializeFor()
|
/external/llvm/lib/CodeGen/ |
D | LiveRangeEdit.cpp | 85 bool LiveRangeEdit::allUsesAvailableAt(const MachineInstr *OrigMI, in allUsesAvailableAt() argument 90 for (unsigned i = 0, e = OrigMI->getNumOperands(); i != e; ++i) { in allUsesAvailableAt() 91 const MachineOperand &MO = OrigMI->getOperand(i); in allUsesAvailableAt() 97 if (MRI.isConstantPhysReg(MO.getReg(), *OrigMI->getParent()->getParent())) in allUsesAvailableAt() 129 assert(RM.OrigMI && "No defining instruction for remattable value"); in canRematerializeAt() 130 DefIdx = LIS.getInstructionIndex(*RM.OrigMI); in canRematerializeAt() 133 if (cheapAsAMove && !TII.isAsCheapAsAMove(*RM.OrigMI)) in canRematerializeAt() 137 if (!allUsesAvailableAt(RM.OrigMI, DefIdx, UseIdx)) in canRematerializeAt() 149 assert(RM.OrigMI && "Invalid remat"); in rematerializeAt() 150 TII.reMaterialize(MBB, MI, DestReg, 0, *RM.OrigMI, tri); in rematerializeAt()
|
D | InlineSpiller.cpp | 531 RM.OrigMI = LIS.getInstructionFromIndex(OrigVNI->def); in reMaterializeFor() 549 if (RM.OrigMI->canFoldAsLoad() && in reMaterializeFor() 550 foldMemoryOperand(Ops, RM.OrigMI)) { in reMaterializeFor()
|
D | SplitKit.cpp | 459 RM.OrigMI = LIS.getInstructionFromIndex(OrigVNI->def); in defFromParent()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | LiveRangeEdit.cpp | 107 bool LiveRangeEdit::allUsesAvailableAt(const MachineInstr *OrigMI, in allUsesAvailableAt() argument 112 for (unsigned i = 0, e = OrigMI->getNumOperands(); i != e; ++i) { in allUsesAvailableAt() 113 const MachineOperand &MO = OrigMI->getOperand(i); in allUsesAvailableAt() 151 assert(RM.OrigMI && "No defining instruction for remattable value"); in canRematerializeAt() 152 DefIdx = LIS.getInstructionIndex(*RM.OrigMI); in canRematerializeAt() 155 if (cheapAsAMove && !TII.isAsCheapAsAMove(*RM.OrigMI)) in canRematerializeAt() 159 if (!allUsesAvailableAt(RM.OrigMI, DefIdx, UseIdx)) in canRematerializeAt() 171 assert(RM.OrigMI && "Invalid remat"); in rematerializeAt() 172 TII.reMaterialize(MBB, MI, DestReg, 0, *RM.OrigMI, tri); in rematerializeAt()
|
D | InlineSpiller.cpp | 547 RM.OrigMI = LIS.getInstructionFromIndex(OrigVNI->def); in reMaterializeFor() 565 if (RM.OrigMI->canFoldAsLoad() && in reMaterializeFor() 566 foldMemoryOperand(Ops, RM.OrigMI)) { in reMaterializeFor()
|
D | SplitKit.cpp | 648 RM.OrigMI = LIS.getInstructionFromIndex(OrigVNI->def); in defFromParent()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86FixupBWInsts.cpp | 83 bool getSuperRegDestIfDead(MachineInstr *OrigMI, 174 bool FixupBWInstPass::getSuperRegDestIfDead(MachineInstr *OrigMI, in getSuperRegDestIfDead() argument 178 unsigned OrigDestReg = OrigMI->getOperand(0).getReg(); in getSuperRegDestIfDead() 237 unsigned Opc = OrigMI->getOpcode(); (void)Opc; in getSuperRegDestIfDead() 246 for (auto &MO: OrigMI->implicit_operands()) { in getSuperRegDestIfDead()
|
/external/llvm/include/llvm/CodeGen/ |
D | LiveRangeEdit.h | 92 bool allUsesAvailableAt(const MachineInstr *OrigMI, SlotIndex OrigIdx, 196 MachineInstr *OrigMI; // Instruction defining OrigVNI. It contains the member 198 explicit Remat(VNInfo *ParentVNI) : ParentVNI(ParentVNI), OrigMI(nullptr) {} in Remat()
|
/external/llvm/lib/Target/X86/ |
D | X86FixupBWInsts.cpp | 85 bool getSuperRegDestIfDead(MachineInstr *OrigMI, 183 bool FixupBWInstPass::getSuperRegDestIfDead(MachineInstr *OrigMI, in getSuperRegDestIfDead() argument 187 unsigned OrigDestReg = OrigMI->getOperand(0).getReg(); in getSuperRegDestIfDead()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/ |
D | LiveRangeEdit.h | 102 bool allUsesAvailableAt(const MachineInstr *OrigMI, SlotIndex OrigIdx, 204 MachineInstr *OrigMI = nullptr; // Instruction defining OrigVNI. It contains member
|