Debian Codegraph @

src/Bedrock/Field/Synthesis/New/ComputedOp.v

raw
1 Require Import bedrock2.Syntax.
2 Require Import Crypto.Bedrock.Field.Common.Types.
3 Require Import Crypto.BoundsPipeline.
4 Require Import Crypto.Bedrock.Field.Synthesis.New.Signature.
5 Require Import Crypto.Language.API.
6 Import API.Compilers.
7
8 Record computed_op
9 {width BW word mem locals ext_spec varname_gen error}
10 {parameters_sentinel : @parameters width BW word mem locals ext_spec varname_gen error}
11 {t} {op : Pipeline.ErrorT (API.Expr t)}
12 {name : String.string}
13 {insizes outsizes inlengths}
14 :=
15 { res : API.Expr t;
16 b2_func : func;
17 res_eq : op = ErrorT.Success res;
18 func_eq : b2_func = make_bedrock_func insizes outsizes inlengths res;
19 }.
20 Global Arguments computed_op {_ _ _ _ _ _ _ _ _ t}.
21
22 Ltac make_computed_op :=
23 eapply Build_computed_op;
24 lazymatch goal with
25 | |- _ = ErrorT.Success _ => vm_compute; reflexivity
26 | _ => idtac
27 end;
28 vm_compute; reflexivity.