kirin.dialects.func.stmts.Lambda
← Module overview
class
method
sourcemethod
classLambda¶source
kirin.dialects.func.stmts.Lambda
Bases: ir.Statement
class LambdaAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'lambda' | |
traits | — | frozenset({ir.Pure(), ir.HasSignature(), ir.SymbolOpInterface(), FuncOpCallableInterface(), ir.HasCFG(), ir.SSACFG()}) | |
sym_name | str | info.attribute() | |
slots | tuple[str, ...] | info.attribute(default=()) | The argument names of the function. |
signature | Signature | info.attribute() | The signature of the function at declaration. |
captured | tuple[ir.SSAValue, ...] | info.argument() | |
body | ir.Region | info.region(multi=True) | |
result | ir.ResultValue | info.result(types.MethodType) |
methodcheck¶source
kirin.dialects.func.stmts.Lambda.check
def check() -> Nonemethodprint_impl¶source
kirin.dialects.func.stmts.Lambda.print_impl