LLVM 23.0.0git
RISCVBaseInfo.h
Go to the documentation of this file.
1//===-- RISCVBaseInfo.h - Top level definitions for RISC-V MC ---*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file contains small standalone enum definitions for the RISC-V target
10// useful for the compiler back-end and the MC libraries.
11//
12//===----------------------------------------------------------------------===//
13#ifndef LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVBASEINFO_H
14#define LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVBASEINFO_H
15
17#include "llvm/ADT/APFloat.h"
18#include "llvm/ADT/APInt.h"
19#include "llvm/ADT/StringRef.h"
22#include "llvm/MC/MCInstrDesc.h"
26
27namespace llvm {
28
29class MCSubtargetInfo;
30
31namespace RISCVOp {
32enum OperandType : unsigned {
103 // Operand is a 3-bit rounding mode, '111' indicates FRM register.
104 // Represents 'frm' argument passing to floating-point operations.
106 // Operand is a 3-bit rounding mode where only RTZ is valid.
108 // Condition code used by select and short forward branch pseudos.
110 // Ordering for atomic pseudos.
112 // Vector policy operand.
114 // Vector SEW operand. Stores in log2(SEW).
116 // Special SEW for mask only instructions. Always 0.
118 // Vector rounding mode for VXRM or FRM.
120 // Vtype operand for XSfmm extension.
122 // XSfmm twiden operand.
125
128
129 // Simm12 or constant pool, global, basicblock, etc.
131
133
134 // Operand is either a register or uimm5, this is used by V extension pseudo
135 // instructions to represent a value that be passed as AVL to either vsetvli
136 // or vsetivli.
138
139 // Operand is either a register or imm, this is used by short forward branch
140 // (SFB) pseudos to enable SFB with branches on reg-reg and reg-imm compares.
142
143 // Operand is a branch opcode, this too is used by SFB pseudos.
145
147};
148} // namespace RISCVOp
149
150// RISCVII - This namespace holds all of the target specific flags that
151// instruction info tracks. All definitions must match RISCVInstrFormats.td.
152namespace RISCVII {
153enum {
183
186
192
195
196 // Is this a _TIED vector pseudo instruction. For these instructions we
197 // shouldn't skip the tied operand when converting to MC instructions.
200
201 // Does this instruction have a SEW operand. It will be the last explicit
202 // operand unless there is a vector policy operand. Used by RVV Pseudos.
205
206 // Does this instruction have a VL operand. It will be the second to last
207 // explicit operand unless there is a vector policy operand. Used by RVV
208 // Pseudos.
211
212 // Does this instruction have a vector policy operand. It will be the last
213 // explicit operand. Used by RVV Pseudos.
216
217 // Is this instruction a vector widening reduction instruction. Used by RVV
218 // Pseudos.
221
222 // Does this instruction care about mask policy. If it is not, the mask policy
223 // could be either agnostic or undisturbed. For example, unmasked, store, and
224 // reduction operations result would not be affected by mask policy, so
225 // compiler has free to select either one.
228
229 // Indicates that the result can be considered sign extended from bit 31. Some
230 // instructions with this flag aren't W instructions, but are either sign
231 // extended from a smaller size, always outputs a small integer, or put zeros
232 // in bits 63:31. Used by the SExtWRemoval pass.
235
238
241
242 // Indicates whether these instructions can partially overlap between source
243 // registers and destination registers according to the vector spec.
244 // 0 -> not a vector pseudo
245 // 1 -> default value for vector pseudos. not widening or narrowing.
246 // 2 -> narrowing case
247 // 3 -> widening case
250
253
256
257 // Indicates the EEW of a vector instruction's destination operand.
258 // 0 -> 1
259 // 1 -> SEW
260 // 2 -> SEW * 2
261 // 3 -> SEW * 4
264
267
268 // 0 -> Don't care about altfmt bit in VTYPE.
269 // 1 -> Is not altfmt.
270 // 2 -> Is altfmt(BF16).
273
274 // XSfmmbase
277
280
283};
284
285// Helper functions to read TSFlags.
286/// \returns the format of the instruction.
287static inline unsigned getFormat(uint64_t TSFlags) {
288 return (TSFlags & InstFormatMask) >> InstFormatShift;
289}
290/// \returns the LMUL for the instruction.
291static inline RISCVVType::VLMUL getLMul(uint64_t TSFlags) {
292 return static_cast<RISCVVType::VLMUL>((TSFlags & VLMulMask) >> VLMulShift);
293}
294/// \returns true if this a _TIED pseudo.
295static inline bool isTiedPseudo(uint64_t TSFlags) {
296 return TSFlags & IsTiedPseudoMask;
297}
298/// \returns true if there is a SEW operand for the instruction.
299static inline bool hasSEWOp(uint64_t TSFlags) {
300 return TSFlags & HasSEWOpMask;
301}
302/// \returns true if there is a VL operand for the instruction.
303static inline bool hasVLOp(uint64_t TSFlags) {
304 return TSFlags & HasVLOpMask;
305}
306/// \returns true if there is a vector policy operand for this instruction.
307static inline bool hasVecPolicyOp(uint64_t TSFlags) {
308 return TSFlags & HasVecPolicyOpMask;
309}
310/// \returns true if it is a vector widening reduction instruction.
311static inline bool isRVVWideningReduction(uint64_t TSFlags) {
312 return TSFlags & IsRVVWideningReductionMask;
313}
314/// \returns true if mask policy is valid for the instruction.
315static inline bool usesMaskPolicy(uint64_t TSFlags) {
316 return TSFlags & UsesMaskPolicyMask;
317}
318
319/// \returns true if there is a rounding mode operand for this instruction
320static inline bool hasRoundModeOp(uint64_t TSFlags) {
321 return TSFlags & HasRoundModeOpMask;
322}
323
325static inline AltFmtType getAltFmtType(uint64_t TSFlags) {
326 return static_cast<AltFmtType>((TSFlags & AltFmtTypeMask) >> AltFmtTypeShift);
327}
328
329/// \returns true if this instruction uses vxrm
330static inline bool usesVXRM(uint64_t TSFlags) { return TSFlags & UsesVXRMMask; }
331
332/// \returns true if the elements in the body are affected by VL,
333/// e.g. vslide1down.vx/vredsum.vs/viota.m
334static inline bool elementsDependOnVL(uint64_t TSFlags) {
335 return TSFlags & ElementsDependOnVLMask;
336}
337
338/// \returns true if the elements in the body are affected by the mask,
339/// e.g. vredsum.vs/viota.m
340static inline bool elementsDependOnMask(uint64_t TSFlags) {
341 return TSFlags & ElementsDependOnMaskMask;
342}
343
344/// \returns true if the instruction may read elements past VL, e.g.
345/// vslidedown/vrgather
346static inline bool readsPastVL(uint64_t TSFlags) {
347 return TSFlags & ReadsPastVLMask;
348}
349
350// XSfmmbase
351static inline bool hasTWidenOp(uint64_t TSFlags) {
352 return TSFlags & HasTWidenOpMask;
353}
354
355static inline bool hasTMOp(uint64_t TSFlags) { return TSFlags & HasTMOpMask; }
356
357static inline bool hasTKOp(uint64_t TSFlags) { return TSFlags & HasTKOpMask; }
358
359static inline unsigned getTWidenOpNum(const MCInstrDesc &Desc) {
360 assert(hasTWidenOp(Desc.TSFlags));
361 return Desc.getNumOperands() - 1;
362}
363
364static inline unsigned getTNOpNum(const MCInstrDesc &Desc) {
365 const uint64_t TSFlags = Desc.TSFlags;
366 assert(hasTWidenOp(TSFlags) && hasVLOp(TSFlags));
367 unsigned Offset = 3;
368 if (hasTKOp(TSFlags))
369 Offset = 4;
370 return Desc.getNumOperands() - Offset;
371}
372
373static inline unsigned getTMOpNum(const MCInstrDesc &Desc) {
374 const uint64_t TSFlags = Desc.TSFlags;
375 assert(hasTWidenOp(TSFlags) && hasTMOp(TSFlags));
376 if (hasTKOp(TSFlags))
377 return Desc.getNumOperands() - 5;
378 // vtzero.t
379 return Desc.getNumOperands() - 4;
380}
381
382static inline unsigned getTKOpNum(const MCInstrDesc &Desc) {
383 [[maybe_unused]] const uint64_t TSFlags = Desc.TSFlags;
384 assert(hasTWidenOp(TSFlags) && hasTKOp(TSFlags));
385 return Desc.getNumOperands() - 3;
386}
387
388static inline unsigned getVLOpNum(const MCInstrDesc &Desc) {
389 const uint64_t TSFlags = Desc.TSFlags;
390 // This method is only called if we expect to have a VL operand, and all
391 // instructions with VL also have SEW.
392 assert(hasSEWOp(TSFlags) && hasVLOp(TSFlags));
393 // In Xsfmmbase, TN is an alias for VL, so here we use the same TSFlags bit.
394 if (hasTWidenOp(TSFlags))
395 return getTNOpNum(Desc);
396 unsigned Offset = 2;
397 if (hasVecPolicyOp(TSFlags))
398 Offset = 3;
399 return Desc.getNumOperands() - Offset;
400}
401
402static inline MCRegister
404 // For Zicfilp, PseudoTAIL should be expanded to a software guarded branch.
405 // It means to use t2(x7) as rs1 of JALR to expand PseudoTAIL.
406 return FeatureBits[RISCV::FeatureStdExtZicfilp] ? RISCV::X7 : RISCV::X6;
407}
408
409static inline unsigned getSEWOpNum(const MCInstrDesc &Desc) {
410 const uint64_t TSFlags = Desc.TSFlags;
411 assert(hasSEWOp(TSFlags));
412 unsigned Offset = 1;
413 if (hasVecPolicyOp(TSFlags) || hasTWidenOp(TSFlags))
414 Offset = 2;
415 return Desc.getNumOperands() - Offset;
416}
417
418static inline unsigned getVecPolicyOpNum(const MCInstrDesc &Desc) {
419 assert(hasVecPolicyOp(Desc.TSFlags));
420 return Desc.getNumOperands() - 1;
421}
422
423/// \returns the index to the rounding mode immediate value if any, otherwise
424/// returns -1.
425static inline int getFRMOpNum(const MCInstrDesc &Desc) {
426 const uint64_t TSFlags = Desc.TSFlags;
427 if (!hasRoundModeOp(TSFlags) || usesVXRM(TSFlags))
428 return -1;
429
430 int Idx = RISCV::getNamedOperandIdx(Desc.getOpcode(), RISCV::OpName::rm);
431 assert(Idx >= 0 && "No rm operand?");
432 assert(Desc.operands()[Idx].OperandType == RISCVOp::OPERAND_VEC_RM &&
433 "Operand has wrong type");
434
435 return Idx;
436}
437
438/// \returns the index to the rounding mode immediate value if any, otherwise
439/// returns -1.
440static inline int getVXRMOpNum(const MCInstrDesc &Desc) {
441 const uint64_t TSFlags = Desc.TSFlags;
442 if (!hasRoundModeOp(TSFlags) || !usesVXRM(TSFlags))
443 return -1;
444
445 int Idx = RISCV::getNamedOperandIdx(Desc.getOpcode(), RISCV::OpName::rm);
446 assert(Idx >= 0 && "No rm operand?");
447 assert(Desc.operands()[Idx].OperandType == RISCVOp::OPERAND_VEC_RM &&
448 "Operand has wrong type");
449
450 return Idx;
451}
452
453// Is the first def operand tied to the first use operand. This is true for
454// vector pseudo instructions that have a merge operand for tail/mask
455// undisturbed. It's also true for vector FMA instructions where one of the
456// operands is also the destination register.
457static inline bool isFirstDefTiedToFirstUse(const MCInstrDesc &Desc) {
458 return Desc.getNumDefs() < Desc.getNumOperands() &&
459 Desc.getOperandConstraint(Desc.getNumDefs(), MCOI::TIED_TO) == 0;
460}
461
462// RISC-V Specific Machine Operand Flags
463enum {
466 MO_LO = 3,
467 MO_HI = 4,
481
482 // Used to differentiate between target-specific "direct" flags and "bitmask"
483 // flags. A machine operand can only have one "direct" flag, but can have
484 // multiple "bitmask" flags.
486};
487} // namespace RISCVII
488
489// Describes the predecessor/successor bits used in the FENCE instruction.
492 I = 8,
493 O = 4,
494 R = 2,
495 W = 1
496};
497}
498
499// Describes the supported floating point rounding mode encodings.
500namespace RISCVFPRndMode {
502 RNE = 0,
503 RTZ = 1,
504 RDN = 2,
505 RUP = 3,
506 RMM = 4,
507 DYN = 7,
509};
510
512 switch (RndMode) {
513 default:
514 llvm_unreachable("Unknown floating point rounding mode");
516 return "rne";
518 return "rtz";
520 return "rdn";
522 return "rup";
524 return "rmm";
526 return "dyn";
527 }
528}
529
540
541inline static bool isValidRoundingMode(unsigned Mode) {
542 switch (Mode) {
543 default:
544 return false;
551 return true;
552 }
553}
554} // namespace RISCVFPRndMode
555
556namespace RISCVVXRndMode {
558 RNU = 0,
559 RNE = 1,
560 RDN = 2,
561 ROD = 3,
563};
564
566 switch (RndMode) {
567 default:
568 llvm_unreachable("Unknown vector fixed-point rounding mode");
570 return "rnu";
572 return "rne";
574 return "rdn";
576 return "rod";
577 }
578}
579
588
589inline static bool isValidRoundingMode(unsigned Mode) {
590 switch (Mode) {
591 default:
592 return false;
597 return true;
598 }
599}
600} // namespace RISCVVXRndMode
601
604 NX = 0x01, // Inexact
605 UF = 0x02, // Underflow
606 OF = 0x04, // Overflow
607 DZ = 0x08, // Divide by zero
608 NV = 0x10, // Invalid operation
609 ALL = 0x1F // Mask for all accrued exception flags
610};
611}
612
613//===----------------------------------------------------------------------===//
614// Floating-point Immediates
615//
616
617namespace RISCVLoadFPImm {
618float getFPImm(unsigned Imm);
619
620/// getLoadFPImm - Return a 5-bit binary encoding of the floating-point
621/// immediate value. If the value cannot be represented as a 5-bit binary
622/// encoding, then return -1.
623int getLoadFPImm(APFloat FPImm);
624} // namespace RISCVLoadFPImm
625
626namespace RISCVSysReg {
627struct SysReg {
629 unsigned Encoding;
630 // FIXME: add these additional fields when needed.
631 // Privilege Access: Read, Write, Read-Only.
632 // unsigned ReadWrite;
633 // Privilege Mode: User, System or Machine.
634 // unsigned Mode;
635 // Check field name.
636 // unsigned Extra;
637 // Register number without the privilege bits.
638 // unsigned Number;
643
644 bool haveRequiredFeatures(const FeatureBitset &ActiveFeatures) const {
645 // Not in 32-bit mode.
646 if (IsRV32Only && ActiveFeatures[RISCV::Feature64Bit])
647 return false;
648 // No required feature associated with the system register.
649 if (FeaturesRequired.none())
650 return true;
651 return (FeaturesRequired & ActiveFeatures) == FeaturesRequired;
652 }
653};
654
655#define GET_SysRegEncodings_DECL
656#define GET_SysRegsList_DECL
657#include "RISCVGenSearchableTables.inc"
658} // end namespace RISCVSysReg
659
660namespace RISCVInsnOpcode {
665
666#define GET_RISCVOpcodesList_DECL
667#include "RISCVGenSearchableTables.inc"
668} // end namespace RISCVInsnOpcode
669
670namespace RISCVABI {
671
691
692// Returns the target ABI, or else a StringError if the requested ABIName is
693// not supported for the subtargets triple and FeatureBits combination.
694ABI computeTargetABI(const MCSubtargetInfo &STI, StringRef ABIName);
695
696ABI getTargetABI(StringRef ABIName);
697
698// Returns the register used to hold the stack pointer after realignment.
700
701// Returns the register holding shadow call stack pointer.
703
704} // namespace RISCVABI
705
706namespace RISCVFeatures {
707
708// Validates if the given combination of features are valid for the target
709// triple. Exits with report_fatal_error if not.
710void validate(const Triple &TT, const FeatureBitset &FeatureBits);
711
713parseFeatureBits(const MCSubtargetInfo &STI);
714
715} // namespace RISCVFeatures
716
717namespace RISCVRVC {
718bool compress(MCInst &OutInst, const MCInst &MI, const MCSubtargetInfo &STI);
719bool uncompress(MCInst &OutInst, const MCInst &MI, const MCSubtargetInfo &STI);
720} // namespace RISCVRVC
721
722namespace RISCVZC {
739
740inline unsigned encodeRegList(MCRegister EndReg, bool IsRVE = false) {
741 assert((!IsRVE || EndReg <= RISCV::X9) && "Invalid Rlist for RV32E");
742 switch (EndReg.id()) {
743 case RISCV::X1:
744 return RLISTENCODE::RA;
745 case RISCV::X8:
746 return RLISTENCODE::RA_S0;
747 case RISCV::X9:
749 case RISCV::X18:
751 case RISCV::X19:
753 case RISCV::X20:
755 case RISCV::X21:
757 case RISCV::X22:
759 case RISCV::X23:
761 case RISCV::X24:
763 case RISCV::X25:
765 case RISCV::X27:
767 default:
768 llvm_unreachable("Undefined input.");
769 }
770}
771
772inline static unsigned encodeRegListNumRegs(unsigned NumRegs) {
773 assert(NumRegs > 0 && NumRegs < 14 && NumRegs != 12 &&
774 "Unexpected number of registers");
775 if (NumRegs == 13)
777
778 return RLISTENCODE::RA + (NumRegs - 1);
779}
780
781inline static unsigned getStackAdjBase(unsigned RlistVal, bool IsRV64) {
782 assert(RlistVal >= RLISTENCODE::RA && RlistVal <= RLISTENCODE::RA_S0_S11 &&
783 "Invalid Rlist");
784 unsigned NumRegs = (RlistVal - RLISTENCODE::RA) + 1;
785 // s10 and s11 are saved together.
786 if (RlistVal == RLISTENCODE::RA_S0_S11)
787 ++NumRegs;
788
789 unsigned RegSize = IsRV64 ? 8 : 4;
790 return alignTo(NumRegs * RegSize, 16);
791}
792
793void printRegList(unsigned RlistEncode, raw_ostream &OS);
794} // namespace RISCVZC
795
796namespace RISCVVInversePseudosTable {
804
805#define GET_RISCVVInversePseudosTable_DECL
806#include "RISCVGenSearchableTables.inc"
807
808inline const PseudoInfo *getBaseInfo(unsigned BaseInstr, uint8_t VLMul,
809 uint8_t SEW, bool IsAltFmt = false) {
810 return getBaseInfoImpl(BaseInstr, VLMul, SEW, IsAltFmt);
811}
812} // namespace RISCVVInversePseudosTable
813
814namespace RISCV {
824
834
843
853
862
870
879
887
888#define GET_RISCVVSSEGTable_DECL
889#define GET_RISCVVLSEGTable_DECL
890#define GET_RISCVVLXSEGTable_DECL
891#define GET_RISCVVSXSEGTable_DECL
892#define GET_RISCVVLETable_DECL
893#define GET_RISCVVSETable_DECL
894#define GET_RISCVVLXTable_DECL
895#define GET_RISCVVSXTable_DECL
896#define GET_RISCVNDSVLNTable_DECL
897#include "RISCVGenSearchableTables.inc"
898
899inline bool isValidYBNDSWImm(int64_t Imm) {
900 return (Imm >= 1 && Imm <= 255) ||
901 (Imm >= 256 && Imm <= 504 && (Imm % 8) == 0) ||
902 (Imm >= 512 && Imm <= 4096 && (Imm % 16) == 0);
903}
904} // namespace RISCV
905
906} // namespace llvm
907
908#endif
unsigned RegSize
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
This file declares a class to represent arbitrary precision floating point values and provide a varie...
This file implements a class to represent arbitrary precision integral constant values and operations...
IRTranslator LLVM IR MI
static cl::opt< RegAllocEvictionAdvisorAnalysisLegacy::AdvisorMode > Mode("regalloc-enable-advisor", cl::Hidden, cl::init(RegAllocEvictionAdvisorAnalysisLegacy::AdvisorMode::Default), cl::desc("Enable regalloc advisor mode"), cl::values(clEnumValN(RegAllocEvictionAdvisorAnalysisLegacy::AdvisorMode::Default, "default", "Default"), clEnumValN(RegAllocEvictionAdvisorAnalysisLegacy::AdvisorMode::Release, "release", "precompiled"), clEnumValN(RegAllocEvictionAdvisorAnalysisLegacy::AdvisorMode::Development, "development", "for training")))
This file implements the StringSwitch template, which mimics a switch() statement whose cases are str...
Tagged union holding either a T or a Error.
Definition Error.h:485
Container class for subtarget features.
Instances of this class represent a single low-level machine instruction.
Definition MCInst.h:188
Describe properties that are true of each instruction in the target description file.
Wrapper class representing physical registers. Should be passed by value.
Definition MCRegister.h:41
constexpr unsigned id() const
Definition MCRegister.h:82
Generic base class for all target subtargets.
Represent a constant reference to a string, i.e.
Definition StringRef.h:56
A switch()-like statement whose cases are string literals.
StringSwitch & Case(StringLiteral S, T Value)
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
@ OPERAND_FIRST_TARGET
Definition MCInstrDesc.h:79
ABI getTargetABI(StringRef ABIName)
MCRegister getBPReg()
ABI computeTargetABI(const MCSubtargetInfo &STI, StringRef ABIName)
MCRegister getSCSPReg()
static bool isValidRoundingMode(unsigned Mode)
static RoundingMode stringToRoundingMode(StringRef Str)
static StringRef roundingModeToString(RoundingMode RndMode)
void validate(const Triple &TT, const FeatureBitset &FeatureBits)
llvm::Expected< std::unique_ptr< RISCVISAInfo > > parseFeatureBits(const MCSubtargetInfo &STI)
static unsigned getVecPolicyOpNum(const MCInstrDesc &Desc)
static unsigned getTMOpNum(const MCInstrDesc &Desc)
static bool usesMaskPolicy(uint64_t TSFlags)
static bool hasRoundModeOp(uint64_t TSFlags)
@ TargetOverlapConstraintTypeMask
@ TargetOverlapConstraintTypeShift
static bool readsPastVL(uint64_t TSFlags)
static bool hasTWidenOp(uint64_t TSFlags)
static bool isTiedPseudo(uint64_t TSFlags)
static RISCVVType::VLMUL getLMul(uint64_t TSFlags)
static unsigned getTKOpNum(const MCInstrDesc &Desc)
static unsigned getVLOpNum(const MCInstrDesc &Desc)
static AltFmtType getAltFmtType(uint64_t TSFlags)
static unsigned getFormat(uint64_t TSFlags)
static unsigned getTWidenOpNum(const MCInstrDesc &Desc)
static bool hasTKOp(uint64_t TSFlags)
static bool hasVLOp(uint64_t TSFlags)
static MCRegister getTailExpandUseRegNo(const FeatureBitset &FeatureBits)
static bool elementsDependOnMask(uint64_t TSFlags)
static int getFRMOpNum(const MCInstrDesc &Desc)
static bool hasTMOp(uint64_t TSFlags)
static int getVXRMOpNum(const MCInstrDesc &Desc)
static unsigned getTNOpNum(const MCInstrDesc &Desc)
static bool hasVecPolicyOp(uint64_t TSFlags)
static bool usesVXRM(uint64_t TSFlags)
static bool isRVVWideningReduction(uint64_t TSFlags)
static unsigned getSEWOpNum(const MCInstrDesc &Desc)
static bool elementsDependOnVL(uint64_t TSFlags)
static bool hasSEWOp(uint64_t TSFlags)
static bool isFirstDefTiedToFirstUse(const MCInstrDesc &Desc)
int getLoadFPImm(APFloat FPImm)
getLoadFPImm - Return a 5-bit binary encoding of the floating-point immediate value.
float getFPImm(unsigned Imm)
@ OPERAND_UIMMLOG2XLEN_NONZERO
@ OPERAND_UIMM10_LSB00_NONZERO
@ OPERAND_SIMM10_LSB0000_NONZERO
bool uncompress(MCInst &OutInst, const MCInst &MI, const MCSubtargetInfo &STI)
bool compress(MCInst &OutInst, const MCInst &MI, const MCSubtargetInfo &STI)
const PseudoInfo * getBaseInfo(unsigned BaseInstr, uint8_t VLMul, uint8_t SEW, bool IsAltFmt=false)
static bool isValidRoundingMode(unsigned Mode)
static RoundingMode stringToRoundingMode(StringRef Str)
static StringRef roundingModeToString(RoundingMode RndMode)
unsigned encodeRegList(MCRegister EndReg, bool IsRVE=false)
static unsigned getStackAdjBase(unsigned RlistVal, bool IsRV64)
void printRegList(unsigned RlistEncode, raw_ostream &OS)
static unsigned encodeRegListNumRegs(unsigned NumRegs)
bool isValidYBNDSWImm(int64_t Imm)
This is an optimization pass for GlobalISel generic memory operations.
@ Offset
Definition DWP.cpp:573
Op::Description Desc
constexpr uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
Definition Alignment.h:144
bool haveRequiredFeatures(const FeatureBitset &ActiveFeatures) const
StringTable::Offset Name