https://github.com/davidchisnall closed
https://github.com/llvm/llvm-project/pull/107604
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/davidchisnall updated
https://github.com/llvm/llvm-project/pull/107604
>From 5fa137ce295b369b3d652e9538a4f3c13e592ad3 Mon Sep 17 00:00:00 2001
From: Frederik Carlier
Date: Fri, 6 Sep 2024 11:54:59 +
Subject: [PATCH 1/2] Set dllimport on Objective C ivar offsets
This comm
davidchisnall wrote:
LGTM, do you need someone else to commit it for you?
https://github.com/llvm/llvm-project/pull/107604
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/davidchisnall approved this pull request.
Looks good to me. It might be worth updating the test to make sure that one
ivar is implicitly `@protected` if it isn’t already.
https://github.com/llvm/llvm-project/pull/107604
___
cfe-comm
davidchisnall wrote:
The new version is probably slightly more readable than mine, but I don’t
really understand how it would affect codegen with UT C. No objections.
https://github.com/llvm/llvm-project/pull/102681
___
cfe-commits mailing list
cfe-co
davidchisnall wrote:
Those CI failures look unrelated.
https://github.com/llvm/llvm-project/pull/94885
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/davidchisnall closed
https://github.com/llvm/llvm-project/pull/94885
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/davidchisnall updated
https://github.com/llvm/llvm-project/pull/94885
>From e818620af0a9732d7c0e96b85d7ec1f5a8afc297 Mon Sep 17 00:00:00 2001
From: Rose
Date: Sat, 8 Jun 2024 22:30:53 -0400
Subject: [PATCH] [ObjC][CodeGen] Assume a for-in loop is in bounds and cannot
overflo
https://github.com/davidchisnall approved this pull request.
https://github.com/llvm/llvm-project/pull/94885
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
davidchisnall wrote:
Yup, it’s just an optimisation. The runtime does a slightly more complex
deduplication pass during loading, this just does a best effort merge so that
we don’t end up with hundreds of copies of common selectors as we did with the
GCC ABI. If we don’t do it, it isn’t an ABI
https://github.com/davidchisnall closed
https://github.com/llvm/llvm-project/pull/78030
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/davidchisnall updated
https://github.com/llvm/llvm-project/pull/78030
>From 008814b0aeee4b1a853fa4544c0dba89252425ce Mon Sep 17 00:00:00 2001
From: David Chisnall
Date: Sun, 7 Jan 2024 14:53:48 +
Subject: [PATCH] Enable direct methods and fast alloc calls for libobjc2.
T
davidchisnall wrote:
Thanks, all review comments should now be resolved.
https://github.com/llvm/llvm-project/pull/78030
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/davidchisnall updated
https://github.com/llvm/llvm-project/pull/78030
>From 02123c6557c7deea3f04f96bce7230f9d45e4ddb Mon Sep 17 00:00:00 2001
From: David Chisnall
Date: Sun, 7 Jan 2024 14:53:48 +
Subject: [PATCH] Enable direct methods and fast alloc calls for libobjc2.
T
davidchisnall wrote:
Formatting issues were introduced by running clang-format15, should now be
fixed.
https://github.com/llvm/llvm-project/pull/78030
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listi
https://github.com/davidchisnall updated
https://github.com/llvm/llvm-project/pull/78030
>From c8d733479ee8d0fd7c75c4a623f8c1bc2f132c61 Mon Sep 17 00:00:00 2001
From: David Chisnall
Date: Sun, 7 Jan 2024 14:53:48 +
Subject: [PATCH] Enable direct methods and fast alloc calls for libobjc2.
T
https://github.com/davidchisnall created
https://github.com/llvm/llvm-project/pull/78030
These will be supported in the upcoming 2.2 release and so are gated on that
version.
Direct methods call `objc_send_initialize` if they are class methods that may
not have called initialize. This is gua
https://github.com/davidchisnall closed
https://github.com/llvm/llvm-project/pull/77797
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/davidchisnall approved this pull request.
https://github.com/llvm/llvm-project/pull/77797
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1,5 +1,14 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o %t %s
-// RUN: FileCheck < %t %s
+// RUN: FileCheck -check-prefix CHECK-DWARF < %t %s
+
+// RUN: %clang_cc1 -triple x86_64-w64-windows-gnu -emit-llvm
-fobjc-runtime=gnustep-2.0 -o %t %s
+// RUN: FileCh
https://github.com/davidchisnall closed
https://github.com/llvm/llvm-project/pull/77255
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
davidchisnall wrote:
It looks as if three tests are failing in CI:
Clang :: CodeGenObjC/2007-04-03-ObjcEH.m
Clang :: CodeGenObjC/exceptions-personality.m
Clang :: Coverage/codegen-gnu.m
https://github.com/llvm/llvm-project/pull/77255
___
cfe-co
davidchisnall wrote:
I'd like CI to be green. Hopefully the failure is transient, but I don't seem
to be able to kick off a rerun. Maybe once others start passing, you can
squash the two commits and force push to restart it?
https://github.com/llvm/llvm-project/pull/77255
___
https://github.com/davidchisnall closed
https://github.com/llvm/llvm-project/pull/77385
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
davidchisnall wrote:
I didn’t intentional hit close, not sure what happened there.
https://github.com/llvm/llvm-project/pull/77385
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/davidchisnall reopened
https://github.com/llvm/llvm-project/pull/77385
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/davidchisnall closed
https://github.com/llvm/llvm-project/pull/77385
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/davidchisnall approved this pull request.
https://github.com/llvm/llvm-project/pull/77385
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -2210,7 +2219,12 @@ CGObjCGNU::CGObjCGNU(CodeGenModule &cgm, unsigned
runtimeABIVersion,
// void objc_exception_throw(id);
ExceptionThrowFn.init(&CGM, "objc_exception_throw", VoidTy, IdTy);
- ExceptionReThrowFn.init(&CGM, "objc_exception_throw", VoidTy, IdTy);
+ if (
davidchisnall wrote:
The failing format CI isn’t in this PR, rebasing to (hopefully) fix it
https://github.com/llvm/llvm-project/pull/77255
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm
https://github.com/davidchisnall updated
https://github.com/llvm/llvm-project/pull/77255
>From 6195e6c57b5b461dda2bffec0e5497ceb659f82c Mon Sep 17 00:00:00 2001
From: Frederik Carlier
Date: Thu, 4 Jan 2024 11:10:05 -0800
Subject: [PATCH] Objective C: use C++ exceptions on MinGW+GNUstep
The GNU
@@ -2210,7 +2219,12 @@ CGObjCGNU::CGObjCGNU(CodeGenModule &cgm, unsigned
runtimeABIVersion,
// void objc_exception_throw(id);
ExceptionThrowFn.init(&CGM, "objc_exception_throw", VoidTy, IdTy);
- ExceptionReThrowFn.init(&CGM, "objc_exception_throw", VoidTy, IdTy);
+ if (
Author: David Chisnall
Date: 2022-07-24T13:59:45+01:00
New Revision: 94c3b169785c0a0ae650c724dcf2c22ff65f5e24
URL:
https://github.com/llvm/llvm-project/commit/94c3b169785c0a0ae650c724dcf2c22ff65f5e24
DIFF:
https://github.com/llvm/llvm-project/commit/94c3b169785c0a0ae650c724dcf2c22ff65f5e24.diff
Author: David Chisnall
Date: 2020-12-01T09:50:18Z
New Revision: d1ed67037de6f3f44dc446784f74f0e02adec9b5
URL:
https://github.com/llvm/llvm-project/commit/d1ed67037de6f3f44dc446784f74f0e02adec9b5
DIFF:
https://github.com/llvm/llvm-project/commit/d1ed67037de6f3f44dc446784f74f0e02adec9b5.diff
LOG
Author: Andrew Paverd
Date: 2020-01-10T16:04:12Z
New Revision: bdd88b7ed3956534a0a71b1ea2bc88c69d48f9b7
URL:
https://github.com/llvm/llvm-project/commit/bdd88b7ed3956534a0a71b1ea2bc88c69d48f9b7
DIFF:
https://github.com/llvm/llvm-project/commit/bdd88b7ed3956534a0a71b1ea2bc88c69d48f9b7.diff
LOG:
Hi,
I think the assumption that intrinsics can't read any global is, indeed,
the problem here. `@llvm.objc.autoreleasePoolPop` may call any number
of `-dealloc` methods with arbitrary side effects (though if they cause
resurrection then that's undefined behaviour), so there should be no
assu
Hi,
Yes, I believe it does still reproduce (at least, with the most recent
build that I tried). We worked around the clang bug to make the test pass:
https://github.com/gnustep/libobjc2/commit/eab35fce379eb6ab1423dbb6d7908cb782f13458#diff-7f1eea7fdb5c7c3bf21f08d1cfe98a19
Reintroducing the 's
Author: theraven
Date: Sun Mar 31 04:22:26 2019
New Revision: 357363
URL: http://llvm.org/viewvc/llvm-project?rev=357363&view=rev
Log:
COMDAT-fold block descriptors.
Without this change, linking multiple objects containing block
descriptors together on Windows will generate duplicate symbol error
Author: theraven
Date: Sun Mar 31 04:22:33 2019
New Revision: 357364
URL: http://llvm.org/viewvc/llvm-project?rev=357364&view=rev
Log:
[gnustep-objc] Make the GNUstep v2 ABI work for Windows DLLs.
Summary:
Based on a patch by Dustin Howett, modified to not change the ABI for
ELF platforms.
Use m
Author: theraven
Date: Sun Mar 31 04:22:19 2019
New Revision: 357362
URL: http://llvm.org/viewvc/llvm-project?rev=357362&view=rev
Log:
[objc-gnustep] Use .init_array not .ctors when requested.
This doesn't make a difference most of the time but FreeBSD/ARM doesn't
run anything in the .ctors array
Author: theraven
Date: Sun Feb 3 07:05:52 2019
New Revision: 352995
URL: http://llvm.org/viewvc/llvm-project?rev=352995&view=rev
Log:
[objc-gnustep] Fix encoding of ivar size for _Bool.
Modified:
cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
cfe/trunk/test/CodeGenObjC/gnustep2-ivar-offset.m
Modif
Author: theraven
Date: Fri Dec 28 09:44:54 2018
New Revision: 350130
URL: http://llvm.org/viewvc/llvm-project?rev=350130&view=rev
Log:
[objc-gnustep2] Fix a bug in category generation.
We were not emitting a protocol definition while generating the category
method list. This was fine in most cas
Author: theraven
Date: Thu Dec 27 06:44:36 2018
New Revision: 350092
URL: http://llvm.org/viewvc/llvm-project?rev=350092&view=rev
Log:
[objc-gnustep] Fix a copy-and-paste error.
We were emitting the null class symbol in the wrong section, which meant
that programs that contained no Objective-C cl
Author: theraven
Date: Tue Sep 4 03:07:27 2018
New Revision: 341352
URL: http://llvm.org/viewvc/llvm-project?rev=341352&view=rev
Log:
Revert "Disable the GNUstep v2 ABI on Windows."
This reverts commit b4547c9cadd2f8adfe3f3182e4c56e466c5256cb.
Apparently git llvm push from the monorepo does not
Author: theraven
Date: Tue Sep 4 02:23:18 2018
New Revision: 341350
URL: http://llvm.org/viewvc/llvm-project?rev=341350&view=rev
Log:
Disable the GNUstep v2 ABI on Windows.
The code remains so that we can potentially reenable it in a point
release, but the driver will reject it. Several issues
Author: theraven
Date: Tue Aug 14 03:05:25 2018
New Revision: 339668
URL: http://llvm.org/viewvc/llvm-project?rev=339668&view=rev
Log:
[gnu-objc] Make selector order deterministic.
Summary:
This probably fixes PR35277, though there may be other sources of
nondeterminism (this was the only case of
Author: theraven
Date: Tue Aug 14 03:04:36 2018
New Revision: 339667
URL: http://llvm.org/viewvc/llvm-project?rev=339667&view=rev
Log:
Add a stub mangling for ObjC selectors in the Microsoft ABI.
This mangling is used only for outlined SEH finally blocks, which have
internal linkage.
This fixes
ng Tests (1):
> Clang :: CodeGenObjC/gnu-init.m
>
> Expected Passes: 30627
> Expected Failures : 65
> Unsupported Tests : 12223
> Unexpected Failures: 1
>
> Thanks
>
> Tom Weaver
>
> On 10 August 2018 at 13:53, David Chisnall via cfe-comm
.m
>
> Expected Passes: 30627
> Expected Failures : 65
> Unsupported Tests : 12223
> Unexpected Failures: 1
>
>
> Thanks
>
> Tom Weaver
>
> On 10 August 2018 at 13:53, David Chisnall via cfe-commits
> wrote:
> Author: theraven
> Date:
Author: theraven
Date: Fri Aug 10 05:53:18 2018
New Revision: 339429
URL: http://llvm.org/viewvc/llvm-project?rev=339429&view=rev
Log:
Fix a deprecated warning in the last commit.
Done as a separate commit to make it easier to cherry pick the changes
to the release branch.
Modified:
cfe/trun
Author: theraven
Date: Fri Aug 10 05:53:13 2018
New Revision: 339428
URL: http://llvm.org/viewvc/llvm-project?rev=339428&view=rev
Log:
Add Windows support for the GNUstep Objective-C ABI V2.
Summary:
Introduces funclet-based unwinding for Objective-C and fixes an issue
where global blocks can't h
Author: theraven
Date: Thu Aug 9 01:02:42 2018
New Revision: 339317
URL: http://llvm.org/viewvc/llvm-project?rev=339317&view=rev
Log:
Correctly initialise global blocks on Windows.
Summary:
Windows does not allow globals to be initialised to point to globals in
another DLL. Exported globals may
Author: theraven
Date: Tue Aug 7 05:02:46 2018
New Revision: 339128
URL: http://llvm.org/viewvc/llvm-project?rev=339128&view=rev
Log:
[objc-gnustep] Don't emit .guess ivar offset vars.
These were intended to allow non-fragile and fragile ABI code to be
mixed, as long as the fragile classes were
On 23 May 2018, at 08:38, Hans Wennborg wrote:
>
> Hi David,
>
> On Tue, May 22, 2018 at 12:13 PM, David Chisnall via cfe-commits
> wrote:
>> Author: theraven
>> Date: Tue May 22 03:13:06 2018
>> New Revision: 332963
>>
>> URL: http://llvm.org/v
Author: theraven
Date: Tue May 22 03:13:11 2018
New Revision: 332964
URL: http://llvm.org/viewvc/llvm-project?rev=332964&view=rev
Log:
[objc-gnustep2] Use isalnum instead of a less efficient and nonportable
equivalent.
Patch by Hans Wennborg!
Modified:
cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
M
Author: theraven
Date: Tue May 22 03:13:17 2018
New Revision: 332966
URL: http://llvm.org/viewvc/llvm-project?rev=332966&view=rev
Log:
[objc-gnustep2] Use unsigned char to avoid potential UB in isalnum.
Suggested by Gabor Buella.
Modified:
cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
Modified: cfe/t
Author: theraven
Date: Tue May 22 03:13:14 2018
New Revision: 332965
URL: http://llvm.org/viewvc/llvm-project?rev=332965&view=rev
Log:
[objc-gnu] Fix test.
The test was implicitly capturing the local filesystem layout.
Patch by Hans Wennborg!
Modified:
cfe/trunk/test/CodeGenObjC/gnu-init.m
Author: theraven
Date: Tue May 22 00:22:50 2018
New Revision: 332955
URL: http://llvm.org/viewvc/llvm-project?rev=332955&view=rev
Log:
Add cctype include.
This appears to leak in already on libc++ platforms, but is breaking on
some other targets.
Modified:
cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
behalf of David
> Chisnall via cfe-commits
> Reply-To: David Chisnall
> Date: Wednesday, April 11, 2018 at 11:49 PM
> To: "cfe-commits@lists.llvm.org"
> Subject: r329882 - ObjCGNU: Fix empty v3 protocols being emitted two fields
> short
>
> Author: theraven
> D
Author: theraven
Date: Wed Apr 11 23:46:15 2018
New Revision: 329882
URL: http://llvm.org/viewvc/llvm-project?rev=329882&view=rev
Log:
ObjCGNU: Fix empty v3 protocols being emitted two fields short
Summary:
Protocols that were being referenced but could not be fully realized were being
emitted w
theraven added a comment.
Looks like a much better change to me.
https://reviews.llvm.org/D25431
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
theraven added a comment.
It sounds as if the bug here is either that the .c files are being treated as
c++, or that we're sticking -std=c++{whatever} in CFLAGS as well as CXXFLAGS.
This is probably the bug that should be fixed.
https://reviews.llvm.org/D25431
_
theraven added a comment.
Looks fine to me, though I wonder if we want to move to the new ABI for
FreeBSD11 and use the old one for <=10.
http://reviews.llvm.org/D21329
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/c
On 29 Jun 2016, at 23:07, Richard Smith via cfe-dev
wrote:
>
> Yes, those are real problems, but it's not reasonable for us to keep the
> default at C++98/03 forever. GCC has already taken the plunge here, so a lot
> of open-source code that doesn't work in C++11 onwards already explicitly
>
theraven added a comment.
In http://reviews.llvm.org/D11781#403335, @rmaprath wrote:
> For us (ARM), a threads porting layer is important on several RTOSes (where a
> full-blown pthreads implementations is not available). I will see if I can
> publish one of those porting layer implementations,
theraven added a comment.
Looks fine (though this probably won't actually work correctly on ARMv4).
It's a shame that libc++ decided to reinvent the wheel here and not use the C11
atomics support...
http://reviews.llvm.org/D13051
___
cfe-commits m
theraven added inline comments.
Comment at: include/__config:742
@@ +741,3 @@
+#ifndef _LIBCPP_HAS_NO_THREADS
+# if defined(__FreeBSD__) || \
+defined(__NetBSD__) || \
espositofulvio wrote:
> jroelofs wrote:
> > espositofulvio wrote:
> > > jroelofs wrote:
> >
theraven added a comment.
It would be nice to use rwlocks, but that's an ABI-breaking change. We'd need
to bump the .so version and other annoyances. Definitely something I'd be in
favour of seeing hidden behind some #ifdefs (and enabled for FreeBSD 11 and
probably for the libc++ in packages)
theraven added a comment.
This version looks much better (well, the previous one is cleaner, but this one
looks like it shouldn't break the ABI - did you test this? It looks like it
should work, but I've not actually tried it).
Comment at: include/__config:742
@@ +741,3 @@
+#
theraven added inline comments.
Comment at: include/__mutex_base:246
@@ -266,3 +245,3 @@
-class _LIBCPP_TYPE_VIS condition_variable
+class _LIBCPP_TYPE_VIS condition_variable : private
__libcxx_support::condition_variable
{
espositofulvio wrote:
> theraven wro
theraven added inline comments.
Comment at: include/__mutex_base:246
@@ -266,3 +245,3 @@
-class _LIBCPP_TYPE_VIS condition_variable
+class _LIBCPP_TYPE_VIS condition_variable : private
__libcxx_support::condition_variable
{
espositofulvio wrote:
> theraven wro
theraven added inline comments.
Comment at: include/__mutex_base:246
@@ -266,3 +245,3 @@
-class _LIBCPP_TYPE_VIS condition_variable
+class _LIBCPP_TYPE_VIS condition_variable : private
__libcxx_support::condition_variable
{
Does this change the ABI for a mutex
72 matches
Mail list logo