fhelium.compile.passes.fusion
Group compatible pure elementwise operations into visible fusion regions.
FuseOperationsPass
class View source
python
FuseOperationsPass(implementations: Sequence[FusionImplementation], min_ops: int = 2, name: str = 'fuse-operations')1
Group pure SSA dependencies using caller-supplied Backend support.
Independent pure work can be scheduled around a supported region. Effects, opaque operations and caller implementation assignments preserve their order. Implementations determine operation, parameter and layout support.
Attributes
| Name | Type | Default/value |
|---|---|---|
implementations | Sequence[FusionImplementation] | |
min_ops | int | 2 |
name | str | 'fuse-operations' |
run
method
python
def run(compilation: 'Compilation') -> PassResult: ...1