Commit Graph

6552 Commits

Author SHA1 Message Date
SvyatoslavScherbina 77fcc0d010 Fix type safe barrier bridges for generics with non-trivial upper bound 2020-11-28 20:51:01 +01:00
Sergey Bogolepov 8c5bb6420a Introduce ${target}CheckAbiCompatibility task.
Since Kotlin/Native is moving tovards stable ABI it is important to check between releases that there are no unexpected breaking changes.
${target}CheckAbiCompatibility task allows to compare `klib signatures` dumps of stdlib and platforms libs from current distribution and the given one.
2020-11-28 20:50:09 +01:00
Elena Lepilkina 86af222d9b Decrease time of running benchmarks 2020-11-28 20:49:00 +01:00
Elena Lepilkina 41f704a458 Fix cinterop numerical benchmark 2020-11-28 20:49:00 +01:00
Elena Lepilkina d44ceb6997 Fix path after separating performance project 2020-11-28 20:49:00 +01:00
LepilkinaElena 26ccdbdc18 Used lazy value of base class not to load properties from manifest twice (#4487) 2020-11-28 20:49:00 +01:00
Vasily Levchenko c28fd8e980 [debug][bindings][python] 2.7 compatibility 2020-11-28 20:48:59 +01:00
Vasily Levchenko 59a6a25c82 [debug][bindings][tests] temprorary output changes matching to current binding formmating. 2020-11-28 20:48:59 +01:00
LepilkinaElena 482da2149e Fix path for analyzer (#4484) 2020-11-28 20:48:59 +01:00
Alexander Shabalin 8dc5b95337 Move main thread check to legacy mm (#4483) 2020-11-28 20:48:59 +01:00
Sergey Bogolepov 14526e57bc [Linker] Move gcc linkage flags to konan.properties 2020-11-28 20:48:58 +01:00
Sergey Bogolepov 42d416e0e7 Mention -Xoverride-konan-properties in HACKING.md 2020-11-28 20:48:58 +01:00
Sergey Bogolepov 93f9caf568 Add a test for -Xoverride-konan-properties
Add a trivial test that checks that `-Xoverride-konan-properties` overrides corresponding properties of LLVM optimization pipeline.
2020-11-28 20:48:58 +01:00
Sergey Bogolepov f2fae3d1b2 [Tests] fix compilation.log contents
Do not override stdout because we want to check output of both streams.
2020-11-28 20:48:58 +01:00
Sergey Bogolepov f2861e5d11 [LLVM][Optimizations] Add verbose output
Verbose output allows to observe `-Xoverride-konan-properties` changes.
2020-11-28 20:48:58 +01:00
Sergey Bogolepov 431a7c9ba9 [KT-42234] Moved optimization flags to konan.properties
Combined with KT-40670, it simplifies tuning of LLVM optimization and compilation pipeline.
2020-11-28 20:48:57 +01:00
Sergey Bogolepov e2cb099d2b [KT-40670] Allow override konan.properties
It is painful to edit konan.properties just to override some value (e.g. compiler flags or LLVM location), especially if it is needed only in a single project. Thus `-Xoverride-konan-properties` is added.
2020-11-28 20:48:57 +01:00
Alexander Shabalin 4297b521e4 Remove unneeded zeroing TLS (#4480) 2020-11-28 20:48:55 +01:00
Alexander Shabalin 1a97a6ca1a Remove unneeded ArraysTest.cpp (#4479) 2020-11-28 20:47:34 +01:00
LepilkinaElena e57839ece6 Separate performance project (#4473) 2020-11-28 19:45:29 +01:00
Igor Chevdar 590aa42f3d [IR] Forbade backend checks for metadata klibs 2020-11-28 19:44:20 +01:00
SvyatoslavScherbina 47c606f1eb Wrap worker jobs to autoreleasepool
#KT-42822 Fixed.
2020-11-28 19:44:18 +01:00
Sergey Bogolepov 96d458e35b Fix IrDelegatingConstructorCallImpl.fromSymbolDescriptor usage. 2020-11-28 19:29:28 +01:00
Dmitriy Dolovov 6fd872f0be Merge pull request #4470 from JetBrains/master-tensorflow
Fix tensorflow sample compilation
2020-11-28 19:29:28 +01:00
Vasily Levchenko db3cdddd7a [debug][bindings][python] logging 2020-11-28 19:29:28 +01:00
Vasily Levchenko 64f1074e53 [debug][bindings][python] exception hook 2020-11-28 19:29:27 +01:00
Vasily Levchenko c143250b99 [debug][bindings][python] drop all optimizations and skip deep synthactic object building 2020-11-28 19:29:27 +01:00
Vasily Levchenko 9523dbbe2c [debug][bindings][python] benchmarcking 2020-11-28 19:29:27 +01:00
Vasily Levchenko 91b6f1221d [debug][bindings][python][g/c] logging 2020-11-28 19:29:27 +01:00
Vasily Levchenko 624ed9853d [debug][bindings][python]pass string limits deeper in case of arrayprinting 2020-11-28 19:29:26 +01:00
Vasily Levchenko ec70bbf5c7 [debug][bindings][python] drop struct modificator 2020-11-28 19:29:26 +01:00
Stanislav Erokhin f624800b84 Move everything under kotlin-native folder
I was forced to manually do update the following files, because otherwise
they would be ignored according .gitignore settings. Probably they
should be deleted from repo.

Interop/.idea/compiler.xml
Interop/.idea/gradle.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_runtime_1_0_3.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_0_3.xml
Interop/.idea/modules.xml
Interop/.idea/modules/Indexer/Indexer.iml
Interop/.idea/modules/Runtime/Runtime.iml
Interop/.idea/modules/StubGenerator/StubGenerator.iml
backend.native/backend.native.iml
backend.native/bc.frontend/bc.frontend.iml
backend.native/cli.bc/cli.bc.iml
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2Native.kt
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2NativeCompilerArguments.kt
backend.native/tests/link/lib/foo.kt
backend.native/tests/link/lib/foo2.kt
backend.native/tests/teamcity-test.property
2020-10-27 21:00:28 +03:00
Stanislav Erokhin 91e4162dad Start perparation for kotlin/native merge into kotlin repo
This is first commit that should't be in kotlin/native master
and should be done only in kotlin repo.
Removed .gitmodule -- because it wasn't used.
.github/* -- because in kotlin repo issues are disabled
.idea/vcs.xml -- because kotlin already has this settings
2020-10-27 20:39:02 +03:00
Georgy Bronnikov 344b865232 IrFunctionReference.fromSymbolDescriptor
(cherry picked from commit f9b70d2fa8649132ba344a9983553835c4afb3dd)
2020-10-27 11:07:44 +01:00
Georgy Bronnikov db9e3c9085 IrDelegatingConstructorCall.fromSymbolDescriptor
(cherry picked from commit 7c8a598c36165a9f6f15e5dcd87acd44008c1400)
2020-10-27 11:07:44 +01:00
Georgy Bronnikov 3087bdea22 IrCall.fromSymbolDescriptor
(cherry picked from commit a1d3e915465ea3c5f35657fe2dcc81f9e7b6a28e)
2020-10-27 11:07:44 +01:00
Igor Chevdar d67067a49e [IR] Supported non-reified typeOf 2020-10-27 11:48:11 +03:00
Alexander Shabalin 1aef9da517 Extract memory manager into a separate module (#4446) 2020-10-27 09:48:09 +03:00
Igor Chevdar d12669f926 [IR] More agressive psi2ir for klib producing 2020-10-27 08:01:10 +03:00
Igor Chevdar 53e4effd05 [IR] Refactored Psi2Ir for klibs 2020-10-27 08:01:10 +03:00
Igor Chevdar eec9e6b8d5 Refactored LlvmModuleSpec 2020-10-27 08:01:10 +03:00
Igor Chevdar 91e457f07a [IR] Replaced compilation errors with just exceptions 2020-10-27 08:01:10 +03:00
Igor Chevdar 5b457eadb1 [IR] Extracted different backend checks into a separate pass 2020-10-27 08:01:10 +03:00
Igor Chevdar e7441037f6 [tests] Added samples for compiler checks 2020-10-27 08:01:10 +03:00
Vasily Levchenko 44358697f8 [kotlin compiler][update] isPublicApi 2020-10-26 19:12:20 +01:00
Vasily Levchenko b3c1c30f2e [kotlin compiler][update] adoption [type,value]ArgumentCount 2020-10-26 19:12:20 +01:00
Alexander Udalov 297361f0c8 IR: remove FunctionLoweringPass, refactor usages to FileLoweringPass
FunctionLoweringPass didn't add much value over FileLoweringPass, but
had a hidden footgun (like ClassLoweringPass) in that if your lowering
pass invoked a visitor/transformer on the function body and you forgot
to override visitFunction to stop visiting nested functions,
runOnFilePostfix would work with the complexity of the squared number of
nesting levels. It looks like this was happening with K/N's
DataClassOperatorsLowering (I haven't measured though).

(cherry picked from commit 822410a647560826e8cce96921eae32f237cf335)
2020-10-26 19:12:20 +01:00
Alexander Udalov 306fd2ae07 IR: refactor DeclarationTransformer
Do not create extra DeclarationTransformer and FileLoweringPass
instances, instead inline all transformations to
DeclarationTransformer.lower.

(cherry picked from commit 7d0e643c92d1f42ed4ae8fc350da1c92d3e2b2ae)
2020-10-26 19:12:20 +01:00
Leonid Startsev f4f8763f4d Pass project instance while creating descriptor serializer
(cherry picked from commit 42ff47ec3272af57edb028877f7eeff411c69dca)
2020-10-26 19:12:20 +01:00
Mikhail Glukhikh 025c4b3850 Use special generic signatures from compiler.common.jvm
(cherry picked from commit 1c14b71f707465265326e89d3858c0ab364c950f)
2020-10-26 19:12:20 +01:00