Lines Matching refs:STI

118 bool MipsMCCodeEmitter::isMicroMips(const MCSubtargetInfo &STI) const {  in isMicroMips()
119 return STI.getFeatureBits()[Mips::FeatureMicroMips]; in isMicroMips()
122 bool MipsMCCodeEmitter::isMips32r6(const MCSubtargetInfo &STI) const { in isMips32r6()
123 return STI.getFeatureBits()[Mips::FeatureMips32r6]; in isMips32r6()
131 const MCSubtargetInfo &STI, in emitInstruction() argument
137 if (IsLittleEndian && Size == 4 && isMicroMips(STI)) { in emitInstruction()
138 emitInstruction(Val >> 16, 2, STI, OS); in emitInstruction()
139 emitInstruction(Val, 2, STI, OS); in emitInstruction()
153 const MCSubtargetInfo &STI) const in encodeInstruction()
181 uint32_t Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in encodeInstruction()
192 if (isMicroMips(STI)) { in encodeInstruction()
193 if (isMips32r6(STI)) { in encodeInstruction()
210 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in encodeInstruction()
215 unsigned RegPair = getMovePRegPairOpValue(MI, 0, Fixups, STI); in encodeInstruction()
227 emitInstruction(Binary, Size, STI, OS); in encodeInstruction()
236 const MCSubtargetInfo &STI) const { in getBranchTargetOpValue()
258 const MCSubtargetInfo &STI) const { in getBranchTargetOpValue1SImm16()
280 const MCSubtargetInfo &STI) const { in getBranchTargetOpValueMMR6()
303 const MCSubtargetInfo &STI) const { in getBranchTargetOpValueLsl2MMR6()
326 const MCSubtargetInfo &STI) const { in getBranchTarget7OpValueMM()
347 const MCSubtargetInfo &STI) const { in getBranchTargetOpValueMMPC10()
368 const MCSubtargetInfo &STI) const { in getBranchTargetOpValueMM()
390 const MCSubtargetInfo &STI) const { in getBranchTarget21OpValue()
412 const MCSubtargetInfo &STI) const { in getBranchTarget21OpValueMM()
434 const MCSubtargetInfo &STI) const { in getBranchTarget26OpValue()
455 const MCSubtargetInfo &STI) const { in getBranchTarget26OpValueMM()
478 const MCSubtargetInfo &STI) const { in getJumpOffset16OpValue()
488 isMicroMips(STI) ? Mips::fixup_MICROMIPS_LO16 : Mips::fixup_Mips_LO16; in getJumpOffset16OpValue()
499 const MCSubtargetInfo &STI) const { in getJumpTargetOpValue()
516 const MCSubtargetInfo &STI) const { in getJumpTargetOpValueMM()
533 const MCSubtargetInfo &STI) const { in getUImm5Lsl2Encoding()
537 unsigned Res = getMachineOpValue(MI, MO, Fixups, STI); in getUImm5Lsl2Encoding()
551 const MCSubtargetInfo &STI) const { in getSImm3Lsa2Value()
564 const MCSubtargetInfo &STI) const { in getUImm6Lsl2Encoding()
577 const MCSubtargetInfo &STI) const { in getSImm9AddiuspValue()
589 const MCSubtargetInfo &STI) const { in getExprOpValue()
602 getExprOpValue(cast<MCBinaryExpr>(Expr)->getLHS(), Fixups, STI); in getExprOpValue()
603 Res += getExprOpValue(cast<MCBinaryExpr>(Expr)->getRHS(), Fixups, STI); in getExprOpValue()
619 return getExprOpValue(MipsExpr->getSubExpr(), Fixups, STI); in getExprOpValue()
627 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_DTPREL_HI16 in getExprOpValue()
631 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_DTPREL_LO16 in getExprOpValue()
635 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOTTPREL in getExprOpValue()
639 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT16 in getExprOpValue()
643 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_CALL16 in getExprOpValue()
647 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT_DISP in getExprOpValue()
657 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT_PAGE in getExprOpValue()
661 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GOT_OFST in getExprOpValue()
670 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GPOFF_LO in getExprOpValue()
673 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_LO16 in getExprOpValue()
677 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_HIGHEST in getExprOpValue()
681 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_HIGHER in getExprOpValue()
687 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_GPOFF_HI in getExprOpValue()
690 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_HI16 in getExprOpValue()
700 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_GD in getExprOpValue()
704 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_LDM in getExprOpValue()
708 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_TPREL_HI16 in getExprOpValue()
712 FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_TLS_TPREL_LO16 in getExprOpValue()
717 isMicroMips(STI) ? Mips::fixup_MICROMIPS_SUB : Mips::fixup_Mips_SUB; in getExprOpValue()
734 const MCSubtargetInfo &STI) const { in getMachineOpValue()
746 return getExprOpValue(MO.getExpr(),Fixups, STI); in getMachineOpValue()
754 const MCSubtargetInfo &STI) const { in getMemEncoding()
757 unsigned RegBits = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI) in getMemEncoding()
759 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncoding()
770 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4()
774 Fixups, STI) << 4; in getMemEncodingMMImm4()
776 Fixups, STI); in getMemEncodingMMImm4()
784 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4Lsl1()
788 Fixups, STI) << 4; in getMemEncodingMMImm4Lsl1()
790 Fixups, STI) >> 1; in getMemEncodingMMImm4Lsl1()
798 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4Lsl2()
802 Fixups, STI) << 4; in getMemEncodingMMImm4Lsl2()
804 Fixups, STI) >> 2; in getMemEncodingMMImm4Lsl2()
812 const MCSubtargetInfo &STI) const { in getMemEncodingMMSPImm5Lsl2()
819 Fixups, STI) >> 2; in getMemEncodingMMSPImm5Lsl2()
827 const MCSubtargetInfo &STI) const { in getMemEncodingMMGPImm7Lsl2()
834 Fixups, STI) >> 2; in getMemEncodingMMGPImm7Lsl2()
842 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm9()
846 STI) << 16; in getMemEncodingMMImm9()
848 getMachineOpValue(MI, MI.getOperand(OpNo + 1), Fixups, STI); in getMemEncodingMMImm9()
856 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm11()
860 STI) << 16; in getMemEncodingMMImm11()
861 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncodingMMImm11()
869 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm12()
883 unsigned RegBits = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI) in getMemEncodingMMImm12()
885 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncodingMMImm12()
893 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm16()
897 STI) << 16; in getMemEncodingMMImm16()
898 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncodingMMImm16()
906 const MCSubtargetInfo &STI) const { in getMemEncodingMMImm4sp()
924 unsigned OffBits = getMachineOpValue(MI, MI.getOperand(OpNo+1), Fixups, STI); in getMemEncodingMMImm4sp()
934 const MCSubtargetInfo &STI) const { in getSizeInsEncoding()
937 unsigned Position = getMachineOpValue(MI, MI.getOperand(OpNo-1), Fixups, STI); in getSizeInsEncoding()
938 unsigned Size = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI); in getSizeInsEncoding()
947 const MCSubtargetInfo &STI) const { in getUImmWithOffsetEncoding()
949 unsigned Value = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI); in getUImmWithOffsetEncoding()
957 const MCSubtargetInfo &STI) const { in getSimm19Lsl2Encoding()
961 unsigned Res = getMachineOpValue(MI, MO, Fixups, STI); in getSimm19Lsl2Encoding()
970 Mips::Fixups FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_PC19_S2 in getSimm19Lsl2Encoding()
979 const MCSubtargetInfo &STI) const { in getSimm18Lsl3Encoding()
983 unsigned Res = getMachineOpValue(MI, MI.getOperand(OpNo), Fixups, STI); in getSimm18Lsl3Encoding()
992 Mips::Fixups FixupKind = isMicroMips(STI) ? Mips::fixup_MICROMIPS_PC18_S3 in getSimm18Lsl3Encoding()
1001 const MCSubtargetInfo &STI) const { in getUImm3Mod8Encoding()
1010 const MCSubtargetInfo &STI) const { in getUImm4AndValue()
1038 const MCSubtargetInfo &STI) const { in getRegisterListOpValue()
1058 const MCSubtargetInfo &STI) const { in getRegisterListOpValue16()
1065 const MCSubtargetInfo &STI) const { in getMovePRegPairOpValue()
1099 const MCSubtargetInfo &STI) const { in getMovePRegSingleOpValue()
1122 const MCSubtargetInfo &STI) const { in getSimm23Lsl2Encoding()