Lines Matching defs:RISCVOperand

61 struct RISCVOperand;
278 std::unique_ptr<RISCVOperand> defaultMaskRegOp() const;
279 std::unique_ptr<RISCVOperand> defaultFRMArgOp() const;
280 std::unique_ptr<RISCVOperand> defaultFRMArgLegacyOp() const;
330 /// RISCVOperand - Instances of this class represent a parsed machine
332 struct RISCVOperand final : public MCParsedAsmOperand {
410 RISCVOperand(KindTy K) : Kind(K) {}
413 RISCVOperand(const RISCVOperand &o) : MCParsedAsmOperand() {
1164 static std::unique_ptr<RISCVOperand> createToken(StringRef Str, SMLoc S) {
1165 auto Op = std::make_unique<RISCVOperand>(KindTy::Token);
1172 static std::unique_ptr<RISCVOperand>
1174 auto Op = std::make_unique<RISCVOperand>(KindTy::Register);
1182 static std::unique_ptr<RISCVOperand> createImm(const MCExpr *Val, SMLoc S,
1184 auto Op = std::make_unique<RISCVOperand>(KindTy::Immediate);
1192 static std::unique_ptr<RISCVOperand> createFPImm(uint64_t Val, SMLoc S) {
1193 auto Op = std::make_unique<RISCVOperand>(KindTy::FPImmediate);
1200 static std::unique_ptr<RISCVOperand> createSysReg(StringRef Str, SMLoc S,
1202 auto Op = std::make_unique<RISCVOperand>(KindTy::SystemRegister);
1211 static std::unique_ptr<RISCVOperand>
1213 auto Op = std::make_unique<RISCVOperand>(KindTy::FRM);
1220 static std::unique_ptr<RISCVOperand> createFenceArg(unsigned Val, SMLoc S) {
1221 auto Op = std::make_unique<RISCVOperand>(KindTy::Fence);
1228 static std::unique_ptr<RISCVOperand> createVType(unsigned VTypeI, SMLoc S) {
1229 auto Op = std::make_unique<RISCVOperand>(KindTy::VType);
1236 static std::unique_ptr<RISCVOperand> createRlist(unsigned RlistEncode,
1238 auto Op = std::make_unique<RISCVOperand>(KindTy::Rlist);
1244 static std::unique_ptr<RISCVOperand> createRegReg(MCRegister Reg1,
1246 auto Op = std::make_unique<RISCVOperand>(KindTy::RegReg);
1254 static std::unique_ptr<RISCVOperand> createSpimm(unsigned Spimm, SMLoc S) {
1255 auto Op = std::make_unique<RISCVOperand>(KindTy::Spimm);
1380 RISCVOperand &Op = static_cast<RISCVOperand &>(AsmOp);
1442 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1479 ((RISCVOperand &)*Operands[0]).getToken(), FBS, 0);
1488 ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1510 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1518 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1528 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1658 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1662 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1666 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1670 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1674 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1678 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1683 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1687 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1691 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1695 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1707 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1713 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1723 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1806 Operands.push_back(RISCVOperand::createToken("(", FirstS));
1810 Operands.push_back(RISCVOperand::createReg(Reg, S, E));
1815 Operands.push_back(RISCVOperand::createToken(")", getLoc()));
1843 Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
1861 Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
1898 Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
1922 Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
1951 return RISCVOperand::createSysReg(Reg.Name, S, Imm);
1955 return RISCVOperand::createSysReg("", S, Imm);
1958 return std::unique_ptr<RISCVOperand>();
2020 RISCVOperand::createSysReg(Identifier, S, SysReg->Encoding));
2057 RISCVOperand::createImm(MCConstantExpr::create(30, getContext()), S,
2061 RISCVOperand::createImm(MCConstantExpr::create(31, getContext()), S,
2065 RISCVOperand::createImm(MCConstantExpr::create(1, getContext()), S,
2093 Operands.push_back(RISCVOperand::createFPImm(
2125 Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
2152 Operands.push_back(RISCVOperand::createImm(ModExpr, S, E, isRV64()));
2189 Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
2205 Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
2232 Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
2250 Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
2378 Operands.push_back(RISCVOperand::createVType(VTypeI, S));
2408 Operands.push_back(RISCVOperand::createReg(Reg, S, E));
2431 Operands.push_back(RISCVOperand::createReg(
2469 Operands.push_back(RISCVOperand::createReg(Pair, S, E, /*isGPRAsFPR=*/true));
2511 Operands.push_back(RISCVOperand::createReg(Pair, S, E));
2527 Operands.push_back(RISCVOperand::createFRMArg(FRM, getLoc()));
2539 Operands.push_back(RISCVOperand::createFenceArg(0, getLoc()));
2582 Operands.push_back(RISCVOperand::createFenceArg(Imm, getLoc()));
2595 Operands.push_back(RISCVOperand::createToken("(", getLoc()));
2602 Operands.push_back(RISCVOperand::createToken(")", getLoc()));
2626 std::unique_ptr<RISCVOperand> OptionalImmOp;
2638 // Create a RISCVOperand for checking later (so the error messages are
2642 RISCVOperand::createImm(MCConstantExpr::create(ImmVal, getContext()),
2692 Operands.push_back(RISCVOperand::createRegReg(Reg, Reg2, getLoc()));
2788 Operands.push_back(RISCVOperand::createRlist(Encode, S));
2800 unsigned RlistVal = static_cast<RISCVOperand *>(Operands[1].get())->Rlist.Val;
2805 Operands.push_back(RISCVOperand::createSpimm(Spimm << 4, S));
2859 Operands.push_back(RISCVOperand::createToken(Name, NameLoc));
3617 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[3]).getStartLoc();
3630 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[3]).getStartLoc();
3638 std::unique_ptr<RISCVOperand> RISCVAsmParser::defaultMaskRegOp() const {
3639 return RISCVOperand::createReg(MCRegister(), llvm::SMLoc(), llvm::SMLoc());
3642 std::unique_ptr<RISCVOperand> RISCVAsmParser::defaultFRMArgOp() const {
3643 return RISCVOperand::createFRMArg(RISCVFPRndMode::RoundingMode::DYN,
3647 std::unique_ptr<RISCVOperand> RISCVAsmParser::defaultFRMArgLegacyOp() const {
3648 return RISCVOperand::createFRMArg(RISCVFPRndMode::RoundingMode::RNE,