[clang] abc2fe3 - [APFloat] Add support for f8E3M4 IEEE 754 type (#99698)

2024-07-30 Thread via cfe-commits
Author: Alexander Pivovarov Date: 2024-07-30T00:11:10-07:00 New Revision: abc2fe31fc622c4eab3766d739576110eb6f16c3 URL: https://github.com/llvm/llvm-project/commit/abc2fe31fc622c4eab3766d739576110eb6f16c3 DIFF: https://github.com/llvm/llvm-project/commit/abc2fe31fc622c4eab3766d739576110eb6f16c3

[clang] 78e7ec3 - [PS4/PS5][Driver] Allow unified-lto.c test to find .*ld.exe (#101034)

2024-07-30 Thread via cfe-commits
Author: Edd Dawson Date: 2024-07-30T09:03:21+01:00 New Revision: 78e7ec3be88bac7f3cd9ab32758156d479b0a106 URL: https://github.com/llvm/llvm-project/commit/78e7ec3be88bac7f3cd9ab32758156d479b0a106 DIFF: https://github.com/llvm/llvm-project/commit/78e7ec3be88bac7f3cd9ab32758156d479b0a106.diff LO

[clang] 518d863 - [clang][ASTImporter] Fix import of template parameter default values. (#100100)

2024-07-30 Thread via cfe-commits
Author: Balázs Kéri Date: 2024-07-30T10:25:45+02:00 New Revision: 518d8632ce54308f52614b165ee8d84f45d54e54 URL: https://github.com/llvm/llvm-project/commit/518d8632ce54308f52614b165ee8d84f45d54e54 DIFF: https://github.com/llvm/llvm-project/commit/518d8632ce54308f52614b165ee8d84f45d54e54.diff L

[clang] 533a229 - [clang][test] Write temporary files to %t

2024-07-30 Thread Dmitri Gribenko via cfe-commits
Author: Dmitri Gribenko Date: 2024-07-30T10:26:31+02:00 New Revision: 533a22941e9acee1460fbd054fbfa57b82d660e5 URL: https://github.com/llvm/llvm-project/commit/533a22941e9acee1460fbd054fbfa57b82d660e5 DIFF: https://github.com/llvm/llvm-project/commit/533a22941e9acee1460fbd054fbfa57b82d660e5.dif

[clang] 7645a76 - [clang][dataflow] Remove legacy version of `runDataflowAnalysis()`. (#101146)

2024-07-30 Thread via cfe-commits
Author: martinboehme Date: 2024-07-30T11:30:37+02:00 New Revision: 7645a7690de1c050d933a2dbe1e9156057006333 URL: https://github.com/llvm/llvm-project/commit/7645a7690de1c050d933a2dbe1e9156057006333 DIFF: https://github.com/llvm/llvm-project/commit/7645a7690de1c050d933a2dbe1e9156057006333.diff

[clang] ca8a411 - [C++20] [Modules] Always emit the inline builtins

2024-07-30 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2024-07-30T17:56:16+08:00 New Revision: ca8a4111f796fe8533e0af95557875b15becff06 URL: https://github.com/llvm/llvm-project/commit/ca8a4111f796fe8533e0af95557875b15becff06 DIFF: https://github.com/llvm/llvm-project/commit/ca8a4111f796fe8533e0af95557875b15becff06.diff LO

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

2024-07-30 Thread via cfe-commits
Author: Xing Xue Date: 2024-07-30T06:28:59-04:00 New Revision: d90fa612604b49dfc81c3f42c106fab7401322ec URL: https://github.com/llvm/llvm-project/commit/d90fa612604b49dfc81c3f42c106fab7401322ec DIFF: https://github.com/llvm/llvm-project/commit/d90fa612604b49dfc81c3f42c106fab7401322ec.diff LOG:

[clang] 803db1f - [clang][Interp][NFC] Add missing fallthrough when parsing While loops

2024-07-30 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-30T12:42:04+02:00 New Revision: 803db1f5254047b08b6887c52009d4e72e67a673 URL: https://github.com/llvm/llvm-project/commit/803db1f5254047b08b6887c52009d4e72e67a673 DIFF: https://github.com/llvm/llvm-project/commit/803db1f5254047b08b6887c52009d4e72e67a673.diff LO

[clang] 53925e3 - [clang][Interp] Fix primitive MoveFn (#101165)

2024-07-30 Thread via cfe-commits
Author: Timm Baeder Date: 2024-07-30T13:26:57+02:00 New Revision: 53925e33c5943bee7cf2fe29ca1274a42a5d5687 URL: https://github.com/llvm/llvm-project/commit/53925e33c5943bee7cf2fe29ca1274a42a5d5687 DIFF: https://github.com/llvm/llvm-project/commit/53925e33c5943bee7cf2fe29ca1274a42a5d5687.diff L

[clang] c39daa6 - [clang][Interp] Pick right dynamic type when doing virtual calls (#101166)

2024-07-30 Thread via cfe-commits
Author: Timm Baeder Date: 2024-07-30T13:38:15+02:00 New Revision: c39daa6e19800d9a1b20ec6e04b2a68149dcf89c URL: https://github.com/llvm/llvm-project/commit/c39daa6e19800d9a1b20ec6e04b2a68149dcf89c DIFF: https://github.com/llvm/llvm-project/commit/c39daa6e19800d9a1b20ec6e04b2a68149dcf89c.diff L

[clang] 26ca782 - [NFC][clang] Fix typo of `riscv_rvv_vector_bits` in AttrDocs (#101046)

2024-07-30 Thread via cfe-commits
Author: Brandon Wu Date: 2024-07-30T21:04:57+08:00 New Revision: 26ca7820ebe06369227efaa282fb2ac96c5aa74a URL: https://github.com/llvm/llvm-project/commit/26ca7820ebe06369227efaa282fb2ac96c5aa74a DIFF: https://github.com/llvm/llvm-project/commit/26ca7820ebe06369227efaa282fb2ac96c5aa74a.diff LO

[clang] 243b27f - [clang][OpenMP] Rename `varlists` to `varlist`, NFC (#101058)

2024-07-30 Thread via cfe-commits
Author: Krzysztof Parzyszek Date: 2024-07-30T08:11:09-05:00 New Revision: 243b27f7e1fbd6131d00cdcd4c06d6ce6e57a0e5 URL: https://github.com/llvm/llvm-project/commit/243b27f7e1fbd6131d00cdcd4c06d6ce6e57a0e5 DIFF: https://github.com/llvm/llvm-project/commit/243b27f7e1fbd6131d00cdcd4c06d6ce6e57a0e5

[clang] 6cb95f7 - [clang][dataflow] Remove deprecated method `AdornedCFG::getStmtToBlock()`. (#101174)

2024-07-30 Thread via cfe-commits
Author: martinboehme Date: 2024-07-30T15:13:38+02:00 New Revision: 6cb95f73e1974e5e36a6d2b0d1457c401819ffde URL: https://github.com/llvm/llvm-project/commit/6cb95f73e1974e5e36a6d2b0d1457c401819ffde DIFF: https://github.com/llvm/llvm-project/commit/6cb95f73e1974e5e36a6d2b0d1457c401819ffde.diff

[clang] dcb4399 - [libclang/python] Fix some type errors, add type annotations (#98745)

2024-07-30 Thread via cfe-commits
Author: Jannick Kremer Date: 2024-07-30T18:21:02+04:00 New Revision: dcb4399f07180bcad4632f152225309ea70f0700 URL: https://github.com/llvm/llvm-project/commit/dcb4399f07180bcad4632f152225309ea70f0700 DIFF: https://github.com/llvm/llvm-project/commit/dcb4399f07180bcad4632f152225309ea70f0700.diff

[clang] [clang-tools-extra] thread-safety: Support the new capability-based names for all related attributes. (PR #99919)

2024-07-30 Thread Pierre d'Herbemont via cfe-commits
pdherbemont wrote: > Thank you for these changes! Can you also add a release note to > `clang/docs/ReleaseNotes.rst` so users know about the new attribute spellings? They are already sort of documented as such – but will update the ReleaseNotes.rst. Does anyone know why the new names were doc

[clang] [analyzer] Assert Callee is FunctionDecl in doesFnIntendToHandleOwnership() (PR #101066)

2024-07-30 Thread via cfe-commits
https://github.com/smanna12 closed https://github.com/llvm/llvm-project/pull/101066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] bugprone-implicit-widening ignores unsigned consts (PR #101073)

2024-07-30 Thread via cfe-commits
@@ -49,8 +49,7 @@ Options If the multiplication operands are compile-time constants (like literals or are ``constexpr``) and fit within the source expression type, do not emit a - diagnostic or suggested fix. Only considers expressions where the source - expression

[clang] [clang][docs] Update Include Options Help (PR #101192)

2024-07-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sam Elliott (lenary) Changes This adds HelpTexts for some clang options that relate to include directory handling, to sync them up with what's in clang.rst (and therefore the man page). --- Full diff: https://github.com/llvm/llvm-project/

[clang] [analyzer] Assert Callee is FunctionDecl in doesFnIntendToHandleOwnership() (PR #101066)

2024-07-30 Thread via cfe-commits
smanna12 wrote: > Already under fix in #100719, I'm just a lazy bum and haven't fixed the > buildbots. I'll try to speed things up! Thanks for reviews. Closing this JIRA https://github.com/llvm/llvm-project/pull/101066 ___ cfe-commits mailing list cf

[clang] [clang-installapi] ] Fix potential null pointer dereference in file enumeration (PR #97900)

2024-07-30 Thread via cfe-commits
@@ -51,8 +51,14 @@ llvm::Expected enumerateFiles(FileManager &FM, StringRef Directory) { if (EC) return errorCodeToError(EC); +// Ensure the iterator is valid before dereferencing. +if (i == ie) smanna12 wrote: > Why does this make a differ

[clang] [clang-installapi] ] Fix potential null pointer dereference in file enumeration (PR #97900)

2024-07-30 Thread via cfe-commits
https://github.com/smanna12 closed https://github.com/llvm/llvm-project/pull/97900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-installapi] ] Fix potential null pointer dereference in file enumeration (PR #97900)

2024-07-30 Thread via cfe-commits
@@ -51,8 +51,14 @@ llvm::Expected enumerateFiles(FileManager &FM, StringRef Directory) { if (EC) return errorCodeToError(EC); +// Ensure the iterator is valid before dereferencing. +if (i == ie) + break; + // Skip files that do not exist. This usua

[clang] [clang][CUDA] Add 'noconvergent' function and statement attribute (PR #100637)

2024-07-30 Thread via cfe-commits
https://github.com/darkbuck updated https://github.com/llvm/llvm-project/pull/100637 >From d9de73264bf4d555e7e09a2c2687eae72c1fa19e Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Thu, 25 Jul 2024 15:19:15 -0400 Subject: [PATCH 1/8] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?U

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/100761 >From eb237d1b6434c16366f8095f47af1456cb776a27 Mon Sep 17 00:00:00 2001 From: yronglin Date: Fri, 26 Jul 2024 23:09:42 +0800 Subject: [PATCH 1/6] [Clang][Interp] Fix the location of uninitialized base warning

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread via cfe-commits
@@ -122,19 +123,22 @@ static bool CheckFieldsInitialized(InterpState &S, SourceLocation Loc, } // Check Fields in all bases - for (const Record::Base &B : R->bases()) { + for (unsigned I = 0, E = R->getNumBases(); I != E; ++I) { +const auto &B = *R->getBase(I);

[clang] Add debug options to clang-linker-wrapper (PR #101008)

2024-07-30 Thread via cfe-commits
@@ -581,8 +581,16 @@ Expected clang(ArrayRef InputFiles, const ArgList &Args) { if (SaveTemps) CmdArgs.push_back("-save-temps"); - if (SaveTemps && linkerSupportsLTO(Args)) -CmdArgs.push_back("-Wl,--save-temps"); + if (linkerSupportsLTO(Args)) { +if (SaveTemps

[clang] Add debug options to clang-linker-wrapper (PR #101008)

2024-07-30 Thread via cfe-commits
https://github.com/macurtis-amd closed https://github.com/llvm/llvm-project/pull/101008 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. Alright, that addresses all the changes I was concerned about, so this lgtm, but I’ll leave it to @tbaederr to approve this for good since I’m not really familiar w/ the interpreter... https://github.com/llvm/llvm-project/pull/100761 ___

[clang] [libcxx] Reapply "[Clang] Implement resolution for CWG1835 (#92957, #98547)" (PR #100425)

2024-07-30 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 842a332f11f53c698fa0560505e533ecdca28876 e3829cd5d915958101e094a6354869a755198083 --e

[clang] [clang-tools-extra] thread-safety: Support the new capability-based names for all related attributes. (PR #99919)

2024-07-30 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > Thank you for these changes! Can you also add a release note to > > `clang/docs/ReleaseNotes.rst` so users know about the new attribute > > spellings? > > They are already sort of documented as such – but will update the > ReleaseNotes.rst. > > Does anyone know why th

[clang] RFC: [cmake] Export CLANG_RESOURCE_DIR in ClangConfig (PR #97197)

2024-07-30 Thread Chris B via cfe-commits
llvm-beanz wrote: @etcwilde's point above is that the `CLANG_RESOURCE_DIR` is already available in CMake for projects that import the Clang package or are built in-tree with Clang. You can get the directory via CMake with: ```cmake get_target_property(CLANG_IMPORT_HEADERS clang-resource-header

[clang] [libcxx] Reapply "[Clang] Implement resolution for CWG1835 (#92957, #98547)" (PR #100425)

2024-07-30 Thread Krystian Stasiowski via cfe-commits
sdkrystian wrote: I've further improved `isTemplateArgumentList` so we only consider `<` as the start of a potential template-argument-list if it follows an _identifier_ or the name in an _operator-function-id_/_literal-operator-id_ when trying to find the closing `>`. Also, explicit casts (a

[clang] [libcxx] Reapply "[Clang] Implement resolution for CWG1835 (#92957, #98547)" (PR #100425)

2024-07-30 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian edited https://github.com/llvm/llvm-project/pull/100425 ___ 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 Xing Xue via cfe-commits
https://github.com/xingxue-ibm created https://github.com/llvm/llvm-project/pull/101196 This patch fixes/unifies AIX target triples used in libc++, libc++abi, and libunwind LIT tests. >From d3fb26a629ec9761037065d1dba67fd8a93414bf Mon Sep 17 00:00:00 2001 From: Xing Xue Date: Tue, 30 Jul 2024

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

2024-07-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxx Author: Xing Xue (xingxue-ibm) Changes This patch fixes/unifies AIX target triples used in libc++, libc++abi, and libunwind LIT tests. --- Full diff: https://github.com/llvm/llvm-project/pull/101196.diff 8 Files Affected: - (modified) libcxx/

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

2024-07-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Xing Xue (xingxue-ibm) Changes This patch fixes/unifies AIX target triples used in libc++, libc++abi, and libunwind LIT tests. --- Full diff: https://github.com/llvm/llvm-project/pull/101196.diff 8 Files Affected: - (modified) libc

[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

[clang] [llvm] [OpenMP]Generate implicit default mapper for mapping array section. (PR #101101)

2024-07-30 Thread via cfe-commits
@@ -5556,6 +5556,7 @@ class OMPMappableExprListClause : public OMPVarListClause, MapperIdInfo = MapperId; } +public: jyu2-git wrote: But I need to call this function after I create new mapper? Do you mean there is other way to call this function? Tha

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

2024-07-30 Thread Xing Xue via cfe-commits
@@ -6,7 +6,7 @@ // //===--===// -// REQUIRES: target={{powerpc.*-ibm-aix.*}} +// REQUIRES: target={{.+}}-aix{{.*}} xingxue-ibm wrote: > Why remove the vendor in the vendor specific directory

[clang] [flang] [Flang][Driver] Introduce -fopenmp-targets offloading option (PR #100152)

2024-07-30 Thread Sergio Afonso via cfe-commits
https://github.com/skatrak updated https://github.com/llvm/llvm-project/pull/100152 >From cf26a318d3b49eb6217f29405cee9fd2c20f8e8a Mon Sep 17 00:00:00 2001 From: Sergio Afonso Date: Tue, 23 Jul 2024 16:19:55 +0100 Subject: [PATCH 1/5] [Flang][Driver] Introduce -fopenmp-targets offloading optio

[clang] [flang] [Flang][Driver] Introduce -fopenmp-targets offloading option (PR #100152)

2024-07-30 Thread Sergio Afonso via cfe-commits
@@ -492,6 +493,18 @@ void Flang::addOffloadOptions(Compilation &C, const InputInfoList &Inputs, if (Args.hasArg(options::OPT_nogpulib)) CmdArgs.push_back("-nogpulib"); } + + // For all the host OpenMP offloading compile jobs we need to pass the targets + // info

[clang] [flang] [Flang][Driver] Introduce -fopenmp-targets offloading option (PR #100152)

2024-07-30 Thread Sergio Afonso via cfe-commits
@@ -492,6 +493,18 @@ void Flang::addOffloadOptions(Compilation &C, const InputInfoList &Inputs, if (Args.hasArg(options::OPT_nogpulib)) CmdArgs.push_back("-nogpulib"); } + + // For all the host OpenMP offloading compile jobs we need to pass the targets + // info

[clang] [flang] [Flang][Driver] Introduce -fopenmp-targets offloading option (PR #100152)

2024-07-30 Thread Sergio Afonso via cfe-commits
@@ -492,6 +493,18 @@ void Flang::addOffloadOptions(Compilation &C, const InputInfoList &Inputs, if (Args.hasArg(options::OPT_nogpulib)) CmdArgs.push_back("-nogpulib"); } + + // For all the host OpenMP offloading compile jobs we need to pass the targets + // info

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

2024-07-30 Thread Xing Xue 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{{.*}} x

[clang] [clang-tools-extra] [clang-tidy] bugprone-implicit-widening ignores unsigned consts (PR #101073)

2024-07-30 Thread Chris Warner via cfe-commits
@@ -49,8 +49,7 @@ Options If the multiplication operands are compile-time constants (like literals or are ``constexpr``) and fit within the source expression type, do not emit a - diagnostic or suggested fix. Only considers expressions where the source - expression

[clang] [clang-tools-extra] [clang-tidy] bugprone-implicit-widening ignores unsigned consts (PR #101073)

2024-07-30 Thread via cfe-commits
@@ -49,8 +49,7 @@ Options If the multiplication operands are compile-time constants (like literals or are ``constexpr``) and fit within the source expression type, do not emit a - diagnostic or suggested fix. Only considers expressions where the source - expression

[clang] [clang-tools-extra] [clang-tidy] bugprone-implicit-widening ignores unsigned consts (PR #101073)

2024-07-30 Thread Chris Warner via cfe-commits
https://github.com/cwarner-8702 updated https://github.com/llvm/llvm-project/pull/101073 >From 39208a7b73893d1eef2078b3d212c92eb58e4457 Mon Sep 17 00:00:00 2001 From: Chris Warner Date: Wed, 17 Jul 2024 11:22:39 -0700 Subject: [PATCH 1/2] [clang-tidy] bugprone-implicit-widening ignores unsigned

[clang] [flang] [Flang][Driver] Introduce -fopenmp-targets offloading option (PR #100152)

2024-07-30 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space approved this pull request. Thanks for addressing my feedback, LGTM https://github.com/llvm/llvm-project/pull/100152 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[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: But then we should be able to hoist these tests out of the

[clang] [clang][NFC] Make OffloadLTOMode getter a separate method (PR #101200)

2024-07-30 Thread via cfe-commits
https://github.com/macurtis-amd created https://github.com/llvm/llvm-project/pull/101200 IMO, improves readability and makes it easier to find the places where we are getting the offload lto mode. >From 72a4391bd2508d365e44b17fada3527b951da68c Mon Sep 17 00:00:00 2001 From: Matthew Curtis Dat

[clang] [clang][NFC] Make OffloadLTOMode getter a separate method (PR #101200)

2024-07-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: None (macurtis-amd) Changes IMO, improves readability and makes it easier to find the places where we are getting the offload lto mode. --- Full diff: https://github.com/llvm/llvm-project/pull/101200.diff 7 Files Affected: - (

[clang] [clang][NFC] Make OffloadLTOMode getter a separate method (PR #101200)

2024-07-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: None (macurtis-amd) Changes IMO, improves readability and makes it easier to find the places where we are getting the offload lto mode. --- Full diff: https://github.com/llvm/llvm-project/pull/101200.diff 7 Files Affected: - (mo

[clang] [clang][NFC] Make OffloadLTOMode getter a separate method (PR #101200)

2024-07-30 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 8fc329421b2e3bc5cdda98ce303ea3b07af58ebc 72a4391bd2508d365e44b17fada3527b951da68c --e

[clang] [clang][NFC] Make OffloadLTOMode getter a separate method (PR #101200)

2024-07-30 Thread via cfe-commits
https://github.com/macurtis-amd updated https://github.com/llvm/llvm-project/pull/101200 >From 8af6a8f1432e952cae094d787170372f585f5a41 Mon Sep 17 00:00:00 2001 From: Matthew Curtis Date: Tue, 23 Jul 2024 11:59:53 -0500 Subject: [PATCH] [clang][NFC] Make OffloadLTOMode getter a separate method

[clang] [lld] [llvm] [LTO] enable `ObjCARCContractPass` only on optimized build (PR #101114)

2024-07-30 Thread Steven Wu via cfe-commits
@@ -588,12 +588,6 @@ bool EmitAssemblyHelper::AddEmitPasses(legacy::PassManager &CodeGenPasses, // this also adds codegenerator level optimization passes. CodeGenFileType CGFT = getCodeGenFileType(Action); - // Add ObjC ARC final-cleanup optimizations. This is done as pa

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread Timm Baeder via cfe-commits
@@ -122,19 +124,21 @@ static bool CheckFieldsInitialized(InterpState &S, SourceLocation Loc, } // Check Fields in all bases - for (const Record::Base &B : R->bases()) { + for (auto [I, B] : llvm::enumerate(R->bases())) { Pointer P = BasePtr.atField(B.Offset);

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread Timm Baeder via cfe-commits
@@ -122,19 +124,21 @@ static bool CheckFieldsInitialized(InterpState &S, SourceLocation Loc, } // Check Fields in all bases - for (const Record::Base &B : R->bases()) { + for (auto [I, B] : llvm::enumerate(R->bases())) { Pointer P = BasePtr.atField(B.Offset);

[clang] [PS4][Driver] Only pass -lto-debug-options to linker when necessary (PR #101202)

2024-07-30 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd created https://github.com/llvm/llvm-project/pull/101202 The PS4 linker doesn't accept an empty LTO options string. Passing nothing is also consistent with other drivers. SIE tracker: TOOLCHAIN-16575 >From 4ee96bd211de1c1499c1860988af1f8369e20d93 Mon Sep 17

[clang] [PS4][Driver] Only pass -lto-debug-options to linker when necessary (PR #101202)

2024-07-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Edd Dawson (playstation-edd) Changes The PS4 linker doesn't accept an empty LTO options string. Passing nothing is also consistent with other drivers. SIE tracker: TOOLCHAIN-16575 --- Full diff: https://github.com/llvm/llvm-projec

[clang] [libclang/python] Add strict typing to clang Python bindings (#76664) (PR #78114)

2024-07-30 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum updated https://github.com/llvm/llvm-project/pull/78114 >From 717c43a4c027681fa957ed35a365400c129ff0b1 Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Fri, 12 Jul 2024 15:08:06 +0100 Subject: [PATCH] [libclang/python] Add strict typing to clang Python binding

[clang] [libclang/python] Add strict typing to clang Python bindings (#76664) (PR #78114)

2024-07-30 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r dcb4399f07180bcad4632f152225309ea70f0700...717c43a4c027681fa957ed35a365400c129ff0b1 clang

[clang] [lld] [llvm] [LTO] enable `ObjCARCContractPass` only on optimized build (PR #101114)

2024-07-30 Thread Peter Rong via cfe-commits
@@ -588,12 +588,6 @@ bool EmitAssemblyHelper::AddEmitPasses(legacy::PassManager &CodeGenPasses, // this also adds codegenerator level optimization passes. CodeGenFileType CGFT = getCodeGenFileType(Action); - // Add ObjC ARC final-cleanup optimizations. This is done as pa

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

2024-07-30 Thread Xing Xue via cfe-commits
@@ -6,7 +6,7 @@ // //===--===// -// REQUIRES: target={{powerpc.*-ibm-aix.*}} +// REQUIRES: target={{.+}}-aix{{.*}} xingxue-ibm wrote: I see what you mean, thanks! I can do it if we think it

[clang] [lld] [llvm] [LTO] enable `ObjCARCContractPass` only on optimized build (PR #101114)

2024-07-30 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted edited https://github.com/llvm/llvm-project/pull/101114 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTImporter] Fix typos in trailing return testing on lambda p… (PR #101031)

2024-07-30 Thread Ding Fei via cfe-commits
https://github.com/danix800 ready_for_review https://github.com/llvm/llvm-project/pull/101031 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/100761 >From eb237d1b6434c16366f8095f47af1456cb776a27 Mon Sep 17 00:00:00 2001 From: yronglin Date: Fri, 26 Jul 2024 23:09:42 +0800 Subject: [PATCH 1/7] [Clang][Interp] Fix the location of uninitialized base warning

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread via cfe-commits
@@ -122,19 +124,21 @@ static bool CheckFieldsInitialized(InterpState &S, SourceLocation Loc, } // Check Fields in all bases - for (const Record::Base &B : R->bases()) { + for (auto [I, B] : llvm::enumerate(R->bases())) { Pointer P = BasePtr.atField(B.Offset);

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread via cfe-commits
@@ -122,19 +124,21 @@ static bool CheckFieldsInitialized(InterpState &S, SourceLocation Loc, } // Check Fields in all bases - for (const Record::Base &B : R->bases()) { + for (auto [I, B] : llvm::enumerate(R->bases())) { Pointer P = BasePtr.atField(B.Offset);

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/100761 >From eb237d1b6434c16366f8095f47af1456cb776a27 Mon Sep 17 00:00:00 2001 From: yronglin Date: Fri, 26 Jul 2024 23:09:42 +0800 Subject: [PATCH 1/8] [Clang][Interp] Fix the location of uninitialized base warning

[clang] [lld] [llvm] [LTO] enable `ObjCARCContractPass` only on optimized build (PR #101114)

2024-07-30 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted edited https://github.com/llvm/llvm-project/pull/101114 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread via cfe-commits
https://github.com/yronglin edited https://github.com/llvm/llvm-project/pull/100761 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread via cfe-commits
https://github.com/yronglin edited https://github.com/llvm/llvm-project/pull/100761 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTImporter] Fix typos in trailing return testing on lambda p… (PR #101031)

2024-07-30 Thread Ding Fei via cfe-commits
danix800 wrote: This commit surfaces another crash on null stmt inside `CXXDeductionGuideDecl`: ```c namespace foo { template struct is_same; template struct enable_if {}; template using enable_if_t = typename enable_if<_Cond, _Tp>::type; template inline constexpr bool is_sa

[clang] [libclang/python] Add strict typing to clang Python bindings (#76664) (PR #78114)

2024-07-30 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum updated https://github.com/llvm/llvm-project/pull/78114 >From d16056310b86aaa98011cb8551c38365f0e7748f Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Fri, 12 Jul 2024 15:08:06 +0100 Subject: [PATCH] [libclang/python] Add strict typing to clang Python binding

[clang] [llvm] [Clang] C++20 Coroutines: Introduce Frontend Attribute [[clang::coro_await_elidable]] (PR #99282)

2024-07-30 Thread Yuxuan Chen via cfe-commits
@@ -8108,6 +8108,24 @@ but do not pass them to the underlying coroutine or pass them by value. }]; } +def CoroAwaitElidableDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ +The ``[[clang::coro_await_elidable]]`` is a class attribute which can be applie

[clang] [libclang/python] Add strict typing to clang Python bindings (#76664) (PR #78114)

2024-07-30 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum updated https://github.com/llvm/llvm-project/pull/78114 >From 883bda054bb6a70edd2f2d738ffccff3a0b47a35 Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Fri, 12 Jul 2024 15:08:06 +0100 Subject: [PATCH] [libclang/python] Add strict typing to clang Python binding

[clang] [llvm] [Clang] C++20 Coroutines: Introduce Frontend Attribute [[clang::coro_await_elidable]] (PR #99282)

2024-07-30 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/99282 >From eb1b3560a0ed3ab14f07997cbc37158496a03343 Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Tue, 4 Jun 2024 23:22:00 -0700 Subject: [PATCH] [Clang] Introduce [[clang::coro_await_elidable]] --- clang/

[clang] 2acf77f - [clang] Update argument checking tablegen code to use a 'full' name (#99993)

2024-07-30 Thread via cfe-commits
Author: Mike Rice Date: 2024-07-30T10:07:16-07:00 New Revision: 2acf77f987331c05520c5bfd849326909ffce983 URL: https://github.com/llvm/llvm-project/commit/2acf77f987331c05520c5bfd849326909ffce983 DIFF: https://github.com/llvm/llvm-project/commit/2acf77f987331c05520c5bfd849326909ffce983.diff LOG

[clang] [clang] Update argument checking tablegen code to use a 'full' name (PR #99993)

2024-07-30 Thread Mike Rice via cfe-commits
https://github.com/mikerice1969 closed https://github.com/llvm/llvm-project/pull/3 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Update argument checking tablegen code to use a 'full' name (PR #99993)

2024-07-30 Thread Oliver Hunt via cfe-commits
ojhunt wrote: @AaronBallman hmmm, looks like we may have lost some diff at some point, I'll investigate to work out what is going on https://github.com/llvm/llvm-project/pull/3 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] d69d981 - [Tooling] -fsyntax-only adjuster: remove -c and -S

2024-07-30 Thread via cfe-commits
Author: Fangrui Song Date: 2024-07-30T10:13:18-07:00 New Revision: d69d981d77ee2c9aa740e192d81dabb53c7c3cda URL: https://github.com/llvm/llvm-project/commit/d69d981d77ee2c9aa740e192d81dabb53c7c3cda DIFF: https://github.com/llvm/llvm-project/commit/d69d981d77ee2c9aa740e192d81dabb53c7c3cda.diff

[clang] [docs][msan] List common cases reported by msan (PR #101105)

2024-07-30 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/101105 >From 0cc4d622752005ff3c615d0d4eafe1c35d9c Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Mon, 29 Jul 2024 17:06:32 -0700 Subject: [PATCH 1/3] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?

[clang] [Tooling] -fsyntax-only adjuster: remove -c and -S (PR #101103)

2024-07-30 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/101103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Add Type::isPointerOrReferenceType() (PR #101206)

2024-07-30 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/101206 Seems to be a common pattern. >From be90760736b0b72e96d0aee5af521207811aebfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 30 Jul 2024 19:10:41 +0200 Subject: [PATCH] [clang][NFC] Add

[clang] 1f3b0f4 - [docs][msan] List common cases reported by msan (#101105)

2024-07-30 Thread via cfe-commits
Author: Vitaly Buka Date: 2024-07-30T10:14:09-07:00 New Revision: 1f3b0f4da0aa5142d7de3e6723538d35c34c9008 URL: https://github.com/llvm/llvm-project/commit/1f3b0f4da0aa5142d7de3e6723538d35c34c9008 DIFF: https://github.com/llvm/llvm-project/commit/1f3b0f4da0aa5142d7de3e6723538d35c34c9008.diff L

[clang] [docs][msan] List common cases reported by msan (PR #101105)

2024-07-30 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/101105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Add Type::isPointerOrReferenceType() (PR #101206)

2024-07-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-analysis Author: Timm Baeder (tbaederr) Changes Seems to be a common pattern. --- Full diff: https://github.com/llvm/llvm-project/pull/101206.diff 12 Files Affected: - (modified) clang/include/clang/AST/Type.h (+5) -

[clang] [docs][msan] List common cases reported by msan (PR #101105)

2024-07-30 Thread John Stiles via cfe-commits
@@ -8,11 +8,18 @@ MemorySanitizer Introduction -MemorySanitizer is a detector of uninitialized reads. It consists of a +MemorySanitizer is a detector of uninitialized memory use. It consists of a compiler instrumentation module and a run-time library. Typical

[clang] [clang][NFC] Add Type::isPointerOrReferenceType() (PR #101206)

2024-07-30 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/101206 >From 22debffc8fd3e0e5120f4a968ff788a040955448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 30 Jul 2024 19:10:41 +0200 Subject: [PATCH] [clang][NFC] Add Type::isPointerOrReferenceType

[clang] 5ea9d3d - [docs][msan] Improve language consistency

2024-07-30 Thread via cfe-commits
Author: Vitaly Buka Date: 2024-07-30T10:17:57-07:00 New Revision: 5ea9d3d432350b0f63df61026f4eacdd504adee8 URL: https://github.com/llvm/llvm-project/commit/5ea9d3d432350b0f63df61026f4eacdd504adee8 DIFF: https://github.com/llvm/llvm-project/commit/5ea9d3d432350b0f63df61026f4eacdd504adee8.diff L

[clang] [Driver] Introduce ffp-model=aggressive (PR #100453)

2024-07-30 Thread Aaron Ballman via cfe-commits
@@ -102,6 +102,16 @@ Deprecated Compiler Flags Modified Compiler Flags --- +- The ``-ffp-model`` option has been updated to enable a more limited set of + optimizations when the ``fast`` argument is used and to accept a new argument, + ``aggressive``. Th

[clang] [clang] Update argument checking tablegen code to use a 'full' name (PR #99993)

2024-07-30 Thread Oliver Hunt via cfe-commits
ojhunt wrote: @AaronBallman ah with more context, I see we didn't actually land "// Do something if not an identifier" (implying partial commit history at some point". I'm looking at exactly what happens, or if we're missing some test cases -- it's possible that when written there was the inte

[clang] [llvm] [Clang] C++20 Coroutines: Introduce Frontend Attribute [[clang::coro_await_elidable]] (PR #99282)

2024-07-30 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/99282 >From c6e8d1f1a98174b8ca7d2f94a51d9a245eae58eb Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Tue, 4 Jun 2024 23:22:00 -0700 Subject: [PATCH] [Clang] Introduce [[clang::coro_await_elidable]] --- clang/

[clang] [clang] Generate nuw GEPs for struct member accesses (PR #99538)

2024-07-30 Thread Hari Limaye via cfe-commits
hazzlim wrote: > > `CGBuilder` is just aiming to provide an `Address` overload of LLVM's > > `CreateStructGEP`. It seems wrong for two overloads to have subtly > > different behavior. > > Is there a reason why LLVM's `CreateStructGEP` doesn't add `nuw` itself? > > Good point - I can see that i

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread Timm Baeder via cfe-commits
@@ -122,19 +124,18 @@ static bool CheckFieldsInitialized(InterpState &S, SourceLocation Loc, } // Check Fields in all bases - for (const Record::Base &B : R->bases()) { + for (auto [I, B] : llvm::enumerate(R->bases())) { tbaederr wrote: Does `auto &[I,

[clang] [llvm] [OpenMP]Generate implicit default mapper for mapping array section. (PR #101101)

2024-07-30 Thread via cfe-commits
https://github.com/jyu2-git updated https://github.com/llvm/llvm-project/pull/101101 >From 1f6c326c6b93ebdbb9f4b35adfc903409ab67620 Mon Sep 17 00:00:00 2001 From: Jennifer Yu Date: Mon, 29 Jul 2024 14:18:48 -0700 Subject: [PATCH 1/2] Generate implicit default mapper for mapping array section.

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-30 Thread via cfe-commits
@@ -122,19 +124,18 @@ static bool CheckFieldsInitialized(InterpState &S, SourceLocation Loc, } // Check Fields in all bases - for (const Record::Base &B : R->bases()) { + for (auto [I, B] : llvm::enumerate(R->bases())) { Sirraide wrote: I believe `llvm

[clang] [llvm] [OpenMP]Generate implicit default mapper for mapping array section. (PR #101101)

2024-07-30 Thread via cfe-commits
@@ -5753,6 +5753,155 @@ static ExprResult buildUserDefinedMapperRef(Sema &SemaRef, Scope *S, QualType Type, Expr *UnresolvedMapper); +static std::pair +buildImplicitMap(Sema &S, QualType B

  1   2   3   4   >