Home
last modified time | relevance | path

Searched refs:FromReg (Results 1 – 25 of 26) sorted by relevance

12

/external/llvm/lib/Target/WebAssembly/
DWebAssemblyStoreResults.cpp79 unsigned FromReg, unsigned ToReg, in ReplaceDominatedUses() argument
85 LiveInterval *FromLI = &LIS.getInterval(FromReg); in ReplaceDominatedUses()
93 for (auto I = MRI.use_begin(FromReg), E = MRI.use_end(); I != E;) { in ReplaceDominatedUses()
134 MI.addRegisterKilled(FromReg, in ReplaceDominatedUses()
147 unsigned FromReg = MI.getOperand(WebAssembly::StoreValueOperandNo).getReg(); in optimizeStore() local
148 return ReplaceDominatedUses(MBB, MI, FromReg, ToReg, MRI, MDT, LIS); in optimizeStore()
172 unsigned FromReg = MI.getOperand(2).getReg(); in optimizeCall() local
174 if (MRI.getRegClass(FromReg) != MRI.getRegClass(ToReg)) in optimizeCall()
177 return ReplaceDominatedUses(MBB, MI, FromReg, ToReg, MRI, MDT, LIS); in optimizeCall()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyStoreResults.cpp80 unsigned FromReg, unsigned ToReg, in ReplaceDominatedUses() argument
86 LiveInterval *FromLI = &LIS.getInterval(FromReg); in ReplaceDominatedUses()
94 for (auto I = MRI.use_nodbg_begin(FromReg), E = MRI.use_nodbg_end(); I != E;) { in ReplaceDominatedUses()
135 MI.addRegisterKilled(FromReg, in ReplaceDominatedUses()
164 unsigned FromReg = MI.getOperand(2).getReg(); in optimizeCall() local
166 if (MRI.getRegClass(FromReg) != MRI.getRegClass(ToReg)) in optimizeCall()
169 return ReplaceDominatedUses(MBB, MI, FromReg, ToReg, MRI, MDT, LIS); in optimizeCall()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DMCRegisterInfo.cpp74 if (I == M+Size || I->FromReg != RegNum) in getDwarfRegNum()
87 assert(I != M+Size && I->FromReg == RegNum && "Invalid RegNum"); in getLLVMRegNum()
99 if (I == M+Size || I->FromReg != RegNum) in getLLVMRegNumFromEH()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DMachineRegisterInfo.cpp136 void MachineRegisterInfo::replaceRegWith(unsigned FromReg, unsigned ToReg) { in replaceRegWith() argument
137 assert(FromReg != ToReg && "Cannot replace a reg with itself"); in replaceRegWith()
140 for (reg_iterator I = reg_begin(FromReg), E = reg_end(); I != E; ) { in replaceRegWith()
DTwoAddressInstructionPass.cpp717 unsigned FromReg = VirtRegPairs.back(); in ScanUses() local
719 bool isNew = DstRegMap.insert(std::make_pair(FromReg, ToReg)).second; in ScanUses()
721 assert(DstRegMap[FromReg] == ToReg &&"Can't map to two dst registers!"); in ScanUses()
722 ToReg = FromReg; in ScanUses()
DMachineInstr.cpp1132 void MachineInstr::substituteRegister(unsigned FromReg, in substituteRegister() argument
1141 if (!MO.isReg() || MO.getReg() != FromReg) in substituteRegister()
1148 if (!MO.isReg() || MO.getReg() != FromReg) in substituteRegister()
/external/llvm/lib/MC/
DMCRegisterInfo.cpp67 if (I == M+Size || I->FromReg != RegNum) in getDwarfRegNum()
78 assert(I != M+Size && I->FromReg == RegNum && "Invalid RegNum"); in getLLVMRegNum()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/
DMCRegisterInfo.h142 unsigned FromReg; member
145 bool operator<(DwarfLLVMRegPair RHS) const { return FromReg < RHS.FromReg; }
/external/llvm/include/llvm/MC/
DMCRegisterInfo.h142 unsigned FromReg; member
145 bool operator<(DwarfLLVMRegPair RHS) const { return FromReg < RHS.FromReg; }
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DSplitKit.h418 SlotIndex buildCopy(unsigned FromReg, unsigned ToReg, LaneBitmask LaneMask,
422 SlotIndex buildSingleSubRegCopy(unsigned FromReg, unsigned ToReg,
DMachineRegisterInfo.cpp382 void MachineRegisterInfo::replaceRegWith(unsigned FromReg, unsigned ToReg) { in replaceRegWith() argument
383 assert(FromReg != ToReg && "Cannot replace a reg with itself"); in replaceRegWith()
388 for (reg_iterator I = reg_begin(FromReg), E = reg_end(); I != E; ) { in replaceRegWith()
DTwoAddressInstructionPass.cpp130 bool isRevCopyChain(unsigned FromReg, unsigned ToReg, int Maxlen);
365 bool TwoAddressInstructionPass::isRevCopyChain(unsigned FromReg, unsigned ToReg, in isRevCopyChain() argument
367 unsigned TmpReg = FromReg; in isRevCopyChain()
806 unsigned FromReg = VirtRegPairs.back(); in scanUses() local
808 bool isNew = DstRegMap.insert(std::make_pair(FromReg, ToReg)).second; in scanUses()
810 assert(DstRegMap[FromReg] == ToReg &&"Can't map to two dst registers!"); in scanUses()
811 ToReg = FromReg; in scanUses()
DSplitKit.cpp513 SlotIndex SplitEditor::buildSingleSubRegCopy(unsigned FromReg, unsigned ToReg, in buildSingleSubRegCopy() argument
521 .addReg(FromReg, 0, SubIdx); in buildSingleSubRegCopy()
538 SlotIndex SplitEditor::buildCopy(unsigned FromReg, unsigned ToReg, in buildCopy() argument
542 if (LaneMask.all() || LaneMask == MRI.getMaxLaneMaskForVReg(FromReg)) { in buildCopy()
545 BuildMI(MBB, InsertBefore, DebugLoc(), Desc, ToReg).addReg(FromReg); in buildCopy()
560 const TargetRegisterClass *RC = MRI.getRegClass(FromReg); in buildCopy()
589 SlotIndex Def = buildSingleSubRegCopy(FromReg, ToReg, MBB, InsertBefore, in buildCopy()
619 buildSingleSubRegCopy(FromReg, ToReg, MBB, InsertBefore, BestIdx, in buildCopy()
DMachineInstr.cpp961 void MachineInstr::substituteRegister(unsigned FromReg, unsigned ToReg, in substituteRegister() argument
968 if (!MO.isReg() || MO.getReg() != FromReg) in substituteRegister()
974 if (!MO.isReg() || MO.getReg() != FromReg) in substituteRegister()
/external/llvm/lib/CodeGen/
DMachineRegisterInfo.cpp315 void MachineRegisterInfo::replaceRegWith(unsigned FromReg, unsigned ToReg) { in replaceRegWith() argument
316 assert(FromReg != ToReg && "Cannot replace a reg with itself"); in replaceRegWith()
321 for (reg_iterator I = reg_begin(FromReg), E = reg_end(); I != E; ) { in replaceRegWith()
DTwoAddressInstructionPass.cpp105 bool isRevCopyChain(unsigned FromReg, unsigned ToReg, int Maxlen);
336 bool TwoAddressInstructionPass::isRevCopyChain(unsigned FromReg, unsigned ToReg, in isRevCopyChain() argument
338 unsigned TmpReg = FromReg; in isRevCopyChain()
764 unsigned FromReg = VirtRegPairs.back(); in scanUses() local
766 bool isNew = DstRegMap.insert(std::make_pair(FromReg, ToReg)).second; in scanUses()
768 assert(DstRegMap[FromReg] == ToReg &&"Can't map to two dst registers!"); in scanUses()
769 ToReg = FromReg; in scanUses()
DMachineInstr.cpp1488 void MachineInstr::substituteRegister(unsigned FromReg, in substituteRegister() argument
1496 if (!MO.isReg() || MO.getReg() != FromReg) in substituteRegister()
1502 if (!MO.isReg() || MO.getReg() != FromReg) in substituteRegister()
DMachinePipeliner.cpp2440 static void replaceRegUsesAfterLoop(unsigned FromReg, unsigned ToReg, in replaceRegUsesAfterLoop() argument
2444 for (MachineRegisterInfo::use_iterator I = MRI.use_begin(FromReg), in replaceRegUsesAfterLoop()
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DMachineRegisterInfo.h174 void replaceRegWith(unsigned FromReg, unsigned ToReg);
DMachineInstr.h440 void substituteRegister(unsigned FromReg, unsigned ToReg, unsigned SubIdx,
/external/llvm/include/llvm/CodeGen/
DMachineRegisterInfo.h534 void replaceRegWith(unsigned FromReg, unsigned ToReg);
DMachineInstr.h1073 void substituteRegister(unsigned FromReg, unsigned ToReg, unsigned SubIdx,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DMachineInstr.h1161 void substituteRegister(unsigned FromReg, unsigned ToReg, unsigned SubIdx,
DMachineRegisterInfo.h587 void replaceRegWith(unsigned FromReg, unsigned ToReg);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonConstPropagation.cpp1869 void replaceAllRegUsesWith(unsigned FromReg, unsigned ToReg);
3108 void HexagonConstEvaluator::replaceAllRegUsesWith(unsigned FromReg, in replaceAllRegUsesWith() argument
3110 assert(TargetRegisterInfo::isVirtualRegister(FromReg)); in replaceAllRegUsesWith()
3112 for (auto I = MRI->use_begin(FromReg), E = MRI->use_end(); I != E;) { in replaceAllRegUsesWith()

12