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
Alexander Udalov
fc7de5ab97
IR: check type parameter bounds equality in overrides
...
The code is exactly the same as in K1's
`OverridingUtil.areTypeParametersEquivalent`.
#KT-63442 Fixed
2023-11-30 11:04:02 +00:00
Kirill Rakhman
934253878b
[Tests] Add regression test for KT-63564
...
#KT-63564 Fixed
2023-11-30 08:39:05 +00:00
Dmitriy Dolovov
16d1e85932
IR text tests: Stable blank lines between declarations in class
...
Rework rendering of kt-like dump and signatures dump in order to avoid
unstable blank line between declarations of the same level:
1. No blank line for the first declaration inside the member scope of
the class.
2. Always a single blank line between each two subsequent declarations
inside the member scope of the class.
2023-11-30 08:32:35 +00:00
Dmitriy Dolovov
e0e50e183e
IR text tests: Add test with the implementation of a private interface
2023-11-30 08:32:35 +00:00
Dmitriy Dolovov
02604060ae
IR text tests: Don't dump signatures for local declarations
...
1. Local declarations don't participate in IR-linkage, because they
can be referenced only inside the same body -> can be dropped
from IR text tests.
2. Mangled names for private declarations computed by descriptors/fir
are actually not used anywhere (they are recomputed by IR
immediately before serialization of IR). But sometimes such
mangled names diverge between K1 and K2 -> don't check them, but
always check mangled names computed by IR even for private
declarations.
3. Also: Drop DUMP_LOCAL_DECLARATION_SIGNATURES test directive.
^KT-57428 Obsolete
^KT-57430 Obsolete
^KT-57434 Obsolete
^KT-57778 Obsolete
^KT-57775 Obsolete
2023-11-30 08:32:35 +00:00
Stanislav Ruban
514ae0c813
[tests] builder inference test-set: regenerate diagnostic & codegen tests
2023-11-30 06:27:00 +00:00
Alexander Shabalin
6ca8f546fe
[K/N][tests] Migrate console runtime tests to new testing infra ^KT-61259
2023-11-29 16:22:28 +00:00
Alexander Shabalin
2abf9bccba
[K/N][tests] Close stdin after piping all the data ^KT-61259
2023-11-29 16:22:28 +00:00
Alexander Shabalin
97a86e0ee3
[K/N][tests] Add global TEST_KIND override ^KT-61259
2023-11-29 16:22:28 +00:00
Sergey Bogolepov
fea73ae64a
[Swift Export] Minor tests fixes and adjustments
2023-11-29 14:04:00 +00:00
Sergey Bogolepov
5eeb82bb6f
[Swift Export] Update sir-compiler-bridge to use SIR
...
Now that SIR has finally landed in the repository, we can remove
unnecessary entities from the bridge generator.
2023-11-29 14:03:59 +00:00
Artem Olkov
a040954f68
rrn/rd/KT-63270-swift-printer
...
KT-63270: add swift printing capabilities to SIR
Co-authored-by: Artem Olkov <artem.olkov@jetbrains.com >
Co-authored-by: Sergej Jaskiewicz <jaskiewiczs@icloud.com >
Merge-request: KT-MR-13191
Merged-by: Gleb Lukianets <Gleb.Lukianets@jetbrains.com >
2023-11-29 14:03:59 +00:00
Sergey Bogolepov
ec82d54ef7
[Swift Export] Fix test infrastructure according to the review
2023-11-28 18:00:43 +00:00
Gleb Lukianets
c3725ec8c8
rrn/rd/KT-63266/sir-gen
...
Swift Export: generated sir snapshot
Merge-request: KT-MR-13128
Merged-by: Gleb Lukianets <Gleb.Lukianets@jetbrains.com >
2023-11-28 18:00:43 +00:00
Artem Olkov
1f4099833a
KT-63269: add dependency on dist for sir-analysis-api tests, as they are dependent on JVM dist
...
Merge-request: KT-MR-13142
Merged-by: Artem Olkov <artem.olkov@jetbrains.com >
2023-11-28 18:00:43 +00:00
Sergey Bogolepov
58bef34b9c
[Swift Export] Rename tests generation tool
...
Now it generates test-cases for sir-compiler-bridges as well,
so it makes sense to move away from Analysis API in its name.
2023-11-28 18:00:43 +00:00