Commit Graph

9 Commits

Author SHA1 Message Date
finagolfin
5554fd271a [test] Fix IRGen/framepointer.sil for the test-simulator CI (#81643)
which generates IR without a llvm.trap function

All the normal CI generated this:
```
ret i32 %1
}

; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
declare void @llvm.trap() #1

attributes #0 = { "frame-pointer"=
```
But the test-simulator CI doesn't for some reason, so just check for the
closing brace instead.
2025-06-11 21:56:43 +05:30
finagolfin
6611ea97e9 [android][test] Fix or disable the remaining failing tests on the Android CI (#81398)
Also, fix and enable `IRGen/lto_autolink` for all non-Wasm targets and
`IRGen/static_initializer` for aarch64.

This should get [the community Android
CI](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-24.04-android-build/)
green
[again](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-24.04-android-arm64/).
2025-06-11 21:52:04 +05:30
Saleem Abdulrasool
ec3e0eab85 test: adjust test for ce6ae0b2a26b1ec2f770b2b9474cc4486d60c586
clang will no longer emit the `"frame-pointer"="none"` in IR to reduce
the IR traffic.  Adjust expectations accordingly.
2023-09-15 11:13:49 -07:00
Arnold Schwaighofer
0e2dcbc6c2 [rebranch] Fix test framepointer.sil
The clang frontend's -fomit-frame-pointer no longer leads to
frame-pointer=none.

rdar://113587053
2023-08-09 08:41:04 -07:00
Saleem Abdulrasool
14dd90953b test: repair the test after accidental merge without testing 2020-06-03 12:12:50 -07:00
Arnold Schwaighofer
20f4ef93de IRGen: Default to clang's frame pointer elimination settings
Clang provides options to override that default value.
These options are accessible via the -Xcc flag.

Some Swift functions explicitly disable the frame pointer.

The clang options will not override those.
2020-05-28 12:21:42 -07:00
Arnold Schwaighofer
617f1c3ac9 Only use omit the frame pointer on arm64, x86_64 darwin needs it for some its tools 2020-05-22 12:24:23 -07:00
Arnold Schwaighofer
109813ffe5 Add option to disable leaf frame pointer elimination 2020-05-21 13:19:24 -07:00
Arnold Schwaighofer
e155f03e0d IRGen: Always eliminate frame pointers of leaf functions
rdar://20933449
2020-05-21 13:18:57 -07:00