Infallible extractors, and some fixes to fallibility in return types (Option<T> vs T).

This commit is contained in:
Chris Fallin
2021-09-09 15:33:15 -07:00
parent 6daa55af82
commit a412cce615
7 changed files with 156 additions and 29 deletions

View File

@@ -10,10 +10,10 @@
(type u32 (primitive u32))
(decl Op (Opcode) Inst)
(extern extractor Op get_opcode)
(extern extractor infallible Op get_opcode)
(decl InstInput (InstInput u32) Inst)
(extern extractor InstInput get_inst_input (out in))
(extern extractor infallible InstInput get_inst_input (out in))
(decl Producer (Inst) InstInput)
(extern extractor Producer get_input_producer)