Re: [PATCH] D21991: [libunwind][ARM] Improve unwinder stack usage - Make WMMX support optional

2016-07-06 Thread Saleem Abdulrasool via cfe-commits
compnerd accepted this revision. This revision is now accepted and ready to land. Comment at: src/Registers.hpp:1497 @@ -1479,3 +1496,3 @@ _LIBUNWIND_ABORT("unsupported arm register"); } Early returns would be nicer imo. Comment at: src/R

r274797 - Driver: Stop linking to C++ when using sanitizers on Darwin

2016-07-07 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Jul 7 16:42:29 2016 New Revision: 274797 URL: http://llvm.org/viewvc/llvm-project?rev=274797&view=rev Log: Driver: Stop linking to C++ when using sanitizers on Darwin Sanitizers on Darwin are built as dynamic libraries, not static libraries. Sanitizers will have their

r274814 - Revert "Driver: Stop linking to C++ when using sanitizers on Darwin"

2016-07-07 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Jul 7 19:37:31 2016 New Revision: 274814 URL: http://llvm.org/viewvc/llvm-project?rev=274814&view=rev Log: Revert "Driver: Stop linking to C++ when using sanitizers on Darwin" This reverts SVN r274797. It broke the Green Dragon bot. Revert it until the failure can be

Re: [PATCH] D21991: [libunwind][ARM] Improve unwinder stack usage - Make WMMX support optional

2016-07-07 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: src/Registers.hpp:1497 @@ -1479,3 +1496,3 @@ _LIBUNWIND_ABORT("unsupported arm register"); } rmaprath wrote: > compnerd wrote: > > Early returns would be nicer imo. > Not sure if I follow, did you mean to check t

r274956 - CodeGen: tweak CFString section for COFF, ELF

2016-07-08 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Jul 8 20:59:51 2016 New Revision: 274956 URL: http://llvm.org/viewvc/llvm-project?rev=274956&view=rev Log: CodeGen: tweak CFString section for COFF, ELF Place the structure data into `cfstring`. This both isolates the structures to permit coalescing in the future (by

r275032 - Reapply SVN r274797.

2016-07-10 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Jul 10 18:24:36 2016 New Revision: 275032 URL: http://llvm.org/viewvc/llvm-project?rev=275032&view=rev Log: Reapply SVN r274797. Original Commit Message Driver: Stop linking to C++ when using sanitizers on Darwin Sanitizers on Darwin are built as dynamic libra

Re: r274991 - [clang-cl] Add support for /Zd

2016-07-11 Thread Saleem Abdulrasool via cfe-commits
On Mon, Jul 11, 2016 at 12:29 PM, David Majnemer via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > > On Mon, Jul 11, 2016 at 12:18 PM, Nico Weber wrote: > >> On Mon, Jul 11, 2016 at 12:19 PM, David Majnemer < >> david.majne...@gmail.com> wrote: >> >>> >>> >>> On Mon, Jul 11, 2016 at 9:03 A

[libcxx] r275172 - Add option to disable __deallocate #warning

2016-07-12 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Jul 12 09:39:13 2016 New Revision: 275172 URL: http://llvm.org/viewvc/llvm-project?rev=275172&view=rev Log: Add option to disable __deallocate #warning From r229162: Visual Studio's SAL extension uses a macro named __deallocate. This macro is used pervasively Using

Re: [PATCH] D22292: [libunwind] Fix unw_getcontext for ARMv6-m

2016-07-12 Thread Saleem Abdulrasool via cfe-commits
compnerd added a subscriber: compnerd. compnerd added a comment. Can you explain why the write back is needed? You are doing the write back on r0, but then adjusting it back. So it is unclear why this change is needed. Could you provide some more context. A test case would be even better.

r275241 - CodeGen: minor cleanup, NFC

2016-07-12 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Jul 12 21:58:44 2016 New Revision: 275241 URL: http://llvm.org/viewvc/llvm-project?rev=275241&view=rev Log: CodeGen: minor cleanup, NFC Initialise more members in initializer lists. Invert the condition that had grown to be pretty confusing. The `_objc_empty_vtable` i

[libcxxabi] r275505 - libc++abi: add a top level option for using CompilerRT

2016-07-14 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Jul 14 19:49:42 2016 New Revision: 275505 URL: http://llvm.org/viewvc/llvm-project?rev=275505&view=rev Log: libc++abi: add a top level option for using CompilerRT Add an option to opt into compiler-rt instead of libgcc. This option defaults to OFF to avoid a behaviour

r275610 - Sema: support __declspec(dll*) on ObjC interfaces

2016-07-15 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Jul 15 15:41:10 2016 New Revision: 275610 URL: http://llvm.org/viewvc/llvm-project?rev=275610&view=rev Log: Sema: support __declspec(dll*) on ObjC interfaces Extend the __declspec(dll*) attribute to cover ObjC interfaces. This was requested by Microsoft for their ObjC

Re: [PATCH] D22426: Fix automatic detection of ARM MSVC toolset in clang.exe

2016-07-15 Thread Saleem Abdulrasool via cfe-commits
compnerd added a subscriber: compnerd. compnerd accepted this revision. compnerd added a reviewer: compnerd. compnerd added a comment. This revision is now accepted and ready to land. I imagine that at this point, most usage is still based around the x86 toolchain rather than x64 (I didnt even no

r275697 - CodeGen: use StringRefs more in ObjC class generation, NFC

2016-07-16 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sat Jul 16 17:42:06 2016 New Revision: 275697 URL: http://llvm.org/viewvc/llvm-project?rev=275697&view=rev Log: CodeGen: use StringRefs more in ObjC class generation, NFC Rather than building up a number of SmallString-s in order to construct a std::string, use more StringR

r275696 - CodeGen: simplify using a local variable, NFC

2016-07-16 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sat Jul 16 17:42:04 2016 New Revision: 275696 URL: http://llvm.org/viewvc/llvm-project?rev=275696&view=rev Log: CodeGen: simplify using a local variable, NFC Add a couple of local variables for the class interface and the super class interface. This allows for the repeated

r275735 - CodeGen: whitespace cleanup, StringRef usage in ObjC EH type construction

2016-07-17 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Jul 17 17:27:38 2016 New Revision: 275735 URL: http://llvm.org/viewvc/llvm-project?rev=275735&view=rev Log: CodeGen: whitespace cleanup, StringRef usage in ObjC EH type construction Clean up some formatting issues and use a bit more StringRef based operations instead of

r275736 - CodeGen: whitespace, formatting cleanups, NFC

2016-07-17 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Jul 17 17:27:41 2016 New Revision: 275736 URL: http://llvm.org/viewvc/llvm-project?rev=275736&view=rev Log: CodeGen: whitespace, formatting cleanups, NFC Format some code which was oddly formatted. Use a bit of auto to make the code more legible. NFC. Modified: c

r275737 - CodeGen: honour dllstorage on ObjC types

2016-07-17 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Jul 17 17:27:44 2016 New Revision: 275737 URL: http://llvm.org/viewvc/llvm-project?rev=275737&view=rev Log: CodeGen: honour dllstorage on ObjC types Add support for ObjC types to respect the DLLImport/DLLExport storage annotations. This only effects COFF output. This

r275738 - test: add missing triple to test

2016-07-17 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Jul 17 17:54:42 2016 New Revision: 275738 URL: http://llvm.org/viewvc/llvm-project?rev=275738&view=rev Log: test: add missing triple to test The test was relying on the default triple which may not be correct. Explicitly provide it a triple. Should repair the windows

Re: [PATCH] D22426: Fix automatic detection of ARM MSVC toolset in clang.exe

2016-07-17 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. I was worried about the OOM situation with the 32-bit toolchain. As long as there is a way to get to the 64-bit version, I don't think that it matters too much that we default to x86. It sounds like even then, its not been a concern? https://reviews.llvm.org/D22426

Re: [PATCH] D22463: [RFC] Moving to GitHub Proposal: NOT DECISION!

2016-07-18 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: docs/Proposals/GitHub.rst:127 @@ +126,3 @@ +* The projects' repositories will remain identical, with a new address (GitHub). +* They'll continue to have SVN RW access, but will also gain Git RW access. +* The linear history can still be

Re: [PATCH] D22463: [RFC] Moving to GitHub Proposal: NOT DECISION!

2016-07-18 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: docs/Proposals/GitHub.rst:167 @@ +166,3 @@ +with the limited number of developers whose job will be to mainly merge +thousands of patches a day. + rengolin wrote: > compnerd wrote: > > I don't fully understand how this i

r262780 - Misc: add a test for TargetParser usage

2016-03-05 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sat Mar 5 15:12:33 2016 New Revision: 262780 URL: http://llvm.org/viewvc/llvm-project?rev=262780&view=rev Log: Misc: add a test for TargetParser usage Ensure that an invalid value passed to target parser does not cause an assertion in +Asserts builds. Supporting test for

Re: [PATCH] D15469: Expose cxx constructor and method properties through libclang and python bindings.

2016-03-08 Thread Saleem Abdulrasool via cfe-commits
compnerd accepted this revision. compnerd added a comment. This revision is now accepted and ready to land. Sorry about the delay with this change. Thanks for removing the parameter. I think that this is fine as is. Do you have commit rights, or should I commit this on your behalf? http://r

Re: [PATCH] D16264: For FreeBSD, use _p variants of libraries for linking C++ programs

2016-01-30 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. `-p` or `-pg` also effects the math library. Please adjust the tests and the driver to reflect that. http://reviews.llvm.org/D16264 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

Re: [PATCH] D14570: Handle ARMv6KZ naming

2015-11-12 Thread Saleem Abdulrasool via cfe-commits
compnerd added a subscriber: compnerd. compnerd accepted this revision. compnerd added a reviewer: compnerd. compnerd added a comment. This revision is now accepted and ready to land. Wow, this is tricky: the code change is in LLVM, and test change in clang :(. However, this does seem to preserv

[clang-tools-extra] r253310 - modularize: add install rule

2015-11-16 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Nov 16 23:09:18 2015 New Revision: 253310 URL: http://llvm.org/viewvc/llvm-project?rev=253310&view=rev Log: modularize: add install rule This allows modularize to be installed. Previously, no install rule would be created for it. Modified: clang-tools-extra/trunk/

[libcxxabi] r253435 - c++abi: use __builtin_offsetof instead of offsetof

2015-11-17 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Nov 17 23:33:38 2015 New Revision: 253435 URL: http://llvm.org/viewvc/llvm-project?rev=253435&view=rev Log: c++abi: use __builtin_offsetof instead of offsetof Use `__builtin_offsetof` in place of `offsetof`. Certain environments provide a macro definition of `offsetof`

Re: r252853 - libclang: add clang_Cursor_getCXXManglings

2015-11-18 Thread Saleem Abdulrasool via cfe-commits
uld be more > cautious here than you would be normally. > I had discussed this with Argyrios Kyrtzidis. Is he not the current owner for libclang? Ill happily speak to Doug in the future if he is a better contact for new API introductions for libclang. > On Wed, Nov 11, 2015 at 7:57

Re: r253418 - Try to fix leak in CXStringSet from r252853

2015-11-18 Thread Saleem Abdulrasool via cfe-commits
On Tue, Nov 17, 2015 at 5:06 PM, Reid Kleckner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rnk > Date: Tue Nov 17 19:06:39 2015 > New Revision: 253418 > > URL: http://llvm.org/viewvc/llvm-project?rev=253418&view=rev > Log: > Try to fix leak in CXStringSet from r252853 > > Modifi

[libcxxabi] r254690 - c++abi: whitespace adjustment

2015-12-03 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Dec 3 20:14:41 2015 New Revision: 254690 URL: http://llvm.org/viewvc/llvm-project?rev=254690&view=rev Log: c++abi: whitespace adjustment Cleanup some code with clang-format to make the following change easier to identify material difference. NFC. Modified: libcxx

[libcxxabi] r254691 - ibc++abi: mark visibility

2015-12-03 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Dec 3 20:14:58 2015 New Revision: 254691 URL: http://llvm.org/viewvc/llvm-project?rev=254691&view=rev Log: ibc++abi: mark visibility Mark functions and types with the appropriate visibility. This is particularly useful for environments which explicitly indicate origin

[libcxxabi] r254692 - .gitignore: ignore vim swap files

2015-12-03 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Dec 3 20:15:02 2015 New Revision: 254692 URL: http://llvm.org/viewvc/llvm-project?rev=254692&view=rev Log: .gitignore: ignore vim swap files Modified: libcxxabi/trunk/.gitignore Modified: libcxxabi/trunk/.gitignore URL: http://llvm.org/viewvc/llvm-project/libcxxa

r255225 - libclang: correct inverted logic

2015-12-09 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Dec 10 00:30:23 2015 New Revision: 255225 URL: http://llvm.org/viewvc/llvm-project?rev=255225&view=rev Log: libclang: correct inverted logic The complete dtor is only emitted when there is a virtual destructor. The test itself was incorrect, so the issue in the code wa

r255273 - libclang: expose dllexport, dllimport attributes

2015-12-10 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Dec 10 12:45:18 2015 New Revision: 255273 URL: http://llvm.org/viewvc/llvm-project?rev=255273&view=rev Log: libclang: expose dllexport, dllimport attributes These attributes were previously unexposed. Expose them through the libclang interfaces. Add tests that cover b

r255328 - Driver: add multilibs for ARM EB

2015-12-10 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Dec 11 00:20:59 2015 New Revision: 255328 URL: http://llvm.org/viewvc/llvm-project?rev=255328&view=rev Log: Driver: add multilibs for ARM EB This improves the coverage for the multilib directories used for ARM. Also add tests covering the internal triple (thumbv7-*).

Re: [PATCH] D15440: [libc++abi] Use libgcc and libgcc_s to provide _Unwind symbols instead of libgcc_eh.a

2015-12-10 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: cmake/config-ix.cmake:45 @@ -44,3 +44,3 @@ check_library_exists(pthread pthread_once "" LIBCXXABI_HAS_PTHREAD_LIB) -check_library_exists(gcc_eh _Unwind_GetRegionStart "" LIBCXXABI_HAS_GCC_EH_LIB) +check_library_exists(gcc_s __gcc_person

Re: [PATCH] D15440: [libc++abi] Use libgcc and libgcc_s to provide _Unwind symbols instead of libgcc_eh.a

2015-12-11 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: cmake/config-ix.cmake:45 @@ -44,3 +44,3 @@ check_library_exists(pthread pthread_once "" LIBCXXABI_HAS_PTHREAD_LIB) -check_library_exists(gcc_eh _Unwind_GetRegionStart "" LIBCXXABI_HAS_GCC_EH_LIB) +check_library_exists(gcc_s __gcc_person

Re: [PATCH] D15440: [libc++abi] Use libgcc and libgcc_s to provide _Unwind symbols instead of libgcc_eh.a

2015-12-12 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: cmake/config-ix.cmake:45 @@ -44,3 +44,3 @@ check_library_exists(pthread pthread_once "" LIBCXXABI_HAS_PTHREAD_LIB) -check_library_exists(gcc_eh _Unwind_GetRegionStart "" LIBCXXABI_HAS_GCC_EH_LIB) +check_library_exists(gcc_s __gcc_person

[clang] Add support for sysroot-relative system header search paths (PR #82084)

2024-02-17 Thread Saleem Abdulrasool via cfe-commits
@@ -3218,6 +3218,21 @@ static bool ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args, bool IsIndexHeaderMap = false; bool IsSysrootSpecified = Args.hasArg(OPT__sysroot_EQ) || Args.hasArg(OPT_isysroot); + + // Expand a leading `=` to the sysroot if one w

[clang] Add support for sysroot-relative system header search paths (PR #82084)

2024-02-17 Thread Saleem Abdulrasool via cfe-commits
@@ -3218,6 +3218,21 @@ static bool ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args, bool IsIndexHeaderMap = false; bool IsSysrootSpecified = Args.hasArg(OPT__sysroot_EQ) || Args.hasArg(OPT_isysroot); + + // Expand a leading `=` to the sysroot if one w

[clang] Add support for sysroot-relative system header search paths (PR #82084)

2024-02-17 Thread Saleem Abdulrasool via cfe-commits
@@ -3218,6 +3218,21 @@ static bool ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args, bool IsIndexHeaderMap = false; bool IsSysrootSpecified = Args.hasArg(OPT__sysroot_EQ) || Args.hasArg(OPT_isysroot); + + // Expand a leading `=` to the sysroot if one w

[clang] Add support for sysroot-relative system header search paths (PR #82084)

2024-02-17 Thread Saleem Abdulrasool via cfe-commits
@@ -3218,6 +3218,21 @@ static bool ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args, bool IsIndexHeaderMap = false; bool IsSysrootSpecified = Args.hasArg(OPT__sysroot_EQ) || Args.hasArg(OPT_isysroot); + + // Expand a leading `=` to the sysroot if one w

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-22 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-22 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [compiler-rt] [compiler-rt] adding safestack support for sunos platforms. (PR #95648)

2024-06-29 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/95648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] fix unwinding from signal handler (PR #92291)

2024-07-05 Thread Saleem Abdulrasool via cfe-commits
@@ -365,7 +365,12 @@ int DwarfInstructions::stepWithDwarf(A &addressSpace, pint_t pc, // Return address is address after call site instruction, so setting IP to // that does simulates a return. - newRegisters.setIP(returnAddress); + // + // In case

[libunwind] [libunwind] fix unwinding from signal handler (PR #92291)

2024-07-06 Thread Saleem Abdulrasool via cfe-commits
@@ -365,7 +365,12 @@ int DwarfInstructions::stepWithDwarf(A &addressSpace, pint_t pc, // Return address is address after call site instruction, so setting IP to // that does simulates a return. - newRegisters.setIP(returnAddress); + // + // In case

[libunwind] [libunwind] fix unwinding from signal handler (PR #92291)

2024-07-07 Thread Saleem Abdulrasool via cfe-commits
@@ -365,7 +365,12 @@ int DwarfInstructions::stepWithDwarf(A &addressSpace, pint_t pc, // Return address is address after call site instruction, so setting IP to // that does simulates a return. - newRegisters.setIP(returnAddress); + // + // In case

[libunwind] [libunwind] fix unwinding from signal handler (PR #92291)

2024-07-08 Thread Saleem Abdulrasool via cfe-commits
@@ -365,7 +365,12 @@ int DwarfInstructions::stepWithDwarf(A &addressSpace, pint_t pc, // Return address is address after call site instruction, so setting IP to // that does simulates a return. - newRegisters.setIP(returnAddress); + // + // In case

[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-05 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/106369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-05 Thread Saleem Abdulrasool via cfe-commits
@@ -484,8 +519,10 @@ static bool initTargetOptions(DiagnosticsEngine &Diags, Entry.Group == frontend::IncludeDirGroup::System)) Options.MCOptions.IASSearchPaths.push_back( Entry.IgnoreSysRoot ? Entry.Path : HSOpts.Sysroot + Entry.Path); - Options.MCOpt

[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-05 Thread Saleem Abdulrasool via cfe-commits
compnerd wrote: Please also get a sign off from @aganea https://github.com/llvm/llvm-project/pull/106369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Set dllimport on Objective C ivar offsets (PR #107604)

2024-09-06 Thread Saleem Abdulrasool via cfe-commits
@@ -1699,11 +1699,18 @@ class CGObjCGNUstep2 : public CGObjCGNUstep { llvm::Value *EmitIvarOffset(CodeGenFunction &CGF, const ObjCInterfaceDecl *Interface, const ObjCIvarDecl *Ivar) override { -const std::string

[clang] [Clang][CodeGen] Fix bad codegen when building Clang with latest MSVC (PR #102681)

2024-08-09 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. Might be nice to clean this up in the future but hen Microsoft releases a fix. https://github.com/llvm/llvm-project/pull/102681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [Clang][CodeGen] Fix bad codegen when building Clang with latest MSVC (PR #102681)

2024-08-10 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd edited https://github.com/llvm/llvm-project/pull/102681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Support C++ tag conformances to Swift protocols (PR #102664)

2024-08-10 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/102664 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Support C++ tag conformances to Swift protocols (PR #102664)

2024-08-10 Thread Saleem Abdulrasool via cfe-commits
@@ -572,6 +572,13 @@ class TagTableInfo ReleaseOpLength - 1); Data += ReleaseOpLength - 1; } +unsigned ConformsToLength = +endian::readNext(Data); +if (ConformsToLength > 0) { compnerd wrote: ``

[clang] [APINotes] Support C++ tag conformances to Swift protocols (PR #102664)

2024-08-10 Thread Saleem Abdulrasool via cfe-commits
@@ -1230,6 +1231,12 @@ class TagTableInfo : public CommonTypeTableInfo { } else { writer.write(0); } +if (auto ConformsTo = TI.SwiftConformsTo) { + writer.write(ConformsTo->size() + 1); + OS.write(ConformsTo->c_str(), ConformsTo->size()); --

[clang] [APINotes] Support C++ tag conformances to Swift protocols (PR #102664)

2024-08-12 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/102664 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Support fields of C/C++ structs (PR #104088)

2024-08-14 Thread Saleem Abdulrasool via cfe-commits
@@ -858,6 +867,62 @@ void APINotesWriter::Implementation::writeCXXMethodBlock( } } +namespace { +/// Used to serialize the on-disk C field table. +class FieldTableInfo +: public VersionedTableInfo { +public: + unsigned getKeyLength(key_type_ref) { +return sizeof(ui

[clang] [APINotes] Support fields of C/C++ structs (PR #104088)

2024-08-14 Thread Saleem Abdulrasool via cfe-commits
@@ -1252,6 +1282,81 @@ bool APINotesReader::Implementation::readCXXMethodBlock( return false; } +bool APINotesReader::Implementation::readFieldBlock( +llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl &Scratch) { + if (Cursor.EnterSubBlock(FIELD_BLOCK_ID)) +retur

[clang] [APINotes] Support fields of C/C++ structs (PR #104088)

2024-08-14 Thread Saleem Abdulrasool via cfe-commits
@@ -793,6 +827,16 @@ class YAMLConverter { SwiftVersion); } + template + void convertVariable(const T &Entity, VariableInfo &VI) { compnerd wrote: I think that `computeVariableInfo` seems better - we are "hydrating" the variable

[clang] [APINotes] Support fields of C/C++ structs (PR #104088)

2024-08-16 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/104088 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] NFC: Make clang resource headers an interface library (PR #88317)

2024-04-10 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd edited https://github.com/llvm/llvm-project/pull/88317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] NFC: Make clang resource headers an interface library (PR #88317)

2024-04-10 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. This seems like a step in the right direction - avoiding custom targets is generally better. https://github.com/llvm/llvm-project/pull/88317 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] NFC: Make clang resource headers an interface library (PR #88317)

2024-04-10 Thread Saleem Abdulrasool via cfe-commits
@@ -501,6 +501,10 @@ add_header_target("windows-resource-headers" ${windows_only_files}) add_header_target("utility-resource-headers" ${utility_files}) get_clang_resource_dir(header_install_dir SUBDIR include) +target_include_directories(clang-resource-headers INTERFACE + $

[clang] NFC: Make clang resource headers an interface library (PR #88317)

2024-04-10 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. Thanks, this seems good! https://github.com/llvm/llvm-project/pull/88317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Update the documentation with new features (PR #95162)

2024-06-11 Thread Saleem Abdulrasool via cfe-commits
@@ -157,6 +158,36 @@ declaration kind), all of which are optional: - Class: NSBundle SwiftName: Bundle +:SwiftImportAs: + + For a class, possible values are ``owned`` (equivalent to + ``SWIFT_SELF_CONTAINED``), ``reference`` (equivalent to compnerd

[clang] [APINotes] Update the documentation with new features (PR #95162)

2024-06-11 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd edited https://github.com/llvm/llvm-project/pull/95162 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Update the documentation with new features (PR #95162)

2024-06-11 Thread Saleem Abdulrasool via cfe-commits
@@ -157,6 +158,36 @@ declaration kind), all of which are optional: - Class: NSBundle SwiftName: Bundle +:SwiftImportAs: + + For a class, possible values are ``owned`` (equivalent to + ``SWIFT_SELF_CONTAINED``), ``reference`` (equivalent to + ``SWIFT_SHARED_REFEREN

[clang] [APINotes] Update the documentation with new features (PR #95162)

2024-06-11 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/95162 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Add winsysroot alias to the GNU driver (PR #95320)

2024-06-13 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/95320 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Add winsysroot alias to the GNU driver (PR #95320)

2024-06-13 Thread Saleem Abdulrasool via cfe-commits
compnerd wrote: @zmodem - they are aliases after all. I think that core logic being tested is sufficient. I can see the value in testing that the flags are honoured, but the tests would be of low value IMO. They just test the flags are listed. https://github.com/llvm/llvm-project/pull/95320 __

[clang] [clang] Fix missing installed header (PR #95979)

2024-06-20 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/95979 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] Revert "NFC: Make clang resource headers an interface library (#88317)" (PR #89266)

2024-04-18 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. Approving it in case it needs to be merged, but I think that we should try to determine how it is breaking. This change feels like it should be correct and is a pretty good cleanup, so I would prefer that fix forward rather than revert. h

[clang] [APINotes] Do not crash for C++ operators (PR #101001)

2024-07-29 Thread Saleem Abdulrasool via cfe-commits
@@ -1044,11 +1044,13 @@ void Sema::ProcessAPINotes(Decl *D) { if (auto TagContext = dyn_cast(D->getDeclContext())) { if (auto CXXMethod = dyn_cast(D)) { - for (auto Reader : APINotes.findAPINotes(D->getLocation())) { -if (auto Context = UnwindTagContext(TagC

[clang] [APINotes] Do not crash for C++ operators (PR #101001)

2024-07-29 Thread Saleem Abdulrasool via cfe-commits
@@ -1044,11 +1044,13 @@ void Sema::ProcessAPINotes(Decl *D) { if (auto TagContext = dyn_cast(D->getDeclContext())) { if (auto CXXMethod = dyn_cast(D)) { - for (auto Reader : APINotes.findAPINotes(D->getLocation())) { -if (auto Context = UnwindTagContext(TagC

[clang] [APINotes] Do not crash for C++ operators (PR #101001)

2024-07-29 Thread Saleem Abdulrasool via cfe-commits
@@ -1044,11 +1044,13 @@ void Sema::ProcessAPINotes(Decl *D) { if (auto TagContext = dyn_cast(D->getDeclContext())) { if (auto CXXMethod = dyn_cast(D)) { - for (auto Reader : APINotes.findAPINotes(D->getLocation())) { -if (auto Context = UnwindTagContext(TagC

[clang] [APINotes] Do not crash for C++ operators (PR #101001)

2024-07-29 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/101001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][AIX] Fix the wrong traceback from signal handler (PR #101069)

2024-07-29 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/101069 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [NFC][libc++][libc++abi][libunwind][test] Fix/unify AIX triples used in LIT tests (PR #101196)

2024-07-30 Thread Saleem Abdulrasool via cfe-commits
@@ -10,7 +10,7 @@ // on AIX. Option -O3 is required so that the compiler will re-use the value // in the condition register instead of re-evaluating the condition expression. -// REQUIRES: target=powerpc{{(64)?}}-ibm-aix +// REQUIRES: target={{.+}}-aix{{.*}} c

[libcxx] [libcxxabi] [libunwind] [NFC][libc++][libc++abi][libunwind][test] Fix/unify AIX triples used in LIT tests (PR #101196)

2024-07-30 Thread Saleem Abdulrasool via cfe-commits
@@ -9,7 +9,7 @@ // Check that the PowerPC vector registers are restored properly during // unwinding. Option -mabi=vec-extabi is required to compile the test case. -// REQUIRES: target=powerpc{{(64)?}}-ibm-aix +// REQUIRES: target={{.+}}-aix{{.*}} compnerd wro

[libcxx] [libcxxabi] [libunwind] [NFC][libc++][libc++abi][libunwind][test] Fix/unify AIX triples used in LIT tests (PR #101196)

2024-07-30 Thread Saleem Abdulrasool via cfe-commits
@@ -6,7 +6,7 @@ // //===--===// -// REQUIRES: target={{powerpc.*-ibm-aix.*}} +// REQUIRES: target={{.+}}-aix{{.*}} compnerd wrote: Why remove the vendor in the vendor specific directory? ht

<    4   5   6   7   8   9   10   11   >