Convert scf to riscv scf
convert_scf_to_riscv_scf
ScfForLowering
Bases: RewritePattern
Source code in xdsl/backend/riscv/lowering/convert_scf_to_riscv_scf.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
match_and_rewrite(op: scf.ForOp, rewriter: PatternRewriter) -> None
Source code in xdsl/backend/riscv/lowering/convert_scf_to_riscv_scf.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
ScfYieldLowering
Bases: RewritePattern
Source code in xdsl/backend/riscv/lowering/convert_scf_to_riscv_scf.py
49 50 51 52 | |
match_and_rewrite(op: scf.YieldOp, rewriter: PatternRewriter) -> None
Source code in xdsl/backend/riscv/lowering/convert_scf_to_riscv_scf.py
50 51 52 | |
ConvertScfToRiscvPass
dataclass
Bases: ModulePass
Source code in xdsl/backend/riscv/lowering/convert_scf_to_riscv_scf.py
55 56 57 58 59 60 61 62 63 64 65 66 | |
name = 'convert-scf-to-riscv-scf'
class-attribute
instance-attribute
apply(ctx: Context, op: builtin.ModuleOp) -> None
Source code in xdsl/backend/riscv/lowering/convert_scf_to_riscv_scf.py
58 59 60 61 62 63 64 65 66 | |