Commit Graph

1000 Commits

Author SHA1 Message Date
Svyatoslav Scherbina 58e8ed1850 backend/tests/build: fix compiler native library path 2016-11-02 17:02:14 +07:00
Svyatoslav Scherbina e7558f9ddc build: add target native SDK as downloadable dependency
also improve Gradle native toolchains configuration
2016-11-02 17:02:14 +07:00
Svyatoslav Scherbina db1853f627 runtime: remove unused test
to simplify build configuration
2016-11-02 17:02:14 +07:00
Nikolay Igotti 5966f69928 Add Base64 encoding for printable hashes (SHA1 hash is 30 bytes, City is 14). (#30) 2016-11-02 12:44:36 +03:00
Vasily Levchenko b3fb82da07 unwanted print 2016-11-01 21:58:02 +03:00
Vasily Levchenko ac761e0cbf unit tests and run tests are splitted
run tests can use golden value and test data to process and compare results
2016-11-01 21:49:20 +03:00
Nikolay Igotti 283303210f Rename kotlin_native -> kotlin. 2016-11-01 16:13:46 +03:00
Nikolay Igotti 7eeb2d3046 Various fixes for HelloWorld. (#27) 2016-11-01 15:33:41 +03:00
Nikolay Igotti b142d39dbc Merge pull request #28 from JetBrains/fix_void
Fix void calls.
2016-11-01 13:12:47 +03:00
Nikolay Igotti 7cf38d9501 Fix void calls. 2016-11-01 13:11:39 +03:00
Vasily Levchenko 08bfdb652c processing Call IR expressions and void functions (crash expected) 2016-11-01 12:48:46 +03:00
Vasily Levchenko ecdac4190c added processing of the BLOCK_BODY, for Unit function IR doesn't contein RETURN:
FUN public fun bar(i: kotlin.Int): kotlin.Unit
      BLOCK_BODY
for code:
fun bar(i:Int):Unit {}
2016-10-31 21:31:32 +03:00
Vasily Levchenko df9bf60c30 g/c: unused vars 2016-10-31 20:56:58 +03:00
Vasily Levchenko ae3fbfcc67 g/c: line balance 2016-10-31 20:56:58 +03:00
Vasily Levchenko 90883b6ced g/c: -linq 2016-10-31 20:56:58 +03:00
Nikolay Igotti 3bb20d2874 Merge pull request #25 from JetBrains/drop-kotlin-build
Use kotlin-compiler.jar from repo to get rid of building the Big Kotlin
2016-10-31 17:07:22 +03:00
Svyatoslav Scherbina 941f3b9bc5 remove backend.native/kotlin-ir submodule 2016-10-31 19:51:08 +07:00
Svyatoslav Scherbina 644add92e5 build: download dependencies from the bintray repo
which is accessible from the outside
2016-10-31 17:59:39 +07:00
Svyatoslav Scherbina 18ae8b2311 build: switch to Sonatype snapshots repo for kotlin-compiler
it is updated automatically by every successful build
2016-10-31 17:39:15 +07:00
Svyatoslav Scherbina 1b624ac88f backend: fix building against latest kotlin-compiler.jar 2016-10-31 16:01:24 +07:00
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