Beaver.Pattern (beaver v0.2.19)
Beaver pattern DSL for MLIR, a PDL frontend in Elixir.
Link to this section Summary
Functions
The difference between a pdl.operation creation in a match body and a rewrite body
Evaluate SSA as ops in a rewrite block. Note that function is only public so that it could be used in a AST.
Link to this section Functions
Link to this function
create_operation(env, op_name, operands, attributes, results)
The difference between a pdl.operation creation in a match body and a rewrite body:
- in a match body,
pdl.attribute
/pdl.operand
/pdl.result
will be generated for unbound variables - in a rewrite body, all variables are considered bound before creation pdl ops
Link to this function
eval_rewrite(op_name, ssa)
Evaluate SSA as ops in a rewrite block. Note that function is only public so that it could be used in a AST.