[libunwind] [libunwind][libc++][libc++abi] Add cross-compilation flags to tests (PR #67201)

2023-10-11 Thread Alexander Richardson via cfe-commits
arichardson wrote: > This would look good to me, but we seem to be failing the Windows tests! Unfortunately I can't see what's going wrong there and I don't have an easy way of reproducing it. I'll try to add some debugging code to this PR in the coming days. https://github.com/llvm/llvm-proj

[clang-tools-extra] [OpenMP] Improve omp offload profiler (PR #68016)

2023-10-11 Thread via cfe-commits
fel-cab wrote: I have prepared a presentation to better explain the proposed changes https://docs.google.com/presentation/d/1lLlR7g29MWidaX9BLCUaKZhdvN-dphUE2BGMXhZCIoA/edit?usp=sharing https://github.com/llvm/llvm-project/pull/68016 ___ cfe-commits ma

[clang] [OpenMP] Improve omp offload profiler (PR #68016)

2023-10-11 Thread via cfe-commits
fel-cab wrote: I have prepared a presentation to better explain the proposed changes https://docs.google.com/presentation/d/1lLlR7g29MWidaX9BLCUaKZhdvN-dphUE2BGMXhZCIoA/edit?usp=sharing https://github.com/llvm/llvm-project/pull/68016 ___ cfe-commits ma

[libunwind] [OpenMP] Improve omp offload profiler (PR #68016)

2023-10-11 Thread via cfe-commits
fel-cab wrote: I have prepared a presentation to better explain the proposed changes https://docs.google.com/presentation/d/1lLlR7g29MWidaX9BLCUaKZhdvN-dphUE2BGMXhZCIoA/edit?usp=sharing https://github.com/llvm/llvm-project/pull/68016 ___ cfe-commits ma

[clang] [clang][Sema] Emit more specific diagnostic for auto in lambda before C++14 (#46059) (PR #68540)

2023-10-11 Thread via cfe-commits
https://github.com/weltschildkroete updated https://github.com/llvm/llvm-project/pull/68540 >From 613ea6809b478ff7391614b24ec177fc19339cdd Mon Sep 17 00:00:00 2001 From: Leonardo Duarte Date: Sun, 8 Oct 2023 12:59:15 +0200 Subject: [PATCH 1/5] [clang][Sema] Emit more specific diagnostic for aut

[clang] [clang][Sema] Emit more specific diagnostic for auto in lambda before C++14 (#46059) (PR #68540)

2023-10-11 Thread via cfe-commits
@@ -3605,8 +3605,11 @@ static QualType GetDeclSpecTypeForDeclarator(TypeProcessingState &state, Info = &SemaRef.InventedParameterInfos.back(); } else { // In C++14, generic lambdas allow 'auto' in their parameters. -if (!SemaRef.getLangOpts().CPlu

[clang] [flang] add tbaa tags to global variables (PR #68727)

2023-10-11 Thread Renaud Kauffmann via cfe-commits
@@ -406,7 +406,7 @@ AliasAnalysis::Source AliasAnalysis::getSource(mlir::Value v) { attributes.set(Attribute::Pointer); } - if (type == SourceKind::Global) + if (type == SourceKind::Global || type == SourceKind::Direct) Renaud-K wrote: I am sti

[clang] [clang][Sema] Emit more specific diagnostic for auto in lambda before C++14 (#46059) (PR #68540)

2023-10-11 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 606f89ab7d537ca068fb1be9fd89d96a30de38f8 031e76900f6e63c97ed8666066ff98d967305af4 --

[clang] [clang][Sema] Emit more specific diagnostic for auto in lambda before C++14 (#46059) (PR #68540)

2023-10-11 Thread via cfe-commits
https://github.com/weltschildkroete updated https://github.com/llvm/llvm-project/pull/68540 >From 613ea6809b478ff7391614b24ec177fc19339cdd Mon Sep 17 00:00:00 2001 From: Leonardo Duarte Date: Sun, 8 Oct 2023 12:59:15 +0200 Subject: [PATCH 1/6] [clang][Sema] Emit more specific diagnostic for aut

[clang] [Sema] Add check for bitfield assignments to larger integral types (PR #68276)

2023-10-11 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/68276 >From f70a9fb484d5bdee8319833cde28ee02f3a248ff Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Thu, 5 Oct 2023 02:39:12 +0200 Subject: [PATCH] [Sema] Add check for bitfield assignments to integral types W

[clang] [WIP][-Wunsafe-buffer-usage] Start emitting std::array fixits (PR #68037)

2023-10-11 Thread Artem Dergachev via cfe-commits
haoNoQ wrote: We will need a new warning text here. "To preserve bounds information" isn't our goal; the traditional C array already preserves bounds information as part of the type. Theoretically, we could teach the compiler to harden all raw C array operations without converting it to `std::

[clang] [flang][driver] Mark -fcommon and -mtune as visible in Flang (PR #68657)

2023-10-11 Thread Andrzej Warzyński via cfe-commits
@@ -10,6 +10,9 @@ ! Make sure that `-L' is "visible" to Flang's driver ! RUN: %flang -L/ -### %s +! Make sure that `-fcommon' is "visible" to Flang's driver banach-space wrote: This is not clear because I didn't leave any comment in this file (mea culpa, sor

[clang] [flang][driver] Mark -fcommon and -mtune as visible in Flang (PR #68657)

2023-10-11 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space edited https://github.com/llvm/llvm-project/pull/68657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang][driver] Mark -fcommon and -mtune as visible in Flang (PR #68657)

2023-10-11 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space requested changes to this pull request. Thanks for working on. I would appreciate if you could add a bit more testing. https://github.com/llvm/llvm-project/pull/68657 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [flang][driver] Mark -fcommon and -mtune as visible in Flang (PR #68657)

2023-10-11 Thread Andrzej Warzyński via cfe-commits
@@ -5077,6 +5077,7 @@ def module_file_info : Flag<["-"], "module-file-info">, Flags<[NoXarchOption]>, HelpText<"Provide information about a particular module file">; def mthumb : Flag<["-"], "mthumb">, Group; def mtune_EQ : Joined<["-"], "mtune=">, Group, + Flags<[TargetSpe

[clang] [flang][driver] Mark -fcommon and -mtune as visible in Flang (PR #68657)

2023-10-11 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space edited https://github.com/llvm/llvm-project/pull/68657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Add check for bitfield assignments to larger integral types (PR #68276)

2023-10-11 Thread via cfe-commits
vabridgers wrote: > > Hi @AaronBallman , I ran a compile using this change on clang as you asked > > and have results. The compile ran with no crashes or errors, and produced > > 1478 bitfield-conversion warnings. I'll show a few examples below. To put > > that number into context, I enabled -

[clang] [Clang] Implement the 'counted_by' attribute (PR #68750)

2023-10-11 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/68750 >From b7b0c40542589e9c54c21140dbb5b163dd8ffc7b Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 4 Oct 2023 17:55:49 -0700 Subject: [PATCH 1/3] [Clang] Implement the 'counted_by' attribute The 'counted_b

[clang] [Clang] Implement the 'counted_by' attribute (PR #68750)

2023-10-11 Thread Bill Wendling via cfe-commits
bwendling wrote: @AaronBallman I just added a patch that modifies the diagnostics to be more in line with what you wanted. PTAL. https://github.com/llvm/llvm-project/pull/68750 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] [Clang] Implement the 'counted_by' attribute (PR #68750)

2023-10-11 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/68750 >From b7b0c40542589e9c54c21140dbb5b163dd8ffc7b Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 4 Oct 2023 17:55:49 -0700 Subject: [PATCH 1/4] [Clang] Implement the 'counted_by' attribute The 'counted_b

[clang] [Sema] Add check for bitfield assignments to larger integral types (PR #68276)

2023-10-11 Thread via cfe-commits
@@ -6171,6 +6171,11 @@ def warn_signed_bitfield_enum_conversion : Warning< "signed bit-field %0 needs an extra bit to represent the largest positive " "enumerators of %1">, InGroup, DefaultIgnore; +def warn_bitfield_too_small_for_integral_type : Warning< + "conversion fr

[clang] [flang] add tbaa tags to global variables (PR #68727)

2023-10-11 Thread Tom Eccles via cfe-commits
@@ -406,7 +406,7 @@ AliasAnalysis::Source AliasAnalysis::getSource(mlir::Value v) { attributes.set(Attribute::Pointer); } - if (type == SourceKind::Global) + if (type == SourceKind::Global || type == SourceKind::Direct) tblah wrote: Yeah that s

[clang] [IRPGO][ValueProfile] Instrument virtual table address that could be used to do virtual table address comparision for indirect-call-promotion. (PR #66825)

2023-10-11 Thread Hongtao Yu via cfe-commits
htyu wrote: > The AutoFDO support Mingming mentioned is the vtable profiling part using > MEM_INST_RETIRED event that captures data address. This data access profiling > will/can also be used for global variable layout. However this is current > Intel only so having a branch profiling based me

[clang] [clang][Sema] Emit more specific diagnostic for auto in lambda before C++14 (#46059) (PR #68540)

2023-10-11 Thread via cfe-commits
https://github.com/weltschildkroete edited https://github.com/llvm/llvm-project/pull/68540 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [IRPGO][ValueProfile] Instrument virtual table address that could be used to do virtual table address comparision for indirect-call-promotion. (PR #66825)

2023-10-11 Thread Snehasish Kumar via cfe-commits
snehasish wrote: > @david-xl It's interesting to know this. How is that going on your end? Currently we are exploring the design space to accommodate the variety of platforms and FDO types we use internally. This is a priority for us though so we should have some updates to share externally by

[clang] [Sema] Add check for bitfield assignments to larger integral types (PR #68276)

2023-10-11 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/68276 >From 3bb0c8483c61e04f5ff76de920dcad89793f1326 Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Thu, 5 Oct 2023 02:39:12 +0200 Subject: [PATCH] [Sema] Add check for bitfield assignments to integral types W

[clang] [Driver] Remove identifier with the comment (PR #68351)

2023-10-11 Thread Brad Smith via cfe-commits
brad0 wrote: ping. https://github.com/llvm/llvm-project/pull/68351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D8484: Allow -gsplit-dwarf for all ELF targets, not just Linux

2023-10-11 Thread Ed Maste via Phabricator via cfe-commits
emaste abandoned this revision. emaste added a comment. Herald added a project: All. Allowed for all ELF OSes as of commit ee957e045f526ce45d24b0f081f277262c3da43d Author: Fangrui Song Date: Thu Mar 28 08:24:00 2019 + [Driver] Allow -gsplit-dwarf on ELF OSes other than Linux

[clang] c661c4f - [AIX] recognize vsr in inline asm for AIX (#68476)

2023-10-11 Thread via cfe-commits
Author: Chen Zheng Date: 2023-10-12T08:54:45+08:00 New Revision: c661c4f57613b5f85af94ee4e905708e0ba820f8 URL: https://github.com/llvm/llvm-project/commit/c661c4f57613b5f85af94ee4e905708e0ba820f8 DIFF: https://github.com/llvm/llvm-project/commit/c661c4f57613b5f85af94ee4e905708e0ba820f8.diff LO

[clang] [AIX] recognize vsr in inline asm for AIX (PR #68476)

2023-10-11 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 closed https://github.com/llvm/llvm-project/pull/68476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [IRPGO][ValueProfile] Instrument virtual table address that could be used to do virtual table address comparision for indirect-call-promotion. (PR #66825)

2023-10-11 Thread Mingming Liu via cfe-commits
minglotus-6 wrote: > we prioritize inlining the memcpy code for a specific range based on the > hotness of that range in a particular inline context @htyu Pretty much a drive-by question if it's convenient for you to share more, how ranges are selected out of sampled values? For example, are r

[clang] [Driver] Group together usage of AddAllArgs (PR #68349)

2023-10-11 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/68349 >From c01c08f813264327f1c641b4aa49ea7a20dd45cd Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 5 Oct 2023 16:09:04 -0400 Subject: [PATCH] [Driver] Group together linker options using addAllArgs --- clang/lib/

[clang] [Driver] Group together linker options using addAllArgs (PR #68349)

2023-10-11 Thread Brad Smith via cfe-commits
https://github.com/brad0 edited https://github.com/llvm/llvm-project/pull/68349 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Docs][Clang] Missing DR status for C++23-era papers in cxx_status.html (PR #68846)

2023-10-11 Thread A. Jiang via cfe-commits
https://github.com/frederick-vs-ja created https://github.com/llvm/llvm-project/pull/68846 I'm unsure whether [P2460R2](https://wg21.link/p2460r2) should be listed in the page. The paper seemingly requires no changes. ### References - [N4891](https://wg21.link/n4891) - [P1949R7](https://wg21

[clang] 894927b - [Driver] Group together linker options using addAllArgs (#68349)

2023-10-11 Thread via cfe-commits
Author: Brad Smith Date: 2023-10-12T00:34:19-04:00 New Revision: 894927b491b7c62917ffa7ad665841683095317c URL: https://github.com/llvm/llvm-project/commit/894927b491b7c62917ffa7ad665841683095317c DIFF: https://github.com/llvm/llvm-project/commit/894927b491b7c62917ffa7ad665841683095317c.diff LO

[clang] [Driver] Group together linker options using addAllArgs (PR #68349)

2023-10-11 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/68349 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TSAN] add support for riscv64 (PR #68735)

2023-10-11 Thread Alex Fan via cfe-commits
alexfanqi wrote: Sorry. It took some time to reply. Since newer linux kernel supports sv57 and sv48, I tested this again with latest qemu and 6.6 kernel, by passing `-cpu rv64,sv48=on` to qemu. I missed a little piece here for sv48, Also to note, if we want to support sv57, we could directly

[clang] [TSAN] add support for riscv64 (PR #68735)

2023-10-11 Thread Alex Fan via cfe-commits
https://github.com/alexfanqi requested changes to this pull request. I missed a little piece for sv48 here ``` --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h @@ -303,7 +303,7 @@ #define SANITIZER_MMAP_RANGE_SIZE FIRST_3

[clang] [TSAN] add support for riscv64 (PR #68735)

2023-10-11 Thread via cfe-commits
https://github.com/hiraditya updated https://github.com/llvm/llvm-project/pull/68735 >From bcd63227792a992d6e5cd851d2fa2355d2f3c4f8 Mon Sep 17 00:00:00 2001 From: Alex Fan Date: Fri, 6 Oct 2023 12:32:38 -0700 Subject: [PATCH] [TSAN] add support for riscv64 Implements for sv39 and sv48 VMA layo

[clang] [TSAN] add support for riscv64 (PR #68735)

2023-10-11 Thread via cfe-commits
https://github.com/hiraditya updated https://github.com/llvm/llvm-project/pull/68735 >From 5b85613483861b3734edf9c94be390f2b3b0dd2a Mon Sep 17 00:00:00 2001 From: Alex Fan Date: Fri, 6 Oct 2023 12:32:38 -0700 Subject: [PATCH] add support for riscv64 Implements for sv39 and sv48 VMA layout. Us

[clang] [clang][Interp] Support AddOffset with 128bit offsets (PR #68679)

2023-10-11 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr edited https://github.com/llvm/llvm-project/pull/68679 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] LoongArch fp16,fp128 basic support (PR #68851)

2023-10-11 Thread via cfe-commits
https://github.com/Xinmudotmoe created https://github.com/llvm/llvm-project/pull/68851 Currently, there are no officially released half-precision and quad-precision floating-point instructions for the LoongArch architecture. This request aims to ensure that when there are projects that require

[clang] LoongArch fp16,fp128 basic support (PR #68851)

2023-10-11 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 9dd15f7486a30c4269b183f72c13006eb8c929f4 2ef1ddfb977da35f31f1f351ac4daf0478fff166 --

[clang] [Sema, Lex, Parse] Preprocessor embed in C and C++ (and Obj-C and Obj-C++ by-proxy) (PR #68620)

2023-10-11 Thread via cfe-commits
h-vetinari wrote: > @h-vetinari -- would you mind doing some initial cleanup on the patch for > things like rebasing, removing spurious formatting changes, naming, and the > likes? I'll try to do that! https://github.com/llvm/llvm-project/pull/68620 ___

<    1   2   3