Lines Matching refs:Hexagon
31 using namespace Hexagon;
98 if (Producer >= Hexagon::W0 && Producer <= Hexagon::W15) in RegisterMatches()
99 if (Consumer >= Hexagon::V0 && Consumer <= Hexagon::V31) in RegisterMatches()
100 return ((Consumer - Hexagon::V0) >> 1) == (Producer - Hexagon::W0); in RegisterMatches()
114 static unsigned RegMap[8] = {Hexagon::R8, Hexagon::R9, Hexagon::R10, in EncodeSingleInstruction()
115 Hexagon::R11, Hexagon::R12, Hexagon::R13, in EncodeSingleInstruction()
116 Hexagon::R14, Hexagon::R15}; in EncodeSingleInstruction()
159 : static_cast<unsigned>(Hexagon::NoRegister); in EncodeSingleInstruction()
163 : static_cast<unsigned>(Hexagon::NoRegister); in EncodeSingleInstruction()
183 MCO.setReg(Offset + Hexagon::R0); in EncodeSingleInstruction()
201 if (HMB.getOpcode() >= Hexagon::DuplexIClass0 && in EncodeSingleInstruction()
202 HMB.getOpcode() <= Hexagon::DuplexIClassF) { in EncodeSingleInstruction()
207 case Hexagon::DuplexIClass0: in EncodeSingleInstruction()
210 case Hexagon::DuplexIClass1: in EncodeSingleInstruction()
213 case Hexagon::DuplexIClass2: in EncodeSingleInstruction()
216 case Hexagon::DuplexIClass3: in EncodeSingleInstruction()
219 case Hexagon::DuplexIClass4: in EncodeSingleInstruction()
222 case Hexagon::DuplexIClass5: in EncodeSingleInstruction()
225 case Hexagon::DuplexIClass6: in EncodeSingleInstruction()
228 case Hexagon::DuplexIClass7: in EncodeSingleInstruction()
231 case Hexagon::DuplexIClass8: in EncodeSingleInstruction()
234 case Hexagon::DuplexIClass9: in EncodeSingleInstruction()
237 case Hexagon::DuplexIClassA: in EncodeSingleInstruction()
240 case Hexagon::DuplexIClassB: in EncodeSingleInstruction()
243 case Hexagon::DuplexIClassC: in EncodeSingleInstruction()
246 case Hexagon::DuplexIClassD: in EncodeSingleInstruction()
249 case Hexagon::DuplexIClassE: in EncodeSingleInstruction()
252 case Hexagon::DuplexIClassF: in EncodeSingleInstruction()
294 Hexagon::Fixups getFixupNoBits(MCInstrInfo const &MCII, const MCInst &MI, in getFixupNoBits()
303 return Hexagon::fixup_Hexagon_GOTREL_32_6_X; in getFixupNoBits()
305 return Hexagon::fixup_Hexagon_GOT_32_6_X; in getFixupNoBits()
307 return Hexagon::fixup_Hexagon_TPREL_32_6_X; in getFixupNoBits()
309 return Hexagon::fixup_Hexagon_DTPREL_32_6_X; in getFixupNoBits()
311 return Hexagon::fixup_Hexagon_GD_GOT_32_6_X; in getFixupNoBits()
313 return Hexagon::fixup_Hexagon_LD_GOT_32_6_X; in getFixupNoBits()
315 return Hexagon::fixup_Hexagon_IE_32_6_X; in getFixupNoBits()
317 return Hexagon::fixup_Hexagon_IE_GOT_32_6_X; in getFixupNoBits()
321 return Hexagon::fixup_Hexagon_B32_PCREL_X; in getFixupNoBits()
323 return Hexagon::fixup_Hexagon_32_6_X; in getFixupNoBits()
328 return Hexagon::fixup_Hexagon_B13_PCREL; in getFixupNoBits()
331 case Hexagon::HI: in getFixupNoBits()
332 case Hexagon::A2_tfrih: in getFixupNoBits()
335 return Hexagon::fixup_Hexagon_GOT_HI16; in getFixupNoBits()
337 return Hexagon::fixup_Hexagon_GOTREL_HI16; in getFixupNoBits()
339 return Hexagon::fixup_Hexagon_GD_GOT_HI16; in getFixupNoBits()
341 return Hexagon::fixup_Hexagon_LD_GOT_HI16; in getFixupNoBits()
343 return Hexagon::fixup_Hexagon_IE_HI16; in getFixupNoBits()
345 return Hexagon::fixup_Hexagon_IE_GOT_HI16; in getFixupNoBits()
347 return Hexagon::fixup_Hexagon_TPREL_HI16; in getFixupNoBits()
349 return Hexagon::fixup_Hexagon_DTPREL_HI16; in getFixupNoBits()
351 return Hexagon::fixup_Hexagon_HI16; in getFixupNoBits()
356 case Hexagon::LO: in getFixupNoBits()
357 case Hexagon::A2_tfril: in getFixupNoBits()
360 return Hexagon::fixup_Hexagon_GOT_LO16; in getFixupNoBits()
362 return Hexagon::fixup_Hexagon_GOTREL_LO16; in getFixupNoBits()
364 return Hexagon::fixup_Hexagon_GD_GOT_LO16; in getFixupNoBits()
366 return Hexagon::fixup_Hexagon_LD_GOT_LO16; in getFixupNoBits()
368 return Hexagon::fixup_Hexagon_IE_LO16; in getFixupNoBits()
370 return Hexagon::fixup_Hexagon_IE_GOT_LO16; in getFixupNoBits()
372 return Hexagon::fixup_Hexagon_TPREL_LO16; in getFixupNoBits()
374 return Hexagon::fixup_Hexagon_DTPREL_LO16; in getFixupNoBits()
376 return Hexagon::fixup_Hexagon_LO16; in getFixupNoBits()
386 if (*ImpUses != Hexagon::GP) in getFixupNoBits()
457 Hexagon::Fixups FixupKind = in getExprOpValue()
458 Hexagon::Fixups(Hexagon::fixup_Hexagon_TPREL_LO16); in getExprOpValue()
479 FixupKind = *Extended ? Hexagon::fixup_Hexagon_DTPREL_32_6_X in getExprOpValue()
480 : Hexagon::fixup_Hexagon_DTPREL_32; in getExprOpValue()
483 FixupKind = *Extended ? Hexagon::fixup_Hexagon_GOT_32_6_X in getExprOpValue()
484 : Hexagon::fixup_Hexagon_GOT_32; in getExprOpValue()
487 FixupKind = *Extended ? Hexagon::fixup_Hexagon_GOTREL_32_6_X in getExprOpValue()
488 : Hexagon::fixup_Hexagon_GOTREL_32; in getExprOpValue()
491 FixupKind = *Extended ? Hexagon::fixup_Hexagon_GD_GOT_32_6_X in getExprOpValue()
492 : Hexagon::fixup_Hexagon_GD_GOT_32; in getExprOpValue()
495 FixupKind = *Extended ? Hexagon::fixup_Hexagon_IE_32_6_X in getExprOpValue()
496 : Hexagon::fixup_Hexagon_IE_32; in getExprOpValue()
499 FixupKind = *Extended ? Hexagon::fixup_Hexagon_IE_GOT_32_6_X in getExprOpValue()
500 : Hexagon::fixup_Hexagon_IE_GOT_32; in getExprOpValue()
503 FixupKind = *Extended ? Hexagon::fixup_Hexagon_LD_GOT_32_6_X in getExprOpValue()
504 : Hexagon::fixup_Hexagon_LD_GOT_32; in getExprOpValue()
507 FixupKind = Hexagon::fixup_Hexagon_32_PCREL; in getExprOpValue()
511 *Extended ? Hexagon::fixup_Hexagon_32_6_X : Hexagon::fixup_Hexagon_32; in getExprOpValue()
514 FixupKind = *Extended ? Hexagon::fixup_Hexagon_TPREL_32_6_X in getExprOpValue()
515 : Hexagon::fixup_Hexagon_TPREL_32; in getExprOpValue()
525 FixupKind = Hexagon::fixup_Hexagon_GD_PLT_B22_PCREL; in getExprOpValue()
528 FixupKind = Hexagon::fixup_Hexagon_LD_PLT_B22_PCREL; in getExprOpValue()
531 FixupKind = *Extended ? Hexagon::fixup_Hexagon_B22_PCREL_X in getExprOpValue()
532 : Hexagon::fixup_Hexagon_B22_PCREL; in getExprOpValue()
535 FixupKind = Hexagon::fixup_Hexagon_PLT_B22_PCREL; in getExprOpValue()
546 FixupKind = Hexagon::fixup_Hexagon_DTPREL_16_X; in getExprOpValue()
549 FixupKind = Hexagon::fixup_Hexagon_GOT_16_X; in getExprOpValue()
552 FixupKind = Hexagon::fixup_Hexagon_GOTREL_16_X; in getExprOpValue()
555 FixupKind = Hexagon::fixup_Hexagon_GD_GOT_16_X; in getExprOpValue()
558 FixupKind = Hexagon::fixup_Hexagon_IE_16_X; in getExprOpValue()
561 FixupKind = Hexagon::fixup_Hexagon_IE_GOT_16_X; in getExprOpValue()
564 FixupKind = Hexagon::fixup_Hexagon_LD_GOT_16_X; in getExprOpValue()
567 FixupKind = Hexagon::fixup_Hexagon_16_X; in getExprOpValue()
570 FixupKind = Hexagon::fixup_Hexagon_TPREL_16_X; in getExprOpValue()
579 FixupKind = Hexagon::fixup_Hexagon_23_REG; in getExprOpValue()
585 FixupKind = Hexagon::fixup_Hexagon_DTPREL_16; in getExprOpValue()
588 if (MCID.getOpcode() == Hexagon::HI) in getExprOpValue()
589 FixupKind = Hexagon::fixup_Hexagon_GOTREL_HI16; in getExprOpValue()
591 FixupKind = Hexagon::fixup_Hexagon_GOTREL_LO16; in getExprOpValue()
594 FixupKind = Hexagon::fixup_Hexagon_GD_GOT_16; in getExprOpValue()
597 FixupKind = Hexagon::fixup_Hexagon_GPREL16_0; in getExprOpValue()
600 FixupKind = Hexagon::fixup_Hexagon_HI16; in getExprOpValue()
603 FixupKind = Hexagon::fixup_Hexagon_IE_GOT_16; in getExprOpValue()
606 FixupKind = Hexagon::fixup_Hexagon_LD_GOT_16; in getExprOpValue()
609 FixupKind = Hexagon::fixup_Hexagon_LO16; in getExprOpValue()
612 FixupKind = Hexagon::fixup_Hexagon_TPREL_16; in getExprOpValue()
622 FixupKind = *Extended ? Hexagon::fixup_Hexagon_B15_PCREL_X in getExprOpValue()
623 : Hexagon::fixup_Hexagon_B15_PCREL; in getExprOpValue()
633 FixupKind = Hexagon::fixup_Hexagon_B13_PCREL; in getExprOpValue()
645 FixupKind = Hexagon::fixup_Hexagon_GOT_16_X; in getExprOpValue()
648 FixupKind = Hexagon::fixup_Hexagon_GOTREL_16_X; in getExprOpValue()
651 FixupKind = Hexagon::fixup_Hexagon_12_X; in getExprOpValue()
664 FixupKind = Hexagon::fixup_Hexagon_DTPREL_11_X; in getExprOpValue()
667 FixupKind = Hexagon::fixup_Hexagon_GOT_11_X; in getExprOpValue()
670 FixupKind = Hexagon::fixup_Hexagon_GOTREL_11_X; in getExprOpValue()
673 FixupKind = Hexagon::fixup_Hexagon_GD_GOT_11_X; in getExprOpValue()
676 FixupKind = Hexagon::fixup_Hexagon_IE_GOT_11_X; in getExprOpValue()
679 FixupKind = Hexagon::fixup_Hexagon_LD_GOT_11_X; in getExprOpValue()
682 FixupKind = Hexagon::fixup_Hexagon_11_X; in getExprOpValue()
685 FixupKind = Hexagon::fixup_Hexagon_TPREL_11_X; in getExprOpValue()
693 FixupKind = Hexagon::fixup_Hexagon_TPREL_11_X; in getExprOpValue()
705 FixupKind = Hexagon::fixup_Hexagon_10_X; in getExprOpValue()
717 FixupKind = *Extended ? Hexagon::fixup_Hexagon_B9_PCREL_X in getExprOpValue()
718 : Hexagon::fixup_Hexagon_B9_PCREL; in getExprOpValue()
720 FixupKind = Hexagon::fixup_Hexagon_9_X; in getExprOpValue()
727 FixupKind = Hexagon::fixup_Hexagon_8_X; in getExprOpValue()
735 FixupKind = *Extended ? Hexagon::fixup_Hexagon_B7_PCREL_X in getExprOpValue()
736 : Hexagon::fixup_Hexagon_B7_PCREL; in getExprOpValue()
738 FixupKind = Hexagon::fixup_Hexagon_7_X; in getExprOpValue()
747 FixupKind = Hexagon::fixup_Hexagon_DTPREL_16_X; in getExprOpValue()
752 FixupKind = Hexagon::fixup_Hexagon_GOT_11_X; in getExprOpValue()
755 FixupKind = Hexagon::fixup_Hexagon_GOTREL_11_X; in getExprOpValue()
758 FixupKind = Hexagon::fixup_Hexagon_6_PCREL_X; in getExprOpValue()
761 FixupKind = Hexagon::fixup_Hexagon_TPREL_16_X; in getExprOpValue()
764 FixupKind = Hexagon::fixup_Hexagon_6_X; in getExprOpValue()
801 case Hexagon::A2_tfrrcr: in getMachineOpValue()
802 case Hexagon::A2_tfrcrr: in getMachineOpValue()
803 if(Reg == Hexagon::M0) in getMachineOpValue()
804 Reg = Hexagon::C6; in getMachineOpValue()
805 if(Reg == Hexagon::M1) in getMachineOpValue()
806 Reg = Hexagon::C7; in getMachineOpValue()