Commit Graph

13 Commits

Author SHA1 Message Date
Daniel Rodríguez Troitiño
8f0382c109 [test] Replace swift_obj_root for alternates that work in LLVM unified builds (#66167)
In LLVM unified builds `%swift_obj_root` points to `<LLVM build dir>/tools/swift`,
and folders like `bin`, `lib` and `share` are not under `swift_obj_root`, which
makes some tests fail.

For the cases in which `%swift_obj_root/lib` was used, replace it by
using `%swift-lib-dir` instead. Replicate `%swift-lib-dir` to create
`%swift-bin-dir` and `%swift-share-dir`, and use those instead of
`%swift_obj_root/bin` and `%swift_obj_root/share`.

This alternates work both in Swift build-script builds and also in LLVM
unified builds.
2023-05-26 08:39:31 -07:00
Duo Wang
72e0ac2819 [tests] fix missing codesign in test files 2022-07-28 13:59:44 -07:00
Kuba (Brecka) Mracek
f6bc00b2f1 Re-enable VFE/WME runtime tests when CPU=arm64e (#40565) 2021-12-17 05:46:45 -08:00
Kuba Mracek
f963555b04 Disable VFE/WME runtime tests when CPU=arm64e 2021-12-14 20:14:07 -08:00
Kuba (Brecka) Mracek
99eadd048d Re-enable VFE/WME tests, take 3, rdar://84643923 (#39955) 2021-10-28 21:24:55 -07:00
Artem Chikin
c39c3e16a3 Disable IRGen tests to unblock CI:
Seeing failures in:
```
19:37:18 Failed Tests (3):
19:37:18   Swift(macosx-x86_64) :: IRGen/virtual-function-elimination-exec.swift
19:37:18   Swift(macosx-x86_64) :: IRGen/witness-method-elimination-exec.swift
19:37:18   Swift(macosx-x86_64) :: IRGen/witness-method-elimination-two-modules.swift
```
e.g. https://ci.swift.org/job/oss-swift_tools-RA_stdlib-RD_test-simulator//4847/console
Tracking in rdar://84643923
2021-10-27 11:58:46 -07:00
Kuba (Brecka) Mracek
889d65d1d0 Re-enable VFE/WME tests, skip LTO-using tests under ASan (#39912) 2021-10-26 19:02:53 -07:00
Artem Chikin
40d43498fa Disable IRGen tests to unblock CI:
Seeing failures in:
```
19:37:18 Failed Tests (3):
19:37:18   Swift(macosx-x86_64) :: IRGen/virtual-function-elimination-exec.swift
19:37:18   Swift(macosx-x86_64) :: IRGen/witness-method-elimination-exec.swift
19:37:18   Swift(macosx-x86_64) :: IRGen/witness-method-elimination-two-modules.swift
```

Tracking in rdar://84643923
2021-10-25 20:05:03 -07:00
Kuba (Brecka) Mracek
50b44f063e Integrate LLVM IR VFE, WME and conditional records with LLVM changes, un-XFAIL tests (#39727) 2021-10-24 19:14:24 -07:00
Kuba (Brecka) Mracek
b3f7c8d8b1 Make VFE / WME / conditional records work even with ObjC interop and with reflection metadata, take #2 (#39878) 2021-10-24 07:20:38 -07:00
Kuba Mracek
0616293353 Revert "Make VFE / WME / conditional records work even with ObjC interop and with reflection metadata (#39808)"
This reverts commit a51dc7e358.
2021-10-22 09:38:39 -07:00
Kuba (Brecka) Mracek
a51dc7e358 Make VFE / WME / conditional records work even with ObjC interop and with reflection metadata (#39808) 2021-10-20 10:13:50 -07:00
Kuba (Brecka) Mracek
5412ed1936 Implement LLVM IR Virtual Function Elimination for Swift classes. (#39128)
- Virtual calls are done via a @llvm.type.checked.load instrinsic call with a type identifier
- Type identifier of a vfunc is the base method's mangling
- Type descriptors and class metadata get !type markers that list offsets and type identifiers of all vfuncs
- The -enable-llvm-vfe frontend flag enables VFE
- Two added tests verify the behavior on IR and by executing a program
2021-09-14 06:59:07 -07:00