Commit Graph

980 Commits

Author SHA1 Message Date
Svyatoslav Scherbina 394b4ce6ec backend/build: depend on kotlin-compiler.jar from repo
instead of the jars from backend.native/kotlin-ir
2016-10-31 13:32:02 +07:00
Svyatoslav Scherbina 74ab1503c3 Interop: make gradle plugin more friendly to complex dependency management
when representing dependencies as file collection
some meta information gets lost
2016-10-31 13:32:02 +07:00
Nikolay Igotti 8d2c0edd6b Implement instanceof checks. (#23) 2016-10-31 08:14:04 +03:00
KonstantinAnisimov e4d1557300 Merge pull request #18 from JetBrains/K2Native-minor-improvements
minor refactoring in native to frontend interface
2016-10-28 16:59:32 +03:00
Konstantin Anisimov 64e9f2a2f7 minor refactoring in native to frontend interface 2016-10-28 16:59:06 +03:00
Konstantin Anisimov 3617161247 numeric literal support:
define i32 @kfun:sum(i32) {
entry:
  %a = alloca i32
  store i32 %0, i32* %a
  %tmp1 = load i32, i32* %a
  %tmp0 = add i32 %tmp1, 33
  ret i32 %tmp0
}
2016-10-28 12:31:38 +03:00
Konstantin Anisimov f02e0af5a2 various numeric literals' tests 2016-10-28 12:27:12 +03:00
Svyatoslav Scherbina cc47ed98f3 runtime: use @ExportTypeInfo
to import compiler-generated type infos into C++ code
2016-10-27 19:32:45 +03:00
Svyatoslav Scherbina 991c8ea905 backend.native, runtime: implement @ExportTypeInfo 2016-10-27 19:32:45 +03:00
Svyatoslav Scherbina 6bfbf1050b build: compile backend.native/tests with Kotlin runtime 2016-10-27 19:32:45 +03:00
Svyatoslav Scherbina 17b757bc2b runtime: comment String.plus
to workaround improper virtual call generation resulting in link error
2016-10-27 19:32:45 +03:00
Svyatoslav Scherbina d2d90e8066 backend: do not declare function if it has already been declared 2016-10-27 19:32:45 +03:00
Svyatoslav Scherbina fbb79418c4 backend: generate valid bitcode for abstract functions 2016-10-27 19:32:45 +03:00
Svyatoslav Scherbina 1ec7d806fa backend: properly import functions from runtime 2016-10-27 19:32:45 +03:00
Nikolay Igotti b6e314f274 More runtime work. Console read, string hashing. 2016-10-27 18:58:54 +03:00
Nikolay Igotti cbb5499313 Verify bitcode before write, minor fixes. (#21) 2016-10-27 18:54:38 +03:00
Konstantin Anisimov f448358ec2 refactoring: cosmetic code moving 2016-10-27 17:58:21 +03:00
Nikolay Igotti 1c13a63f0a Add Gradle wrapper. (#19) 2016-10-27 13:52:00 +03:00
Vasily Levchenko 3aa825cfe6 missed part of linux build: system libraries should go to the end 2016-10-27 12:35:56 +03:00
Vasily Levchenko dd6abfa188 linux build fix: static/dynamic and libraries ordering 2016-10-27 12:34:20 +03:00
Vasily Levchenko 8f9e6961e6 attempt to fix build 2016-10-27 10:20:21 +03:00
Vasily Levchenko c5a140bccc mac build fix 2016-10-26 22:46:05 +03:00
Vasily Levchenko e721a4e19d fix build: mac and linux should take llvm libraries from dependencies/all/clang+llvm..., instead from system path 2016-10-26 22:23:57 +03:00
Vasily Levchenko 202d03644d fix build: (mac and linux)
common fix of build: add to link flags -LlibffiDir -lffi
llvm.def: os specific remove from ldflags -lffi, it shoould appear after -LlibffiDir...
2016-10-26 21:16:17 +03:00
Vasily Levchenko 2690c87b9f tests depends on :runtime:build and :backend.native:build 2016-10-26 20:37:42 +03:00
Vasily Levchenko b852225007 linux build fix: remove libtinfo some info:
Git Clone URL:https://aur.archlinux.org/libtinfo.git (read-only)
Package Base:libtinfo
Description:symlink to ncurses for use in cuda and other packages
Upstream URL:http://www.gnu.org/software/ncurses/
Licenses:MIT
Submitter:hav3lock
Maintainer:hav3lock
Last Packager:hav3lock
Votes:209
Popularity:8.144062
First Submitted:2013-08-18 23:48
Last Updated:2016-05-24 22:29
2016-10-26 19:04:04 +03:00
Nikolay Igotti 8ce0bddc17 More stdlib implementation. (#17) 2016-10-26 18:37:02 +03:00
Vasily Levchenko 622ae34e61 attempt to fix linux build (:backend.native:run) 2016-10-26 13:33:28 +03:00
vvlevchenko 4dcfc7e37e Merge pull request #15 from JetBrains/gradle-tests
gradle replacement for Makefile in tests
2016-10-26 13:12:36 +03:00
Vasily Levchenko a4dd4c241a gradle replacement for Makefile in tests 2016-10-26 13:12:22 +03:00
Vasily Levchenko 771be7bef8 attempt to fix mac build 2016-10-26 06:21:31 +03:00
Svyatoslav Scherbina a158d52f8c build: configure 'c' plugin to use clang toolchain from dependencies 2016-10-24 18:10:05 +03:00
Nikolay Igotti a938fcca6c Add very basic output, small refactoring. (#14)
Add very basic output, small refactoring.
2016-10-24 12:27:14 +03:00
Vasily Levchenko 3331cdbf94 kotlin-ir: sync 2016-10-23 12:13:17 +03:00
Vasily Levchenko e8dd179770 realization LazyClassReceiverParameterDescriptor 2016-10-22 09:37:45 +03:00
Vasily Levchenko 731361f2e9 added comment that thereis required check about shadowing 2016-10-22 09:36:23 +03:00
Vasily Levchenko 1b97973dc8 constructor should initialize fields of object basing on comparizon with storage structure 2016-10-22 09:35:03 +03:00
Vasily Levchenko 64acd9d894 field acces test (when there're no storage in object for contructor parameter) (not runnable yet) 2016-10-22 09:32:48 +03:00
vvlevchenko 7f41a35d07 Merge pull request #12 from JetBrains/object-initialization
Object initialization and field access
2016-10-21 22:14:05 +03:00
Vasily Levchenko 09ee81b7a3 object initialization and properties access 2016-10-21 20:21:54 +03:00
Vasily Levchenko 0523505354 Runtime: export function to import own functionality to target module (perhaps it's frontend task) 2016-10-21 20:21:54 +03:00
Vasily Levchenko 7d243378cd TEST:object initialization 2016-10-21 20:21:54 +03:00
Nikolay Igotti 5a30a0f2f9 More array types, bind to native. (#13)
More array types, bind to native implementations.
2016-10-21 17:50:16 +03:00
Vasily Levchenko 639c4f9786 frontend: prints compilation error 2016-10-20 23:03:10 +03:00
Vasily Levchenko 14025047a6 dependencies: do not download if file already exists 2016-10-20 21:23:54 +03:00
Nikolay Igotti 09cb649c32 Very basic string support. (#10)
String, ByteArray support, type declarations.
2016-10-20 16:04:28 +03:00
Vasily Levchenko badcccac58 tests now can use runtime infrostructure 2016-10-20 12:34:49 +03:00
SvyatoslavScherbina 767acbda1a Merge pull request #11 from JetBrains/some-stupid-coding-1
Various fixes and and improvements
2016-10-19 21:59:19 +03:00
Svyatoslav Scherbina 25403723be backend.native: improve memory management using mem scopes 2016-10-19 13:45:40 +03:00
Svyatoslav Scherbina a1593c86f1 backend.native: support external functions
also implement changing external function symbol name with the annotation
2016-10-19 13:45:40 +03:00