Commit Graph

85185 Commits

Author SHA1 Message Date
Sergey Bogolepov c7faf9b4df [K/N] Add -Xllvm-variant` compiler option
We need a handle that allows user to pick `dev` variant instead of
`user` one just in case.
Additionally, I added a possibility to provide a path to an arbitrary
LLVM distribution because it is useful for development purposes.
2021-08-23 10:13:36 +00:00
Sergey Bogolepov db9ff9a4ce [K/N] Remove obsolete hack
Besides obsolescence, this hack is not working for "user" LLVM variant.
2021-08-23 10:13:35 +00:00
Sergey Bogolepov 8866ab5916 [K/N] Switch user LLVM distributions to smaller ones 2021-08-23 10:13:35 +00:00
Sergey Bogolepov 75215fcb97 [K/N] Option to build smaller LLVM distribution.
Also add a few adjustments to `package.py`:
* Enable threading in LLVM
* Replace `--archive-path` with `--pack` to avoid naming divergence.
2021-08-23 10:13:34 +00:00
Sergey Bogolepov 74e26126df [K/N] Use "user" version of LLVM in distribution 2021-08-23 10:13:34 +00:00
Ilya Chernikov 47ea5330ff IR: Allow references to script constructor in module
aso add test checking (somewhat confusing) semantic of
script nested classes.
2021-08-23 12:49:45 +03:00
Ilya Chernikov e7cbc9a0fb IR: Process script with LDL as if it is a function body
#KT-46645 fixed
#KT-48025 fixed
2021-08-23 12:49:43 +03:00
Andrey Uskov ebcc6eec97 Fixed setting target version if toolchain is not set
#KT-48226  Fixed
2021-08-23 11:25:03 +03:00
Ilya Muradyan 41e2deb751 Revert "[minor] Add the test confirming the wrong behavior of KT-48355"
This reverts commit d9c0b9ad5a.
2021-08-23 11:11:52 +03:00
Ilya Muradyan d9c0b9ad5a [minor] Add the test confirming the wrong behavior of KT-48355 2021-08-22 03:28:36 +03:00
Tianyu Geng 7306f1c3f1 FIR IDE: make equality of KtSymbol/KtType stable 2021-08-21 17:41:12 +03:00
Mark Punzalan 6b57621863 FIR IDE: Change key of argumentMapping in KtCall to KtExpression. 2021-08-21 17:26:29 +03:00
Mark Punzalan ae17cd639b FIR IDE: Correctly create KtFunctionalTypeVariableCall when function
call has errors.
2021-08-21 17:26:29 +03:00
Mark Punzalan f7dd6a0f64 FIR IDE: Remove KtCallWithArguments and move arguments up to KtCall. 2021-08-21 17:26:29 +03:00
Mark Punzalan 7f9ed58c7d FIR IDE: Expand KtCall API to include array access calls. 2021-08-21 17:26:29 +03:00
Matthew Gharrity e27b75bfba Check for cancelation during type inference
This should slightly mitigate the UI freezes caused by KT-47545.
2021-08-20 16:49:42 +03:00
sebastian.sellmair 487524f6b0 [Gradle] setupCInteropPropagatedDependencies: retain task dependencies
^KT-47523
2021-08-20 13:06:43 +00:00
sebastian.sellmair 882d72b1f7 [Gradle] Implement setupCInteropPropagatedDependencies
This commit will forward/propagate cinterops to intermediate source sets
with only one native dependent (and their metadata compilation)

^KT-47523 Verification Pending
2021-08-20 13:06:43 +00:00
sebastian.sellmair fee670e1a5 [Gradle] Add test and assertions to cover ^KT-47523 2021-08-20 13:06:42 +00:00
Victor Petukhov d730db094a Don't look at raw type's arguments while enhancing super types
^KT-48172 Fixed
2021-08-20 13:10:45 +03:00
Victor Petukhov 63cefe228d Extract computing raw type arguments into separate method 2021-08-20 13:10:42 +03:00
Dmitry Petrov a3bb9dde45 JVM_IR KT-48295 don't upcast field receiver with super qualifier 2021-08-20 12:27:43 +03:00
nataliya.valtman 7038b02933 Add build uuid, time and hostname fields to ES stat 2021-08-20 10:48:43 +03:00
nataliya.valtman ae3f0a5158 Update custom values format 2021-08-20 10:48:37 +03:00
nataliya.valtman 96a22d48f8 Remove support of Gradle 6.0 or less 2021-08-20 10:48:35 +03:00
nataliya.valtman c8254676c1 Add non Incremental reason to build scan 2021-08-20 10:48:31 +03:00
nataliya.valtman 2114e048dc Add statistic to buildScan 2021-08-20 10:48:28 +03:00
Ilya Goncharov 423ecfe640 [Gradle, JS] NodeJsSetup and yarnSetup are not cacheable
^KT-48332 fixed
2021-08-20 10:43:46 +03:00
Pavel Kunyavskiy 523e9495fc [K/N] Optimize safepoint implementation 2021-08-20 07:01:06 +00:00
pyos 858bd47c45 JVM_IR: use substituted return type when lowering inline references
#KT-48267 Fixed
2021-08-20 06:41:03 +02:00
Mads Ager 0b84de31b7 [JVM IR] Generate line number for exception store for finally.
^KT-46451 Fixed
2021-08-20 00:59:55 +02:00
Victor Petukhov a1519b7b4e Be able to infer a type variable based on several builder inference lambdas
^KT-48329 Fixed
2021-08-20 01:28:12 +03:00
Victor Petukhov bf1e68a53f Resolve calls using the builder inference despite the presence of the annotation if there are uninferred type variables
^KT-48194 Fixed
2021-08-20 01:28:11 +03:00
Victor Petukhov 55811c8851 Don't use builder inference if possible
The builder inference is running only if there are still uninferred type variables

^KT-48193 Fixed
2021-08-20 01:28:10 +03:00
Victor Petukhov 3df5667a4b Split variables fixation and reporting "not enough type infromation" in the type system completer into two parts 2021-08-20 01:28:06 +03:00
Victor Petukhov 261a04b587 Rename "coroutine( inference) *" stuff into "builder inference *" 2021-08-20 01:28:05 +03:00
Igor Yakovlev 8e885da677 [FIR IDE] Fix exception in FIR LC with special identifier names 2021-08-19 21:26:08 +02:00
Igor Yakovlev 2ce391d317 [FIR IDE] Fix unensured access to the return type 2021-08-19 21:26:08 +02:00
Igor Yakovlev 7a5a2bfcd7 [FIR] Fix invalid source for anonymous object type 2021-08-19 21:26:07 +02:00
Igor Yakovlev 5e6442b475 [FIR IDE] Suppress warnings to build project with warnings-as-errors mode 2021-08-19 21:26:07 +02:00
Igor Yakovlev 5498f40ce7 [FIR IDE] Fix reference resolve for functions call 2021-08-19 21:26:07 +02:00
Igor Yakovlev 42242e198b [FIR IDE] Fix invalid resolve for local declarations that could be outdated while incremental analisys 2021-08-19 21:26:07 +02:00
Igor Yakovlev 6360366ecc [FIR IDE] Fix invalid resolve for local declarations that could be fully replaced with new instance
+small optimisations for IMPORTS phase
2021-08-19 21:26:07 +02:00
Igor Yakovlev ed0bfabc51 [FIR IDE] Fix invalid reference resolve for null safety operator 2021-08-19 21:26:07 +02:00
Igor Yakovlev 0a5dee567e [FIR IDE] Fix invalid property incremental analisys 2021-08-19 21:26:07 +02:00
Igor Yakovlev 0781156b42 [FIR IDE] Fix invalid reference resolve into companion with custom name 2021-08-19 21:26:07 +02:00
Igor Yakovlev 2ff4f10ff0 [FIR IDE] Fix SOE for FIR deserialized declarations provider 2021-08-19 21:26:07 +02:00
Igor Yakovlev 035f1ff89f [FIR IDE] Add ValueWithPostCompute recursive guard 2021-08-19 21:26:07 +02:00
Igor Yakovlev d0e25eb987 [FIR IDE] Preprocess cone types in psi type mapper 2021-08-19 21:26:07 +02:00
Igor Yakovlev 79b70a6f98 [FIR IDE] Ensure resolved for status when resolving local declarations 2021-08-19 21:26:07 +02:00