Rv64
rv64
RISC-V 64-bit (RV64) dialect operations and types.
This module defines the RV64-specific variant of RISC-V operations, using 6-bit immediates for 64-bit architectures.
RV64 = Dialect('rv64', [LiOp, GetRegisterOp], [])
module-attribute
LiOp
Bases: RISCVCustomFormatOperation, RISCVInstruction, HasFolderInterface, ABC
Loads a 64-bit immediate into rd.
This is an assembler pseudo-instruction.
See external documentation.
Source code in xdsl/dialects/rv64.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
name = 'rv64.li'
class-attribute
instance-attribute
rd = result_def(IntRegisterType)
class-attribute
instance-attribute
immediate = attr_def(IntegerAttr[I64] | LabelAttr)
class-attribute
instance-attribute
traits = traits_def(Pure(), LiOpHasCanonicalizationPatternTrait(), ConstantLike())
class-attribute
instance-attribute
__init__(immediate: int | IntegerAttr[I64] | str | LabelAttr, *, rd: IntRegisterType = Registers.UNALLOCATED_INT, comment: str | StringAttr | None = None)
Source code in xdsl/dialects/rv64.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | |
assembly_line_args() -> tuple[AssemblyInstructionArg, ...]
Source code in xdsl/dialects/rv64.py
85 86 | |
fold() -> tuple[IntegerAttr[I64] | LabelAttr]
Source code in xdsl/dialects/rv64.py
88 89 | |
custom_parse_attributes(parser: Parser) -> dict[str, Attribute]
classmethod
Source code in xdsl/dialects/rv64.py
91 92 93 94 95 | |
custom_print_attributes(printer: Printer) -> AbstractSet[str]
Source code in xdsl/dialects/rv64.py
97 98 99 100 | |
parse_op_type(parser: Parser) -> tuple[Sequence[Attribute], Sequence[Attribute]]
classmethod
Source code in xdsl/dialects/rv64.py
102 103 104 105 106 107 108 | |
print_op_type(printer: Printer) -> None
Source code in xdsl/dialects/rv64.py
110 111 112 | |
GetRegisterOp
dataclass
Bases: GetAnyRegisterOperation[IntRegisterType]
Source code in xdsl/dialects/rv64.py
115 116 117 | |