[clang] [clang] Add `__has_feature(swiftcc)` support (PR #85347)

2024-03-15 Thread Arnold Schwaighofer via cfe-commits
https://github.com/aschwaighofer edited https://github.com/llvm/llvm-project/pull/85347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add `__has_feature(swiftcc)` support (PR #85347)

2024-03-15 Thread Arnold Schwaighofer via cfe-commits
@@ -102,6 +102,9 @@ FEATURE(memory_sanitizer, FEATURE(thread_sanitizer, LangOpts.Sanitize.has(SanitizerKind::Thread)) FEATURE(dataflow_sanitizer, LangOpts.Sanitize.has(SanitizerKind::DataFlow)) FEATURE(scudo, LangOpts.Sanitize.hasOneOf(SanitizerKind::Scudo)) +FEATURE(swiftcc, -

[clang] [clang] Add `__has_feature(swiftcc)` support (PR #85347)

2024-03-15 Thread Arnold Schwaighofer via cfe-commits
https://github.com/aschwaighofer requested changes to this pull request. In a past review (https://github.com/llvm/llvm-project/pull/72159), @AaronBallman (https://github.com/AaronBallman) noted that the existing use of `FEATURE` (as in `FEATURE(swiftasynccc,...`) was not the right qualifier t

[clang] [clang] Add `__has_feature(swiftcc)` support (PR #85347)

2024-03-15 Thread Arnold Schwaighofer via cfe-commits
https://github.com/aschwaighofer edited https://github.com/llvm/llvm-project/pull/85347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] SwiftCallingConv: Fix the splitVectorEntry function (PR #69953)

2023-10-27 Thread Arnold Schwaighofer via cfe-commits
https://github.com/aschwaighofer closed https://github.com/llvm/llvm-project/pull/69953 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] SwiftCallingConv: Fix the splitVectorEntry function (PR #69953)

2023-10-27 Thread Arnold Schwaighofer via cfe-commits
https://github.com/aschwaighofer updated https://github.com/llvm/llvm-project/pull/69953 >From 3dcc80df1acfe192e70f531995dff7518589d1ec Mon Sep 17 00:00:00 2001 From: Arnold Schwaighofer Date: Wed, 18 Oct 2023 11:44:16 -0700 Subject: [PATCH] SwiftCallingConv: Fix the splitVectorEntry function

[clang] SwiftCallingConv: Fix the splitVectorEntry function (PR #69953)

2023-10-23 Thread Arnold Schwaighofer via cfe-commits
aschwaighofer wrote: The failures are not related to this PR / pre-existing. `clang/docs/ReleaseNotes.rst:` is not touched by this PR. ``` + echo '*** Checking for trailing whitespace left in Clang source files ***' --   | *** Checking for trailing whitespace left in Clang source files ***   |

[clang] SwiftCallingConv: Fix the splitVectorEntry function (PR #69953)

2023-10-23 Thread Arnold Schwaighofer via cfe-commits
https://github.com/aschwaighofer created https://github.com/llvm/llvm-project/pull/69953 When splitting an entry into multiple entries, the indices of the split entries are a combination of the original split entry's and the number of elements we split that entry to. Failure to do so resulted

[clang] f670c5a - Add a new frontend flag `-fswift-async-fp={auto|always|never}`

2021-09-16 Thread Arnold Schwaighofer via cfe-commits
Author: Arnold Schwaighofer Date: 2021-09-16T08:48:51-07:00 New Revision: f670c5aeeef09cd7b88e72cf8c1f2505d044a8ea URL: https://github.com/llvm/llvm-project/commit/f670c5aeeef09cd7b88e72cf8c1f2505d044a8ea DIFF: https://github.com/llvm/llvm-project/commit/f670c5aeeef09cd7b88e72cf8c1f2505d044a8ea

[clang] 9eb99d2 - CodeGen: No need to check for isExternC if HasStrictReturn is already false

2021-08-11 Thread Arnold Schwaighofer via cfe-commits
Author: Arnold Schwaighofer Date: 2021-08-11T07:42:48-07:00 New Revision: 9eb99d2e73b5598076fbdd8abceb3549afa8f0ae URL: https://github.com/llvm/llvm-project/commit/9eb99d2e73b5598076fbdd8abceb3549afa8f0ae DIFF: https://github.com/llvm/llvm-project/commit/9eb99d2e73b5598076fbdd8abceb3549afa8f0ae

[clang] 4163449 - Teach the swift calling convention about _Atomic types

2020-08-31 Thread Arnold Schwaighofer via cfe-commits
Author: Arnold Schwaighofer Date: 2020-08-31T07:07:25-07:00 New Revision: 41634497d4fd21f28d08ac6f538ca4045f386c95 URL: https://github.com/llvm/llvm-project/commit/41634497d4fd21f28d08ac6f538ca4045f386c95 DIFF: https://github.com/llvm/llvm-project/commit/41634497d4fd21f28d08ac6f538ca4045f386c95

[clang] 4a8120c - Fix ConstantAggregateBuilderBase::getRelativeOffset

2020-06-15 Thread Arnold Schwaighofer via cfe-commits
Author: Arnold Schwaighofer Date: 2020-06-15T12:23:20-07:00 New Revision: 4a8120ca9fb904b50e6940457e0f891ca1fdb605 URL: https://github.com/llvm/llvm-project/commit/4a8120ca9fb904b50e6940457e0f891ca1fdb605 DIFF: https://github.com/llvm/llvm-project/commit/4a8120ca9fb904b50e6940457e0f891ca1fdb605

[clang] 153dadf - [clang] CodeGen: Make getOrEmitProtocol public for Swift

2020-04-01 Thread Arnold Schwaighofer via cfe-commits
Author: Arnold Schwaighofer Date: 2020-04-01T08:55:56-07:00 New Revision: 153dadf3a3ca3c47f8c0fb718ec96616a05e42fd URL: https://github.com/llvm/llvm-project/commit/153dadf3a3ca3c47f8c0fb718ec96616a05e42fd DIFF: https://github.com/llvm/llvm-project/commit/153dadf3a3ca3c47f8c0fb718ec96616a05e42fd

r317589 - SystemZ Swift TargetInfo: swifterror support in the backend is broken

2017-11-07 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Tue Nov 7 08:40:51 2017 New Revision: 317589 URL: http://llvm.org/viewvc/llvm-project?rev=317589&view=rev Log: SystemZ Swift TargetInfo: swifterror support in the backend is broken Return false for swifterror support until the backend is fixed. Modified: cfe/trunk/lib/

r305956 - SwiftCC: Perform physical layout when computing coercion types

2017-06-21 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Wed Jun 21 16:43:40 2017 New Revision: 305956 URL: http://llvm.org/viewvc/llvm-project?rev=305956&view=rev Log: SwiftCC: Perform physical layout when computing coercion types We need to take type alignment padding into account whe computing physical layouts. The layout must

Re: r304017 - CodeGen: Define Swift's legal vector types for AArch64, ARM

2017-05-26 Thread Arnold Schwaighofer via cfe-commits
t;> /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/test/CodeGen/ARM/arm-shrink-wrapping.ll:659:10: >> error: expected string not found in input >> ; CHECK: bl >> ^ >> :375:7: note: scanning from here >> vldr s0, LCPI12_0 >> ^ &g

r304017 - CodeGen: Define Swift's legal vector types for AArch64, ARM

2017-05-26 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Fri May 26 13:11:54 2017 New Revision: 304017 URL: http://llvm.org/viewvc/llvm-project?rev=304017&view=rev Log: CodeGen: Define Swift's legal vector types for AArch64, ARM rdar://32401301 Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp cfe/trunk/test/CodeGen/64bit-sw

r288394 - swiftcc: Add an api to query whether a target ABI stores swifterror in a register

2016-12-01 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Thu Dec 1 12:07:38 2016 New Revision: 288394 URL: http://llvm.org/viewvc/llvm-project?rev=288394&view=rev Log: swiftcc: Add an api to query whether a target ABI stores swifterror in a register Modified: cfe/trunk/include/clang/CodeGen/SwiftCallingConv.h cfe/trunk/l

r284285 - Add more swift calling convention tests

2016-10-14 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Fri Oct 14 16:55:56 2016 New Revision: 284285 URL: http://llvm.org/viewvc/llvm-project?rev=284285&view=rev Log: Add more swift calling convention tests Modified: cfe/trunk/test/CodeGen/64bit-swiftcall.c cfe/trunk/test/CodeGen/arm-swiftcall.c Modified: cfe/trunk/test

Re: r284174 - Disable swiftcall test on windows: More brutal way to appease windows bots

2016-10-14 Thread Arnold Schwaighofer via cfe-commits
ike a > use-after-destroy of a temporary, like a misuse of Twine or > std::initializer_list. > > On Thu, Oct 13, 2016 at 3:47 PM, Arnold Schwaighofer via cfe-commits > wrote: > Author: arnolds > Date: Thu Oct 13 17:47:03 2016 > New Revision: 284174 > > URL: http:

r284174 - Disable swiftcall test on windows: More brutal way to appease windows bots

2016-10-13 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Thu Oct 13 17:47:03 2016 New Revision: 284174 URL: http://llvm.org/viewvc/llvm-project?rev=284174&view=rev Log: Disable swiftcall test on windows: More brutal way to appease windows bots The backtrace on the bot does not give me any indication what is wrong. The test case in

r284162 - Add required targets to tests to (hopefully) appease bots

2016-10-13 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Thu Oct 13 15:59:23 2016 New Revision: 284162 URL: http://llvm.org/viewvc/llvm-project?rev=284162&view=rev Log: Add required targets to tests to (hopefully) appease bots Modified: cfe/trunk/test/CodeGen/64bit-swiftcall.c Modified: cfe/trunk/test/CodeGen/64bit-swiftcall.

r284150 - Swift Calling Convention: Fix out of bounds access

2016-10-13 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Thu Oct 13 14:19:37 2016 New Revision: 284150 URL: http://llvm.org/viewvc/llvm-project?rev=284150&view=rev Log: Swift Calling Convention: Fix out of bounds access Use iterator instead of address of element in vector It is not valid to access one after the last element. rda

r284133 - Add more 64bit swiftcall convention tests

2016-10-13 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Thu Oct 13 12:17:36 2016 New Revision: 284133 URL: http://llvm.org/viewvc/llvm-project?rev=284133&view=rev Log: Add more 64bit swiftcall convention tests Added: cfe/trunk/test/CodeGen/64bit-swiftcall.c Added: cfe/trunk/test/CodeGen/64bit-swiftcall.c URL: http://llvm.or

r284055 - Remove basic block label in test case

2016-10-12 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Wed Oct 12 16:36:15 2016 New Revision: 284055 URL: http://llvm.org/viewvc/llvm-project?rev=284055&view=rev Log: Remove basic block label in test case Another attempt to make a bot happy Modified: cfe/trunk/test/CodeGen/windows-swiftcall.c Modified: cfe/trunk/test/CodeG

r284048 - Specify a target cpu in test case

2016-10-12 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Wed Oct 12 15:30:24 2016 New Revision: 284048 URL: http://llvm.org/viewvc/llvm-project?rev=284048&view=rev Log: Specify a target cpu in test case Hopefully, this makes the bots happy Modified: cfe/trunk/test/CodeGen/windows-swiftcall.c Modified: cfe/trunk/test/CodeGen/

r284032 - Declare WinX86_64ABIInfo to satisfy SwiftABI info

2016-10-12 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Wed Oct 12 13:59:24 2016 New Revision: 284032 URL: http://llvm.org/viewvc/llvm-project?rev=284032&view=rev Log: Declare WinX86_64ABIInfo to satisfy SwiftABI info This is minimal support that allows swift's test cases on non windows platforms to pass. rdar://28738985 Added:

r283932 - Pass the end of a component to SwiftAggLowering's enumerateComponents callback

2016-10-11 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Tue Oct 11 15:34:03 2016 New Revision: 283932 URL: http://llvm.org/viewvc/llvm-project?rev=283932&view=rev Log: Pass the end of a component to SwiftAggLowering's enumerateComponents callback This is usefull for determining whether components overlap. Modified: cfe/trunk

r283933 - Swift Calling Convention: Parameters are allowed after the

2016-10-11 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Tue Oct 11 15:34:06 2016 New Revision: 283933 URL: http://llvm.org/viewvc/llvm-project?rev=283933&view=rev Log: Swift Calling Convention: Parameters are allowed after the swift_error/swift_context parameter We need to be able to decelare witness functions which append the se