Arm func
arm_func
ARM_FUNC = Dialect('arm_func', [FuncOp, RetOp])
module-attribute
FuncOpCallableInterface
dataclass
Bases: CallableOpInterface
Source code in xdsl/dialects/arm_func.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
get_callable_region(op: Operation) -> Region
classmethod
Source code in xdsl/dialects/arm_func.py
31 32 33 34 | |
get_argument_types(op: Operation) -> tuple[Attribute, ...]
classmethod
Source code in xdsl/dialects/arm_func.py
36 37 38 39 | |
get_result_types(op: Operation) -> tuple[Attribute, ...]
classmethod
Source code in xdsl/dialects/arm_func.py
41 42 43 44 | |
FuncOp
Bases: ARMAsmOperation
ARM function definition operation
Source code in xdsl/dialects/arm_func.py
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 113 114 115 116 117 118 119 | |
name = 'arm_func.func'
class-attribute
instance-attribute
sym_name = attr_def(SymbolNameConstraint())
class-attribute
instance-attribute
body = region_def()
class-attribute
instance-attribute
function_type = attr_def(FunctionType)
class-attribute
instance-attribute
sym_visibility = opt_attr_def(StringAttr)
class-attribute
instance-attribute
traits = traits_def(SymbolOpInterface(), FuncOpCallableInterface(), IsolatedFromAbove())
class-attribute
instance-attribute
__init__(name: str, region: Region, function_type: FunctionType | tuple[Sequence[Attribute], Sequence[Attribute]], visibility: StringAttr | str | None = None)
Source code in xdsl/dialects/arm_func.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
parse(parser: Parser) -> FuncOp
classmethod
Source code in xdsl/dialects/arm_func.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | |
print(printer: Printer)
Source code in xdsl/dialects/arm_func.py
101 102 103 104 105 106 107 108 109 110 111 112 113 | |
assembly_line() -> str | None
Source code in xdsl/dialects/arm_func.py
115 116 117 118 119 | |
RetOp
Bases: ARMInstruction
Return from subroutine.
Source code in xdsl/dialects/arm_func.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | |
name = 'arm_func.return'
class-attribute
instance-attribute
assembly_format = 'attr-dict'
class-attribute
instance-attribute
traits = traits_def(IsTerminator(), HasParent(FuncOp))
class-attribute
instance-attribute
__init__(*, comment: str | StringAttr | None = None)
Source code in xdsl/dialects/arm_func.py
134 135 136 137 138 139 140 141 142 143 144 145 146 | |
assembly_line_args()
Source code in xdsl/dialects/arm_func.py
148 149 | |
assembly_instruction_name() -> str
Source code in xdsl/dialects/arm_func.py
151 152 | |