Lines Matching refs:STI
115 bool MipsMCCodeEmitter::isMicroMips(const MCSubtargetInfo &STI) const { in isMicroMips()
116 return STI.getFeatureBits()[Mips::FeatureMicroMips]; in isMicroMips()
119 bool MipsMCCodeEmitter::isMips32r6(const MCSubtargetInfo &STI) const { in isMips32r6()
120 return STI.getFeatureBits()[Mips::FeatureMips32r6]; in isMips32r6()
128 const MCSubtargetInfo &STI, in EmitInstruction() argument
134 if (IsLittleEndian && Size == 4 && isMicroMips(STI)) { in EmitInstruction()
135 EmitInstruction(Val >> 16, 2, STI, OS); in EmitInstruction()
136 EmitInstruction(Val, 2, STI, OS); in EmitInstruction()
150 const MCSubtargetInfo &STI) const in encodeInstruction()
173 uint32_t Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in encodeInstruction()
184 if (isMicroMips(STI)) { in encodeInstruction()
185 if (isMips32r6(STI)) { in encodeInstruction()
203 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in encodeInstruction()
214 EmitInstruction(Binary, Size, STI, OS); in encodeInstruction()
223 const MCSubtargetInfo &STI) const { in getBranchTargetOpValue()
246 const MCSubtargetInfo &STI) const { in getBranchTarget7OpValueMM()
268 const MCSubtargetInfo &STI) const { in getBranchTargetOpValueMMPC10()
290 const MCSubtargetInfo &STI) const { in getBranchTargetOpValueMM()
313 const MCSubtargetInfo &STI) const { in getBranchTarget21OpValue()
336 const MCSubtargetInfo &STI) const { in getBranchTarget26OpValue()
358 const MCSubtargetInfo &STI) const { in getBranchTarget26OpValueMM()
376 const MCSubtargetInfo &STI) const { in getJumpOffset16OpValue()
395 const MCSubtargetInfo &STI) const { in getJumpTargetOpValue()
413 const MCSubtargetInfo &STI) const { in getJumpTargetOpValueMM()
431 const MCSubtargetInfo &STI) const { in getUImm5Lsl2Encoding()
436 unsigned Res = getMachineOpValue(MI, MO, Fixups, STI); in getUImm5Lsl2Encoding()
450 const MCSubtargetInfo &STI) const { in getSImm3Lsa2Value()
464 const MCSubtargetInfo &STI) const { in getUImm6Lsl2Encoding()
478 const MCSubtargetInfo &STI) const { in getSImm9AddiuspValue()
491 const MCSubtargetInfo &STI) const { in getExprOpValue()
503 unsigned Res = getExprOpValue(cast<MCBinaryExpr>(Expr)->getLHS(), Fixups, STI); in getExprOpValue()
504 Res += getExprOpValue(cast<MCBinaryExpr>(Expr)->getRHS(), Fixups, STI); in getExprOpValue()
521 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_HI16 in getExprOpValue()
525 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_LO16 in getExprOpValue()
549 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT_PAGE in getExprOpValue()
553 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT_OFST in getExprOpValue()
557 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT_DISP in getExprOpValue()
564 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_CALL16 in getExprOpValue()
568 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT16 in getExprOpValue()
572 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT16 in getExprOpValue()
576 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_HI16 in getExprOpValue()
580 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_LO16 in getExprOpValue()
584 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_GD in getExprOpValue()
588 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_LDM in getExprOpValue()
592 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_DTPREL_HI16 in getExprOpValue()
596 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_DTPREL_LO16 in getExprOpValue()
603 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_TPREL_HI16 in getExprOpValue()
607 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_TPREL_LO16 in getExprOpValue()
647 const MCSubtargetInfo &STI) const { in getMachineOpValue()
660 return getExprOpValue(MO.getExpr(),Fixups, STI); in getMachineOpValue()
668 const MCSubtargetInfo &STI) const { in getMSAMemEncoding()
671 unsigned RegBits = getMachineOpValue(MI, MI.getOperand(OpNo),Fixups, STI) << 16; in getMSAMemEncoding()
672 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMSAMemEncoding()
712 const MCSubtargetInfo &STI) const { in getMemEncoding()
715 unsigned RegBits = getMachineOpValue(MI, MI.getOperand(OpNo),Fixups, STI) << 16; in getMemEncoding()
716 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncoding()
724 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4()
728 Fixups, STI) << 4; in getMemEncodingMMImm4()
730 Fixups, STI); in getMemEncodingMMImm4()
738 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4Lsl1()
742 Fixups, STI) << 4; in getMemEncodingMMImm4Lsl1()
744 Fixups, STI) >> 1; in getMemEncodingMMImm4Lsl1()
752 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4Lsl2()
756 Fixups, STI) << 4; in getMemEncodingMMImm4Lsl2()
758 Fixups, STI) >> 2; in getMemEncodingMMImm4Lsl2()
766 const MCSubtargetInfo &STI) const { in getMemEncodingMMSPImm5Lsl2()
773 Fixups, STI) >> 2; in getMemEncodingMMSPImm5Lsl2()
781 const MCSubtargetInfo &STI) const { in getMemEncodingMMGPImm7Lsl2()
788 Fixups, STI) >> 2; in getMemEncodingMMGPImm7Lsl2()
796 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm9()
800 STI) << 16; in getMemEncodingMMImm9()
801 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo + 1), Fixups, STI); in getMemEncodingMMImm9()
809 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm12()
823 unsigned RegBits = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI) << 16; in getMemEncodingMMImm12()
824 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncodingMMImm12()
832 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm16()
836 STI) << 16; in getMemEncodingMMImm16()
837 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncodingMMImm16()
845 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4sp()
863 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncodingMMImm4sp()
873 const MCSubtargetInfo &STI) const { in getSizeInsEncoding()
876 unsigned Position = getMachineOpValue(MI, MI.getOperand(OpNo-1), Fixups, STI); in getSizeInsEncoding()
877 unsigned Size = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI); in getSizeInsEncoding()
886 const MCSubtargetInfo &STI) const { in getUImmWithOffsetEncoding()
888 unsigned Value = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI); in getUImmWithOffsetEncoding()
896 const MCSubtargetInfo &STI) const { in getSimm19Lsl2Encoding()
900 unsigned Res = getMachineOpValue(MI, MO, Fixups, STI); in getSimm19Lsl2Encoding()
917 const MCSubtargetInfo &STI) const { in getSimm18Lsl3Encoding()
921 unsigned Res = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI); in getSimm18Lsl3Encoding()
938 const MCSubtargetInfo &STI) const { in getUImm3Mod8Encoding()
947 const MCSubtargetInfo &STI) const { in getUImm4AndValue()
975 const MCSubtargetInfo &STI) const { in getRegisterListOpValue()
995 const MCSubtargetInfo &STI) const { in getRegisterListOpValue16()
1002 const MCSubtargetInfo &STI) const { in getRegisterPairOpValue()
1003 return getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI); in getRegisterPairOpValue()
1009 const MCSubtargetInfo &STI) const { in getMovePRegPairOpValue()
1043 const MCSubtargetInfo &STI) const { in getSimm23Lsl2Encoding()