Snitch allocate registers
snitch_allocate_registers
¶
AllocateSnitchStreamingRegionRegisters
¶
Bases: RewritePattern
Allocates the registers in the body of a snitch_stream.streaming_region operation by
assigning them to the ones specified by the streams.
Source code in xdsl/transforms/snitch_allocate_registers.py
match_and_rewrite(op: snitch_stream.StreamingRegionOp, rewriter: PatternRewriter)
¶
Source code in xdsl/transforms/snitch_allocate_registers.py
AllocateRiscvSnitchReadRegisters
¶
Bases: RewritePattern
Propagates the register allocation done at the stream level to the values read from the streams.
Source code in xdsl/transforms/snitch_allocate_registers.py
match_and_rewrite(op: riscv_snitch.ReadOp, rewriter: PatternRewriter)
¶
Source code in xdsl/transforms/snitch_allocate_registers.py
AllocateRiscvSnitchWriteRegisters
¶
Bases: RewritePattern
Propagates the register allocation done at the stream level to the values written to the streams.
Source code in xdsl/transforms/snitch_allocate_registers.py
match_and_rewrite(op: riscv_snitch.WriteOp, rewriter: PatternRewriter)
¶
Source code in xdsl/transforms/snitch_allocate_registers.py
SnitchAllocateRegistersPass
dataclass
¶
Bases: ModulePass
Allocates unallocated registers for snitch operations.