-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[DNM] [rebranch] Adjust some tests to pass again #81190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: rebranch
Are you sure you want to change the base?
[DNM] [rebranch] Adjust some tests to pass again #81190
Conversation
@swift-ci please smoke test macOS |
4abe8f5
to
4a3340e
Compare
This comment was marked as duplicate.
This comment was marked as duplicate.
1 similar comment
@swift-ci please smoke test macOS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you
@aschwaighofer do we actually care about checking for |
Per 7eca38ce76d5d1915f4ab7e665964062c0b37697 (llvm-project).
…ign` Per b7db403e701029c801fd990dceeb219de9fb800c (llvm-project).
…(none)` Per 29441e4f5fa5f5c7709f7cf180815ba97f611297 (llvm-project).
The current regex does not match a ')' inside the argument list. This no longer works because `nocapture` became `captures(none) in 29441e4f5fa5f5c7709f7cf180815ba97f611297 (llvm-project). Use a wildcard regex instead. This is fine because the `unnamed_addr` attribute the test is guarding against can only appear after the argument list.
…er attribute The `initializes` parameter attribute was introduced in 5ece35df8586d0cb8c104a9f44eaae771de025f5 (llvm-project). The lowered function bodies indicate that the attribute is correct. Match the attribute using a wildcard regex because it appears only in -O mode and is not relevant to these tests.
The new attribute is `captures(ret: address, provenance)`. This attribute is expected because these functions either immediately return the pointer argument or pass it as an argument to another such parameter. Match it using a wildcard regex See https://llvm.org/docs/LangRef.html#parameter-attributes.
The new attribute is `range(i8 -127, -128)`. The documentation specifies that the range can wrap, meaning that for i8 [-127, -128) is equivalent to [-127, 127). This is expected for a function that simply increments a i8 value. Match the attribute using a wildcard regex because it appears only in -O mode and is not relevant to the test. See https://llvm.org/docs/LangRef.html#parameter-attributes.
…hanged `alias nocapture swiftself` -> `alias swiftself captures(none)`. `nocapture` became `captures(none) in 29441e4f5fa5f5c7709f7cf180815ba97f611297 (llvm-project).
4a3340e
to
9915205
Compare
@swift-ci please test macOS |
@@ -24,7 +24,7 @@ func foo(_ x: inout Int64) { | |||
// IRCHECK-NEXT: call void @llvm.memset.{{.*}}(ptr align {{(4|8)}} %[[X]], i8 0 | |||
// IRCHECK: store ptr %0, ptr %[[X]], align {{(4|8)}} | |||
// IRCHECK-SAME: !dbg ![[LOC0:.*]] | |||
// IRCHECK-NEXT: %[[VALUE:.*]] = getelementptr inbounds %Ts5Int64V, ptr %0, i32 0, i32 0, | |||
// IRCHECK-NEXT: %[[VALUE:.*]] = getelementptr inbounds nuw %Ts5Int64V, ptr %0, i32 0, i32 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@swift-ci please smoke test macOS |
@swift-ci please smoke test Linux |
No description provided.