Lines Matching refs:STI
114 bool MipsMCCodeEmitter::isMicroMips(const MCSubtargetInfo &STI) const { in isMicroMips()
115 return STI.getFeatureBits() & Mips::FeatureMicroMips; in isMicroMips()
123 const MCSubtargetInfo &STI, in EmitInstruction() argument
129 if (IsLittleEndian && Size == 4 && isMicroMips(STI)) { in EmitInstruction()
130 EmitInstruction(Val >> 16, 2, STI, OS); in EmitInstruction()
131 EmitInstruction(Val, 2, STI, OS); in EmitInstruction()
145 const MCSubtargetInfo &STI) const in EncodeInstruction()
168 uint32_t Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in EncodeInstruction()
178 if (STI.getFeatureBits() & Mips::FeatureMicroMips) { in EncodeInstruction()
185 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in EncodeInstruction()
196 EmitInstruction(Binary, Size, STI, OS); in EncodeInstruction()
205 const MCSubtargetInfo &STI) const { in getBranchTargetOpValue()
227 const MCSubtargetInfo &STI) const { in getBranchTarget7OpValueMM()
249 const MCSubtargetInfo &STI) const { in getBranchTargetOpValueMMPC10()
271 const MCSubtargetInfo &STI) const { in getBranchTargetOpValueMM()
294 const MCSubtargetInfo &STI) const { in getBranchTarget21OpValue()
316 const MCSubtargetInfo &STI) const { in getBranchTarget26OpValue()
338 const MCSubtargetInfo &STI) const { in getJumpOffset16OpValue()
357 const MCSubtargetInfo &STI) const { in getJumpTargetOpValue()
375 const MCSubtargetInfo &STI) const { in getJumpTargetOpValueMM()
393 const MCSubtargetInfo &STI) const { in getUImm5Lsl2Encoding()
398 unsigned Res = getMachineOpValue(MI, MO, Fixups, STI); in getUImm5Lsl2Encoding()
412 const MCSubtargetInfo &STI) const { in getSImm3Lsa2Value()
426 const MCSubtargetInfo &STI) const { in getUImm6Lsl2Encoding()
440 const MCSubtargetInfo &STI) const { in getSImm9AddiuspValue()
453 const MCSubtargetInfo &STI) const { in getExprOpValue()
465 unsigned Res = getExprOpValue(cast<MCBinaryExpr>(Expr)->getLHS(), Fixups, STI); in getExprOpValue()
466 Res += getExprOpValue(cast<MCBinaryExpr>(Expr)->getRHS(), Fixups, STI); in getExprOpValue()
483 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_HI16 in getExprOpValue()
487 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_LO16 in getExprOpValue()
511 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT_PAGE in getExprOpValue()
515 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT_OFST in getExprOpValue()
519 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT_DISP in getExprOpValue()
526 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_CALL16 in getExprOpValue()
530 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT16 in getExprOpValue()
534 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT16 in getExprOpValue()
538 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_HI16 in getExprOpValue()
542 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_LO16 in getExprOpValue()
546 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_GD in getExprOpValue()
550 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_LDM in getExprOpValue()
554 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_DTPREL_HI16 in getExprOpValue()
558 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_DTPREL_LO16 in getExprOpValue()
565 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_TPREL_HI16 in getExprOpValue()
569 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_TPREL_LO16 in getExprOpValue()
609 const MCSubtargetInfo &STI) const { in getMachineOpValue()
622 return getExprOpValue(MO.getExpr(),Fixups, STI); in getMachineOpValue()
630 const MCSubtargetInfo &STI) const { in getMSAMemEncoding()
633 unsigned RegBits = getMachineOpValue(MI, MI.getOperand(OpNo),Fixups, STI) << 16; in getMSAMemEncoding()
634 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMSAMemEncoding()
674 const MCSubtargetInfo &STI) const { in getMemEncoding()
677 unsigned RegBits = getMachineOpValue(MI, MI.getOperand(OpNo),Fixups, STI) << 16; in getMemEncoding()
678 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncoding()
686 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4()
690 Fixups, STI) << 4; in getMemEncodingMMImm4()
692 Fixups, STI); in getMemEncodingMMImm4()
700 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4Lsl1()
704 Fixups, STI) << 4; in getMemEncodingMMImm4Lsl1()
706 Fixups, STI) >> 1; in getMemEncodingMMImm4Lsl1()
714 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4Lsl2()
718 Fixups, STI) << 4; in getMemEncodingMMImm4Lsl2()
720 Fixups, STI) >> 2; in getMemEncodingMMImm4Lsl2()
728 const MCSubtargetInfo &STI) const { in getMemEncodingMMSPImm5Lsl2()
734 Fixups, STI) >> 2; in getMemEncodingMMSPImm5Lsl2()
742 const MCSubtargetInfo &STI) const { in getMemEncodingMMGPImm7Lsl2()
749 Fixups, STI) >> 2; in getMemEncodingMMGPImm7Lsl2()
757 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm12()
771 unsigned RegBits = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI) << 16; in getMemEncodingMMImm12()
772 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncodingMMImm12()
780 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4sp()
796 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncodingMMImm4sp()
804 const MCSubtargetInfo &STI) const { in getSizeExtEncoding()
806 unsigned SizeEncoding = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI); in getSizeExtEncoding()
815 const MCSubtargetInfo &STI) const { in getSizeInsEncoding()
818 unsigned Position = getMachineOpValue(MI, MI.getOperand(OpNo-1), Fixups, STI); in getSizeInsEncoding()
819 unsigned Size = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI); in getSizeInsEncoding()
827 const MCSubtargetInfo &STI) const { in getLSAImmEncoding()
830 return getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI) - 1; in getLSAImmEncoding()
836 const MCSubtargetInfo &STI) const { in getSimm19Lsl2Encoding()
840 unsigned Res = getMachineOpValue(MI, MO, Fixups, STI); in getSimm19Lsl2Encoding()
857 const MCSubtargetInfo &STI) const { in getSimm18Lsl3Encoding()
861 unsigned Res = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI); in getSimm18Lsl3Encoding()
878 const MCSubtargetInfo &STI) const { in getUImm3Mod8Encoding()
887 const MCSubtargetInfo &STI) const { in getUImm4AndValue()
915 const MCSubtargetInfo &STI) const { in getRegisterListOpValue()
935 const MCSubtargetInfo &STI) const { in getRegisterListOpValue16()
942 const MCSubtargetInfo &STI) const { in getRegisterPairOpValue()
943 return getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI); in getRegisterPairOpValue()
949 const MCSubtargetInfo &STI) const { in getMovePRegPairOpValue()
983 const MCSubtargetInfo &STI) const { in getSimm23Lsl2Encoding()