Lines Matching refs:Reg
32 std::vector<MCInst> setRegTo(const MCSubtargetInfo &STI, unsigned Reg,
38 void fillMemoryOperands(InstructionTemplate &IT, unsigned Reg,
54 static MCInst loadImmediate(unsigned Reg, unsigned RegBitWidth, in loadImmediate() argument
62 .addReg(Reg) in loadImmediate()
74 unsigned Reg, in fillMemoryOperands() argument
88 setMemOp(IT, MemOpIdx + 2, MCOperand::createReg(Reg)); // BaseReg in fillMemoryOperands()
92 unsigned Reg, in setRegTo() argument
98 if (PPC::GPRCRegClass.contains(Reg)) in setRegTo()
99 return {loadImmediate(Reg, 32, Value)}; in setRegTo()
100 if (PPC::G8RCRegClass.contains(Reg)) in setRegTo()
101 return {loadImmediate(Reg, 64, Value)}; in setRegTo()
102 if (PPC::F4RCRegClass.contains(Reg)) in setRegTo()
104 MCInstBuilder(PPC::MTVSRD).addReg(Reg).addReg(ScratchImmReg)}; in setRegTo()
108 if (PPC::VRRCRegClass.contains(Reg)) in setRegTo()
110 MCInstBuilder(PPC::MTVRD).addReg(Reg).addReg(ScratchImmReg)}; in setRegTo()
111 if (PPC::VSRCRegClass.contains(Reg)) in setRegTo()
114 .addReg(Reg) in setRegTo()
117 if (PPC::VFRCRegClass.contains(Reg)) in setRegTo()
119 MCInstBuilder(PPC::MTVSRD).addReg(Reg).addReg(ScratchImmReg)}; in setRegTo()
121 if (PPC::SPERCRegClass.contains(Reg)) { in setRegTo()
122 errs() << "Unsupported SPE Reg:" << Reg << "\n"; in setRegTo()
125 errs() << "setRegTo is not implemented, results will be unreliable:" << Reg in setRegTo()