Commit Graph

771 Commits

Author SHA1 Message Date
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
Svyatoslav Scherbina 9e4bc811b8 experiments/Interop: add brief description 2016-09-15 14:06:25 +03:00
Svyatoslav Scherbina c766a530aa experiments/Interop: add first prototype 2016-09-15 13:54:48 +03:00
Svyatoslav Scherbina 4def3f79f5 experiments: add forked kni as a submodule 2016-09-15 13:19:01 +03:00
Vasily Levchenko 965c9e4ac1 g/c: .idea: maven settings removed 2016-09-14 21:38:59 +03:00
Vasily Levchenko 6e24e0db2a .idea: removed workspace.xml, seems it good to add it to .gitignore 2016-09-14 21:17:54 +03:00
Vasily Levchenko e17de76f6c added dependencies util and frontend 2016-09-14 21:16:36 +03:00
Vasily Levchenko 12635cdee4 added kotlin.iml module [kotlin-ir] and ir.* modules 2016-09-14 21:15:43 +03:00
Vasily Levchenko 80e1de4947 libraries: file->jar://...protobuf, for some reasons my idea do not find required classes and can't open jar:
IntelliJ IDEA 2016.3 EAP
Build #IU-163.3983.4, built on September 7, 2016
IntelliJ IDEA EAP User
Expiration date: October 7, 2016
JRE: 1.8.0_112-release-b340 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
2016-09-14 21:10:18 +03:00
Vasily Levchenko 450954d8cb g/c: cli_parser_1_1_2 isn't required 2016-09-14 21:02:24 +03:00
Vasily Levchenko 95e845d21c experiments/kotlin-ir: sync with origin 2016-09-14 20:35:19 +03:00
Vasily Levchenko 8fa26fed9f student-backend: vivisectioned finally modules and libraries to make backend compilable 2016-09-14 17:48:13 +03:00
Vasily Levchenko 932da705da missed .idea part of student-backend 2016-09-14 17:15:26 +03:00
Vasily Levchenko 7fd7e176b5 student-backend: only take placers and picked modules from kotlin-ir. this commit to switch from imac to pro 2016-09-14 17:10:54 +03:00
Nikolay Igotti 67724df144 Bits to make translator easily usable. 2016-09-13 18:17:07 +03:00
Vasily Levchenko 33ae0f85f8 sync experiments/kotlin-ir 2016-09-13 17:40:59 +03:00
Vasily Levchenko f122131778 added kotlin with IR as submodule to experiments 2016-09-13 06:04:46 +03:00
Vasily Levchenko d6bb074fa7 Makefile: added instruction to compile debug application 2016-09-12 17:29:56 +03:00
Vasily Levchenko 35fb5fd82d launcher for classfields_1.kt 2016-09-12 17:29:56 +03:00
Vasily Levchenko 00354672d2 dwarfed version of classfields_1.ll 2016-09-12 17:29:56 +03:00
Vasily Levchenko e7bee929a5 foo() and bar() functions to play with dwarf 2016-09-12 17:29:56 +03:00
Vasily Levchenko f0280736d5 main.c: is bad name for one function 'C' file 2016-09-12 17:29:56 +03:00
Vasily Levchenko 4014eb026b Makefile:.PRECIOUS
for some reasons make decides that build interrupted or so and removes intermediate results (or by some implecit rule) and delete files I've been interested in: %.ll, %.bc, %.s and %.o. .PRECIOUS helps to prevent such behaviour for selected files.
2016-09-12 17:29:56 +03:00
Vasily Levchenko d8ca14cb33 take placer for .kt -> .ll command 2016-09-12 17:29:56 +03:00
Vasily Levchenko 1165030e18 added 2-functions.c example to compile. 2016-09-12 17:29:56 +03:00
Vasily Levchenko 1bc70ebf69 Makfile: added to generate dwarf filled translator out put result and example applications demonstrating how dwarf initialized in diffe
for different versions of llvm
2016-09-12 17:29:56 +03:00
Vasily Levchenko cb3bae130f classfields_1.ll file generated from kotlin source located in cotkat test's with:
java -jar build/libs/translator-1.0.jar src/test/kotlin/tests/classfields_1/classfields_1.kt > classfields_1.ll
2016-09-12 17:29:56 +03:00
Vasily Levchenko 3193d87636 translator/Makefile: Disabled stdlib/tests compilation
We imported only translator at the moment no stdlib, so not all tests are be compilable.
2016-09-09 15:37:25 +03:00
Vasily Levchenko 6c4ad88501 tranlator moved to experiements/translator and the the rest is clean upped for now
if something will be required in the future (I can always repeate the exercise)
2016-09-08 11:42:20 +03:00
Vasily Levchenko a00e93ee07 Merge remote-tracking branch 'carkot/master' 2016-09-08 11:33:44 +03:00
Vasily Levchenko ec21d48278 move lifetime experiemnts to experiment/lifetime 2016-09-08 11:17:22 +03:00