Lines Matching refs:AMDGPUOperand

56 class AMDGPUOperand : public MCParsedAsmOperand {  class
68 AMDGPUOperand(KindTy Kind_, const AMDGPUAsmParser *AsmParser_) in AMDGPUOperand() function in __anon71e405cc0111::AMDGPUOperand
71 using Ptr = std::unique_ptr<AMDGPUOperand>;
107 friend raw_ostream &operator <<(raw_ostream &OS, AMDGPUOperand::Modifiers Mods);
1093 static AMDGPUOperand::Ptr CreateImm(const AMDGPUAsmParser *AsmParser, in CreateImm()
1097 auto Op = std::make_unique<AMDGPUOperand>(Immediate, AsmParser); in CreateImm()
1108 static AMDGPUOperand::Ptr CreateToken(const AMDGPUAsmParser *AsmParser, in CreateToken()
1111 auto Res = std::make_unique<AMDGPUOperand>(Token, AsmParser); in CreateToken()
1119 static AMDGPUOperand::Ptr CreateReg(const AMDGPUAsmParser *AsmParser, in CreateReg()
1122 auto Op = std::make_unique<AMDGPUOperand>(Register, AsmParser); in CreateReg()
1130 static AMDGPUOperand::Ptr CreateExpr(const AMDGPUAsmParser *AsmParser, in CreateExpr()
1132 auto Op = std::make_unique<AMDGPUOperand>(Expression, AsmParser); in CreateExpr()
1140 raw_ostream &operator <<(raw_ostream &OS, AMDGPUOperand::Modifiers Mods) { in operator <<()
1347 using OptionalImmIndexMap = std::map<AMDGPUOperand::ImmTy, unsigned>;
1507 std::unique_ptr<AMDGPUOperand> parseRegister(bool RestoreOnFailure = false);
1532 AMDGPUOperand::ImmTy ImmTy = AMDGPUOperand::ImmTyNone,
1538 AMDGPUOperand::ImmTy ImmTy = AMDGPUOperand::ImmTyNone,
1543 AMDGPUOperand::ImmTy ImmTy = AMDGPUOperand::ImmTyNone);
1616 SMLoc getOperandLoc(std::function<bool(const AMDGPUOperand&)> Test,
1618 SMLoc getImmLoc(AMDGPUOperand::ImmTy Type, const OperandVector &Operands) const;
1727 AMDGPUOperand::Ptr defaultCPol() const;
1729 AMDGPUOperand::Ptr defaultSMRDOffset8() const;
1730 AMDGPUOperand::Ptr defaultSMEMOffset() const;
1731 AMDGPUOperand::Ptr defaultSMRDLiteralOffset() const;
1732 AMDGPUOperand::Ptr defaultFlatOffset() const;
1764 AMDGPUOperand::Ptr defaultRowMask() const;
1765 AMDGPUOperand::Ptr defaultBankMask() const;
1766 AMDGPUOperand::Ptr defaultBoundCtrl() const;
1767 AMDGPUOperand::Ptr defaultFI() const;
1779 AMDGPUOperand::ImmTy Type);
1791 AMDGPUOperand::Ptr defaultBLGP() const;
1792 AMDGPUOperand::Ptr defaultCBSZ() const;
1793 AMDGPUOperand::Ptr defaultABID() const;
1796 AMDGPUOperand::Ptr defaultEndpgmImmOperands() const;
1798 AMDGPUOperand::Ptr defaultWaitVDST() const;
1799 AMDGPUOperand::Ptr defaultWaitEXP() const;
1805 AMDGPUOperand::ImmTy Type;
1907 bool AMDGPUOperand::isInlinableImm(MVT type) const { in isInlinableImm()
1970 bool AMDGPUOperand::isLiteralImm(MVT type) const { in isLiteralImm()
2018 bool AMDGPUOperand::isRegClass(unsigned RCID) const { in isRegClass()
2022 bool AMDGPUOperand::isVRegWithInputMods() const { in isVRegWithInputMods()
2029 bool AMDGPUOperand::isSDWAOperand(MVT type) const { in isSDWAOperand()
2038 bool AMDGPUOperand::isSDWAFP16Operand() const { in isSDWAFP16Operand()
2042 bool AMDGPUOperand::isSDWAFP32Operand() const { in isSDWAFP32Operand()
2046 bool AMDGPUOperand::isSDWAInt16Operand() const { in isSDWAInt16Operand()
2050 bool AMDGPUOperand::isSDWAInt32Operand() const { in isSDWAInt32Operand()
2054 bool AMDGPUOperand::isBoolReg() const { in isBoolReg()
2060 uint64_t AMDGPUOperand::applyInputFPModifiers(uint64_t Val, unsigned Size) const in applyInputFPModifiers()
2077 void AMDGPUOperand::addImmOperands(MCInst &Inst, unsigned N, bool ApplyModifiers) const { in addImmOperands()
2090 void AMDGPUOperand::addLiteralImmOperand(MCInst &Inst, int64_t Val, bool ApplyModifiers) const { in addLiteralImmOperand()
2271 void AMDGPUOperand::addKImmFPOperands(MCInst &Inst, unsigned N) const { in addKImmFPOperands()
2288 void AMDGPUOperand::addRegOperands(MCInst &Inst, unsigned N) const { in addRegOperands()
2311 bool AMDGPUOperand::isInlineValue() const { in isInlineValue()
2883 std::unique_ptr<AMDGPUOperand>
2899 return AMDGPUOperand::CreateReg(this, Reg, StartLoc, EndLoc); in parseRegister()
2939 AMDGPUOperand::CreateImm(this, RealVal.bitcastToAPInt().getZExtValue(), S, in parseImm()
2940 AMDGPUOperand::ImmTyNone, true)); in parseImm()
2966 Operands.push_back(AMDGPUOperand::CreateImm(this, IntVal, S)); in parseImm()
2968 Operands.push_back(AMDGPUOperand::CreateExpr(this, Expr, S)); in parseImm()
3144 AMDGPUOperand::Modifiers Mods; in parseRegOrImmWithFPInputMods()
3149 AMDGPUOperand &Op = static_cast<AMDGPUOperand &>(*Operands.back()); in parseRegOrImmWithFPInputMods()
3179 AMDGPUOperand::Modifiers Mods; in parseRegOrImmWithIntInputMods()
3183 AMDGPUOperand &Op = static_cast<AMDGPUOperand &>(*Operands.back()); in parseRegOrImmWithIntInputMods()
3207 Operands.push_back(AMDGPUOperand::CreateImm(this, 0, Loc, in parseVReg32OrOff()
3208 AMDGPUOperand::ImmTyOff, false)); in parseVReg32OrOff()
3215 std::unique_ptr<AMDGPUOperand> Reg = parseRegister(); in parseVReg32OrOff()
4039 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in getFlatOffsetLoc()
4087 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in getSMEMOffsetLoc()
4212 SMLoc S = getImmLoc(AMDGPUOperand::ImmTyDppCtrl, Operands); in validateDPP()
4368 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in getBLGPLoc()
4448 SMLoc S = getImmLoc(AMDGPUOperand::ImmTyCPol, Operands); in validateCoherencyBits()
4459 SMLoc S = getImmLoc(AMDGPUOperand::ImmTyCPol, Operands); in validateCoherencyBits()
4477 SMLoc S = getImmLoc(AMDGPUOperand::ImmTyCPol, Operands); in validateCoherencyBits()
4502 SMLoc S = getImmLoc(AMDGPUOperand::ImmTyLDS, Operands); in validateFlatLdsDMA()
4553 Error(getImmLoc(AMDGPUOperand::ImmTyClampSI, Operands), in validateInstruction()
4558 Error(getImmLoc(AMDGPUOperand::ImmTyOpSel, Operands), in validateInstruction()
4567 Error(getImmLoc(AMDGPUOperand::ImmTyD16, Operands), in validateInstruction()
4576 Error(getImmLoc(AMDGPUOperand::ImmTyDim, Operands), in validateInstruction()
4590 Error(getImmLoc(AMDGPUOperand::ImmTyDMask, Operands), in validateInstruction()
4595 Error(getImmLoc(AMDGPUOperand::ImmTyDMask, Operands), in validateInstruction()
4746 StringRef Mnemo = ((AMDGPUOperand &)*Operands[0]).getToken(); in MatchAndEmitInstruction()
4765 ErrorLoc = ((AMDGPUOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
5723 AMDGPUOperand::CreateToken(this, "[", LBraceLoc)); in parseOperand()
5724 Operands.push_back(AMDGPUOperand::CreateToken(this, "]", RBraceLoc)); in parseOperand()
5773 Operands.push_back(AMDGPUOperand::CreateToken(this, Name, NameLoc)); in ParseInstruction()
5821 AMDGPUOperand::ImmTy ImmTy, in parseIntWithPrefix()
5834 Operands.push_back(AMDGPUOperand::CreateImm(this, Value, S, ImmTy)); in parseIntWithPrefix()
5841 AMDGPUOperand::ImmTy ImmTy, in parseOperandArrayWithPrefix()
5880 Operands.push_back(AMDGPUOperand::CreateImm(this, Val, S, ImmTy)); in parseOperandArrayWithPrefix()
5886 AMDGPUOperand::ImmTy ImmTy) { in parseNamedBit()
5907 if (isGFX9() && ImmTy == AMDGPUOperand::ImmTyA16) in parseNamedBit()
5908 ImmTy = AMDGPUOperand::ImmTyR128A16; in parseNamedBit()
5910 Operands.push_back(AMDGPUOperand::CreateImm(this, Bit, S, ImmTy)); in parseNamedBit()
5920 StringRef Mnemo = ((AMDGPUOperand &)*Operands[0]).getToken(); in parseCPol()
5974 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[I]); in parseCPol()
5981 Operands.push_back(AMDGPUOperand::CreateImm(this, CPolOn, S, in parseCPol()
5982 AMDGPUOperand::ImmTyCPol)); in parseCPol()
5990 AMDGPUOperand::ImmTy ImmT, in addOptionalImmOperand()
5995 ((AMDGPUOperand &)*Operands[Idx]).addImmOperands(Inst, 1); in addOptionalImmOperand()
6234 AMDGPUOperand::CreateImm(this, Format, Loc, AMDGPUOperand::ImmTyFORMAT)); in parseFORMAT()
6258 AMDGPUOperand &Op = static_cast<AMDGPUOperand &>(*Operands[Size - 2]); in parseFORMAT()
6259 assert(Op.isImm() && Op.getImmTy() == AMDGPUOperand::ImmTyFORMAT); in parseFORMAT()
6281 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in cvtDSOffset01()
6293 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyOffset0); in cvtDSOffset01()
6294 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyOffset1); in cvtDSOffset01()
6295 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyGDS); in cvtDSOffset01()
6303 AMDGPUOperand::ImmTy OffsetType = AMDGPUOperand::ImmTyOffset; in cvtDSImpl()
6306 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in cvtDSImpl()
6322 if (Op.getImmTy() == AMDGPUOperand::ImmTySwizzle) in cvtDSImpl()
6323 OffsetType = AMDGPUOperand::ImmTySwizzle; in cvtDSImpl()
6329 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyGDS); in cvtDSImpl()
6342 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in cvtExp()
6361 if (Op.isImm() && Op.getImmTy() == AMDGPUOperand::ImmTyExpTgt) { in cvtExp()
6376 if (OptionalIdx.find(AMDGPUOperand::ImmTyExpCompr) != OptionalIdx.end()) { in cvtExp()
6389 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyExpVM); in cvtExp()
6390 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyExpCompr); in cvtExp()
6485 Operands.push_back(AMDGPUOperand::CreateImm(this, Waitcnt, S)); in parseSWaitCntOps()
6566 Operands.push_back(AMDGPUOperand::CreateImm(this, Delay, S)); in parseSDelayAluOps()
6571 AMDGPUOperand::isSWaitCnt() const { in isSWaitCnt()
6575 bool AMDGPUOperand::isSDelayAlu() const { return isImm(); } in isSDelayAlu()
6656 Operands.push_back(AMDGPUOperand::CreateImm(this, DepCtr, Loc)); in parseDepCtrOps()
6660 bool AMDGPUOperand::isDepCtr() const { return isS16Imm(); } in isDepCtr()
6759 Operands.push_back(AMDGPUOperand::CreateImm(this, ImmVal, Loc, AMDGPUOperand::ImmTyHwreg)); in parseHwreg()
6763 bool AMDGPUOperand::isHwreg() const { in isHwreg()
6879 Operands.push_back(AMDGPUOperand::CreateImm(this, ImmVal, Loc, AMDGPUOperand::ImmTySendMsg)); in parseSendMsgOp()
6883 bool AMDGPUOperand::isSendMsg() const { in isSendMsg()
6909 Operands.push_back(AMDGPUOperand::CreateImm(this, Slot, S, in parseInterpSlot()
6910 AMDGPUOperand::ImmTyInterpSlot)); in parseInterpSlot()
6953 Operands.push_back(AMDGPUOperand::CreateImm(this, Attr, S, in parseInterpAttr()
6954 AMDGPUOperand::ImmTyInterpAttr)); in parseInterpAttr()
6955 Operands.push_back(AMDGPUOperand::CreateImm(this, AttrChan, SChan, in parseInterpAttr()
6956 AMDGPUOperand::ImmTyAttrChan)); in parseInterpAttr()
6981 Operands.push_back(AMDGPUOperand::CreateImm(this, Id, S, in parseExpTgt()
6982 AMDGPUOperand::ImmTyExpTgt)); in parseExpTgt()
7085 Operands.push_back(AMDGPUOperand::CreateImm(this, IntVal, S)); in parseExpr()
7087 Operands.push_back(AMDGPUOperand::CreateExpr(this, Expr, S)); in parseExpr()
7157 AMDGPUAsmParser::getOperandLoc(std::function<bool(const AMDGPUOperand&)> Test, in getOperandLoc()
7160 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in getOperandLoc()
7164 return ((AMDGPUOperand &)*Operands[0]).getStartLoc(); in getOperandLoc()
7168 AMDGPUAsmParser::getImmLoc(AMDGPUOperand::ImmTy Type, in getImmLoc()
7170 auto Test = [=](const AMDGPUOperand& Op) { return Op.isImmTy(Type); }; in getImmLoc()
7177 auto Test = [=](const AMDGPUOperand& Op) { in getRegLoc()
7185 auto Test = [](const AMDGPUOperand& Op) { in getLitLoc()
7193 auto Test = [](const AMDGPUOperand& Op) { in getConstLoc()
7446 Operands.push_back(AMDGPUOperand::CreateImm(this, Imm, S, AMDGPUOperand::ImmTySwizzle)); in parseSwizzleOp()
7457 AMDGPUOperand::isSwizzle() const { in isSwizzle()
7531 AMDGPUOperand::CreateImm(this, Imm, S, AMDGPUOperand::ImmTyGprIdxMode)); in parseGPRIdxMode()
7535 bool AMDGPUOperand::isGPRIdxMode() const { in isGPRIdxMode()
7555 AMDGPUOperand &Opr = ((AMDGPUOperand &)*Operands[Operands.size() - 1]); in parseSOppBrTarget()
7583 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultCPol() const { in defaultCPol()
7584 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyCPol); in defaultCPol()
7597 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in cvtMubufImpl()
7615 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in cvtMubufImpl()
7629 if (Op.isImm() && Op.getImmTy() == AMDGPUOperand::ImmTyNone) { in cvtMubufImpl()
7645 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyOffset); in cvtMubufImpl()
7646 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyCPol, 0); in cvtMubufImpl()
7649 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyTFE); in cvtMubufImpl()
7651 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySWZ); in cvtMubufImpl()
7658 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in cvtMtbuf()
7667 if (Op.isImm() && Op.getImmTy() == AMDGPUOperand::ImmTyNone) { in cvtMtbuf()
7684 AMDGPUOperand::ImmTyOffset); in cvtMtbuf()
7685 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyFORMAT); in cvtMtbuf()
7686 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyCPol, 0); in cvtMtbuf()
7687 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyTFE); in cvtMtbuf()
7688 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySWZ); in cvtMtbuf()
7700 ((AMDGPUOperand &)*Operands[I++]).addRegOperands(Inst, 1); in cvtMIMG()
7706 ((AMDGPUOperand &)*Operands[I - 1]).addRegOperands(Inst, 1); in cvtMIMG()
7712 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[I]); in cvtMIMG()
7726 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDMask); in cvtMIMG()
7728 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDim, -1); in cvtMIMG()
7729 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyUNorm); in cvtMIMG()
7730 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyCPol); in cvtMIMG()
7731 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyR128A16); in cvtMIMG()
7733 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyA16); in cvtMIMG()
7735 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyTFE); in cvtMIMG()
7736 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyLWE); in cvtMIMG()
7738 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDA); in cvtMIMG()
7739 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyD16); in cvtMIMG()
7751 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in cvtSMEMAtomic()
7768 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in cvtSMEMAtomic()
7779 if (Op.isImm() && Op.getImmTy() == AMDGPUOperand::ImmTyNone) { in cvtSMEMAtomic()
7797 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyOffset); in cvtSMEMAtomic()
7798 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyCPol, 0); in cvtSMEMAtomic()
7804 auto &Operand = (AMDGPUOperand &)*Operands[I]; in cvtIntersectRay()
7816 bool AMDGPUOperand::isSMRDOffset8() const { in isSMRDOffset8()
7820 bool AMDGPUOperand::isSMEMOffset() const { in isSMEMOffset()
7825 bool AMDGPUOperand::isSMRDLiteralOffset() const { in isSMRDLiteralOffset()
7831 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultSMRDOffset8() const { in defaultSMRDOffset8()
7832 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyOffset); in defaultSMRDOffset8()
7835 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultSMEMOffset() const { in defaultSMEMOffset()
7836 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyOffset); in defaultSMEMOffset()
7839 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultSMRDLiteralOffset() const { in defaultSMRDLiteralOffset()
7840 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyOffset); in defaultSMRDLiteralOffset()
7843 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultFlatOffset() const { in defaultFlatOffset()
7844 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyOffset); in defaultFlatOffset()
7886 {"offen", AMDGPUOperand::ImmTyOffen, true, nullptr},
7887 {"idxen", AMDGPUOperand::ImmTyIdxen, true, nullptr},
7888 {"addr64", AMDGPUOperand::ImmTyAddr64, true, nullptr},
7889 {"offset0", AMDGPUOperand::ImmTyOffset0, false, nullptr},
7890 {"offset1", AMDGPUOperand::ImmTyOffset1, false, nullptr},
7891 {"gds", AMDGPUOperand::ImmTyGDS, true, nullptr},
7892 {"lds", AMDGPUOperand::ImmTyLDS, true, nullptr},
7893 {"offset", AMDGPUOperand::ImmTyOffset, false, nullptr},
7894 {"inst_offset", AMDGPUOperand::ImmTyInstOffset, false, nullptr},
7895 {"", AMDGPUOperand::ImmTyCPol, false, nullptr},
7896 {"swz", AMDGPUOperand::ImmTySWZ, true, nullptr},
7897 {"tfe", AMDGPUOperand::ImmTyTFE, true, nullptr},
7898 {"d16", AMDGPUOperand::ImmTyD16, true, nullptr},
7899 {"high", AMDGPUOperand::ImmTyHigh, true, nullptr},
7900 {"clamp", AMDGPUOperand::ImmTyClampSI, true, nullptr},
7901 {"omod", AMDGPUOperand::ImmTyOModSI, false, ConvertOmodMul},
7902 {"unorm", AMDGPUOperand::ImmTyUNorm, true, nullptr},
7903 {"da", AMDGPUOperand::ImmTyDA, true, nullptr},
7904 {"r128", AMDGPUOperand::ImmTyR128A16, true, nullptr},
7905 {"a16", AMDGPUOperand::ImmTyA16, true, nullptr},
7906 {"lwe", AMDGPUOperand::ImmTyLWE, true, nullptr},
7907 {"d16", AMDGPUOperand::ImmTyD16, true, nullptr},
7908 {"dmask", AMDGPUOperand::ImmTyDMask, false, nullptr},
7909 {"dim", AMDGPUOperand::ImmTyDim, false, nullptr},
7910 {"dst_sel", AMDGPUOperand::ImmTySdwaDstSel, false, nullptr},
7911 {"src0_sel", AMDGPUOperand::ImmTySdwaSrc0Sel, false, nullptr},
7912 {"src1_sel", AMDGPUOperand::ImmTySdwaSrc1Sel, false, nullptr},
7913 {"dst_unused", AMDGPUOperand::ImmTySdwaDstUnused, false, nullptr},
7914 {"compr", AMDGPUOperand::ImmTyExpCompr, true, nullptr },
7915 {"vm", AMDGPUOperand::ImmTyExpVM, true, nullptr},
7916 {"op_sel", AMDGPUOperand::ImmTyOpSel, false, nullptr},
7917 {"op_sel_hi", AMDGPUOperand::ImmTyOpSelHi, false, nullptr},
7918 {"neg_lo", AMDGPUOperand::ImmTyNegLo, false, nullptr},
7919 {"neg_hi", AMDGPUOperand::ImmTyNegHi, false, nullptr},
7920 {"dpp8", AMDGPUOperand::ImmTyDPP8, false, nullptr},
7921 {"dpp_ctrl", AMDGPUOperand::ImmTyDppCtrl, false, nullptr},
7922 {"row_mask", AMDGPUOperand::ImmTyDppRowMask, false, nullptr},
7923 {"bank_mask", AMDGPUOperand::ImmTyDppBankMask, false, nullptr},
7924 {"bound_ctrl", AMDGPUOperand::ImmTyDppBoundCtrl, false, ConvertBoundCtrl},
7925 {"fi", AMDGPUOperand::ImmTyDppFi, false, nullptr},
7926 {"blgp", AMDGPUOperand::ImmTyBLGP, false, nullptr},
7927 {"cbsz", AMDGPUOperand::ImmTyCBSZ, false, nullptr},
7928 {"abid", AMDGPUOperand::ImmTyABID, false, nullptr},
7929 {"wait_vdst", AMDGPUOperand::ImmTyWaitVDST, false, nullptr},
7930 {"wait_exp", AMDGPUOperand::ImmTyWaitEXP, false, nullptr}
7978 } else if (Op.Type == AMDGPUOperand::ImmTyOModSI) { in parseOptionalOpr()
7980 } else if (Op.Type == AMDGPUOperand::ImmTySdwaDstSel || in parseOptionalOpr()
7981 Op.Type == AMDGPUOperand::ImmTySdwaSrc0Sel || in parseOptionalOpr()
7982 Op.Type == AMDGPUOperand::ImmTySdwaSrc1Sel) { in parseOptionalOpr()
7984 } else if (Op.Type == AMDGPUOperand::ImmTySdwaDstUnused) { in parseOptionalOpr()
7986 } else if (Op.Type == AMDGPUOperand::ImmTyOpSel || in parseOptionalOpr()
7987 Op.Type == AMDGPUOperand::ImmTyOpSelHi || in parseOptionalOpr()
7988 Op.Type == AMDGPUOperand::ImmTyNegLo || in parseOptionalOpr()
7989 Op.Type == AMDGPUOperand::ImmTyNegHi) { in parseOptionalOpr()
7992 } else if (Op.Type == AMDGPUOperand::ImmTyDim) { in parseOptionalOpr()
7994 } else if (Op.Type == AMDGPUOperand::ImmTyCPol) { in parseOptionalOpr()
7996 } else if (Op.Type == AMDGPUOperand::ImmTyDPP8) { in parseOptionalOpr()
7998 } else if (Op.Type == AMDGPUOperand::ImmTyDppCtrl) { in parseOptionalOpr()
8002 if (Op.Type == AMDGPUOperand::ImmTyBLGP && res == MatchOperand_NoMatch) { in parseOptionalOpr()
8004 AMDGPUOperand::ImmTyBLGP, in parseOptionalOpr()
8019 AMDGPUOperand::ImmTyOModSI, ConvertOmodMul); in parseOModOperand()
8024 AMDGPUOperand::ImmTyOModSI, ConvertOmodDiv); in parseOModOperand()
8087 ((AMDGPUOperand &)*Operands[I++]).addRegOperands(Inst, 1); in cvtVOP3Interp()
8091 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[I]); in cvtVOP3Interp()
8106 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyHigh); in cvtVOP3Interp()
8110 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyClampSI); in cvtVOP3Interp()
8114 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyOModSI); in cvtVOP3Interp()
8126 ((AMDGPUOperand &)*Operands[I++]).addRegOperands(Inst, 1); in cvtVINTERP()
8130 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[I]); in cvtVINTERP()
8140 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyClampSI); in cvtVINTERP()
8144 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyOpSel); in cvtVINTERP()
8146 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyWaitEXP); in cvtVINTERP()
8185 ((AMDGPUOperand &)*Operands[I++]).addRegOperands(Inst, 1); in cvtVOP3()
8191 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[I]); in cvtVOP3()
8205 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[I]); in cvtVOP3()
8215 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyClampSI); in cvtVOP3()
8219 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyOModSI); in cvtVOP3()
8277 addOptionalImmOperand(Inst, Operands, OptIdx, AMDGPUOperand::ImmTyOpSel); in cvtVOP3P()
8283 addOptionalImmOperand(Inst, Operands, OptIdx, AMDGPUOperand::ImmTyOpSelHi, in cvtVOP3P()
8289 addOptionalImmOperand(Inst, Operands, OptIdx, AMDGPUOperand::ImmTyNegLo); in cvtVOP3P()
8290 addOptionalImmOperand(Inst, Operands, OptIdx, AMDGPUOperand::ImmTyNegHi); in cvtVOP3P()
8363 Operands.push_back(AMDGPUOperand::CreateToken(this, "::", S)); in parseVOPD()
8366 Operands.push_back(AMDGPUOperand::CreateExpr(this, Expr, S)); in parseVOPD()
8386 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[i]); in cvtVOPD()
8467 bool AMDGPUOperand::isDPP8() const { in isDPP8()
8471 bool AMDGPUOperand::isDPPCtrl() const { in isDPPCtrl()
8499 bool AMDGPUOperand::isBLGP() const { in isBLGP()
8503 bool AMDGPUOperand::isCBSZ() const { in isCBSZ()
8507 bool AMDGPUOperand::isABID() const { in isABID()
8511 bool AMDGPUOperand::isS16Imm() const { in isS16Imm()
8515 bool AMDGPUOperand::isU16Imm() const { in isU16Imm()
8568 Operands.push_back(AMDGPUOperand::CreateImm(this, Encoding, S, in parseDim()
8569 AMDGPUOperand::ImmTyDim)); in parseDim()
8610 Operands.push_back(AMDGPUOperand::CreateImm(this, DPP8, S, AMDGPUOperand::ImmTyDPP8)); in parseDPP8()
8749 AMDGPUOperand::CreateImm(this, Val, S, AMDGPUOperand::ImmTyDppCtrl)); in parseDPPCtrl()
8753 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultRowMask() const { in defaultRowMask()
8754 return AMDGPUOperand::CreateImm(this, 0xf, SMLoc(), AMDGPUOperand::ImmTyDppRowMask); in defaultRowMask()
8757 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultEndpgmImmOperands() const { in defaultEndpgmImmOperands()
8758 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyEndpgm); in defaultEndpgmImmOperands()
8761 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultBankMask() const { in defaultBankMask()
8762 return AMDGPUOperand::CreateImm(this, 0xf, SMLoc(), AMDGPUOperand::ImmTyDppBankMask); in defaultBankMask()
8765 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultBoundCtrl() const { in defaultBoundCtrl()
8766 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyDppBoundCtrl); in defaultBoundCtrl()
8769 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultFI() const { in defaultFI()
8770 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyDppFi); in defaultFI()
8780 ((AMDGPUOperand &)*Operands[I++]).addRegOperands(Inst, 1); in cvtVOP3DPP()
8792 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[I]); in cvtVOP3DPP()
8813 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyClampSI); in cvtVOP3DPP()
8816 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyOModSI); in cvtVOP3DPP()
8823 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyOpSel); in cvtVOP3DPP()
8827 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDPP8); in cvtVOP3DPP()
8831 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDppCtrl, 0xe4); in cvtVOP3DPP()
8832 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDppRowMask, 0xf); in cvtVOP3DPP()
8833 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDppBankMask, 0xf); in cvtVOP3DPP()
8834 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDppBoundCtrl); in cvtVOP3DPP()
8836 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDppFi); in cvtVOP3DPP()
8850 ((AMDGPUOperand &)*Operands[I++]).addRegOperands(Inst, 1); in cvtDPP()
8862 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[I]); in cvtDPP()
8904 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDppRowMask, 0xf); in cvtDPP()
8905 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDppBankMask, 0xf); in cvtDPP()
8906 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDppBoundCtrl); in cvtDPP()
8908 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyDppFi); in cvtDPP()
8919 AMDGPUOperand::ImmTy Type) { in parseSDWASel()
8948 Operands.push_back(AMDGPUOperand::CreateImm(this, Int, S, Type)); in parseSDWASel()
8978 Operands.push_back(AMDGPUOperand::CreateImm(this, Int, S, AMDGPUOperand::ImmTySdwaDstUnused)); in parseSDWADstUnused()
9015 ((AMDGPUOperand &)*Operands[I++]).addRegOperands(Inst, 1); in cvtSDWA()
9019 AMDGPUOperand &Op = ((AMDGPUOperand &)*Operands[I]); in cvtSDWA()
9058 AMDGPUOperand::ImmTyClampSI, 0); in cvtSDWA()
9063 AMDGPUOperand::ImmTyOModSI, 0); in cvtSDWA()
9068 AMDGPUOperand::ImmTySdwaDstSel, SdwaSel::DWORD); in cvtSDWA()
9073 AMDGPUOperand::ImmTySdwaDstUnused, in cvtSDWA()
9076 …addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaSrc0Sel, SdwaSel::DWORD… in cvtSDWA()
9080 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyClampSI, 0); in cvtSDWA()
9082 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyOModSI, 0); in cvtSDWA()
9084 …addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaDstSel, SdwaSel::DWORD); in cvtSDWA()
9085 …addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaDstUnused, DstUnused::U… in cvtSDWA()
9086 …addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaSrc0Sel, SdwaSel::DWORD… in cvtSDWA()
9087 …addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaSrc1Sel, SdwaSel::DWORD… in cvtSDWA()
9092 addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTyClampSI, 0); in cvtSDWA()
9093 …addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaSrc0Sel, SdwaSel::DWORD… in cvtSDWA()
9094 …addOptionalImmOperand(Inst, Operands, OptionalIdx, AMDGPUOperand::ImmTySdwaSrc1Sel, SdwaSel::DWORD… in cvtSDWA()
9117 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultBLGP() const { in defaultBLGP()
9118 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyBLGP); in defaultBLGP()
9121 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultCBSZ() const { in defaultCBSZ()
9122 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyCBSZ); in defaultCBSZ()
9125 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultABID() const { in defaultABID()
9126 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyABID); in defaultABID()
9149 AMDGPUOperand &Operand = (AMDGPUOperand&)Op; in validateTargetOperandClass()
9215 AMDGPUOperand::CreateImm(this, Imm, S, AMDGPUOperand::ImmTyEndpgm)); in parseEndpgmOp()
9219 bool AMDGPUOperand::isEndpgm() const { return isImmTy(ImmTyEndpgm); } in isEndpgm()
9225 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultWaitVDST() const { in defaultWaitVDST()
9226 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyWaitVDST); in defaultWaitVDST()
9229 bool AMDGPUOperand::isWaitVDST() const { in isWaitVDST()
9237 AMDGPUOperand::Ptr AMDGPUAsmParser::defaultWaitEXP() const { in defaultWaitEXP()
9238 return AMDGPUOperand::CreateImm(this, 0, SMLoc(), AMDGPUOperand::ImmTyWaitEXP); in defaultWaitEXP()
9241 bool AMDGPUOperand::isWaitEXP() const { in isWaitEXP()