-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
183 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
type symbol = string | ||
module type S = | ||
sig | ||
val get_specification : symbol -> Ast.adef option | ||
val vpermd : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpermq : Aig.reg -> int -> Aig.reg | ||
val vpbroadcast_16u16 : Aig.reg -> Aig.reg | ||
val vpadd_16u16 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpadd_32u8 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpsub_16u16 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpsub_32u8 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpand_256 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpmaddubsw_256 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpmulh_16u16 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpmulhrs_16u16 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpsra_16u16 : Aig.reg -> int -> Aig.reg | ||
val vpsrl_16u16 : Aig.reg -> int -> Aig.reg | ||
val vpsrl_4u64 : Aig.reg -> int -> Aig.reg | ||
val vpsll_4u64 : Aig.reg -> int -> Aig.reg | ||
val vpackus_16u16 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpackss_16u16 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpshufb_256 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpcmpgt_16u16 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpmovmskb_u256u64 : Aig.reg -> Aig.reg | ||
val vpunpckl_32u8 : Aig.reg -> Aig.reg -> Aig.reg | ||
val vpextracti128 : Aig.reg -> int -> Aig.reg | ||
val vpinserti128 : Aig.reg -> Aig.reg -> int -> Aig.reg | ||
val vpblend_16u16 : Aig.reg -> Aig.reg -> int -> Aig.reg | ||
val vpslldq_256 : Aig.reg -> int -> Aig.reg | ||
val vpsrldq_256 : Aig.reg -> int -> Aig.reg | ||
val vpslldq_128 : Aig.reg -> int -> Aig.reg | ||
val vpsrldq_128 : Aig.reg -> int -> Aig.reg | ||
end | ||
module FromSpec : functor () -> S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
val log2 : int -> int | ||
module Env : | ||
sig | ||
type env | ||
val empty : env | ||
module Fun : | ||
sig | ||
val get : env -> Ast.ident -> Ast.aargs * Ast.aexpr | ||
val bind : env -> Ast.ident -> Ast.aargs * Ast.aexpr -> env | ||
end | ||
module Var : | ||
sig | ||
val get : env -> Ast.ident -> Aig.reg | ||
val bind : env -> Ast.ident -> Aig.reg -> env | ||
val bindall : env -> (Ast.ident * Aig.reg) list -> env | ||
end | ||
end | ||
type env = Env.env | ||
val circuit_of_spec : Aig.reg list -> Ast.adef -> Aig.reg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters