[clang] 7ca7bcb - [clang-repl] Ensure clang-repl accepts all C keywords supported in all language models (#142749)

2025-06-04 Thread via cfe-commits
Author: Anutosh Bhat Date: 2025-06-05T11:23:50+05:30 New Revision: 7ca7bcb7d8dcf26fc0281697fe47aa6cdb3884c0 URL: https://github.com/llvm/llvm-project/commit/7ca7bcb7d8dcf26fc0281697fe47aa6cdb3884c0 DIFF: https://github.com/llvm/llvm-project/commit/7ca7bcb7d8dcf26fc0281697fe47aa6cdb3884c0.diff

[clang] [CIR] Upstream TernaryOp for VectorType (PR #142393)

2025-06-04 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/142393 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream TernaryOp for VectorType (PR #142393)

2025-06-04 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/142393 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-04 Thread Henrich Lauko via cfe-commits
xlauko wrote: Since https://github.com/llvm/llvm-project/pull/14/ was merged, please mirror additional changes from https://github.com/llvm/clangir/pull/1626 before merging. https://github.com/llvm/llvm-project/pull/139827 ___ cfe-commits mailing

[clang] 627e49e - [AST] Fix an unused-function warning (NFC)

2025-06-04 Thread Jie Fu via cfe-commits
Author: Jie Fu Date: 2025-06-05T14:11:30+08:00 New Revision: 627e49e2491ab7750501d84a5804632074c6af54 URL: https://github.com/llvm/llvm-project/commit/627e49e2491ab7750501d84a5804632074c6af54 DIFF: https://github.com/llvm/llvm-project/commit/627e49e2491ab7750501d84a5804632074c6af54.diff LOG: [

[clang] [llvm] Add -funique-source-file-identifier flag. (PR #142901)

2025-06-04 Thread Fangrui Song via cfe-commits
MaskRay wrote: Should call this "option". Within LLVM, we use flag for options without a value. https://github.com/llvm/llvm-project/pull/142901 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang-tools-extra] added option `google-readability-namespace-comments.AllowNoNamespaceComments` (PR #124265)

2025-06-04 Thread Thorsten Klein via cfe-commits
https://github.com/thorsten-klein updated https://github.com/llvm/llvm-project/pull/124265 >From b1bfe0682f9889ae792ada546d3e4f1cd86acf69 Mon Sep 17 00:00:00 2001 From: "Klein, Thorsten (GDE-EDSI1)" Date: Fri, 24 Jan 2025 13:46:24 +0100 Subject: [PATCH] added option AllowNoNamespaceComments for

[clang-tools-extra] [clangd] Implement LSP 3.17 positionEncoding (PR #142903)

2025-06-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: someoneinjd (someoneinjd) Changes This PR adds support for the `positionEncoding` client capability introduced in LSP 3.17. Clangd can now negotiate the position encoding with the client during initialization. --- Full diff:

[clang-tools-extra] [clangd] Implement LSP 3.17 positionEncoding (PR #142903)

2025-06-04 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang-tools-extra] [clangd] Implement LSP 3.17 positionEncoding (PR #142903)

2025-06-04 Thread via cfe-commits
https://github.com/someoneinjd created https://github.com/llvm/llvm-project/pull/142903 This PR adds support for the `positionEncoding` client capability introduced in LSP 3.17. Clangd can now negotiate the position encoding with the client during initialization. >From 5717ca8166a019e4c00709

[clang] [clang-repl] Ensure clang-repl accepts all C keywords supported in all language models (PR #142749)

2025-06-04 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 closed https://github.com/llvm/llvm-project/pull/142749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add -funique-source-file-identifier flag. (PR #142901)

2025-06-04 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/142901 >From 74acb06bb339909bc2950cecb95eb61df49c0379 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 4 Jun 2025 22:37:09 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?U

[clang] [StaticAnalyzer] Fix tryExpandAsInteger's failures on PCH macros (PR #142722)

2025-06-04 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 updated https://github.com/llvm/llvm-project/pull/142722 >From 3bd12ac6bb3c47b5e977cffec019df15a15426fc Mon Sep 17 00:00:00 2001 From: Ziqing Luo Date: Wed, 4 Jun 2025 12:29:53 +0800 Subject: [PATCH 1/2] [StaticAnalyzer] Fix tryExpandAsInteger's failures on macr

[clang] [llvm] [llvm][RISCV] Make zvknhb imply zvknha (PR #142896)

2025-06-04 Thread Jim Lin via cfe-commits
https://github.com/tclin914 approved this pull request. Refer to https://github.com/riscv/riscv-crypto/blob/main/doc/vector/riscv-crypto-vector-zvknh.adoc. LGTM https://github.com/llvm/llvm-project/pull/142896 ___ cfe-commits mailing list cfe-commits

[clang] [StaticAnalyzer] Fix tryExpandAsInteger's failures on PCH macros (PR #142722)

2025-06-04 Thread Ziqing Luo via cfe-commits
ziqingluo-90 wrote: CC @dtarditi https://github.com/llvm/llvm-project/pull/142722 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add check for assignment or comparision operators' operand in `readability-math-missing-parentheses` (PR #141345)

2025-06-04 Thread Baranov Victor via cfe-commits
vbvictor wrote: @flovent, please change email from private to public in github settings If you wish to have actual email written in commit. https://github.com/llvm/llvm-project/pull/141345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [llvm] [llvm][RISCV] Make zvknhb imply zvknha (PR #142896)

2025-06-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brandon Wu (4vtomat) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/142896.diff 5 Files Affected: - (modified) clang/include/clang/Basic/riscv_vector.td (+3-3) - (modified) clang/test/Driver/print-enabled-extensions/

[clang] [llvm] [llvm][RISCV] Make zvknhb imply zvknha (PR #142896)

2025-06-04 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/142896 None >From f8279f47ea299ba45496c7146ace152fd3715d48 Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Wed, 4 Jun 2025 21:41:46 -0700 Subject: [PATCH] [llvm][RISCV] Make zvknhb imply zvknha --- clang/include/cla

[clang] [Modules] Don't fail when an unused textual header is missing. (PR #138227)

2025-06-04 Thread Volodymyr Sapsai via cfe-commits
vsapsai wrote: I'll be busy during WWDC week too, so no real changes are expected in the next 2 weeks. https://github.com/llvm/llvm-project/pull/138227 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang][CFG] Fix assertion failure in checkIncorrectLogicOperator (PR #142897)

2025-06-04 Thread Ziqing Luo via cfe-commits
ziqingluo-90 wrote: Godbolt example: https://godbolt.org/z/6dv3Kearx CC @YutongZhuu as this issue was first introduced in https://github.com/YutongZhuu/llvm-project/commit/9ae3368b3b912ae425b2fbe9a59949979286744f https://github.com/llvm/llvm-project/pull/142897

[clang] [clang][CFG] Fix assertion failure in checkIncorrectLogicOperator (PR #142897)

2025-06-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Ziqing Luo (ziqingluo-90) Changes `checkIncorrectLogicOperator` checks if an expression, for example `x != 0 || x != 1.0`, is always true or false by comparing the two literals `0` and `1.0`. But in case `x` is a 16-bit float, t

[clang] [clang][CFG] Fix assertion failure in checkIncorrectLogicOperator (PR #142897)

2025-06-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ziqing Luo (ziqingluo-90) Changes `checkIncorrectLogicOperator` checks if an expression, for example `x != 0 || x != 1.0`, is always true or false by comparing the two literals `0` and `1.0`. But in case `x` is a 16-bit float, the two li

[clang] [clang][CFG] Fix assertion failure in checkIncorrectLogicOperator (PR #142897)

2025-06-04 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 created https://github.com/llvm/llvm-project/pull/142897 `checkIncorrectLogicOperator` checks if an expression, for example `x != 0 || x != 1.0`, is always true or false by comparing the two literals `0` and `1.0`. But in case `x` is a 16-bit float, the two lit

[clang] [llvm] [llvm][RISCV] Make zvknhb imply zvknha (PR #142896)

2025-06-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Brandon Wu (4vtomat) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/142896.diff 5 Files Affected: - (modified) clang/include/clang/Basic/riscv_vector.td (+3-3) - (modified) clang/test/Driver/print-enabled-ex

[clang] [clang][bytecode] Save Constexpr bit in Function (PR #142793)

2025-06-04 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/142793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 478bdd8 - [clang][bytecode] Save Constexpr bit in Function (#142793)

2025-06-04 Thread via cfe-commits
Author: Timm Baeder Date: 2025-06-05T06:38:48+02:00 New Revision: 478bdd8b9023612a4ef25d50973064e699a95d5b URL: https://github.com/llvm/llvm-project/commit/478bdd8b9023612a4ef25d50973064e699a95d5b DIFF: https://github.com/llvm/llvm-project/commit/478bdd8b9023612a4ef25d50973064e699a95d5b.diff L

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Kazu Hirata via cfe-commits
@@ -90,4 +66,4 @@ computeUndriftMap(Module &M, IndexedInstrProfReader *MemProfReader, } // namespace memprof } // namespace llvm -#endif +#endif kazutakahirata wrote: nit: could we end with a newline here? A diff involving an unterminated line looks ugly.

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks for doing this! https://github.com/llvm/llvm-project/pull/142811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata edited https://github.com/llvm/llvm-project/pull/142811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Link libgcc_s.1.dylib when building for macOS 10.5 and older (PR #141401)

2025-06-04 Thread via cfe-commits
https://github.com/Un1q32 updated https://github.com/llvm/llvm-project/pull/141401 >From 3cf20444591e70a8a6d8782048ca4f6c0e22 Mon Sep 17 00:00:00 2001 From: Un1q32 Date: Mon, 27 Jan 2025 18:00:34 -0500 Subject: [PATCH 1/4] [Clang] Link libgcc_s.1.dylib when building for macOS 10.5 and olde

[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

2025-06-04 Thread Matheus Izvekov via cfe-commits
@@ -2982,6 +2982,7 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args, #undef FRONTEND_OPTION_WITH_MARSHALLING Opts.ProgramAction = frontend::ParseSyntaxOnly; + mizvekov wrote: Unrelated change. https://github.com/llvm/llvm-project/pull

[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

2025-06-04 Thread Matheus Izvekov via cfe-commits
@@ -813,19 +813,19 @@ changes to one object won't affect the others, the object's initializer will run once per copy, etc. Specifically, this warning fires when it detects an object which: - 1. Is defined as ``inline`` in a header file (so it might get compiled into multipl

[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

2025-06-04 Thread Matheus Izvekov via cfe-commits
@@ -4286,6 +4286,16 @@ void Driver::handleArguments(Compilation &C, DerivedArgList &Args, YcArg = YuArg = nullptr; } + Arg *IncludePCHArg = Args.getLastArg(options::OPT_include_pch); + if (IncludePCHArg && (FinalPhase == phases::Preprocess || +

[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

2025-06-04 Thread Matheus Izvekov via cfe-commits
@@ -31,6 +31,16 @@ option: $ clang -cc1 -include-pch test.h.pch test.c -o test.s +To ignore PCH options, use the option `-ignore-pch`: + +.. code-block:: bash + + $ clang -cc1 test.h -emit-pch -ignore-pch -o test.h.pch + $ clang -cc1 -include-pch test.h.pch -ignore-pch te

[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

2025-06-04 Thread Matheus Izvekov via cfe-commits
@@ -3348,6 +3348,9 @@ defm pch_codegen: OptInCC1FFlag<"pch-codegen", "Generate ", "Do not generate ", "code for uses of this PCH that assumes an explicit object file will be built for the PCH">; defm pch_debuginfo: OptInCC1FFlag<"pch-debuginfo", "Generate ", "Do not generat

[clang] [clang] Add regression tests for narrowing with is_constant_evaluated. (PR #142885)

2025-06-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Eli Friedman (efriedma-quic) Changes As discussed in #142707, in the context of determining whether a conversion is a narrowing conversion, is_constant_evaluation should be false, even it's a subexpression of a manifestly constant-evaluat

[clang] [clang] Add regression tests for narrowing with is_constant_evaluated. (PR #142885)

2025-06-04 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic created https://github.com/llvm/llvm-project/pull/142885 As discussed in #142707, in the context of determining whether a conversion is a narrowing conversion, is_constant_evaluation should be false, even it's a subexpression of a manifestly constant-evaluated

[clang] [compiler-rt] [llvm] [DRAFT][memprof][darwin] Support memprof on Darwin platform and add binary access profile (PR #142884)

2025-06-04 Thread via cfe-commits
https://github.com/SharonXSharon updated https://github.com/llvm/llvm-project/pull/142884 >From 0704f57845fbcd9dac8e8b26a54474f552ee2a60 Mon Sep 17 00:00:00 2001 From: Sharon Xu Date: Wed, 4 Jun 2025 17:55:27 -0700 Subject: [PATCH 1/2] [memprof][darwin] Support memprof on Darwin platform and a

[clang] [compiler-rt] [llvm] [DRAFT][memprof][darwin] Support memprof on Darwin platform and add binary access profile (PR #142884)

2025-06-04 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 HEAD~1 HEAD --extensions h,c,cpp,inc -- clang/test/Driver/fmemprof-darwin.c compiler

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Teresa Johnson via cfe-commits
@@ -0,0 +1,658 @@ +//===- MemProfInstrumentation.cpp - memory allocation and access profiler +// instrumentation ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Teresa Johnson via cfe-commits
https://github.com/teresajohnson approved this pull request. Couple comments below but otherwise lgtm https://github.com/llvm/llvm-project/pull/142811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Teresa Johnson via cfe-commits
@@ -58,97 +43,11 @@ namespace llvm { extern cl::opt PGOWarnMissing; extern cl::opt NoPGOWarnMismatch; extern cl::opt NoPGOWarnMismatchComdatWeak; +extern cl::opt MemProfReportHintedSizes; teresajohnson wrote: I think these 3 can be removed - I assume these cam

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Teresa Johnson via cfe-commits
https://github.com/teresajohnson edited https://github.com/llvm/llvm-project/pull/142811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [DRAFT][memprof][darwin] Support memprof on Darwin platform and add binary access profile (PR #142884)

2025-06-04 Thread via cfe-commits
https://github.com/SharonXSharon edited https://github.com/llvm/llvm-project/pull/142884 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [memprof][darwin] Support memprof on Darwin platform and add binary access profile (PR #142884)

2025-06-04 Thread via cfe-commits
https://github.com/SharonXSharon created https://github.com/llvm/llvm-project/pull/142884 The patch has two main parts, 1) add support for memprof on Darwin platform 2) add a new binary access profile, including the format definition, the serialization from the memprof compiler-rt, and the cod

[clang] [Clang] Link libgcc_s.1.dylib when building for macOS 10.5 and older (PR #141401)

2025-06-04 Thread via cfe-commits
https://github.com/Un1q32 edited https://github.com/llvm/llvm-project/pull/141401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Link libgcc_s.1.dylib when building for macOS 10.5 and older (PR #141401)

2025-06-04 Thread via cfe-commits
https://github.com/Un1q32 edited https://github.com/llvm/llvm-project/pull/141401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Link libgcc_s.1.dylib when building for macOS 10.5 and older (PR #141401)

2025-06-04 Thread via cfe-commits
https://github.com/Un1q32 edited https://github.com/llvm/llvm-project/pull/141401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Snehasish Kumar (snehasish) Changes Most of the recent development on the MemProfiler has been on the Use part. The instrumentation has been quite stable for a while. As the complexity of the use grows (with undrifting, diagnostic

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Snehasish Kumar via cfe-commits
https://github.com/snehasish edited https://github.com/llvm/llvm-project/pull/142811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Snehasish Kumar via cfe-commits
https://github.com/snehasish ready_for_review https://github.com/llvm/llvm-project/pull/142811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Link libgcc_s.1.dylib when building for macOS 10.5 and older (PR #141401)

2025-06-04 Thread via cfe-commits
@@ -1645,14 +1645,14 @@ void DarwinClang::AddLinkRuntimeLibArgs(const ArgList &Args, CmdArgs.push_back("-lSystem"); // Select the dynamic runtime library and the target specific static library. - if (isTargetIOSBased()) { -// If we are compiling as iOS / simulator,

[clang] [clang][Darwin] Simplify deployment version assignment in the Driver (PR #142013)

2025-06-04 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida updated https://github.com/llvm/llvm-project/pull/142013 >From a12e45e0b3025126dc112c6f8dd552b2670e88f9 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Thu, 29 May 2025 12:19:09 -0700 Subject: [PATCH 1/3] [clang][Darwin] Simply deployment version assignment in

[clang-tools-extra] [clang-tools-extra] Remove unused local variables (NFC) (PR #142881)

2025-06-04 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/142881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [tools] Remove unused local variables (NFC) (PR #142880)

2025-06-04 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/142880 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Remove unused local variables (NFC) (PR #142881)

2025-06-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/142881.diff 4 Files Affected: - (modified) clang-tools-extra/clang-include-fixer/tool/ClangIncludeFixer.cpp (-2) - (modified) c

[clang-tools-extra] [clang-tools-extra] Remove unused local variables (NFC) (PR #142881)

2025-06-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/142881.diff 4 Files Affected: - (modified) clang-tools-extra/clang-include-fixer/tool/ClangIncludeFixer.cpp (-2) - (modified) clang-to

[clang] [tools] Remove unused local variables (NFC) (PR #142880)

2025-06-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/142880.diff 2 Files Affected: - (modified) clang/tools/clang-installapi/Options.cpp (-1) - (modified) clang/tools/clang-offload-packager/Cla

[clang-tools-extra] [clang-tools-extra] Remove unused local variables (NFC) (PR #142881)

2025-06-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142881 None >From 93f1720a346cf23771adb5caf329062a349e1dda Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 4 Jun 2025 12:35:24 -0700 Subject: [PATCH] [clang-tools-extra] Remove unused local variables (NFC

[clang] [tools] Remove unused local variables (NFC) (PR #142880)

2025-06-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142880 None >From 253456a94190d894a8d6241e8cc23b094c646702 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 4 Jun 2025 12:36:20 -0700 Subject: [PATCH] [tools] Remove unused local variables (NFC) --- clan

[clang-tools-extra] [clang-tidy] Add check for assignment or comparision operators' operand in `readability-math-missing-parentheses` (PR #141345)

2025-06-04 Thread via cfe-commits
flovent wrote: Thanks for catching, CHECK-FIXES added. > I don't know why tests didn't fail because of it, needs some investigation. I don't know either, but the check does produce `FixIt`, and it seems `CHECK-FIXES` is optional in this test file, doesn't affect whether the test pass. https:

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Snehasish Kumar via cfe-commits
https://github.com/snehasish updated https://github.com/llvm/llvm-project/pull/142811 >From 912e0f8261137d98e7b8b62435e92f641c65a663 Mon Sep 17 00:00:00 2001 From: Snehasish Kumar Date: Tue, 3 Jun 2025 21:49:58 -0700 Subject: [PATCH 1/2] [MemProf] Split MemProfiler into Instrumentation and Use.

[clang-tools-extra] [clang-tidy] Add check for assignment or comparision operators' operand in `readability-math-missing-parentheses` (PR #141345)

2025-06-04 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/141345 >From e020a00fcaa8283edf5fb1850653d0156918ca85 Mon Sep 17 00:00:00 2001 From: flovent Date: Sat, 24 May 2025 21:29:53 +0800 Subject: [PATCH 1/3] [clang-tidy] Add check for assignment or comparision operators' o

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Snehasish Kumar via cfe-commits
https://github.com/snehasish updated https://github.com/llvm/llvm-project/pull/142811 >From 912e0f8261137d98e7b8b62435e92f641c65a663 Mon Sep 17 00:00:00 2001 From: Snehasish Kumar Date: Tue, 3 Jun 2025 21:49:58 -0700 Subject: [PATCH 1/2] [MemProf] Split MemProfiler into Instrumentation and Use.

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Snehasish Kumar via cfe-commits
https://github.com/snehasish updated https://github.com/llvm/llvm-project/pull/142811 >From 912e0f8261137d98e7b8b62435e92f641c65a663 Mon Sep 17 00:00:00 2001 From: Snehasish Kumar Date: Tue, 3 Jun 2025 21:49:58 -0700 Subject: [PATCH 1/2] [MemProf] Split MemProfiler into Instrumentation and Use.

[clang] [Clang][Driver][AArch64] Add support for aarch64-amazon-linux triple (PR #109263)

2025-06-04 Thread Benjamin Herrenschmidt via cfe-commits
ozbenh wrote: @MaskRay Fedora and RHEL also don't use -gnu ... we had no idea this mattered when we did this and we can't really change it at this point without breaking customers. I would understand applying the rule for new use cases, but this is an established one that cannot be fixed, and

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-04 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/141846 >From bfdf16cee252dc6491f15c0715c7a39538fbf120 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 23 Apr 2025 13:14:24 -0700 Subject: [PATCH 1/2] [Clang][attr] Add cfi_salt attribute The new 'cfi_salt' a

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-04 Thread Bill Wendling via cfe-commits
bwendling wrote: I moved the `cfi_salt` into the `FunctionProtoType` fields. I left it open for further additions. One bit of optimization I could do is merge the Arm stuff into this new struct, but wanted to do something a bit less cluttered first. https://github.com/llvm/llvm-project/pull/14

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-04 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/141846 >From bfdf16cee252dc6491f15c0715c7a39538fbf120 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 23 Apr 2025 13:14:24 -0700 Subject: [PATCH 1/2] [Clang][attr] Add cfi_salt attribute The new 'cfi_salt' a

[clang] [CIR] Defer emitting function definitions (PR #142862)

2025-06-04 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 HEAD~1 HEAD --extensions cpp -- clang/test/CIR/CodeGen/deferred-fn-defs.cpp clang/li

[clang] [CIR] Defer emitting function definitions (PR #142862)

2025-06-04 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/142862 >From 217f3a01f9ed161eb3afa3f7e6a594720e8a2840 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Mon, 2 Jun 2025 17:11:55 -0700 Subject: [PATCH 1/2] [CIR] Defer emitting function definitions This change imple

[clang] [flang] [Driver] Move CommonArgs to a location visible by the Frontend Drivers (PR #142800)

2025-06-04 Thread Cameron McInally via cfe-commits
https://github.com/mcinally updated https://github.com/llvm/llvm-project/pull/142800 >From 918b853de8c43dacebecb42cafa6d3b8fec15b47 Mon Sep 17 00:00:00 2001 From: Cameron McInally Date: Tue, 3 Jun 2025 11:12:42 -0700 Subject: [PATCH] [Driver] Move CommonArgs to a location visible by the Fronte

[clang] [flang] [Driver] Move CommonArgs to a location visible by the Frontend Drivers (PR #142800)

2025-06-04 Thread Cameron McInally via cfe-commits
https://github.com/mcinally edited https://github.com/llvm/llvm-project/pull/142800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Driver] Move CommonArgs to a location visible by the Frontend Drivers (PR #142800)

2025-06-04 Thread Cameron McInally via cfe-commits
@@ -3167,3 +3167,30 @@ void tools::handleInterchangeLoopsArgs(const ArgList &Args, options::OPT_fno_loop_interchange, EnableInterchange)) CmdArgs.push_back("-floop-interchange"); } + +void tools::ParseMPreferVectorWidthOption(clang::DiagnosticsEngine &Di

[clang-tools-extra] [clang-doc] add a JSON generator (PR #142483)

2025-06-04 Thread Paul Kirth via cfe-commits
ilovepi wrote: > If we're open to adding a flag in the base `Info` like > `IsClassSpecialization`, then we can probably easily deal with these by > trying to reconstruct the specialization's arguments (will be something like > "Foo.json"). Functions don't produce their own files so function >

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Snehasish Kumar via cfe-commits
https://github.com/snehasish updated https://github.com/llvm/llvm-project/pull/142811 >From 0ba44d66dce0260055d7dd576141e098f7e1c1d5 Mon Sep 17 00:00:00 2001 From: Snehasish Kumar Date: Tue, 3 Jun 2025 21:49:58 -0700 Subject: [PATCH] [MemProf] Split MemProfiler into Instrumentation and Use. --

[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

2025-06-04 Thread via cfe-commits
@@ -31,6 +31,16 @@ option: $ clang -cc1 -include-pch test.h.pch test.c -o test.s +To ignore PCH options using ``clang -cc1``, use the option `-ignore-pch`: MaggieYingYi wrote: > I will update -ignore-pch as a driver option which is similar as the > -inclu

[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

2025-06-04 Thread via cfe-commits
https://github.com/MaggieYingYi updated https://github.com/llvm/llvm-project/pull/142409 >From c0cc666ab8864b665539a857dbdae6c592266227 Mon Sep 17 00:00:00 2001 From: Ying Yi Date: Mon, 2 Jun 2025 10:21:22 +0100 Subject: [PATCH 1/4] [Frontend][PCH]-Add support for ignoring PCH options (-ignore

[clang] [CIR] Defer emitting function definitions (PR #142862)

2025-06-04 Thread Andy Kaylor via cfe-commits
@@ -1523,6 +1523,50 @@ cir::FuncOp CIRGenModule::getOrCreateCIRFunction( cir::FuncOp funcOp = createCIRFunction( invalidLoc ? theModule->getLoc() : getLoc(funcDecl->getSourceRange()), mangledName, mlir::cast(funcType), funcDecl); + + if (!dontDefer) { ---

[clang] [CIR] Defer emitting function definitions (PR #142862)

2025-06-04 Thread Bruno Cardoso Lopes via cfe-commits
@@ -1523,6 +1523,50 @@ cir::FuncOp CIRGenModule::getOrCreateCIRFunction( cir::FuncOp funcOp = createCIRFunction( invalidLoc ? theModule->getLoc() : getLoc(funcDecl->getSourceRange()), mangledName, mlir::cast(funcType), funcDecl); + + if (!dontDefer) { ---

[clang] [CIR] Defer emitting function definitions (PR #142862)

2025-06-04 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/142862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Defer emitting function definitions (PR #142862)

2025-06-04 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. Looks good, minor nit https://github.com/llvm/llvm-project/pull/142862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] [clang] Simplify device kernel attributes (PR #137882)

2025-06-04 Thread Nick Sarnie via cfe-commits
sarnex wrote: Thanks Erich! @AaronBallman Do you mind giving the final version another quick pass to make sure all concerns are addressed? Thanks! https://github.com/llvm/llvm-project/pull/137882 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [clang][Darwin] Simplify deployment version assignment in the Driver (PR #142013)

2025-06-04 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida updated https://github.com/llvm/llvm-project/pull/142013 >From a12e45e0b3025126dc112c6f8dd552b2670e88f9 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Thu, 29 May 2025 12:19:09 -0700 Subject: [PATCH 1/3] [clang][Darwin] Simply deployment version assignment in

[clang] [CUDA] Disallow use of address_space(N) on CUDA device variables. (PR #142857)

2025-06-04 Thread Alexander Kornienko via cfe-commits
https://github.com/alexfh approved this pull request. Looks good. Thanks for adding this early detection of the incorrect CUDA code that would otherwise lead to violated invariants further down the road. https://github.com/llvm/llvm-project/pull/142857 __

[clang] [flang] [Driver] Move CommonArgs to a location visible by the Frontend Drivers (PR #142800)

2025-06-04 Thread Slava Zakharin via cfe-commits
@@ -3167,3 +3167,30 @@ void tools::handleInterchangeLoopsArgs(const ArgList &Args, options::OPT_fno_loop_interchange, EnableInterchange)) CmdArgs.push_back("-floop-interchange"); } + +void tools::ParseMPreferVectorWidthOption(clang::DiagnosticsEngine &Di

[clang] [CIR ] Add DLTI dialect support to module attributes (PR #142241)

2025-06-04 Thread via cfe-commits
https://github.com/Andres-Salamanca updated https://github.com/llvm/llvm-project/pull/142241 >From aad6aa4bb69ea96eceb7dc7911eb846047ac14cb Mon Sep 17 00:00:00 2001 From: Andres Salamanca Date: Fri, 30 May 2025 18:13:31 -0500 Subject: [PATCH 1/2] Add DLTI dialect support to module attributes an

[clang] [flang] [Driver] Move CommonArgs to a location visible by the Frontend Drivers (PR #142800)

2025-06-04 Thread Tarun Prabhu via cfe-commits
@@ -270,6 +270,12 @@ void handleVectorizeLoopsArgs(const llvm::opt::ArgList &Args, /// Enable -fslp-vectorize based on the optimization level selected. void handleVectorizeSLPArgs(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs); +

[clang] [flang] [Driver] Move CommonArgs to a location visible by the Frontend Drivers (PR #142800)

2025-06-04 Thread Tarun Prabhu via cfe-commits
@@ -3167,3 +3167,30 @@ void tools::handleInterchangeLoopsArgs(const ArgList &Args, options::OPT_fno_loop_interchange, EnableInterchange)) CmdArgs.push_back("-floop-interchange"); } + +void tools::ParseMPreferVectorWidthOption(clang::DiagnosticsEngine &Di

[clang] Add sycl_external attribute (PR #140282)

2025-06-04 Thread via cfe-commits
https://github.com/schittir updated https://github.com/llvm/llvm-project/pull/140282 >From abdbf8905d324f9b935b34bbc97c508ede5ac028 Mon Sep 17 00:00:00 2001 From: "Chittireddy, Sindhu" Date: Fri, 16 May 2025 08:51:06 -0700 Subject: [PATCH 1/6] Add sycl_external attribute --- clang/include/cla

[clang] Thread Safety Analysis: Warn when using negative reentrant capability (PR #141599)

2025-06-04 Thread Marco Elver via cfe-commits
https://github.com/melver edited https://github.com/llvm/llvm-project/pull/141599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Darwin] Simplify deployment version assignment in the Driver (PR #142013)

2025-06-04 Thread Cyndy Ishida via cfe-commits
@@ -1938,11 +1942,22 @@ struct DarwinPlatform { SourceKind Kind; DarwinPlatformKind Platform; DarwinEnvironmentKind Environment = DarwinEnvironmentKind::NativeEnvironment; - VersionTuple NativeTargetVersion; - std::string OSVersion; - bool HasOSVersion = true, InferSim

[clang] [clang][Darwin] Simplify deployment version assignment in the Driver (PR #142013)

2025-06-04 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida updated https://github.com/llvm/llvm-project/pull/142013 >From a12e45e0b3025126dc112c6f8dd552b2670e88f9 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Thu, 29 May 2025 12:19:09 -0700 Subject: [PATCH 1/3] [clang][Darwin] Simply deployment version assignment in

[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)

2025-06-04 Thread Jon Roelofs via cfe-commits
@@ -4652,6 +4659,7 @@ llvm::Constant *CodeGenModule::GetOrCreateMultiVersionResolver(GlobalDecl GD) { "", Resolver, &getModule()); GIF->setName(ResolverName); SetCommonAttributes(FD, GIF); +SetResolverAttrs(cast(Resolver)); ---

[clang] [clang-tools-extra] [llvm] [clang] Simplify device kernel attributes (PR #137882)

2025-06-04 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex updated https://github.com/llvm/llvm-project/pull/137882 >From 080a9d43ba6544d46c2b36c5dc6a5af421264580 Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Wed, 7 May 2025 12:17:30 -0700 Subject: [PATCH 1/8] [clang] Simplify device kernel attributes Signed-off-by: Sar

[clang] [CIR] Defer emitting function definitions (PR #142862)

2025-06-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes This change implements deferring function definition emission until first use. --- Full diff: https://github.com/llvm/llvm-project/pull/142862.diff 2 Files Affected: - (modified) clang/lib/CIR/CodeGen/

[clang] [CIR] Defer emitting function definitions (PR #142862)

2025-06-04 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/142862 This change implements deferring function definition emission until first use. >From 217f3a01f9ed161eb3afa3f7e6a594720e8a2840 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Mon, 2 Jun 2025 17:11:55 -0700 S

[clang] [clang] Fix bad error recovery when classes are defined inside template (PR #142278)

2025-06-04 Thread Artyom Zabroda via cfe-commits
https://github.com/ArtyomZabroda edited https://github.com/llvm/llvm-project/pull/142278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Driver] Move CommonArgs to a location visible by the Frontend Drivers (PR #142800)

2025-06-04 Thread Slava Zakharin via cfe-commits
https://github.com/vzakhari edited https://github.com/llvm/llvm-project/pull/142800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for derived class declarations (PR #142823)

2025-06-04 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. https://github.com/llvm/llvm-project/pull/142823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   >