Commit graph

26011 commits

Author SHA1 Message Date
Leonardo de Moura
271b753f30 feat: optimization for Bool+Decidable code 2020-02-27 16:59:18 -08:00
Leonardo de Moura
cca90b5f9f chore: simplify withPtrEqDecEq 2020-02-27 11:45:02 -08:00
Leonardo de Moura
af142a5b0d chore: update stage0 2020-02-27 10:59:47 -08:00
Leonardo de Moura
b83691baa2 feat: compute fvarSubst 2020-02-27 10:58:46 -08:00
Sebastian Ullrich
6a19f54344 chore: fix benchmark... 2020-02-27 19:55:15 +01:00
Leonardo de Moura
d6e46a38f5 chore: fix test 2020-02-27 10:02:27 -08:00
Leonardo de Moura
3836899b1e chore: update stage0 2020-02-27 10:02:27 -08:00
Leonardo de Moura
021d906542 fix: remove filler fields (part 2) 2020-02-27 10:02:26 -08:00
Leonardo de Moura
8d63b4eda0 chore: update stage0 2020-02-27 10:02:26 -08:00
Leonardo de Moura
966e5bc60d perf: remove "filler" fields
See previous commit.
2020-02-27 10:02:26 -08:00
Leonardo de Moura
e5d824a748 feat: initialize last word
Motivation: trying to get rid of explicit "filler" fields because
they slow down modules such as `RBMap`.
2020-02-27 10:02:26 -08:00
Sebastian Ullrich
79a352a0b7 chore: benchmark binary sizes 2020-02-27 18:17:25 +01:00
Leonardo de Moura
0fe465b1b8 chore: fix test 2020-02-27 08:15:49 -08:00
Leonardo de Moura
14e8a0ec9e chore: update stage0 2020-02-27 08:11:16 -08:00
Leonardo de Moura
2719eaeb63 fix: closes #119 2020-02-27 08:10:29 -08:00
Leonardo de Moura
2a16468f69 chore: fix test 2020-02-26 07:29:04 -08:00
Leonardo de Moura
657f3792b1 feat: maxsharing scalar arrays 2020-02-25 18:08:49 -08:00
Leonardo de Moura
131f2d202e chore: ignore closures at maxsharing
Closures may capture huge objects that user may be unaware.
For example, any closure created by the interpreter contains
a reference to the `Environment`.

@dselsam @kha I don't see many applications for maximizing sharing in
values captured by closures. If we want this feature, we should at
least wrap the `Environment` and `Decl` using external objects
at `mk_stub_closure` at `ir_interpreter.cpp`.
2020-02-25 17:13:05 -08:00
Leonardo de Moura
1653e75b6b feat: maxsharing for arrays and strings 2020-02-25 16:15:26 -08:00
Leonardo de Moura
46e8d193ca feat: maxsharing for constructors 2020-02-25 15:43:10 -08:00
Leonardo de Moura
d099599b19 chore: update stage0 2020-02-25 14:35:57 -08:00
Leonardo de Moura
9107849a82 chore: fix tests 2020-02-25 14:35:20 -08:00
Leonardo de Moura
53b57af125 fix: dangling file 2020-02-25 14:33:54 -08:00
Leonardo de Moura
c10764b13e chore: update stage0 2020-02-25 14:22:57 -08:00
Leonardo de Moura
cfd7fc8a87 fix: message::get_text
It was still using the old representation.
2020-02-25 14:20:55 -08:00
Leonardo de Moura
3bd8e4d4d7 chore: update stage0 2020-02-25 14:09:51 -08:00
Leonardo de Moura
1fb7a3a208 fix: position of first Bool field 2020-02-25 14:05:53 -08:00
Leonardo de Moura
631604b336 chore: update stage0 2020-02-25 13:59:12 -08:00
Leonardo de Moura
9095f3caa0 chore: update stage0 2020-02-25 13:53:08 -08:00
Leonardo de Moura
7e96380711 chore: remove unnecessary import 2020-02-25 13:49:26 -08:00
Leonardo de Moura
7496296c1e fix: "filler" fields 2020-02-25 13:49:18 -08:00
Leonardo de Moura
6a19069021 feat: add "filler" fields 2020-02-25 13:49:11 -08:00
Leonardo de Moura
8fc7575359 chore: update stage0 2020-02-25 13:44:55 -08:00
Leonardo de Moura
1305824b03 chore: add get_bool_field helper function
Motivation: help us to adjust the code when we modify the position of
scalar fields.
2020-02-25 13:43:06 -08:00
Leonardo de Moura
d8ed4165b0 chore: remove cnstr_get_scalar and cnstr_set_scalar 2020-02-25 13:28:23 -08:00
Leonardo de Moura
16d88b04ea chore: avoid cnstr_set_scalar and cnstr_get_scalar 2020-02-25 13:27:30 -08:00
Leonardo de Moura
c664fec092 chore: update stage0 2020-02-25 13:03:16 -08:00
Leonardo de Moura
6ada62a3ee feat: export helper functions
Motivation: prevent changes in the scalar fields layout from breaking
C++ code.
Ideally, we should do that for all constructors, and implement a tool
that creates the C++ functions automatically for us.
We don't do it because we will delete most of this code after we
finish the Lean4 transition.
2020-02-25 13:00:22 -08:00
Leonardo de Moura
74d08e47e5 chore: style 2020-02-24 21:04:48 -08:00
Leonardo de Moura
8bacf54b6c chore: fix test 2020-02-24 21:03:40 -08:00
Leonardo de Moura
dae1a3172e fix: maxsharing hash and eq, and expand skeleton 2020-02-24 21:00:01 -08:00
Leonardo de Moura
fdc76934f5 feat: max_sharing_fn skeleton 2020-02-24 19:50:37 -08:00
Leonardo de Moura
191bfcddc1 chore: remove #exit 2020-02-24 19:32:57 -08:00
Leonardo de Moura
f84e1c2fbd feat: add dummy implementation of MaxSharing primitives 2020-02-24 19:30:53 -08:00
Leonardo de Moura
37f52ab926 chore: update stage0 2020-02-24 19:24:44 -08:00
Leonardo de Moura
46fd5ed929 feat: maxSharing primitives 2020-02-24 19:23:45 -08:00
Leonardo de Moura
0781c74754 chore: variable order consistency 2020-02-24 18:29:24 -08:00
Leonardo de Moura
370dada9a3 feat: add findEntry? functions 2020-02-24 15:47:59 -08:00
Leonardo de Moura
c78ae90bda chore: update stage0 2020-02-24 14:32:49 -08:00
Leonardo de Moura
d6a7e9a308 chore: remove mutquot primitives 2020-02-24 14:28:32 -08:00