fhelium.compile.passes.backend._assign_implementations
Record caller-selected backend implementations on matching operations.
AssignImplementationsPass
class View source
python
AssignImplementationsPass(selections: Mapping[str, str] = field(default_factory=dict), overwrite: bool = False, name: str = 'assign-implementations')1
Attach requested implementation names to selected operation classes.
selections maps registered textual operation names to implementation names. Matching uses full-name equality. Unselected operations remain unchanged. The resulting attributes constrain subsequent Backend resolution, which checks implementation availability.
Attributes
| Name | Type | Default/value |
|---|---|---|
selections | Mapping[str, str] | field(default_factory=dict) |
overwrite | bool | False |
name | str | 'assign-implementations' |
run
method
python
def run(compilation: 'Compilation') -> PassResult: ...1
Annotate matching operation names and report each assignment.