X86 func
x86_func
X86_FUNC = Dialect('x86_func', [FuncOp, RetOp])
module-attribute
FuncOpCallableInterface
dataclass
Bases: CallableOpInterface
Source code in xdsl/dialects/x86_func.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
get_callable_region(op: Operation) -> Region
classmethod
Source code in xdsl/dialects/x86_func.py
34 35 36 37 | |
get_argument_types(op: Operation) -> tuple[Attribute, ...]
classmethod
Source code in xdsl/dialects/x86_func.py
39 40 41 42 | |
get_result_types(op: Operation) -> tuple[Attribute, ...]
classmethod
Source code in xdsl/dialects/x86_func.py
44 45 46 47 | |
FuncOp
Bases: IRDLOperation, AssemblyPrintable
x86 function definition operation
Source code in xdsl/dialects/x86_func.py
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 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
name = 'x86_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/x86_func.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
parse(parser: Parser) -> FuncOp
classmethod
Source code in xdsl/dialects/x86_func.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
print(printer: Printer)
Source code in xdsl/dialects/x86_func.py
104 105 106 107 108 109 110 111 112 113 114 115 116 | |
print_assembly(printer: AssemblyPrinter) -> None
Source code in xdsl/dialects/x86_func.py
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
RetOp
Bases: X86Instruction
Return from subroutine.
Source code in xdsl/dialects/x86_func.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | |
name = 'x86_func.ret'
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/x86_func.py
151 152 153 154 155 156 157 158 159 160 161 162 163 | |
assembly_line_args()
Source code in xdsl/dialects/x86_func.py
165 166 | |