Sergey Bogolepov
00caf0f1e1
[Swift Export] Check SIR validity in pass tests
2023-12-14 12:38:12 +00:00
Sergey Bogolepov
9fde7e0d35
[Swift Export] Create infrastructure for SIR validation
2023-12-14 12:38:12 +00:00
Pavel Punegov
2d2714c8de
[K/N] Move runtime bitcode files out of stdlib
...
Native bitcode files were moved out of the stdlib to the default
location of bitcode files in the dist.
Now it is possible to build stdlib separately and once as a klib
without bitcode files inside.
2023-12-14 11:33:20 +00:00
Dmitriy Novozhilov
28f0f1ea88
[FIR2IR] Properly set isAssignable flag for parameters of tailrec functions
...
^KT-63973 Fixed
2023-12-14 09:58:03 +00:00
Svyatoslav Scherbina
2cdf8cd7b1
Native: support Objective-C instancetype in more cases in cinterop
...
Objective-C has a special type, "instancetype". Generally, it is a type
that matches the method receiver type. So, if `Foo.foo` method returns
`instancetype`, then `Foo.foo()` would be of type `Foo`, while
`Bar.foo()` would be of type `Bar` (where `Bar` is a subclass of `Foo`).
Surprisingly, `instancetype` can be used not only as a return type, but
also somewhere inside a return type. cinterop wasn't ready for this.
This commit expands implementation of `instancetype` in cinterop to
cover more cases.
^KT-59597 Fixed
2023-12-14 08:57:29 +00:00
Pavel Kunyavskiy
8e047e6d8a
[FIR2IR] Make all source sets friends for IrFakeOverrideBuilder
...
^KT-63644
2023-12-14 08:32:58 +00:00
Dmitriy Dolovov
cbf21acede
IR text tests: Don't dump signature mangled names for IR-based descriptors
...
^KT-57788
2023-12-13 21:33:26 +00:00
Vladimir Sukharev
a59742258e
[K/N] Speedup test CInterop/executable/bitfields/
2023-12-13 19:06:57 +00:00
Dmitriy Dolovov
e9b4b8919d
[KLIB Resolver] Add a heuristic to look up for KLIB file given only unique name
...
This fix adds a workaround to allow Kotlin/Native compiler to resolve
KLIB library if only library name was passed via `-l` CLI argument.
^KT-63931
2023-12-13 18:06:07 +00:00
Dmitriy Novozhilov
b4947e6cfe
[Test] Exclude K2 MPP codegen box tests from K1 generated suites
...
Those tests always were muted for K1 because of incompatible module
structure in testdata, so there is no actual sense to even generate
them for K1
2023-12-13 16:47:42 +00:00
Ilya Gorbunov
d2aae67e03
Replace kotlin-test project dependencies in the project
...
Use dependency helper function that chooses whether to take them
from the bootstrap repository or from a configuration of kotlin-test
KT-61969
2023-12-13 15:40:25 +00:00
Nikita Nazarov
251fdb21c9
[FIR] Generate spread element for unsigned arrays
...
Previously when unsigned arrays were passed as vararg in a named form the necessary spread element wasn't generated, which resulted in a compilation error.
^KT-63514 fixed
2023-12-13 15:30:27 +00:00
Kirill Rakhman
6d1ca3d379
[FIR] Fix CCE in deserialization of suspend function type with star projection continuation
...
#KT-64148 Fixed
2023-12-13 14:36:01 +00:00
Sergey Bogolepov
01976990e8
[Swift Export] Use ExportedBridge instead of ExportForCppRuntime
...
ExportedBridge annotation actually does what we need in Swift Export.
Unlike ExportForCppRuntime, it prevents symbol from DCE.
2023-12-13 14:09:58 +00:00
Svyatoslav Kuzmich
1a644c48b0
Regenerate compiler tests
2023-12-13 13:30:50 +00:00
Artem Olkov
5fcdd4a9f6
KT-63748: Pack Swift Export Frontend into compiler plugin
...
Co-authored-by: Sergej Jaskiewicz <jaskiewiczs@icloud.com >
Merge-request: KT-MR-13351
Merged-by: Artem Olkov <artem.olkov@jetbrains.com >
2023-12-13 10:40:38 +00:00
Sergej Jaskiewicz
f844a86057
[utils] Introduce the bind function and use it throughout
2023-12-13 10:04:45 +00:00
Gleb Lukianets
64ebec7955
[Swift Export]: KT-63280: Package inflation
...
Merge-request: KT-MR-13331
Merged-by: Gleb Lukianets <Gleb.Lukianets@jetbrains.com >
2023-12-12 16:05:22 +00:00
Sergej Jaskiewicz
dada4a60bd
[SIR] Use shorter parameter names for some elements in visitor methods
2023-12-12 14:27:57 +00:00
Sergej Jaskiewicz
e8459793b7
[SIR] Use SirTransformerVoid for ForeignIntoSwiftFunctionTranslationPass
2023-12-12 14:27:57 +00:00
Sergej Jaskiewicz
cab87eba21
[SIR, FIR generators] Add KDocs for visitor-related methods of elements
2023-12-12 14:27:57 +00:00
Sergej Jaskiewicz
1bed6a063f
[SIR] Add SirTransformerVoid class
...
This is convenient for cases when the transformer has no context to pass
to each method
2023-12-12 14:27:57 +00:00
Sergej Jaskiewicz
1bc2ac2c87
[SIR] Use SirVisitorVoid i/o SirVisitor for SirAsSwiftSourcesPrinter
2023-12-12 14:27:57 +00:00
Sergej Jaskiewicz
80847b9ee2
[SIR generator] Add SirVisitorVoid class
...
This is convenient for cases when the visitor has no context to pass to
each method
2023-12-12 14:27:57 +00:00
Sergej Jaskiewicz
80c9eae409
[tree generators] Factor out common transformer printing logic
2023-12-12 14:27:57 +00:00
Dmitriy Dolovov
b5d8db0267
[test] Exclude "K1-only" from FIR IR text tests and "K2-only" from Classic IR text tests
...
^KT-60390
2023-12-12 13:57:48 +00:00
Dmitriy Dolovov
44d57c7751
[test] Add missing KMP IR text tests to "K1-only" and "K2-only" groups
...
^KT-60390
2023-12-12 13:57:48 +00:00
Dmitriy Dolovov
0b3d64719f
[test] Split KMP IR text tests onto K1-only and K2-only groups
...
^KT-60390
2023-12-12 13:57:48 +00:00
Artem Olkov
6c4a6e2a02
turn on explicitApi for SIR modules
...
Merge-request: KT-MR-13448
Merged-by: Artem Olkov <artem.olkov@jetbrains.com >
2023-12-12 09:02:55 +00:00
Artem Olkov
6dc56158f9
Add gradle task that executes all tests from all SIR related modules
...
Merge-request: KT-MR-13410
Merged-by: Artem Olkov <artem.olkov@jetbrains.com >
2023-12-08 15:14:29 +00:00
Brian Norman
0881910a1b
[FIR] Rewind DFA after call arguments for correct receiver smartcasting
...
^KT-63709 Fixed
2023-12-08 14:32:22 +00:00
Artem Olkov
38d5e56530
KT-63273: Swift IR passes to support functions with numeric parameters
...
Merge-request: KT-MR-13290
Merged-by: Artem Olkov <artem.olkov@jetbrains.com >
2023-12-08 14:07:42 +00:00
Dmitriy Novozhilov
7d685522ce
[IR] Fix calculation of receiver type for properies in expect/actual context
...
^KT-62926 Fixed
2023-12-08 13:28:27 +00:00
Evgeniy.Zhelenskiy
9cef8a2133
[FIR, Tests] Add box tests to verify that disappeared DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE leads to executable code
...
#KT-59903
Merge-request: KT-MR-13423
Merged-by: Evgeniy Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
2023-12-08 13:18:59 +00:00
Sergej Jaskiewicz
701a48b211
[SIR] Fix transformer auto-generation
...
The default implementation of a transformer method should delegate to
`parentInVisitor`
2023-12-08 10:09:09 +00:00
Sergej Jaskiewicz
0d2032f3ef
[SIR] Auto-generate the Swift IR tree
...
Co-authored-by: Gleb Lukianets <gleb.lukianets@jetbrains.com >
2023-12-08 10:09:09 +00:00
Dmitriy Dolovov
c9f4a1a841
IR: Avoid overwriting of property signature descriptions
...
^KT-64085
^KT-64082
2023-12-07 15:02:24 +00:00
Yan Zhulanow
1726a94c87
[Pill] Update module structure
2023-12-07 08:53:35 +00:00
Troels Bjerre Lund
4f77434ea5
[K/N] Remove LLVM coverage
...
The -Xcoverage feature has not worked and has been disabled for a while.
This fix removes it, and all of its uses.
Co-authored-by: Troels Lund <troels@google.com >
Merge-request: KOTLIN-MR-821
Merged-by: Alexander Shabalin <alexander.shabalin@jetbrains.com >
2023-12-06 14:07:16 +00:00
Timofey Solonin
c8b77fe18c
Run lldb tests only on arm64 macOS and only in debug mode
...
^KT-63598
2023-12-06 08:39:06 +00:00
Mikhail Glukhikh
4b649cbbe9
[tests] Drop a BI codegen test for should-be-red issue KT-63648
2023-12-05 18:15:53 +00:00
Stanislav Ruban
da0c3090a9
[tests] Regenerate test configurations
2023-12-05 18:15:53 +00:00
Sebastian Sellmair
0713866c1e
[K/N] Modularise :kotlin-native:native.backend to extract objc header generation (2/2)
...
^KT-63905 Fixed
2023-12-04 18:52:08 +00:00
Sebastian Sellmair
ae9f3d66c2
[K/N] Modularise :kotlin-native:native.backend to extract objc header generation (1/2)
...
^KT-63905
2023-12-04 18:52:08 +00:00
Timofey Solonin
04dec2769b
Step through the <compiler-generated> functions via a stop hook in konan_lldb.py
...
^KT-63598
2023-12-04 10:20:54 +00:00
Vladimir Sukharev
c5248fc5f4
[K/N] Migrate some cinterop tests to new test infra
2023-12-04 08:43:28 +00:00
Stanislav Ruban
3a77f39199
[tests] Regenerate test configurations
2023-12-01 19:20:28 +00:00
Alexander Shabalin
340103098f
[K/N][tests] Migrate entry point runtime tests to new testing infra ^KT-61259
2023-12-01 12:07:25 +00:00
Alexander Shabalin
0ab0607bbf
[K/N][tests] Allow specifying program args in new test infra ^KT-61259
2023-12-01 12:07:25 +00:00
Ivan Kylchik
2b6845c032
[JVM_IR] Optimize properties delegated to const val
...
We can omit `get` call to delegated property and inline
constant value directly. If we are not going to
do that, we can get a runtime exception because
all usages of const property will be inlined and the property
itself will be dropped.
#KT-63567 Fixed
#KT-63580 Fixed
2023-11-30 14:27:36 +00:00