Home
last modified time | relevance | path

Searched refs:FromReg (Results 1 – 25 of 37) 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-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyMemIntrinsicResults.cpp85 unsigned FromReg, unsigned ToReg, in replaceDominatedUses() argument
91 LiveInterval *FromLI = &LIS.getInterval(FromReg); in replaceDominatedUses()
99 for (auto I = MRI.use_nodbg_begin(FromReg), E = MRI.use_nodbg_end(); in replaceDominatedUses()
141 MI.addRegisterKilled(FromReg, MBB.getParent() in replaceDominatedUses()
169 Register FromReg = MI.getOperand(2).getReg(); in optimizeCall() local
171 if (MRI.getRegClass(FromReg) != MRI.getRegClass(ToReg)) in optimizeCall()
174 return replaceDominatedUses(MBB, MI, FromReg, ToReg, MRI, MDT, LIS); in optimizeCall()
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyMemIntrinsicResults.cpp85 unsigned FromReg, unsigned ToReg, in replaceDominatedUses() argument
91 LiveInterval *FromLI = &LIS.getInterval(FromReg); in replaceDominatedUses()
99 for (auto I = MRI.use_nodbg_begin(FromReg), E = MRI.use_nodbg_end(); in replaceDominatedUses()
141 MI.addRegisterKilled(FromReg, MBB.getParent() in replaceDominatedUses()
169 Register FromReg = MI.getOperand(2).getReg(); in optimizeCall() local
171 if (MRI.getRegClass(FromReg) != MRI.getRegClass(ToReg)) in optimizeCall()
174 return replaceDominatedUses(MBB, MI, FromReg, ToReg, MRI, MDT, LIS); in optimizeCall()
/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/llvm-project/llvm/lib/MC/
DMCRegisterInfo.cpp76 if (I == M+Size || I->FromReg != RegNum) in getDwarfRegNum()
90 if (I != M + Size && I->FromReg == RegNum) in getLLVMRegNum()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCRegisterInfo.cpp76 if (I == M+Size || I->FromReg != RegNum) in getDwarfRegNum()
90 if (I != M + Size && I->FromReg == RegNum) in getLLVMRegNum()
/external/llvm/include/llvm/MC/
DMCRegisterInfo.h142 unsigned FromReg; member
145 bool operator<(DwarfLLVMRegPair RHS) const { return FromReg < RHS.FromReg; }
/external/llvm-project/llvm/lib/CodeGen/
DSplitKit.h442 SlotIndex buildCopy(Register FromReg, Register ToReg, LaneBitmask LaneMask,
446 SlotIndex buildSingleSubRegCopy(Register FromReg, Register ToReg,
DMachineRegisterInfo.cpp380 void MachineRegisterInfo::replaceRegWith(Register FromReg, Register ToReg) { in replaceRegWith() argument
381 assert(FromReg != ToReg && "Cannot replace a reg with itself"); in replaceRegWith()
386 for (reg_iterator I = reg_begin(FromReg), E = reg_end(); I != E; ) { in replaceRegWith()
DTwoAddressInstructionPass.cpp121 bool isRevCopyChain(Register FromReg, Register ToReg, int Maxlen);
224 bool TwoAddressInstructionPass::isRevCopyChain(Register FromReg, Register ToReg, in isRevCopyChain() argument
226 Register TmpReg = FromReg; in isRevCopyChain()
665 unsigned FromReg = VirtRegPairs.back(); in scanUses() local
667 bool isNew = DstRegMap.insert(std::make_pair(FromReg, ToReg)).second; in scanUses()
669 assert(DstRegMap[FromReg] == ToReg &&"Can't map to two dst registers!"); in scanUses()
670 ToReg = FromReg; in scanUses()
DSplitKit.cpp515 SlotIndex SplitEditor::buildSingleSubRegCopy(Register FromReg, Register ToReg, in buildSingleSubRegCopy() argument
523 .addReg(FromReg, 0, SubIdx); in buildSingleSubRegCopy()
541 SlotIndex SplitEditor::buildCopy(Register FromReg, Register ToReg, in buildCopy() argument
545 if (LaneMask.all() || LaneMask == MRI.getMaxLaneMaskForVReg(FromReg)) { in buildCopy()
548 BuildMI(MBB, InsertBefore, DebugLoc(), Desc, ToReg).addReg(FromReg); in buildCopy()
563 const TargetRegisterClass *RC = MRI.getRegClass(FromReg); in buildCopy()
592 SlotIndex Def = buildSingleSubRegCopy(FromReg, ToReg, MBB, InsertBefore, in buildCopy()
622 buildSingleSubRegCopy(FromReg, ToReg, MBB, InsertBefore, BestIdx, in buildCopy()
DMachineInstr.cpp1204 void MachineInstr::substituteRegister(Register FromReg, Register ToReg, in substituteRegister() argument
1211 if (!MO.isReg() || MO.getReg() != FromReg) in substituteRegister()
1217 if (!MO.isReg() || MO.getReg() != FromReg) in substituteRegister()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSplitKit.h434 SlotIndex buildCopy(unsigned FromReg, unsigned ToReg, LaneBitmask LaneMask,
438 SlotIndex buildSingleSubRegCopy(unsigned FromReg, unsigned ToReg,
DMachineRegisterInfo.cpp380 void MachineRegisterInfo::replaceRegWith(unsigned FromReg, unsigned ToReg) { in replaceRegWith() argument
381 assert(FromReg != ToReg && "Cannot replace a reg with itself"); in replaceRegWith()
386 for (reg_iterator I = reg_begin(FromReg), E = reg_end(); I != E; ) { in replaceRegWith()
DTwoAddressInstructionPass.cpp129 bool isRevCopyChain(unsigned FromReg, unsigned ToReg, int Maxlen);
364 bool TwoAddressInstructionPass::isRevCopyChain(unsigned FromReg, unsigned ToReg, in isRevCopyChain() argument
366 unsigned TmpReg = FromReg; in isRevCopyChain()
804 unsigned FromReg = VirtRegPairs.back(); in scanUses() local
806 bool isNew = DstRegMap.insert(std::make_pair(FromReg, ToReg)).second; in scanUses()
808 assert(DstRegMap[FromReg] == ToReg &&"Can't map to two dst registers!"); in scanUses()
809 ToReg = FromReg; in scanUses()
DSplitKit.cpp512 SlotIndex SplitEditor::buildSingleSubRegCopy(unsigned FromReg, unsigned ToReg, in buildSingleSubRegCopy() argument
520 .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()
/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()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DMCRegisterInfo.h135 unsigned FromReg; member
138 bool operator<(DwarfLLVMRegPair RHS) const { return FromReg < RHS.FromReg; }
/external/llvm-project/llvm/include/llvm/MC/
DMCRegisterInfo.h135 unsigned FromReg; member
138 bool operator<(DwarfLLVMRegPair RHS) const { return FromReg < RHS.FromReg; }
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DCombinerHelper.h65 void replaceRegWith(MachineRegisterInfo &MRI, Register FromReg, Register ToReg) const;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DCombinerHelper.cpp42 void CombinerHelper::replaceRegWith(MachineRegisterInfo &MRI, Register FromReg, in replaceRegWith() argument
44 Observer.changingAllUsesOfReg(MRI, FromReg); in replaceRegWith()
46 if (MRI.constrainRegAttrs(ToReg, FromReg)) in replaceRegWith()
47 MRI.replaceRegWith(FromReg, ToReg); in replaceRegWith()
49 Builder.buildCopy(ToReg, FromReg); in replaceRegWith()
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DCombinerHelper.h114 void replaceRegWith(MachineRegisterInfo &MRI, Register FromReg, Register ToReg) const;
/external/llvm/include/llvm/CodeGen/
DMachineRegisterInfo.h534 void replaceRegWith(unsigned FromReg, unsigned ToReg);

12