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
FuncOp
¶
Bases: IRDLOperation, AssemblyPrintable
x86 function definition operation
Source code in xdsl/dialects/x86_func.py
name = 'x86_func.func'
class-attribute
instance-attribute
¶
sym_name = prop_def(SymbolNameConstraint())
class-attribute
instance-attribute
¶
body = region_def()
class-attribute
instance-attribute
¶
function_type = prop_def(FunctionType)
class-attribute
instance-attribute
¶
sym_visibility = opt_prop_def(StringAttr)
class-attribute
instance-attribute
¶
traits = traits_def(SymbolOpInterface(), FuncOpCallableInterface(), IsolatedFromAbove())
class-attribute
instance-attribute
¶
__init__(name: str | StringAttr, region: Region, function_type: FunctionType | tuple[Sequence[Attribute], Sequence[Attribute]], visibility: StringAttr | str | None = None)
¶
Source code in xdsl/dialects/x86_func.py
parse(parser: Parser) -> FuncOp
classmethod
¶
Source code in xdsl/dialects/x86_func.py
print(printer: Printer)
¶
Source code in xdsl/dialects/x86_func.py
print_assembly(printer: AssemblyPrinter) -> None
¶
Source code in xdsl/dialects/x86_func.py
RetOp
¶
Bases: X86Instruction
Return from subroutine.