Home
last modified time | relevance | path

Searched refs:RegNo (Results 1 – 25 of 104) sorted by relevance

12345

/openbsd/gnu/llvm/llvm/lib/Target/PowerPC/Disassembler/
H A DPPCDisassembler.cpp86 assert(RegNo < N && "Invalid register number"); in decodeRegisterClass()
94 return decodeRegisterClass(Inst, RegNo, CRRegs); in DecodeCRRCRegisterClass()
106 return decodeRegisterClass(Inst, RegNo, FRegs); in DecodeF4RCRegisterClass()
112 return decodeRegisterClass(Inst, RegNo, FRegs); in DecodeF8RCRegisterClass()
118 return decodeRegisterClass(Inst, RegNo, VFRegs); in DecodeVFRCRegisterClass()
124 return decodeRegisterClass(Inst, RegNo, VRegs); in DecodeVRRCRegisterClass()
130 return decodeRegisterClass(Inst, RegNo, VSRegs); in DecodeVSRCRegisterClass()
148 return decodeRegisterClass(Inst, RegNo, RRegs); in DecodeGPRCRegisterClass()
160 return decodeRegisterClass(Inst, RegNo, XRegs); in DecodeG8RCRegisterClass()
166 return decodeRegisterClass(Inst, RegNo, XRegs); in DecodeG8pRCRegisterClass()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/RISCV/Disassembler/
H A DRISCVDisassembler.cpp68 if (RegNo >= 32 || (IsRV32E && RegNo >= 16)) in DecodeGPRRegisterClass()
79 if (RegNo >= 32) in DecodeFPR16RegisterClass()
90 if (RegNo >= 32) in DecodeFPR32RegisterClass()
101 if (RegNo >= 8) { in DecodeFPR32CRegisterClass()
112 if (RegNo >= 32) in DecodeFPR64RegisterClass()
154 if (RegNo >= 8) in DecodeGPRCRegisterClass()
165 if (RegNo >= 32 || RegNo & 1) in DecodeGPRPF64RegisterClass()
176 if (RegNo >= 32) in DecodeVRRegisterClass()
190 if (RegNo % 2) in DecodeVRM2RegisterClass()
210 if (RegNo % 4) in DecodeVRM4RegisterClass()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/Disassembler/
H A DAArch64Disassembler.cpp420 if (RegNo > 31) in DecodeFPR128RegisterClass()
432 if (RegNo > 15) in DecodeFPR128_loRegisterClass()
440 if (RegNo > 31) in DecodeFPR64RegisterClass()
452 if (RegNo > 31) in DecodeFPR32RegisterClass()
515 if (RegNo & 1) in DecodeGPR64x8ClassRegisterClass()
539 if (RegNo > 3) in DecodeMatrixIndexGPR32_8_11RegisterClass()
553 if (RegNo > 3) in DecodeMatrixIndexGPR32_12_15RegisterClass()
610 if (RegNo > 7) in DecodeZPR_3bRegisterClass()
685 if (RegNo > 7) in DecodeZPR4StridedRegisterClass()
743 if (RegNo > 7) in DecodePPR_3bRegisterClass()
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/
H A DMachineRegisterInfo.h114 if (RegNo.isVirtual()) in getRegUseDefListHead()
115 return VRegInfo[RegNo.id()].second; in getRegUseDefListHead()
116 return PhysRegUseDefLists[RegNo.id()]; in getRegUseDefListHead()
120 if (RegNo.isVirtual()) in getRegUseDefListHead()
121 return VRegInfo[RegNo.id()].second; in getRegUseDefListHead()
122 return PhysRegUseDefLists[RegNo.id()]; in getRegUseDefListHead()
345 bool reg_empty(Register RegNo) const { return reg_begin(RegNo) == reg_end(); } in reg_empty() argument
448 bool def_empty(Register RegNo) const { return def_begin(RegNo) == def_end(); } in def_empty() argument
466 bool hasOneDef(Register RegNo) const { in hasOneDef() argument
528 bool use_empty(Register RegNo) const { return use_begin(RegNo) == use_end(); } in use_empty() argument
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/M68k/Disassembler/
H A DM68kDisassembler.cpp41 static DecodeStatus DecodeRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeRegisterClass() argument
43 if (RegNo >= 16) in DecodeRegisterClass()
45 Inst.addOperand(MCOperand::createReg(RegisterDecode[RegNo])); in DecodeRegisterClass()
52 return DecodeRegisterClass(Inst, RegNo, Address, Decoder); in DecodeDR32RegisterClass()
58 return DecodeRegisterClass(Inst, RegNo, Address, Decoder); in DecodeDR16RegisterClass()
61 static DecodeStatus DecodeDR8RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeDR8RegisterClass() argument
64 return DecodeRegisterClass(Inst, RegNo, Address, Decoder); in DecodeDR8RegisterClass()
70 return DecodeRegisterClass(Inst, RegNo | 8ULL, Address, Decoder); in DecodeAR32RegisterClass()
76 return DecodeRegisterClass(Inst, RegNo | 8ULL, Address, Decoder); in DecodeAR16RegisterClass()
82 return DecodeRegisterClass(Inst, RegNo, Address, Decoder); in DecodeXR32RegisterClass()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/LoongArch/Disassembler/
H A DLoongArchDisassembler.cpp58 static DecodeStatus DecodeGPRRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGPRRegisterClass() argument
61 if (RegNo >= 32) in DecodeGPRRegisterClass()
63 Inst.addOperand(MCOperand::createReg(LoongArch::R0 + RegNo)); in DecodeGPRRegisterClass()
70 if (RegNo >= 32) in DecodeFPR32RegisterClass()
72 Inst.addOperand(MCOperand::createReg(LoongArch::F0 + RegNo)); in DecodeFPR32RegisterClass()
79 if (RegNo >= 32) in DecodeFPR64RegisterClass()
81 Inst.addOperand(MCOperand::createReg(LoongArch::F0_64 + RegNo)); in DecodeFPR64RegisterClass()
88 if (RegNo >= 8) in DecodeCFRRegisterClass()
90 Inst.addOperand(MCOperand::createReg(LoongArch::FCC0 + RegNo)); in DecodeCFRRegisterClass()
97 if (RegNo >= 4) in DecodeFCSRRegisterClass()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/Sparc/Disassembler/
H A DSparcDisassembler.cpp148 if (RegNo > 31) in DecodeIntRegsRegisterClass()
172 if (RegNo > 31) in DecodeFPRegsRegisterClass()
174 unsigned Reg = FPRegDecoderTable[RegNo]; in DecodeFPRegsRegisterClass()
182 if (RegNo > 31) in DecodeDFPRegsRegisterClass()
192 if (RegNo > 31) in DecodeQFPRegsRegisterClass()
205 if (RegNo > 31) in DecodeCoprocRegsRegisterClass()
215 if (RegNo > 3) in DecodeFCCRegsRegisterClass()
224 if (RegNo > 31) in DecodeASRRegsRegisterClass()
244 if (RegNo > 31) in DecodeIntPairRegisterClass()
247 if ((RegNo & 1)) in DecodeIntPairRegisterClass()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/Hexagon/Disassembler/
H A DHexagonDisassembler.cpp539 if (RegNo < Table.size()) { in DecodeRegisterClass()
683 if (RegNo >= std::size(CtrlRegDecoderTable)) in DecodeCtrRegsRegisterClass()
687 if (CtrlRegDecoderTable[RegNo] == NoRegister) in DecodeCtrRegsRegisterClass()
690 unsigned Register = CtrlRegDecoderTable[RegNo]; in DecodeCtrRegsRegisterClass()
711 if (RegNo >= std::size(CtrlReg64DecoderTable)) in DecodeCtrRegs64RegisterClass()
727 switch (RegNo) { in DecodeModRegsRegisterClass()
810 if (RegNo >= std::size(SysRegDecoderTable)) in DecodeSysRegsRegisterClass()
816 unsigned Register = SysRegDecoderTable[RegNo]; in DecodeSysRegsRegisterClass()
837 RegNo = RegNo >> 1; in DecodeSysRegs64RegisterClass()
838 if (RegNo >= std::size(SysReg64DecoderTable)) in DecodeSysRegs64RegisterClass()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/SystemZ/Disassembler/
H A DSystemZDisassembler.cpp83 assert(RegNo < Size && "Invalid register"); in decodeRegisterClass()
84 RegNo = Regs[RegNo]; in decodeRegisterClass()
85 if (RegNo == 0) in decodeRegisterClass()
87 Inst.addOperand(MCOperand::createReg(RegNo)); in decodeRegisterClass()
94 return decodeRegisterClass(Inst, RegNo, SystemZMC::GR32Regs, 16); in DecodeGR32BitRegisterClass()
106 return decodeRegisterClass(Inst, RegNo, SystemZMC::GR64Regs, 16); in DecodeGR64BitRegisterClass()
118 return decodeRegisterClass(Inst, RegNo, SystemZMC::GR64Regs, 16); in DecodeADDR64BitRegisterClass()
124 return decodeRegisterClass(Inst, RegNo, SystemZMC::FP32Regs, 16); in DecodeFP32BitRegisterClass()
130 return decodeRegisterClass(Inst, RegNo, SystemZMC::FP64Regs, 16); in DecodeFP64BitRegisterClass()
142 return decodeRegisterClass(Inst, RegNo, SystemZMC::VR32Regs, 32); in DecodeVR32BitRegisterClass()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/CSKY/Disassembler/
H A DCSKYDisassembler.cpp111 if (RegNo >= 32) in DecodeGPRRegisterClass()
121 if (RegNo >= 32) in DecodeFPR32RegisterClass()
131 if (RegNo >= 16) in DecodesFPR32RegisterClass()
141 if (RegNo >= 16) in DecodesFPR64RegisterClass()
151 if (RegNo >= 16) in DecodesFPR64_VRegisterClass()
161 if (RegNo >= 32) in DecodeFPR64RegisterClass()
173 if (RegNo >= 16) in DecodesFPR128RegisterClass()
183 if (RegNo >= 16) in DecodesGPRRegisterClass()
193 if (RegNo >= 8) in DecodemGPRRegisterClass()
205 if (RegNo != 14) in DecodeGPRSPRegisterClass()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MCExpr.h29 const int64_t RegNo; // All
31 explicit X86MCExpr(int64_t R) : RegNo(R) {} in X86MCExpr()
37 static const X86MCExpr *create(int64_t RegNo, MCContext &Ctx) { in create() argument
38 return new (Ctx) X86MCExpr(RegNo); in create()
46 int64_t getRegNo() const { return RegNo; } in getRegNo()
53 OS << X86ATTInstPrinter::getRegisterName(RegNo); in printImpl()
/openbsd/gnu/llvm/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp710 RegNo = 0; in tryParseRegister()
1054 MCRegister RegNo; in parseOperand() local
1113 MCRegister RegNo; in parseSparcAsmOperand() local
1119 switch (RegNo) { in parseSparcAsmOperand()
1212 RegNo = 0; in matchRegisterName()
1219 RegNo = Sparc::I6; in matchRegisterName()
1225 RegNo = Sparc::O6; in matchRegisterName()
1231 RegNo = Sparc::Y; in matchRegisterName()
1269 RegNo = Sparc::FQ; in matchRegisterName()
1389 RegNo = Sparc::TT; in matchRegisterName()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/Mips/Disassembler/
H A DMipsDisassembler.cpp1346 if (RegNo > 31) in DecodeGPR64RegisterClass()
1357 if (RegNo > 7) in DecodeGPRMM16RegisterClass()
1367 if (RegNo > 7) in DecodeGPRMM16ZeroRegisterClass()
1377 if (RegNo > 7) in DecodeGPRMM16MovePRegisterClass()
1387 if (RegNo > 31) in DecodeGPR32RegisterClass()
1412 if (RegNo > 31) in DecodeFGR64RegisterClass()
1423 if (RegNo > 31) in DecodeFGR32RegisterClass()
1434 if (RegNo > 31) in DecodeCCRRegisterClass()
1444 if (RegNo > 7) in DecodeFCCRegisterClass()
1985 if (RegNo > 30 || RegNo %2) in DecodeAFGR64RegisterClass()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp48 bool parseRegister(MCRegister &RegNo, SMLoc &StartLoc,
192 void setReg(unsigned RegNo) { in setReg() argument
194 Reg = RegNo; in setReg()
312 RegNo = MatchRegisterName(Name); in tryParseRegister()
313 if (RegNo == MSP430::NoRegister) { in tryParseRegister()
314 RegNo = MatchRegisterAltName(Name); in tryParseRegister()
315 if (RegNo == MSP430::NoRegister) in tryParseRegister()
459 MCRegister RegNo; in ParseOperand() local
461 if (!parseRegister(RegNo, StartLoc, EndLoc)) { in ParseOperand()
474 MCRegister RegNo = MSP430::PC; in ParseOperand() local
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/Xtensa/AsmParser/
H A DXtensaAsmParser.cpp40 bool parseRegister(MCRegister &RegNo,
291 Op->Reg.RegNum = RegNo; in createReg()
466 RegNo = 0; in parseRegister()
495 unsigned RegNo = 0; in parseRegister() local
504 RegNo = MatchRegisterName(RegName); in parseRegister()
505 if (RegNo == 0) in parseRegister()
510 RegNo = MatchRegisterName(RegName); in parseRegister()
511 if (RegNo == 0) in parseRegister()
516 if (RegNo == 0) { in parseRegister()
622 if (RegNo == 0) in ParseInstructionWithSR()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsTargetStreamer.h50 virtual void emitDirectiveSetAtWithArg(unsigned RegNo);
94 virtual void emitDirectiveCpAdd(unsigned RegNo);
95 virtual void emitDirectiveCpLoad(unsigned RegNo);
96 virtual void emitDirectiveCpLocal(unsigned RegNo);
232 void emitDirectiveSetAtWithArg(unsigned RegNo) override;
276 void emitDirectiveCpAdd(unsigned RegNo) override;
277 void emitDirectiveCpLoad(unsigned RegNo) override;
278 void emitDirectiveCpLocal(unsigned RegNo) override;
349 void emitDirectiveCpAdd(unsigned RegNo) override;
350 void emitDirectiveCpLoad(unsigned RegNo) override;
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DSIInsertWaitcnts.cpp536 for (int RegNo = Interval.first; RegNo < Interval.second; ++RegNo) { in setExpScore() local
676 for (int RegNo = Interval.first; RegNo < Interval.second; in updateByEvent()
677 ++RegNo) { in updateByEvent()
693 for (int RegNo = Interval.first; RegNo < Interval.second; ++RegNo) in updateByEvent() local
697 for (int RegNo = Interval.first; RegNo < Interval.second; ++RegNo) { in updateByEvent() local
1126 RegNo < CallAddrOpInterval.second; ++RegNo) in generateWaitcntInstBefore()
1136 RegNo < RtnAddrOpInterval.second; ++RegNo) in generateWaitcntInstBefore()
1189 for (int RegNo = Interval.first; RegNo < Interval.second; ++RegNo) { in generateWaitcntInstBefore() local
1737 for (int RegNo = Interval.first; RegNo < Interval.second; ++RegNo) { in shouldFlushVmCnt() local
1742 VgprUse.insert(RegNo); in shouldFlushVmCnt()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp234 void makeReg(unsigned RegNo) { in makeReg() argument
236 RegImm = {RegNo, nullptr}; in makeReg()
246 RegImm = {RegNo, Imm}; in makeMemri()
405 int RegNo = parseRegister(); in tryParseRegisterOperand() local
407 if (RegNo == AVR::NoRegister) in tryParseRegisterOperand()
411 if (AVR::R0 <= RegNo && RegNo <= AVR::R15 && in tryParseRegisterOperand()
567 int RegNo; in parseMemriOperand() local
571 RegNo = parseRegister(); in parseMemriOperand()
573 if (RegNo == AVR::NoRegister) in parseMemriOperand()
599 return (RegNo == AVR::NoRegister); in parseRegister()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp42 bool parseRegister(MCRegister &RegNo, SMLoc &StartLoc,
208 static std::unique_ptr<BPFOperand> createReg(unsigned RegNo, SMLoc S, in createReg()
211 Op->Reg.RegNum = RegNo; in createReg()
327 bool BPFAsmParser::parseRegister(MCRegister &RegNo, SMLoc &StartLoc, in parseRegister() argument
340 RegNo = 0; in tryParseRegister()
426 unsigned RegNo = MatchRegisterName(Name); in parseRegister() local
428 if (RegNo == 0) in parseRegister()
432 Operands.push_back(BPFOperand::createReg(RegNo, S, E)); in parseRegister()
467 unsigned RegNo = MatchRegisterName(Name); in ParseInstruction() local
469 if (RegNo != 0) { in ParseInstruction()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/VE/Disassembler/
H A DVEDisassembler.cpp130 if (RegNo > 63) in DecodeI32RegisterClass()
140 if (RegNo > 63) in DecodeI64RegisterClass()
150 if (RegNo > 63) in DecodeF32RegisterClass()
160 if (RegNo % 2 || RegNo > 63) in DecodeF128RegisterClass()
171 if (RegNo == 255) in DecodeV64RegisterClass()
173 else if (RegNo > 63) in DecodeV64RegisterClass()
176 Reg = V64RegDecoderTable[RegNo]; in DecodeV64RegisterClass()
184 if (RegNo > 15) in DecodeVMRegisterClass()
186 unsigned Reg = VMRegDecoderTable[RegNo]; in DecodeVMRegisterClass()
194 if (RegNo % 2 || RegNo > 15) in DecodeVM512RegisterClass()
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/MC/
H A DMCRegisterInfo.h69 unsigned RegNo = unsigned(Reg); in contains() local
70 unsigned InByte = RegNo % 8; in contains()
71 unsigned Byte = RegNo / 8; in contains()
447 assert(RegNo < NumRegs &&
449 return Desc[RegNo];
454 const MCRegisterDesc &get(MCRegister RegNo) const { in get() argument
455 return operator[](RegNo); in get()
485 const char *getName(MCRegister RegNo) const { in getName() argument
486 return RegStrings + get(RegNo).Name; in getName()
554 assert(RegNo < NumRegs && in getEncodingValue()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/X86/AsmParser/
H A DX86Operand.h50 unsigned RegNo; member
172 return Reg.RegNo; in getReg()
542 MCRegister RegNo = getReg(); in addGR32orGR64Operands() local
543 if (X86MCRegisterClasses[X86::GR64RegClassID].contains(RegNo)) in addGR32orGR64Operands()
544 RegNo = getX86SubSuperRegister(RegNo, 32); in addGR32orGR64Operands()
545 Inst.addOperand(MCOperand::createReg(RegNo)); in addGR32orGR64Operands()
550 MCRegister RegNo = getReg(); in addGR16orGR32orGR64Operands() local
553 RegNo = getX86SubSuperRegister(RegNo, 16); in addGR16orGR32orGR64Operands()
554 Inst.addOperand(MCOperand::createReg(RegNo)); in addGR16orGR32orGR64Operands()
642 CreateReg(unsigned RegNo, SMLoc StartLoc, SMLoc EndLoc,
[all …]
/openbsd/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/
H A DDbgEntityHistoryCalculator.cpp298 const auto &I = RegVars.find(RegNo); in dropRegDescribedVar()
299 assert(RegNo != 0U && I != RegVars.end()); in dropRegDescribedVar()
310 static void addRegDescribedVar(RegDescribedVarsMap &RegVars, unsigned RegNo, in addRegDescribedVar() argument
312 assert(RegNo != 0U); in addRegDescribedVar()
313 auto &VarSet = RegVars[RegNo]; in addRegDescribedVar()
322 static void clobberRegEntries(InlinedEntity Var, unsigned RegNo, in clobberRegEntries() argument
340 if (Entry.getInstr()->hasDebugOperandForReg(RegNo)) { in clobberRegEntries()
344 if (MO.isReg() && MO.getReg() && MO.getReg() != RegNo) in clobberRegEntries()
431 for (Register RegNo : FellowRegisters) in clobberRegisterUses() local
432 dropRegDescribedVar(RegVars, RegNo, Var); in clobberRegisterUses()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsTargetStreamer.cpp120 void MipsTargetStreamer::emitDirectiveCpAdd(unsigned RegNo) {} in emitDirectiveCpAdd() argument
121 void MipsTargetStreamer::emitDirectiveCpLoad(unsigned RegNo) {} in emitDirectiveCpLoad() argument
122 void MipsTargetStreamer::emitDirectiveCpLocal(unsigned RegNo) { in emitDirectiveCpLocal() argument
135 GPReg = RegNo; in emitDirectiveCpLocal()
483 OS << "\t.set\tat=$" << Twine(RegNo) << "\n"; in emitDirectiveSetAtWithArg()
484 MipsTargetStreamer::emitDirectiveSetAtWithArg(RegNo); in emitDirectiveSetAtWithArg()
695 MipsTargetStreamer::emitDirectiveCpLocal(RegNo); in emitDirectiveCpLocal()
1149 emitAddu(RegNo, RegNo, GPReg, getABI().IsN64(), &STI); in emitDirectiveCpAdd()
1204 TmpInst.addOperand(MCOperand::createReg(RegNo)); in emitDirectiveCpLoad()
1212 MipsTargetStreamer::emitDirectiveCpLocal(RegNo); in emitDirectiveCpLocal()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/BPF/Disassembler/
H A DBPFDisassembler.cpp101 static DecodeStatus DecodeGPRRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeGPRRegisterClass() argument
104 if (RegNo > 11) in DecodeGPRRegisterClass()
107 unsigned Reg = GPRDecoderTable[RegNo]; in DecodeGPRRegisterClass()
117 DecodeGPR32RegisterClass(MCInst &Inst, unsigned RegNo, uint64_t /*Address*/, in DecodeGPR32RegisterClass() argument
119 if (RegNo > 11) in DecodeGPR32RegisterClass()
122 unsigned Reg = GPR32DecoderTable[RegNo]; in DecodeGPR32RegisterClass()

12345