Leonardo de Moura
7c355d3ba6
feat(library/compiler): thunk support
2019-02-04 15:22:18 -08:00
Leonardo de Moura
579ac58b62
chore(runtime/object): expose thunk_map and thunk_bind
2019-02-04 13:11:37 -08:00
Leonardo de Moura
fc4505884b
chore(boot): update
2019-02-04 12:56:11 -08:00
Leonardo de Moura
4d66836255
fix(library/compiler/llnf): bug at process_cases
...
We should not decrement the RC of borrowed variables.
2019-02-04 12:51:51 -08:00
Leonardo de Moura
7eb9c46bc6
fix(library/compiler): functions marked as @[noinline] were not being replaced by their reduced arity version
2019-02-04 12:23:37 -08:00
Leonardo de Moura
4696f603e2
chore(boot): update
2019-02-04 10:36:02 -08:00
Leonardo de Moura
25ec21b498
feat(library/compiler/name_mangling): new name mangling procedure that produces more readable output
2019-02-04 10:31:38 -08:00
Leonardo de Moura
5b3f3178ae
feat(src/CMakeLists): copy static library to bin directory
2019-02-04 09:55:22 -08:00
Leonardo de Moura
98edae152a
fix(runtime): replace lean::alloca with macro
...
Functions using `alloca` are not inlined even when marked with
`inline` in some compilers.
Remark: GCC will _not_ inline a function calling alloca unless it is
annotated with always_inline.
2019-02-04 09:36:53 -08:00
Leonardo de Moura
b4a78a0280
chore(src/boot): update
2019-02-03 19:22:01 -08:00
Leonardo de Moura
67f4fb603d
chore(library/compiler/emit_cpp): unnecessary line break
2019-02-03 19:19:01 -08:00
Leonardo de Moura
79e8358f9c
fix(library/compiler/emit_cpp): tail call optimization
2019-02-03 19:16:50 -08:00
Leonardo de Moura
628c377673
chore(src/boot): update
2019-02-03 10:45:48 -08:00
Leonardo de Moura
e5e245d0f2
chore(library/compiler/emit_cpp): missing space
2019-02-03 10:41:41 -08:00
Leonardo de Moura
b5f20f0b73
chore(src/boot): update
2019-02-03 10:38:57 -08:00
Leonardo de Moura
5aab81d773
chore(library/compiler/emit_cpp): ignore unused labels
2019-02-03 10:37:34 -08:00
Leonardo de Moura
73f4100a46
feat(library/compiler/emit_cpp): tail call optimization
2019-02-03 10:31:39 -08:00
Leonardo de Moura
fb0562e107
chore(src/boot): update
2019-02-03 10:06:47 -08:00
Leonardo de Moura
65e7e785ff
fix(library/compiler/llnf): include closures at is_unboxed
2019-02-03 10:04:21 -08:00
Sebastian Ullrich
3cf5241208
chore(boot): do not diff or eol-convert autogenerated files
2019-02-02 14:35:58 +01:00
Leonardo de Moura
b210215d3a
feat(src/CMakeLists): build src/boot
...
@kha We can now compile and link all C++ generated files.
We may still have many bugs, but the basic infrastructure for
generating C++ from Lean files is finally working.
2019-02-01 17:59:50 -08:00
Leonardo de Moura
065c3b991c
chore(src/boot): update
2019-02-01 17:59:29 -08:00
Leonardo de Moura
c097f1c1e0
fix(kernel/builtin): add extern
2019-02-01 17:58:55 -08:00
Leonardo de Moura
90499abd94
fix(library/compiler/llnf): inc is only needed if variable has type _obj
2019-02-01 17:53:58 -08:00
Leonardo de Moura
e31f026bb2
fix(library/compiler/emit_cpp): add extern for constants declared in other modules
2019-02-01 17:26:12 -08:00
Leonardo de Moura
0fb01a3369
chore(src/boot): update
2019-02-01 17:17:51 -08:00
Leonardo de Moura
0918a599ae
feat(*): builtin support for uint functions
...
@kha The VM versions just throw exceptions. They are just stubs to
make sure we can compile Lean.
I implemented the uint functions in the new runtime, but there are a
few missing cases marked with TODO.
I needed these builtins to be able to compile the C++ generated code for
corelib.
2019-02-01 17:04:24 -08:00
Leonardo de Moura
54f501594d
chore(library/init/data/uint,library/init/data/usize): simplify
2019-02-01 15:41:55 -08:00
Leonardo de Moura
9017fd3658
chore(src/boot): update
2019-02-01 15:13:06 -08:00
Leonardo de Moura
ec5a326157
fix(library/compiler/emit_cpp): include runtime/io.h
2019-02-01 15:12:30 -08:00
Leonardo de Moura
ac53080ced
fix(kernel/builtin): incorrect signature
2019-02-01 15:06:57 -08:00
Leonardo de Moura
0c36b8c4d8
chore(src/boot): update
2019-02-01 15:02:24 -08:00
Leonardo de Moura
6e8f8a8cdc
fix(library/compiler/emit_cpp): another bug in emit_quoted_string
2019-02-01 14:59:51 -08:00
Leonardo de Moura
8c1d6c49c5
chore(src/boot): update
2019-02-01 14:40:22 -08:00
Leonardo de Moura
d12667fb6b
fix(library/compiler/emit_cpp): bug handling 0-ary _cnstr
2019-02-01 14:35:40 -08:00
Leonardo de Moura
d461833fcd
fix(library/compiler/llnf): _sset and _uset were taking invalid LLNF arguments
2019-02-01 14:31:08 -08:00
Leonardo de Moura
b6f7472dd7
fix(library/compiler/emit_cpp): remove leftover
2019-02-01 14:21:17 -08:00
Leonardo de Moura
42ee42b732
fix(library/compiler/emit_cpp): bug at quote_string
2019-02-01 14:15:38 -08:00
Leonardo de Moura
4fa06e38b2
chore(*): add skeleton for new builtin primitives, update src/boot
2019-02-01 14:03:03 -08:00
Leonardo de Moura
51343a0e3a
chore(library/compiler/builtin): rename primitives
2019-02-01 13:39:35 -08:00
Leonardo de Moura
7c32e04f9c
chore(library/compiler/emit_cpp): avoid line breaks when declaring blocks of variables
2019-02-01 13:36:43 -08:00
Leonardo de Moura
d154b45d4c
chore(library/compiler/builtin): avoid unused variable warning on clang++
2019-02-01 13:33:52 -08:00
Leonardo de Moura
5b37913a51
chore(src/boot): add generated C++ files
2019-02-01 11:24:08 -08:00
Leonardo de Moura
1a190021ce
feat(library/Makefile.in): generate src/boot
2019-02-01 11:15:51 -08:00
Leonardo de Moura
1212207446
fix(library/compiler/reduce_arity): we should not create auxiliary definitions with 0 arguments at reduce_arity
2019-02-01 11:15:51 -08:00
Sebastian Ullrich
64ab576dbf
fix(shell/lean,library/messages): print messages in correct order (and immediately) when --json was not given
2019-02-01 17:10:14 +01:00
Sebastian Ullrich
7dc4d4e5fa
chore(shell/CMakeLists): reactivate Lean tests
2019-02-01 16:33:29 +01:00
Sebastian Ullrich
a8f668a3d2
feat(runtime/object): add LEAN_FAKE_FREE option to disable freeing runtime objects while debugging
2019-02-01 16:33:18 +01:00
Sebastian Ullrich
c162ec9583
fix(runtime/object): mk_option_some
2019-02-01 16:33:13 +01:00
Sebastian Ullrich
e3afa47c9e
fix(runtime/object): fix some string primitives
2019-02-01 16:33:11 +01:00