Vasily Levchenko
0eaaa58ed9
HEAD UPS! Global move: experiments -> kotlin-native
2016-09-28 13:22:36 +03:00
Vasily Levchenko
541f9ac1e7
g/c: .log
2016-09-27 17:56:53 +03:00
Vasily Levchenko
22823cad65
build backend.native: separated with source sets between frontend and backend
2016-09-27 17:56:53 +03:00
Nikolay Igotti
b3935a8ee8
Added README
2016-09-27 17:36:57 +03:00
Vasily Levchenko
ff6b3474d8
added run task to launch example kt file
2016-09-27 15:11:08 +03:00
Vasily Levchenko
68ce9cd549
added backend.native to world build
2016-09-27 14:49:56 +03:00
Vasily Levchenko
7db858edda
native.backend: dummy one
2016-09-27 14:49:56 +03:00
Vasily Levchenko
de28bfaa9c
native.backend + native.frontend
2016-09-27 14:49:56 +03:00
Vasily Levchenko
291a805ae2
kotlin-ir: sync
2016-09-27 14:49:56 +03:00
Vasily Levchenko
3200c449ef
kotlin-ir sync with origin
2016-09-27 14:49:56 +03:00
Vasily Levchenko
232607e419
makes translator compatible with student llvm frontend... What? :)
2016-09-27 14:49:56 +03:00
Vasily Levchenko
d5f6c0e382
copy of org.jetbrains.kotlin.js.descriptorUtils.nameIfStandardType for translator needs
2016-09-27 14:49:56 +03:00
Svyatoslav Scherbina
1a83fce002
Interop: do not use hardcoded paths to LLVM
...
also use the defined LLVM toolchain to build JNI interop stub libs
2016-09-26 14:13:58 +03:00
Svyatoslav Scherbina
f9f418c51b
Interop: add minor code improvements
2016-09-26 10:34:50 +03:00
Vasily Levchenko
6572f84b31
translator-bc: bit more transfer to laptop
2016-09-23 18:32:43 +03:00
Vasily Levchenko
f6c9a4ad6b
translator-bc: takeplacers for bc/ir generators (to move from desktop to laptop)
2016-09-23 18:18:41 +03:00
Vasily Levchenko
8ed1b7b083
test run, test was done with following command:
...
for f in $(find . -name \*.kt) ; do java -jar ../../../../build/libs/translator-bc-1.0.jar ./while_break_1/while_break_1.kt > ./while_break_1/while_break_1.kt.out 2>./while_break_1/while_break_1.kt.err; [ 0 -ne 0 ] && echo ./while_break_1/while_break_1.kt failed ; done
after this, *.err files with zero bytes were removed, so some mean this is test data, for wheather modification are corrent and whether they were translated correctly
NOTE:
for loop should be launched in experiments/translator-bc/src/test/kotlin/tests to avoid run of trunlator on other sources of the project.
2016-09-23 11:34:45 +03:00
Vasily Levchenko
e8fe1dd5e4
interop: fix import
2016-09-22 17:30:09 +03:00
Vasily Levchenko
05eadb0031
translator-bc: added llvm module creation in state to get access at every place it's required (commited to move on my laptop)
2016-09-22 17:27:06 +03:00
Vasily Levchenko
13136a36af
translator-bc: gradle build
2016-09-22 17:27:06 +03:00
Vasily Levchenko
4d6912a1d0
translator-bc: declarations for llvm-3.6
2016-09-22 17:27:06 +03:00
Vasily Levchenko
3b121f920b
added interop integration to translator-bc
2016-09-22 17:27:06 +03:00
Vasily Levchenko
d5a6c854dd
translator-bc: is copy of translator, currently...
...
it was copied to inject byte code generation instead of llvm asm
via domestic interop library
2016-09-22 17:27:06 +03:00
Vasily Levchenko
6f0cfb989a
buildSrc: added DYLD_LIBRARY_PATH to pass it to indexer, require fix someday for MS and Unix builds.
2016-09-22 17:25:58 +03:00
Svyatoslav Scherbina
b3f554efc2
Interop/StubGenerator: do not use hard-coded path to JNI headers
2016-09-22 13:39:56 +03:00
Svyatoslav Scherbina
9e248a57b9
Interop: improve Gradle scripts
...
build Indexer native libs instead of distributing prebuilt ones
2016-09-21 17:38:45 +03:00
Svyatoslav Scherbina
a45e557be1
Interop: gradlify
...
* move sources to meet gradle conventions
* create gradle scripts and plugin
2016-09-21 14:29:08 +03:00
Svyatoslav Scherbina
5107ebf56e
Interop: prevent libclang from installing signal handlers
...
because it leads to JVM crashes
2016-09-20 17:18:50 +03:00
SvyatoslavScherbina
70c11b0098
Interop: update README.md
2016-09-20 00:08:23 +04:00
Nikolay Igotti
9fffcebc42
Split generic code and example. Add RTTI, arrays and such.
2016-09-19 19:36:55 +03:00
Svyatoslav Scherbina
e031dffdd0
Interop: add generated indexer's bindings to clang
...
to workaround bootstrap issues
2016-09-19 18:53:59 +03:00
Svyatoslav Scherbina
5490ebe556
experiments: remove kni submodule
2016-09-19 18:53:59 +03:00
Svyatoslav Scherbina
b5b5fef5ba
Interop: implement new indexer in Kotlin
...
and slightly improve StubGenerator code
2016-09-19 18:53:59 +03:00
Svyatoslav Scherbina
04a0b57b6d
Interop: add support for passing structs by value
...
also improve support for enums
2016-09-19 18:53:59 +03:00
Svyatoslav Scherbina
5068a99b69
Interop: improve types and runtime
...
* add some utility methods
* add "placements"
* fix "==" implementation for native pointers
2016-09-19 18:53:59 +03:00
Nikolay Igotti
f54e75138c
Tweaks, pass by ref, cleaner obj model.
2016-09-19 15:36:23 +03:00
Nikolay Igotti
b362539b3b
Tweaks, pass by ref.
2016-09-19 13:09:27 +03:00
Vasily Levchenko
71612664a4
kotlin-ir: sync with origin
2016-09-16 20:47:46 +03:00
Vasily Levchenko
e50e6ed96d
translator with kotlin 1.0.5
2016-09-16 20:45:02 +03:00
Vasily Levchenko
3d6013cbf0
original copy of student's translator
2016-09-16 20:45:02 +03:00
Nikolay Igotti
784dd97f72
More explicit intentions in sample.
2016-09-16 19:01:17 +03:00
Nikolay Igotti
80ec94352c
Merge branch 'master' of ssh://github.com/JetBrains/kotlin-native
2016-09-16 18:02:30 +03:00
Nikolay Igotti
1a174c118e
Reference is single value.
2016-09-16 18:01:52 +03:00
Vasily Levchenko
fa6a6f7a47
placer/Makefile: make it more readable ... declarative.
2016-09-16 16:36:35 +03:00
Nikolay Igotti
b1101d64fc
Add simple explicit placer in C++.
2016-09-16 16:05:32 +03:00
Nikolay Igotti
2ad1a4fe3b
Move to ports paths
2016-09-15 18:18:57 +03:00
Vasily Levchenko
5d44ecd2ca
fix source passing to frontend :) and binding from analyzing result, dumping ir compiler:)
2016-09-15 18:08:16 +03:00
Vasily Levchenko
96cfa903e2
minimal compiler to get ir from the source
2016-09-15 18:08:16 +03:00
Vasily Levchenko
4d3ad76d15
student-backend added some dependencies:
...
ir.psi2ir
ir.tree
frontend.java
descriptor.loader.java
2016-09-15 18:08:16 +03:00
Svyatoslav Scherbina
6cb344de07
experiments/Interop: add workaround to lookup symbols lazily
2016-09-15 16:06:41 +03:00