/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | CombinerHelper.cpp | 350 MachineIRBuilder &Builder, MachineInstr &DefMI, MachineOperand &UseMO, in InsertInsnsWithoutSideEffectsBeforeUse() argument 352 MachineOperand &UseMO)> in InsertInsnsWithoutSideEffectsBeforeUse() 354 MachineInstr &UseMI = *UseMO.getParent(); in InsertInsnsWithoutSideEffectsBeforeUse() 360 MachineOperand *PredBB = std::next(&UseMO); in InsertInsnsWithoutSideEffectsBeforeUse() 368 Inserter(InsertBB, std::next(InsertPt), UseMO); in InsertInsnsWithoutSideEffectsBeforeUse() 373 Inserter(InsertBB, InsertBB->getFirstNonPHI(), UseMO); in InsertInsnsWithoutSideEffectsBeforeUse() 462 MachineOperand &UseMO) { in applyCombineExtendingLoads() argument 465 Observer.changingInstr(*UseMO.getParent()); in applyCombineExtendingLoads() 466 UseMO.setReg(PreviouslyEmitted->getOperand(0).getReg()); in applyCombineExtendingLoads() 467 Observer.changedInstr(*UseMO.getParent()); in applyCombineExtendingLoads() [all …]
|
/external/llvm/lib/CodeGen/ |
D | MachineCombiner.cpp | 201 MachineInstr *UseMO = RI->getParent(); in getLatency() local 203 if (UseMO && BlockTrace.isDepInTrace(*Root, *UseMO)) { in getLatency() 205 NewRoot, NewRoot->findRegisterDefOperandIdx(MO.getReg()), UseMO, in getLatency() 206 UseMO->findRegisterUseOperandIdx(MO.getReg())); in getLatency()
|
D | PeepholeOptimizer.cpp | 454 for (MachineOperand &UseMO : MRI->use_nodbg_operands(SrcReg)) { in INITIALIZE_PASS_DEPENDENCY() 455 MachineInstr *UseMI = UseMO.getParent(); in INITIALIZE_PASS_DEPENDENCY() 465 if (UseSrcSubIdx && UseMO.getSubReg() != SubIdx) in INITIALIZE_PASS_DEPENDENCY() 492 Uses.push_back(&UseMO); in INITIALIZE_PASS_DEPENDENCY() 496 Uses.push_back(&UseMO); in INITIALIZE_PASS_DEPENDENCY() 500 ExtendedUses.push_back(&UseMO); in INITIALIZE_PASS_DEPENDENCY() 527 MachineOperand *UseMO = Uses[i]; in INITIALIZE_PASS_DEPENDENCY() local 528 MachineInstr *UseMI = UseMO->getParent(); in INITIALIZE_PASS_DEPENDENCY() 548 UseMO->setReg(NewVR); in INITIALIZE_PASS_DEPENDENCY()
|
D | TwoAddressInstructionPass.cpp | 237 for (MachineOperand &UseMO : MRI->use_nodbg_operands(SavedReg)) { in sink3AddrInstruction() 238 if (!UseMO.isKill()) in sink3AddrInstruction() 240 KillMI = UseMO.getParent(); in sink3AddrInstruction() 1749 MachineOperand &UseMO = MI.getOperand(i); in eliminateRegSequence() local 1750 unsigned SrcReg = UseMO.getReg(); in eliminateRegSequence() 1753 if (UseMO.isUndef()) in eliminateRegSequence() 1758 bool isKill = UseMO.isKill(); in eliminateRegSequence() 1763 UseMO.setIsKill(false); in eliminateRegSequence() 1772 .addOperand(UseMO); in eliminateRegSequence()
|
D | MachineInstr.cpp | 1401 MachineOperand &UseMO = getOperand(UseIdx); in tieOperands() local 1403 assert(UseMO.isUse() && "UseIdx must be a use operand"); in tieOperands() 1405 assert(!UseMO.isTied() && "Use is already tied to another def"); in tieOperands() 1408 UseMO.TiedTo = DefIdx + 1; in tieOperands() 1414 UseMO.TiedTo = TiedMax; in tieOperands() 1439 const MachineOperand &UseMO = getOperand(i); in findTiedOperandIdx() local 1440 if (UseMO.isReg() && UseMO.isUse() && UseMO.TiedTo == OpIdx + 1) in findTiedOperandIdx()
|
D | RegisterCoalescer.cpp | 748 MachineOperand &UseMO = *UI; in removeCopyByCommutingDef() local 750 if (UseMO.isUndef()) in removeCopyByCommutingDef() 752 MachineInstr *UseMI = UseMO.getParent(); in removeCopyByCommutingDef() 756 UseMO.setReg(NewReg); in removeCopyByCommutingDef() 765 UseMO.setIsKill(false); in removeCopyByCommutingDef() 767 UseMO.substPhysReg(NewReg, *TRI); in removeCopyByCommutingDef() 769 UseMO.setReg(NewReg); in removeCopyByCommutingDef() 1122 for (MachineOperand &UseMO : MRI->use_operands(SrcReg)) { in reMaterializeTrivialDef() 1123 MachineInstr *UseMI = UseMO.getParent(); in reMaterializeTrivialDef() 1125 UseMO.setReg(DstReg); in reMaterializeTrivialDef()
|
D | TailDuplicator.cpp | 179 MachineOperand &UseMO = *UI; in tailDuplicateAndUpdate() local 180 MachineInstr *UseMI = UseMO.getParent(); in tailDuplicateAndUpdate() 192 SSAUpdate.RewriteUse(UseMO); in tailDuplicateAndUpdate()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineCombiner.cpp | 243 MachineInstr *UseMO = RI->getParent(); in getLatency() local 245 if (UseMO && BlockTrace.isDepInTrace(*Root, *UseMO)) { in getLatency() 247 NewRoot, NewRoot->findRegisterDefOperandIdx(MO.getReg()), UseMO, in getLatency() 248 UseMO->findRegisterUseOperandIdx(MO.getReg())); in getLatency()
|
D | PeepholeOptimizer.cpp | 500 for (MachineOperand &UseMO : MRI->use_nodbg_operands(SrcReg)) { in INITIALIZE_PASS_DEPENDENCY() 501 MachineInstr *UseMI = UseMO.getParent(); in INITIALIZE_PASS_DEPENDENCY() 511 if (UseSrcSubIdx && UseMO.getSubReg() != SubIdx) in INITIALIZE_PASS_DEPENDENCY() 538 Uses.push_back(&UseMO); in INITIALIZE_PASS_DEPENDENCY() 542 Uses.push_back(&UseMO); in INITIALIZE_PASS_DEPENDENCY() 546 ExtendedUses.push_back(&UseMO); in INITIALIZE_PASS_DEPENDENCY() 573 MachineOperand *UseMO = Uses[i]; in INITIALIZE_PASS_DEPENDENCY() local 574 MachineInstr *UseMI = UseMO->getParent(); in INITIALIZE_PASS_DEPENDENCY() 594 UseMO->setReg(NewVR); in INITIALIZE_PASS_DEPENDENCY()
|
D | TwoAddressInstructionPass.cpp | 265 for (MachineOperand &UseMO : MRI->use_nodbg_operands(SavedReg)) { in sink3AddrInstruction() 266 if (!UseMO.isKill()) in sink3AddrInstruction() 268 KillMI = UseMO.getParent(); in sink3AddrInstruction() 1817 MachineOperand &UseMO = MI.getOperand(i); in eliminateRegSequence() local 1818 Register SrcReg = UseMO.getReg(); in eliminateRegSequence() 1821 if (UseMO.isUndef()) in eliminateRegSequence() 1826 bool isKill = UseMO.isKill(); in eliminateRegSequence() 1831 UseMO.setIsKill(false); in eliminateRegSequence() 1840 .add(UseMO); in eliminateRegSequence()
|
D | MachineInstr.cpp | 1052 MachineOperand &UseMO = getOperand(UseIdx); in tieOperands() local 1054 assert(UseMO.isUse() && "UseIdx must be a use operand"); in tieOperands() 1056 assert(!UseMO.isTied() && "Use is already tied to another def"); in tieOperands() 1059 UseMO.TiedTo = DefIdx + 1; in tieOperands() 1065 UseMO.TiedTo = TiedMax; in tieOperands() 1090 const MachineOperand &UseMO = getOperand(i); in findTiedOperandIdx() local 1091 if (UseMO.isReg() && UseMO.isUse() && UseMO.TiedTo == OpIdx + 1) in findTiedOperandIdx()
|
D | RegisterCoalescer.cpp | 891 MachineOperand &UseMO = *UI; in removeCopyByCommutingDef() local 893 if (UseMO.isUndef()) in removeCopyByCommutingDef() 895 MachineInstr *UseMI = UseMO.getParent(); in removeCopyByCommutingDef() 899 UseMO.setReg(NewReg); in removeCopyByCommutingDef() 908 UseMO.setIsKill(false); in removeCopyByCommutingDef() 910 UseMO.substPhysReg(NewReg, *TRI); in removeCopyByCommutingDef() 912 UseMO.setReg(NewReg); in removeCopyByCommutingDef() 1509 for (MachineOperand &UseMO : MRI->use_operands(SrcReg)) { in reMaterializeTrivialDef() 1510 MachineInstr *UseMI = UseMO.getParent(); in reMaterializeTrivialDef() 1513 UseMO.substPhysReg(DstReg, *TRI); in reMaterializeTrivialDef() [all …]
|
D | TailDuplicator.cpp | 218 MachineOperand &UseMO = *UI; in tailDuplicateAndUpdate() local 219 MachineInstr *UseMI = UseMO.getParent(); in tailDuplicateAndUpdate() 231 SSAUpdate.RewriteUse(UseMO); in tailDuplicateAndUpdate()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | MachineCombiner.cpp | 243 MachineInstr *UseMO = RI->getParent(); in getLatency() local 245 if (UseMO && BlockTrace.isDepInTrace(*Root, *UseMO)) { in getLatency() 247 NewRoot, NewRoot->findRegisterDefOperandIdx(MO.getReg()), UseMO, in getLatency() 248 UseMO->findRegisterUseOperandIdx(MO.getReg())); in getLatency()
|
D | PeepholeOptimizer.cpp | 503 for (MachineOperand &UseMO : MRI->use_nodbg_operands(SrcReg)) { in INITIALIZE_PASS_DEPENDENCY() 504 MachineInstr *UseMI = UseMO.getParent(); in INITIALIZE_PASS_DEPENDENCY() 514 if (UseSrcSubIdx && UseMO.getSubReg() != SubIdx) in INITIALIZE_PASS_DEPENDENCY() 541 Uses.push_back(&UseMO); in INITIALIZE_PASS_DEPENDENCY() 545 Uses.push_back(&UseMO); in INITIALIZE_PASS_DEPENDENCY() 549 ExtendedUses.push_back(&UseMO); in INITIALIZE_PASS_DEPENDENCY() 576 MachineOperand *UseMO = Uses[i]; in INITIALIZE_PASS_DEPENDENCY() local 577 MachineInstr *UseMI = UseMO->getParent(); in INITIALIZE_PASS_DEPENDENCY() 597 UseMO->setReg(NewVR); in INITIALIZE_PASS_DEPENDENCY()
|
D | MachineInstr.cpp | 1096 MachineOperand &UseMO = getOperand(UseIdx); in tieOperands() local 1098 assert(UseMO.isUse() && "UseIdx must be a use operand"); in tieOperands() 1100 assert(!UseMO.isTied() && "Use is already tied to another def"); in tieOperands() 1103 UseMO.TiedTo = DefIdx + 1; in tieOperands() 1111 UseMO.TiedTo = TiedMax; in tieOperands() 1136 const MachineOperand &UseMO = getOperand(i); in findTiedOperandIdx() local 1137 if (UseMO.isReg() && UseMO.isUse() && UseMO.TiedTo == OpIdx + 1) in findTiedOperandIdx()
|
D | RegisterCoalescer.cpp | 900 MachineOperand &UseMO = *UI; in removeCopyByCommutingDef() local 902 if (UseMO.isUndef()) in removeCopyByCommutingDef() 904 MachineInstr *UseMI = UseMO.getParent(); in removeCopyByCommutingDef() 908 UseMO.setReg(NewReg); in removeCopyByCommutingDef() 917 UseMO.setIsKill(false); in removeCopyByCommutingDef() 919 UseMO.substPhysReg(NewReg, *TRI); in removeCopyByCommutingDef() 921 UseMO.setReg(NewReg); in removeCopyByCommutingDef() 1534 for (MachineOperand &UseMO : MRI->use_operands(SrcReg)) { in reMaterializeTrivialDef() 1535 MachineInstr *UseMI = UseMO.getParent(); in reMaterializeTrivialDef() 1538 UseMO.substPhysReg(DstReg, *TRI); in reMaterializeTrivialDef() [all …]
|
D | TwoAddressInstructionPass.cpp | 1673 MachineOperand &UseMO = MI.getOperand(i); in eliminateRegSequence() local 1674 Register SrcReg = UseMO.getReg(); in eliminateRegSequence() 1677 if (UseMO.isUndef()) in eliminateRegSequence() 1682 bool isKill = UseMO.isKill(); in eliminateRegSequence() 1687 UseMO.setIsKill(false); in eliminateRegSequence() 1696 .add(UseMO); in eliminateRegSequence()
|
D | TailDuplicator.cpp | 220 MachineOperand &UseMO = *UI; in tailDuplicateAndUpdate() local 221 MachineInstr *UseMI = UseMO.getParent(); in tailDuplicateAndUpdate() 233 SSAUpdate.RewriteUse(UseMO); in tailDuplicateAndUpdate()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCVSXFMAMutate.cpp | 284 MachineOperand &UseMO = *UI; in processBlock() local 285 MachineInstr *UseMI = UseMO.getParent(); in processBlock() 292 UseMO.substVirtReg(KilledProdReg, KilledProdSubReg, *TRI); in processBlock()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCVSXFMAMutate.cpp | 285 MachineOperand &UseMO = *UI; in processBlock() local 286 MachineInstr *UseMI = UseMO.getParent(); in processBlock() 293 UseMO.substVirtReg(KilledProdReg, KilledProdSubReg, *TRI); in processBlock()
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCVSXFMAMutate.cpp | 285 MachineOperand &UseMO = *UI; in processBlock() local 286 MachineInstr *UseMI = UseMO.getParent(); in processBlock() 293 UseMO.substVirtReg(KilledProdReg, KilledProdSubReg, *TRI); in processBlock()
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | CombinerHelper.cpp | 335 MachineIRBuilder &Builder, MachineInstr &DefMI, MachineOperand &UseMO, in InsertInsnsWithoutSideEffectsBeforeUse() argument 337 MachineOperand &UseMO)> in InsertInsnsWithoutSideEffectsBeforeUse() 339 MachineInstr &UseMI = *UseMO.getParent(); in InsertInsnsWithoutSideEffectsBeforeUse() 345 MachineOperand *PredBB = std::next(&UseMO); in InsertInsnsWithoutSideEffectsBeforeUse() 353 Inserter(InsertBB, std::next(InsertPt), UseMO); in InsertInsnsWithoutSideEffectsBeforeUse() 358 Inserter(InsertBB, InsertBB->getFirstNonPHI(), UseMO); in InsertInsnsWithoutSideEffectsBeforeUse() 460 MachineOperand &UseMO) { in applyCombineExtendingLoads() argument 463 Observer.changingInstr(*UseMO.getParent()); in applyCombineExtendingLoads() 464 UseMO.setReg(PreviouslyEmitted->getOperand(0).getReg()); in applyCombineExtendingLoads() 465 Observer.changedInstr(*UseMO.getParent()); in applyCombineExtendingLoads() [all …]
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86LoadValueInjectionLoadHardening.cpp | 395 MachineOperand &UseMO = Use.Addr->getOp(); in getGadgetGraph() local 396 MachineInstr &UseMI = *UseMO.getParent(); in getGadgetGraph() 397 assert(UseMO.isReg()); in getGadgetGraph() 407 if (instrUsesRegToAccessMemory(UseMI, UseMO.getReg()) || in getGadgetGraph() 409 instrUsesRegToBranch(UseMI, UseMO.getReg()))) { in getGadgetGraph()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | SIPeepholeSDWA.cpp | 296 for (MachineOperand &UseMO : MRI->use_nodbg_operands(Reg->getReg())) { in findSingleRegUse() 298 if (!isSameReg(UseMO, *Reg)) in findSingleRegUse() 303 ResMO = &UseMO; in findSingleRegUse() 304 } else if (ResMO->getParent() != UseMO.getParent()) { in findSingleRegUse()
|