Skip to main content

Module parser

Module parser 

Source
Expand description

Text-format parser for SC IR graphs.

Parses the format produced by printer::print(). The parser is intentionally simple (line-oriented) since the format is machine- generated. A future version may support full MLIR-compatible syntax.

Structsยง

ParseError
Parse error with line number.

Functionsยง

extract_kv ๐Ÿ”’
make_err ๐Ÿ”’
parse
Parse an SC IR text file into a graph.
parse_and ๐Ÿ”’
parse_constant ๐Ÿ”’
parse_dense_forward ๐Ÿ”’
parse_div_const ๐Ÿ”’
parse_encode ๐Ÿ”’
parse_graph_forward ๐Ÿ”’
parse_input ๐Ÿ”’
parse_kuramoto_step ๐Ÿ”’
parse_lif_step ๐Ÿ”’
parse_offset ๐Ÿ”’
parse_output ๐Ÿ”’
parse_popcount ๐Ÿ”’
parse_reduce ๐Ÿ”’
parse_scalar_constant ๐Ÿ”’
parse_scale ๐Ÿ”’
parse_softmax_attention ๐Ÿ”’
parse_type ๐Ÿ”’
parse_value_id ๐Ÿ”’
parse_vector_constant ๐Ÿ”’
parse_xor ๐Ÿ”’