Commit Graph

6 Commits

Author SHA1 Message Date
Anthony Latsis
17fc00f8a7 [test] IRGen: Adjust FileCheck patterns for new nuw attribute in upstream LLVM
This attribute was introduced in
7eca38ce76d5d1915f4ab7e665964062c0b37697 (llvm-project).

Match it using a wildcard regex, since it is not relevant to these
tests.

This is intended to reduce future conflicts with rebranch.
2025-05-04 03:28:56 +01:00
Alejandro Alonso
c1bb143648 Make ValueGenerics feature always available 2025-02-27 10:03:37 -08:00
Daniel Rodríguez Troitiño
ba68faaed5 [test] Mark tests that use experimental/upcoming features as such
Find all the usages of `--enable-experimental-feature` or
`--enable-upcoming-feature` in the tests and replace some of the
`REQUIRES: asserts` to use `REQUIRES: swift-feature-Foo` instead, which
should correctly apply to depending on the asserts/noasserts mode of the
toolchain for each feature.

Remove some comments that talked about enabling asserts since they don't
apply anymore (but I might had miss some).

All this was done with an automated script, so some formatting weirdness
might happen, but I hope I fixed most of those.

There might be some tests that were `REQUIRES: asserts` that might run
in `noasserts` toolchains now. This will normally be because their
feature went from experimental to upcoming/base and the tests were not
updated.
2024-11-02 11:46:46 -07:00
Alejandro Alonso
d63be40b78 Update Mutex.swift 2024-09-23 12:02:00 -07:00
Yuta Saito
e66ad5a691 test: Fix test/IRGen/stdlib/Mutex.swift for 32-bit platforms
The test was failing on 32-bit platforms because the offset of the
layout of struct metadata depends on the pointer size.

| Field                   | Type | Offset (32-bit) | Offset (64-bit) |
|-------------------------|------|-----------------|-----------------|
| Layout String Pointer   | ptr  | 4 * (-2)        | 4 * (-4)        |
| VWT                     | ptr  | 4 * (-1)        | 4 * (-2)        |
| Metadata Flags          | ptr  | 4 * 0           | 4 * 0           |
| Nominal Type Descriptor | ptr  | 4 * 1           | 4 * 2           |
| Generic Requirement     | ptr  | 4 * 2           | 4 * 4           |
| Field Offset for handle | i32  | 4 * 3           | 4 * 6           |
| Field Offset for value  | i32  | 4 * 4           | 4 * 7           |
2024-09-16 12:30:07 +00:00
Alejandro Alonso
7219daf418 Collect metadata from like type and add type information when GEPing into raw layouts 2024-09-05 18:04:47 -07:00