Attrs
attrs
UI5: TypeAlias = IntegerType[Literal[5], Literal[Signedness.UNSIGNED]]
module-attribute
SI20: TypeAlias = IntegerType[Literal[20], Literal[Signedness.SIGNED]]
module-attribute
SI12: TypeAlias = IntegerType[Literal[12], Literal[Signedness.SIGNED]]
module-attribute
I12: TypeAlias = IntegerType[Literal[12], Literal[Signedness.SIGNLESS]]
module-attribute
I20: TypeAlias = IntegerType[Literal[20], Literal[Signedness.SIGNLESS]]
module-attribute
ui5: UI5 = IntegerType(5, Signedness.UNSIGNED)
module-attribute
si20: SI20 = IntegerType(20, Signedness.SIGNED)
module-attribute
si12: SI12 = IntegerType(12, Signedness.SIGNED)
module-attribute
i12: I12 = IntegerType(12, Signedness.SIGNLESS)
module-attribute
i20: I20 = IntegerType(20, Signedness.SIGNLESS)
module-attribute
FastMathFlagsAttr
Bases: FastMathAttrBase
riscv.fastmath is a mirror of LLVMs fastmath flags.
Source code in xdsl/dialects/riscv/attrs.py
15 16 17 18 19 20 21 22 23 24 25 26 | |
name = 'riscv.fastmath'
class-attribute
instance-attribute
__init__(flags: None | Sequence[FastMathFlag] | Literal['none', 'fast'])
Source code in xdsl/dialects/riscv/attrs.py
23 24 25 26 | |
LabelAttr
dataclass
Bases: Data[str]
Source code in xdsl/dialects/riscv/attrs.py
41 42 43 44 45 46 47 48 49 50 51 52 | |
name = 'riscv.label'
class-attribute
instance-attribute
parse_parameter(parser: AttrParser) -> str
classmethod
Source code in xdsl/dialects/riscv/attrs.py
45 46 47 48 | |
print_parameter(printer: Printer) -> None
Source code in xdsl/dialects/riscv/attrs.py
50 51 52 | |
parse_immediate_value(parser: AttrParser, integer_type: IntegerType | IndexType) -> IntegerAttr[IntegerType | IndexType] | LabelAttr
Source code in xdsl/dialects/riscv/attrs.py
71 72 73 74 75 76 77 | |
print_immediate_value(printer: Printer, immediate: IntegerAttr | LabelAttr)
Source code in xdsl/dialects/riscv/attrs.py
80 81 82 83 84 85 | |