Commit Graph

1956 Commits

Author SHA1 Message Date
Igor Chevdar a3becd24ec Fix for finally block for inline functions
For local return from inline function to outer scope just
call super version of genReturn.
2017-03-29 12:53:33 +03:00
Igor Chevdar 1bf73fd9d7 Added titles to all basic blocks 2017-03-29 12:53:33 +03:00
Ilya Matveev ddcecba1dc Rename clang+llvm-3.9.0* dependencies to clang-llvm-3.9.0* 2017-03-29 16:38:19 +07:00
Nikolay Igotti b6e488b210 Remove early maps problems (#408) 2017-03-29 12:10:52 +03:00
Alexander Gorshenev 9e15aa7204 Moved the backend from llc to llvm-lto even for unoptimized compilation.
Unoptimized means '-O1' -- that's the fastest one. ;-)

Mark llvm functions with "no-frame-pointer-elim" attribute when not optimizing.
2017-03-29 12:10:41 +03:00
Alexander Gorshenev 89ea6396f6 It should be --time, not -time.
It should be -list_targets, not --list_targets.
The -list should better be -list_phases now that we have several sets to list.
2017-03-29 12:10:41 +03:00
Alexander Gorshenev e8327bc4f8 Gzipping serialized metadata saves some library load time. 2017-03-29 12:10:41 +03:00
Ilya Matveev 6dea5e5c79 tools: Don't use Distribution class in helpers 2017-03-29 14:42:48 +07:00
Ilya Matveev d4ced1ba9b Update tools tests according to dependency caching 2017-03-29 14:42:48 +07:00
Ilya Matveev 386228e2ba tools: Check if dependency directory is not empty 2017-03-29 14:42:48 +07:00
Ilya Matveev d0a6441384 tools: Add ExecRemote in helpers project 2017-03-29 14:42:48 +07:00
Ilya Matveev 0d13908f78 Fix RaspberryPi dependences in konan.properties 2017-03-29 14:42:48 +07:00
Ilya Matveev 9ca938bfef build: Use dependency downloading helper in dependencies:update 2017-03-29 14:42:48 +07:00
Ilya Matveev f39f37c90f Fix paths in run-debug scipts 2017-03-29 14:42:48 +07:00
Ilya Matveev 9308f86223 tools: Use dependency cache 2017-03-29 14:42:48 +07:00
Nikolay Igotti 2d51a7bab7 Very minor doc updates 2017-03-28 22:22:14 +03:00
SvyatoslavScherbina c1d9dc1cbb Replace CArray by CPointer (#406)
Also do some cleanup.
2017-03-28 17:44:08 +03:00
Nikolay Igotti e36b5d3476 Add licenses (#397)
* Add licenses

* Add more licenses
2017-03-28 17:03:30 +03:00
Vasily Levchenko d106e9e8d9 FLAGS: added --print_locations flag (boolean) for printing lines/column information
(cherry picked from commit 9decbaadfb3ef7ca946a732a03e475b576f4f1be)
2017-03-28 15:56:14 +03:00
Igor Chevdar 6f8d75a232 Always finish basic block if it exists 2017-03-28 15:53:38 +03:00
Igor Chevdar 779976f2b1 Supported nested non-local returns 2017-03-28 15:46:32 +03:00
Alexander Gorshenev eb4683f452 Exclude 'dist/dependencies' from bundle tgz. 2017-03-28 14:15:53 +03:00
Svyatoslav Scherbina 6af710028c Add @file:Suppress("UNUSED_EXPRESSION") to generated interop stubs 2017-03-28 12:23:23 +03:00
Svyatoslav Scherbina 6eb0ceb572 fixup! Implement interop integer conversions to be used with type inference 2017-03-28 12:23:23 +03:00
Svyatoslav Scherbina f65044c7bb Implement interop integer conversions to be used with type inference 2017-03-28 12:23:23 +03:00
Svyatoslav Scherbina 757c306341 Support enum arguments and return values in interop variadic functions 2017-03-28 10:15:06 +03:00
Svyatoslav Scherbina a6b89e3a0d Expose interop enum .value through CEnum interface 2017-03-28 10:15:06 +03:00
Svyatoslav Scherbina 88a69015d8 Add "import konan.SymbolName" to generated interop stubs 2017-03-28 10:15:06 +03:00
Svyatoslav Scherbina 220efdf621 Do not call directly C variadic functions from Kotlin N 2017-03-28 10:15:06 +03:00
Nikolay Igotti 8467fabf4d Small doc updates 2017-03-27 19:38:20 +03:00
Nikolay Igotti a6656a0cba Improve samples (#396) 2017-03-27 18:16:06 +03:00
SvyatoslavScherbina c4abb8f706 Implement varargs in interop for Kotlin N (#393)
* Implement CValues.equals and .hashCode

* Add trivial test for interop varargs

* Implement varargs in interop for Kotlin N

* Compile and link runtime with libffi

* Fix few places.
2017-03-27 16:44:24 +03:00
Alexander Gorshenev 334d2f0ee6 Remote test execution for cross compiled tests. Run it like:
$ ./gradlew backend.native:tests:run \
    -Premote=user@111.22.33.444 -Ptest_target=raspberrypi

The new gradle command line options:

    -Pbuild_flags  renamed -Pkonanc_flags.
    -Ptest_flags   provides compiler flags to the test builds.
    -Ptest_target  properly sets up compiler as well as interop
                   to cross compile tests.
    -Premote       specifies remote host and login.
2017-03-27 15:14:57 +03:00
Nikolay Igotti 826b3fc3f2 Missing sample files 2017-03-27 14:36:12 +03:00
Ilya Matveev 0c171992c1 tools: Fix path to dependencies 2017-03-27 18:16:53 +07:00
Ilya Matveev afd94d08a7 Delete built bundle in clean task 2017-03-27 18:16:53 +07:00
Ilya Matveev 9ba7fcdf81 tools: Add -z to tar arguments 2017-03-27 18:16:53 +07:00
Ilya Matveev 917345a932 Add built bundle to .gitignore 2017-03-27 18:16:53 +07:00
Ilya Matveev 0e68a4ad30 tools: Set dependencies list in konan.properties 2017-03-27 18:16:53 +07:00
Ilya Matveev 57a57d827a Revert "tools: Don't use tar to unpack dependencies"
Plexus archiver cannot unpack the macos sysroot (even repacked
by GNU tar). Return to tar using as a workaround.
2017-03-27 18:16:53 +07:00
Igor Chevdar 00e452bcdf Added tests on link stage (disabled for now). 2017-03-27 12:41:58 +03:00
Igor Chevdar 6381b4d831 Default arguments lowering should not touch inline functions. 2017-03-27 12:41:51 +03:00
Igor Chevdar 69eb96ecab Preserved the order of arguments to a function being inlined 2017-03-27 11:31:17 +03:00
igotti-google 4323065db5 Better Tetris build docs 2017-03-27 11:02:17 +03:00
Nikolay Igotti af3b74451d Misc tweaks (#387) 2017-03-25 11:35:56 +03:00
Konstantin Anisimov 16b076f46d Refactoring 2017-03-24 19:46:37 +07:00
Konstantin Anisimov d45f3fe678 Support for default arguments 2017-03-24 19:46:37 +07:00
Konstantin Anisimov bb91ebbfd9 Refactoring 2017-03-24 19:46:37 +07:00
Konstantin Anisimov 4cb4615e7c Do not evaluate Block argument 2017-03-24 19:46:37 +07:00
Konstantin Anisimov c278853f10 Bug fix for crash connected with "value-parameters" 2017-03-24 19:46:37 +07:00