Igor Chevdar
b66a6fcc08
[K/N][IR] Moved local declarations names invention down the pipeline
2023-09-13 09:18:26 +03:00
Igor Chevdar
ac760cbbfb
[K/N][tests] Refactored a bit test
...
arguments of assertEquals are (expected, actual), not vice versa
2023-09-13 09:18:26 +03:00
Vladimir Sukharev
e0e2a57e3d
[K/N] Add filecheck tests for atomic intrinsics
...
https://youtrack.jetbrains.com/issue/KT-60514/Add-llvm-filecheck-tests-for-atomic-intrinsics
Merge-request: KT-MR-12067
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-09-11 21:28:34 +00:00
Igor Chevdar
1ff7841ac7
[K/N][IR] Renamed PreInlineLowering to TypeOfLowering
2023-09-11 18:16:25 +00:00
Igor Chevdar
8f3b9694f7
[K/N] Extracted asserts removal to a separate lowering
2023-09-11 18:16:25 +00:00
Igor Chevdar
e8ca45378b
[K/N] Moved couple of phases down the pipeline
2023-09-11 16:31:22 +00:00
Svyatoslav Scherbina
0cd91d9286
Native: fix filecheck_signext_zeroext_objc_export and enable it back
...
Previously filecheck_signext_zeroext_objc_export test was disabled
after making one-stage compilation mode implemented through two-stage
mode (KT-59245).
That change made the compiler sort the methods, and filecheck patterns
didn't match that order after that.
This commit fixes the test by adding sorted prefixes to method names,
so sorting alphabetically them doesn't really change the order.
2023-09-11 13:49:36 +00:00
Ivan Kylchik
5d88a1f1c3
[Native] Rename Lowerings to NativeLoweringPhases
...
This is done to unify the way how we name file
that contains lowerings in different backends.
2023-09-11 10:04:50 +00:00
Alexander Shabalin
2f22b0a6b0
[K/N] Migrate runtime/atomics tests to new testing infra ^KT-61259
2023-09-09 07:25:35 +00:00
Alexander Shabalin
a8cec11772
[K/N] Protect filecheck tests for KT-53261 from DCE.
2023-09-07 15:35:57 +00:00
Johan Bay
1e66f25546
[K/N] Link small bitcode modules together first
...
Repeatedly linking many smaller bitcode modules into one large is very
slow. We are seeing a 10x improvement by instead linking all the small
modules together first and link the result into the larger main module.
This commit implements this optimization in the
LinkBitcodeDependenciesPhase phase.
^KT-61604 Fixed
Co-authored-by: Johan Bay <jobay@google.com >
2023-09-07 07:44:31 +00:00
Alexander.Likhachev
357d12fc8e
[Build] Move JUnit dependencies into the version catalog
...
The `kotlin-test` dependencies are left untouched as changing them affects publications, thus these versions are independent from the used inside our build
#KTI-1349 In Progress
2023-09-06 22:47:33 +00:00
Alexander Udalov
1d5ade1166
K2: minor, remove misleading FirMemberDeclaration.containerSource
...
"Container source" means "the source of the container". So, if you
called this extension on a class (`FirClassLikeDeclaration`), it was
reasonable to assume that you would get the source of its _containing
class_, whereas the function actually returned the source of the class
itself.
Instead of inventing another name for this function, I've decided to
inline and remove it because it has only one usage.
2023-09-06 08:05:34 +00:00
Alexander Shabalin
f4289e1287
[K/N] Enable concurrent weak processing ^KT-61093
2023-09-05 13:53:35 +00:00
Ivan Kylchik
40c9f831e2
[Native] Drop IrUtils2 file
2023-09-05 11:21:51 +00:00
Ivan Kylchik
8142ae2579
[Native] Drop irCatch from IrUtils2
2023-09-05 11:21:51 +00:00
Ivan Kylchik
c2076a0227
[Native] Move hasNonConstInitializer from IrUtils2
...
This function could be useful for other backends.
2023-09-05 11:21:51 +00:00
Ivan Kylchik
ddde95bd78
[Native] Move irByte from IrUtils2
...
We already have similar functions in `ExpressionHelpers`. Makes
sense to keep them together.
2023-09-05 11:21:51 +00:00
Ivan Kylchik
d62323cdf1
[Native] Move addTopLevelInitializer from IrUtils2
...
This function is actually used only in `InteropLowering` and it
is too specific to be included into utils.
2023-09-05 11:21:51 +00:00
Ivan Kylchik
5cd96831dc
[Native] Move isRestrictedSuspendFunction from IrUtils2
...
This function is also helpful for JVM backend.
2023-09-05 11:21:50 +00:00
Ivan Kylchik
2657adc6dc
[Native] Move addFile from IrUtils2
...
This function is actually used only in `BackendPhases` and it is
too specific to be included into utils.
2023-09-05 11:21:50 +00:00
Ivan Kylchik
4fb29a5e12
[Native] Drop addArguments from IrUtils2
...
We can simplify single usage of this function
2023-09-05 11:21:50 +00:00
Ivan Kylchik
20165dd699
[Native] Drop defaultOrNullableType from IrUtils2
...
We can simplify most usages of `defaultOrNullableType`
2023-09-05 11:21:50 +00:00
Ivan Kylchik
583a5496d5
[Native] Drop irCall from IrUtils2
...
We can reuse the same function from common `ExpressionHelpers`
2023-09-05 11:21:50 +00:00
Ivan Kylchik
5c68ea2b64
[Native] Simplify irCatch from IrUtils2
2023-09-05 11:21:50 +00:00
Ivan Kylchik
8cc4db39d2
[Native] Drop copy from IrUtils2
...
It is not used anywhere
2023-09-05 11:21:50 +00:00
Ivan Kylchik
b3474ac730
[Native] Drop irBuilder from IrUtils2
...
We can reuse `createIrBuilder` function
2023-09-05 11:21:50 +00:00
Ivan Kylchik
9e750e900d
[Native] Drop createField from IrUtils2
...
We can call `IrFieldImpl` directly, the same way it is done
for other IR declarations in `CBridgeGen` file.
2023-09-05 11:21:50 +00:00
Ivan Kylchik
7e71e778c9
[Native] Drop stub from IrUtils2
...
It is not used anywhere
2023-09-05 11:21:50 +00:00
Ivan Kylchik
b10d330cfd
[Native] Drop getContainingFile from IrUtils2
...
We can reuse `fileOrNull` function from common `IrUtils`
2023-09-05 11:21:50 +00:00
Ivan Kylchik
a437e0378a
[Native] Drop irCallOp from IrUtils2
...
It is not used anywhere
2023-09-05 11:21:50 +00:00
Ivan Kylchik
4376e58acb
[Native] Drop createArrayOfExpression from IrUtils2
...
We can reuse the same function from common `IrUtils`
2023-09-05 11:21:50 +00:00
Ivan Kylchik
962172f96d
[Native] Drop irSetVar from IrUtils2
...
We can reuse `irSet` function
2023-09-05 11:21:50 +00:00
Ivan Kylchik
9ab053a3a6
[Native] Drop substitute from IrUtils2
...
We can reuse the same function from common `IrTypeUtils`
2023-09-05 11:21:50 +00:00
Ivan Kylchik
d0a5738499
[Native] Drop addChild from IrUtils2
...
We can reuse the same function from common `IrUtils`
2023-09-05 11:21:50 +00:00
Ivan Kylchik
3efe07d0cb
[Native] Drop getArgumentsWithIr from IrUtils2
...
We can reuse the same function from common `IrUtils`
2023-09-05 11:21:49 +00:00
Ivan Kylchik
2537ff94b7
[Native] Move StringTable and its builder to separate file
2023-09-05 08:35:48 +00:00
Ivan Kylchik
86b4d36b54
[Native] Make StringTable and its builder internal
2023-09-05 08:35:47 +00:00
Ivan Kylchik
70697af6b9
[Native] Move proto utils from KonanIrLinker into separate utils file
2023-09-05 08:35:47 +00:00
Ivan Kylchik
66b9c2f260
[Native] Move FORWARD_DECLARATION_ORIGIN into KonanForwardDeclarationModuleDeserializer
2023-09-05 08:35:47 +00:00
Ivan Kylchik
cc906ad6d5
[Native] Move INVALID_INDEX into KonanPartialModuleDeserializer
2023-09-05 08:35:47 +00:00
Ivan Kylchik
79fa0d2648
[Native] Move KonanForwardDeclarationModuleDeserializer to a separate file
2023-09-05 08:35:47 +00:00
Ivan Kylchik
7d1c929fb5
[Native] Make KonanForwardDeclarationModuleDeserializer nested instead of inner
2023-09-05 08:35:47 +00:00
Ivan Kylchik
701dc72f70
[Native] Move KonanInteropModuleDeserializer to a separate file
2023-09-05 08:35:47 +00:00
Ivan Kylchik
6d0b936639
[Native] Make KonanInteropModuleDeserializer nested instead of inner
2023-09-05 08:35:47 +00:00
Ivan Kylchik
5661316d7a
[Native] Use FORWARD_DECLARATIONS_MODULE_NAME instead of hardcoded value
2023-09-05 08:35:47 +00:00
Ivan Kylchik
3fba699c49
[Native] Move KonanPartialModuleDeserializer to a separate file
2023-09-05 08:35:47 +00:00
Ivan Kylchik
13a39c82ae
[Native] Make KonanPartialModuleDeserializer nested instead of inner
2023-09-05 08:35:47 +00:00
Ivan Kylchik
bf7f2afe5d
[Native] Rename KonanIrlinker to KonanIrLinker
2023-09-05 08:35:47 +00:00
Ivan Kylchik
66650d2dcc
[Native] Drop IrSerializationUtil file
...
Most methods from there are unused
2023-09-05 08:35:47 +00:00