kirin.dialects.scf
scf¶
kirin.dialects.scf
A Python-like structural Control Flow dialect.
This dialect provides constructs for expressing control flow in a structured manner. The dialect provides constructs for expressing loops and conditionals. Unlike MLIR SCF dialect, this dialect does not restrict the control flow to statically analyzable forms. This dialect is designed to be compatible with Python native control flow constructs.
This dialect depends on the following dialects:
eltype: for obtaining the element type of a value.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
dialect | — | ir.Dialect('scf') |