Home
last modified time | relevance | path

Searched refs:ToReg (Results 1 – 25 of 27) sorted by relevance

12

/external/llvm/lib/Target/WebAssembly/
DWebAssemblyStoreResults.cpp79 unsigned FromReg, unsigned ToReg, in ReplaceDominatedUses() argument
86 LiveInterval *ToLI = &LIS.getInterval(ToReg); in ReplaceDominatedUses()
115 O.setReg(ToReg); in ReplaceDominatedUses()
146 unsigned ToReg = MI.getOperand(0).getReg(); in optimizeStore() local
148 return ReplaceDominatedUses(MBB, MI, FromReg, ToReg, MRI, MDT, LIS); in optimizeStore()
173 unsigned ToReg = MI.getOperand(0).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
87 LiveInterval *ToLI = &LIS.getInterval(ToReg); in ReplaceDominatedUses()
116 O.setReg(ToReg); in ReplaceDominatedUses()
165 unsigned ToReg = MI.getOperand(0).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.cpp76 return I->ToReg; in getDwarfRegNum()
88 return I->ToReg; in getLLVMRegNum()
101 return I->ToReg; in getLLVMRegNumFromEH()
/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()
324 if (TargetRegisterInfo::isPhysicalRegister(ToReg)) { in replaceRegWith()
325 O.substPhysReg(ToReg, *TRI); in replaceRegWith()
327 O.setReg(ToReg); in replaceRegWith()
DTwoAddressInstructionPass.cpp105 bool isRevCopyChain(unsigned FromReg, unsigned ToReg, int Maxlen);
336 bool TwoAddressInstructionPass::isRevCopyChain(unsigned FromReg, unsigned ToReg, in isRevCopyChain() argument
346 if (TmpReg == ToReg) in isRevCopyChain()
761 unsigned ToReg = 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()
771 bool isNew = DstRegMap.insert(std::make_pair(DstReg, ToReg)).second; in scanUses()
773 assert(DstRegMap[DstReg] == ToReg && "Can't map to two dst registers!"); in scanUses()
DMachineInstr.cpp1489 unsigned ToReg, in substituteRegister() argument
1492 if (TargetRegisterInfo::isPhysicalRegister(ToReg)) { in substituteRegister()
1494 ToReg = RegInfo.getSubReg(ToReg, SubIdx); in substituteRegister()
1498 MO.substPhysReg(ToReg, RegInfo); in substituteRegister()
1504 MO.substVirtReg(ToReg, SubIdx, RegInfo); in substituteRegister()
DMachinePipeliner.cpp2440 static void replaceRegUsesAfterLoop(unsigned FromReg, unsigned ToReg, in replaceRegUsesAfterLoop() argument
2450 O.setReg(ToReg); in replaceRegUsesAfterLoop()
2452 if (!LIS.hasInterval(ToReg)) in replaceRegUsesAfterLoop()
2453 LIS.createEmptyInterval(ToReg); in replaceRegUsesAfterLoop()
/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()
143 O.setReg(ToReg); in replaceRegWith()
DTwoAddressInstructionPass.cpp714 unsigned ToReg = 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()
724 bool isNew = DstRegMap.insert(std::make_pair(DstReg, ToReg)).second; in ScanUses()
726 assert(DstRegMap[DstReg] == ToReg && "Can't map to two dst registers!"); in ScanUses()
DMachineInstr.cpp1133 unsigned ToReg, in substituteRegister() argument
1136 if (TargetRegisterInfo::isPhysicalRegister(ToReg)) { in substituteRegister()
1138 ToReg = RegInfo.getSubReg(ToReg, SubIdx); in substituteRegister()
1143 MO.substPhysReg(ToReg, RegInfo); in substituteRegister()
1150 MO.substVirtReg(ToReg, SubIdx, RegInfo); in substituteRegister()
/external/llvm/lib/MC/
DMCRegisterInfo.cpp69 return I->ToReg; in getDwarfRegNum()
79 return I->ToReg; in getLLVMRegNum()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DMachineRegisterInfo.cpp382 void MachineRegisterInfo::replaceRegWith(unsigned FromReg, unsigned ToReg) { in replaceRegWith() argument
383 assert(FromReg != ToReg && "Cannot replace a reg with itself"); in replaceRegWith()
391 if (TargetRegisterInfo::isPhysicalRegister(ToReg)) { in replaceRegWith()
392 O.substPhysReg(ToReg, *TRI); in replaceRegWith()
394 O.setReg(ToReg); in replaceRegWith()
DTwoAddressInstructionPass.cpp130 bool isRevCopyChain(unsigned FromReg, unsigned ToReg, int Maxlen);
365 bool TwoAddressInstructionPass::isRevCopyChain(unsigned FromReg, unsigned ToReg, in isRevCopyChain() argument
375 if (TmpReg == ToReg) in isRevCopyChain()
803 unsigned ToReg = 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()
813 bool isNew = DstRegMap.insert(std::make_pair(DstReg, ToReg)).second; in scanUses()
815 assert(DstRegMap[DstReg] == ToReg && "Can't map to two dst registers!"); in scanUses()
DSplitKit.h418 SlotIndex buildCopy(unsigned FromReg, unsigned ToReg, LaneBitmask LaneMask,
422 SlotIndex buildSingleSubRegCopy(unsigned FromReg, unsigned ToReg,
DSplitKit.cpp513 SlotIndex SplitEditor::buildSingleSubRegCopy(unsigned FromReg, unsigned ToReg, in buildSingleSubRegCopy() argument
519 .addReg(ToReg, RegState::Define | getUndefRegState(FirstCopy) in buildSingleSubRegCopy()
538 SlotIndex SplitEditor::buildCopy(unsigned FromReg, unsigned ToReg, in buildCopy() argument
545 BuildMI(MBB, InsertBefore, DebugLoc(), Desc, ToReg).addReg(FromReg); in buildCopy()
561 assert(RC == MRI.getRegClass(ToReg) && "Should have same reg class"); 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
964 if (TargetRegisterInfo::isPhysicalRegister(ToReg)) { in substituteRegister()
966 ToReg = RegInfo.getSubReg(ToReg, SubIdx); in substituteRegister()
970 MO.substPhysReg(ToReg, RegInfo); in substituteRegister()
976 MO.substVirtReg(ToReg, SubIdx, RegInfo); in substituteRegister()
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/
DMCRegisterInfo.h143 unsigned ToReg; member
/external/llvm/include/llvm/MC/
DMCRegisterInfo.h143 unsigned ToReg; member
/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);
3109 unsigned ToReg) { in replaceAllRegUsesWith() argument
3111 assert(TargetRegisterInfo::isVirtualRegister(ToReg)); in replaceAllRegUsesWith()
3115 O.setReg(ToReg); in replaceAllRegUsesWith()

12