[clang] [CIR][NFC] Simplify BoolAttr builders (PR #136366)

2025-04-18 Thread Henrich Lauko via cfe-commits
@@ -692,9 +692,7 @@ mlir::LogicalResult CIRToLLVMConstantOpLowering::matchAndRewrite( // during a pass as long as they don't live past the end of the pass. attr = op.getValue(); } else if (mlir::isa(op.getType())) { -int value = (op.getValue() == -

[clang] [CIR][NFC] Simplify BoolAttr builders (PR #136366)

2025-04-18 Thread Henrich Lauko via cfe-commits
@@ -692,9 +692,7 @@ mlir::LogicalResult CIRToLLVMConstantOpLowering::matchAndRewrite( // during a pass as long as they don't live past the end of the pass. attr = op.getValue(); } else if (mlir::isa(op.getType())) { -int value = (op.getValue() == -

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

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

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
@@ -451,13 +451,44 @@ const char *const Runtimes = R"( )"; llvm::Expected> -Interpreter::create(std::unique_ptr CI) { +Interpreter::create(std::unique_ptr CI, +std::unique_ptr DeviceCI) { llvm::Error Err = llvm::Error::success(); auto Interp =

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
@@ -451,13 +451,44 @@ const char *const Runtimes = R"( )"; llvm::Expected> -Interpreter::create(std::unique_ptr CI) { +Interpreter::create(std::unique_ptr CI, +std::unique_ptr DeviceCI) { llvm::Error Err = llvm::Error::success(); auto Interp =

[clang] [CIR][NFC] Simplify BoolAttr builders (PR #136366)

2025-04-18 Thread Henrich Lauko via cfe-commits
@@ -456,9 +456,7 @@ mlir::LogicalResult CIRGenFunction::emitForStmt(const ForStmt &s) { // scalar type. condVal = evaluateExprAsBool(s.getCond()); } else { -cir::BoolType boolTy = cir::BoolType::get(b.getContext()); -co

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Vassil Vassilev via cfe-commits
@@ -451,13 +451,44 @@ const char *const Runtimes = R"( )"; llvm::Expected> -Interpreter::create(std::unique_ptr CI) { +Interpreter::create(std::unique_ptr CI, +std::unique_ptr DeviceCI) { llvm::Error Err = llvm::Error::success(); auto Interp =

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
@@ -451,13 +451,44 @@ const char *const Runtimes = R"( )"; llvm::Expected> -Interpreter::create(std::unique_ptr CI) { +Interpreter::create(std::unique_ptr CI, +std::unique_ptr DeviceCI) { llvm::Error Err = llvm::Error::success(); auto Interp =

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Vassil Vassilev via cfe-commits
@@ -451,13 +451,44 @@ const char *const Runtimes = R"( )"; llvm::Expected> -Interpreter::create(std::unique_ptr CI) { +Interpreter::create(std::unique_ptr CI, +std::unique_ptr DeviceCI) { llvm::Error Err = llvm::Error::success(); auto Interp =

[clang] [CIR] Infer MLIR context in type builders when possible (PR #136362)

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

[clang] 9b6fbc0 - [CIR] Infer MLIR context in type builders when possible (#136362)

2025-04-18 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-04-19T08:40:11+02:00 New Revision: 9b6fbc06ad532e455960bbe6e4bffa5e72eb9e8c URL: https://github.com/llvm/llvm-project/commit/9b6fbc06ad532e455960bbe6e4bffa5e72eb9e8c DIFF: https://github.com/llvm/llvm-project/commit/9b6fbc06ad532e455960bbe6e4bffa5e72eb9e8c.diff

[clang-tools-extra] [clang-doc][NFC] Use LLVM style naming in YAMLGenerator.cpp (PR #136393)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-windows` running on `premerge-windows-1` while building `clang-tools-extra` at step 8 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/35/builds/

[clang-tools-extra] [clang-doc][NFC] Prefer static functions for internal APIs (PR #136391)

2025-04-18 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/136391 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] c274bbe - [clang-doc][NFC] Prefer static functions for internal APIs (#136391)

2025-04-18 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-18T23:34:57-07:00 New Revision: c274bbed6aa5254ec3b97b25471dd08c67224350 URL: https://github.com/llvm/llvm-project/commit/c274bbed6aa5254ec3b97b25471dd08c67224350 DIFF: https://github.com/llvm/llvm-project/commit/c274bbed6aa5254ec3b97b25471dd08c67224350.diff LO

[clang-tools-extra] 8376edb - [clang-doc][NFC] Avoid C-style casts (#136390)

2025-04-18 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-18T23:34:32-07:00 New Revision: 8376edb143c4ea0d4d166b81c9667c2341a9533d URL: https://github.com/llvm/llvm-project/commit/8376edb143c4ea0d4d166b81c9667c2341a9533d DIFF: https://github.com/llvm/llvm-project/commit/8376edb143c4ea0d4d166b81c9667c2341a9533d.diff LO

[clang-tools-extra] [clang-doc][NFC] Avoid else after return (PR #136389)

2025-04-18 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/136389 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] c5c2851 - [clang-doc][NFC] Avoid else after return (#136389)

2025-04-18 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-18T23:34:44-07:00 New Revision: c5c285178ccb1769e6d4dfeeb8df7663ec068a55 URL: https://github.com/llvm/llvm-project/commit/c5c285178ccb1769e6d4dfeeb8df7663ec068a55 DIFF: https://github.com/llvm/llvm-project/commit/c5c285178ccb1769e6d4dfeeb8df7663ec068a55.diff LO

[clang-tools-extra] [clang-doc][NFC] Avoid C-style casts (PR #136390)

2025-04-18 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/136390 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] e27aa12 - [clang-doc][NFC] Use qualified auto (#136394)

2025-04-18 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-18T23:34:03-07:00 New Revision: e27aa12d47468e4717622a230bb560490b66c3e7 URL: https://github.com/llvm/llvm-project/commit/e27aa12d47468e4717622a230bb560490b66c3e7 DIFF: https://github.com/llvm/llvm-project/commit/e27aa12d47468e4717622a230bb560490b66c3e7.diff LO

[clang-tools-extra] [clang-doc][NFC] Use qualified auto (PR #136394)

2025-04-18 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/136394 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Prefer static functions for internal APIs (PR #136391)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **Apr 19, 2:33 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/136391). https://github.com/llvm/llvm-project/pull/136391

[clang-tools-extra] [clang-doc][NFC] Avoid else after return (PR #136389)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **Apr 19, 2:33 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/136389). https://github.com/llvm/llvm-project/pull/136389

[clang-tools-extra] [clang-doc][NFC] Avoid C-style casts (PR #136390)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **Apr 19, 2:32 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/136390). https://github.com/llvm/llvm-project/pull/136390

[clang-tools-extra] [clang-doc][NFC] Use qualified auto (PR #136394)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **Apr 19, 2:32 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/136394). https://github.com/llvm/llvm-project/pull/136394

[clang-tools-extra] [clang-doc][NFC] Use LLVM style naming in YAMLGenerator.cpp (PR #136393)

2025-04-18 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/136393 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 5607a3b - [clang-doc][NFC] Use LLVM style naming in YAMLGenerator.cpp (#136393)

2025-04-18 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-18T23:25:39-07:00 New Revision: 5607a3b09c6fb6026adfcfb42710306a63523c57 URL: https://github.com/llvm/llvm-project/commit/5607a3b09c6fb6026adfcfb42710306a63523c57 DIFF: https://github.com/llvm/llvm-project/commit/5607a3b09c6fb6026adfcfb42710306a63523c57.diff LO

[clang-tools-extra] [clang-doc][NFC] Use LLVM style naming in YAMLGenerator.cpp (PR #136393)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **Apr 19, 2:24 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/136393). https://github.com/llvm/llvm-project/pull/136393

[clang] [clang][bytecode] Diagnose failed MemberPtrPtr casts differently (PR #136407)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Return Invalid() here instead of just false to match the diagnostic output of the current interpreter. --- Full diff: https://github.com/llvm/llvm-project/pull/136407.diff 2 Files Affected: - (modified) c

[clang] [clang][bytecode] Diagnose failed MemberPtrPtr casts differently (PR #136407)

2025-04-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/136407 Return Invalid() here instead of just false to match the diagnostic output of the current interpreter. >From 1446ab0c9e4c6b32d330777221b2f5ebc63beb02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/16465 Her

[clang] [clang-format]: Add `Custom` to `ShortFunctionStyle`; add new AllowShortFunctionsOnASingleLineOptions for granular setup (PR #134337)

2025-04-18 Thread Owen Pan via cfe-commits
owenca wrote: @irymarchyk can you resolve the conflicts? https://github.com/llvm/llvm-project/pull/134337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][uefi] add arm, aarch64, x86, loongarch64, riscv64 targets (PR #136247)

2025-04-18 Thread Tristan Ross via cfe-commits
@@ -352,6 +352,8 @@ static MCAsmInfo *createAArch64MCAsmInfo(const MCRegisterInfo &MRI, MAI = new AArch64MCAsmInfoMicrosoftCOFF(); else if (TheTriple.isOSBinFormatCOFF()) MAI = new AArch64MCAsmInfoGNUCOFF(); + else if (TheTriple.isUEFI()) +MAI = new AArch64MCAsm

[clang] [clang-format] Fix a bug in parsing C-style cast of lambdas (PR #136099)

2025-04-18 Thread Owen Pan via cfe-commits
@@ -2371,7 +2371,8 @@ bool UnwrappedLineParser::tryToParseLambdaIntroducer() { if ((Previous && ((Previous->Tok.getIdentifierInfo() && !Previous->isOneOf(tok::kw_return, tok::kw_co_await, tok::kw_co_yield, tok::kw_c

[clang] [llvm] [clang][uefi] add arm, aarch64, x86, loongarch64, riscv64 targets (PR #136247)

2025-04-18 Thread Petr Hosek via cfe-commits
@@ -352,6 +352,8 @@ static MCAsmInfo *createAArch64MCAsmInfo(const MCRegisterInfo &MRI, MAI = new AArch64MCAsmInfoMicrosoftCOFF(); else if (TheTriple.isOSBinFormatCOFF()) MAI = new AArch64MCAsmInfoGNUCOFF(); + else if (TheTriple.isUEFI()) +MAI = new AArch64MCAsm

[clang-tools-extra] [clang-doc][NFC] Use LLVM style naming in YAMLGenerator.cpp (PR #136393)

2025-04-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/136393 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Use qualified auto (PR #136394)

2025-04-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/136394 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Avoid C-style casts (PR #136390)

2025-04-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/136390 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Avoid else after return (PR #136389)

2025-04-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/136389 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Prefer static functions for internal APIs (PR #136391)

2025-04-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/136391 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add support for GCC bound member functions extension (PR #135649)

2025-04-18 Thread via cfe-commits
rockeet wrote: > > > This patch adds support for GCC bound member functions extension: > > > https://gcc.gnu.org/onlinedocs/gcc/Bound-member-functions.html > > > Related issue: #22495 Closes #82727 > > > > > > I think this requires an RFC justifying carrying the extension. It's a > > non-conf

[clang] [Clang] Add support for GCC bound member functions extension (PR #135649)

2025-04-18 Thread via cfe-commits
rockeet wrote: We used this extension to improve virtual function calling performance, there are simple and small virtual functions which are frequently called and can not be eliminated and it is in a delegation thus compiler can not optimize, so we use pmf to bound the virtual function, like

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/136402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c300033 - Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (#136402)

2025-04-18 Thread via cfe-commits
Author: Vitaly Buka Date: 2025-04-18T22:14:03-07:00 New Revision: c3000333cda22ec7d5ae2597c6aadcdc5d6ea7f8 URL: https://github.com/llvm/llvm-project/commit/c3000333cda22ec7d5ae2597c6aadcdc5d6ea7f8 DIFF: https://github.com/llvm/llvm-project/commit/c3000333cda22ec7d5ae2597c6aadcdc5d6ea7f8.diff L

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

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

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
@@ -451,13 +451,44 @@ const char *const Runtimes = R"( )"; llvm::Expected> -Interpreter::create(std::unique_ptr CI) { +Interpreter::create(std::unique_ptr CI, +std::unique_ptr DeviceCI) { llvm::Error Err = llvm::Error::success(); auto Interp =

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 1b18e96882590825075b8f8e5094fdcb5225d349 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH] Fix cuda flag with clang-repl --- clang/include/clang/Interpre

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 82a2be2dd0780bd3d57f4a22d61a4b0752696934 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/5] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw approved this pull request. https://github.com/llvm/llvm-project/pull/136402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: cc @AaronBallman @vgvassilev This fixes this discussion y'all had https://github.com/llvm/llvm-project/pull/107737#discussion_r1806913203 Unfortunately I am on an Apple m1 so I can just justify seeing this on my side ``` (base) anutosh491@Anutoshs-MacBook-Air bin % ./clang-

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 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,h -- clang/include/clang/Interpreter/Interpreter.h clan

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Anutosh Bhat (anutosh491) Changes `clang-repl --cuda` was previously crashing with a segmentation fault, instead of reporting a clean error ``` (base) anutosh491@Anutoshs-MacBook-Air bin % ./clang-repl --cuda #0 0x000111da4fbc llvm:

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 created https://github.com/llvm/llvm-project/pull/136404 `clang-repl --cuda` was previously crashing with a segmentation fault, instead of reporting a clean error ``` (base) anutosh491@Anutoshs-MacBook-Air bin % ./clang-repl --cuda #0 0x000111da4fbc llvm::sys

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vitaly Buka (vitalybuka) Changes Reverts llvm/llvm-project#135135 Breaks several bots, details in #135135. --- Patch is 93.85 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/136402.diff 6 Fil

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Vitaly Buka (vitalybuka) Changes Reverts llvm/llvm-project#135135 Breaks several bots, details in #135135. --- Patch is 93.85 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/136402.diff

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/136402 Reverts llvm/llvm-project#135135 Breaks several bots, details in #135135. >From cf231b38b4df359ede237a2d06bce5381fa460a2 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 18 Apr 2025 21:25:42 -0700 Subj

[clang] [Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers (PR #135135)

2025-04-18 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: https://lab.llvm.org/buildbot/#/builders/66/builds/12718 https://lab.llvm.org/buildbot/#/builders/186/builds/8291 https://github.com/llvm/llvm-project/pull/135135 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang-tools-extra] [clangd] Improve `BlockEnd` inlayhint presentation (PR #136106)

2025-04-18 Thread via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/136106 >From a0e3a33eda624bbebd436d6ac97a18348be39e7c Mon Sep 17 00:00:00 2001 From: daiyousei-qz Date: Tue, 14 Nov 2023 20:42:10 -0800 Subject: [PATCH 1/3] Improve BlockEnd presentation including: 1. Explicitly sta

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-clang` running on `bolt-worker` while building `clang,llvm` at step 5 "build-clang-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/113/builds/6860 Here is the relevant piece

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-shared` running on `bolt-worker` while building `clang,llvm` at step 6 "test-build-bolt-check-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/151/builds/5452 Here is the rel

[clang] [NFC][Clang] Introduce type aliases to replace use of auto in clang/lib/CodeGen/CGCall.cpp. (PR #135861)

2025-04-18 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/135861 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Introduce type aliases to replace use of auto in clang/lib/CodeGen/CGCall.cpp. (PR #135861)

2025-04-18 Thread Shafik Yaghmour via cfe-commits
@@ -712,8 +713,7 @@ CodeGenTypes::arrangeBlockFunctionDeclaration(const FunctionProtoType *proto, const CGFunctionInfo & CodeGenTypes::arrangeBuiltinFunctionCall(QualType resultType, const CallArgList &args) { - // FIXME: Kill copy. --

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-nfc` running on `bolt-worker` while building `clang,llvm` at step 8 "test-build-bolt-check-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/92/builds/17438 Here is the releva

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/136295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Remove unused debug macro (PR #136400)

2025-04-18 Thread Younan Zhang via cfe-commits
zyn0217 wrote: Actually it's used :( ```cpp /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-5b8n6-1/llvm-project/github-pull-requests/clang/lib/AST/ExprConstant.cpp:11780:3: error: use of undeclared identifier 'DEBUG_TYPE'   | LLVM_DEBUG(llvm::dbgs() << "The number of elements to initialize:

[clang] [Clang][NFC] Remove unused debug macro (PR #136400)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/136400 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Remove unused debug macro (PR #136400)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes This macro appears to have been introduced accidentally and isn't used anywhere. --- Full diff: https://github.com/llvm/llvm-project/pull/136400.diff 1 Files Affected: - (modified) clang/lib/AST/ExprConsta

[clang] [Clang][NFC] Remove unused debug macro (PR #136400)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/136400 This macro appears to have been introduced accidentally and isn't used anywhere. >From 3e6564eb6304ded24d7817be08dfb257e4d9c66b Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sat, 19 Apr 2025 11:41:48 +0800

[clang-tools-extra] [clang-tidy] Use llvm::less_second (NFC) (PR #136396)

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

[clang-tools-extra] e006936 - [clang-tidy] Use llvm::less_second (NFC) (#136396)

2025-04-18 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-04-18T20:34:01-07:00 New Revision: e00693659b9b18647565e380c27da039507673f4 URL: https://github.com/llvm/llvm-project/commit/e00693659b9b18647565e380c27da039507673f4 DIFF: https://github.com/llvm/llvm-project/commit/e00693659b9b18647565e380c27da039507673f4.diff L

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 deleted https://github.com/llvm/llvm-project/pull/136295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
@@ -34,21 +34,22 @@ void test_invalid_call_1(int s) { int some_func2(int a, int b); void test_invalid_call_2() { - // CHECK: -RecoveryExpr {{.*}} 'int' contains-errors + // CHECK: -RecoveryExpr {{.*}} '' contains-errors zyn0217 wrote: > I think we still

[clang] [clang-format] Fix a bug in parsing C-style cast of lambdas (PR #136099)

2025-04-18 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/136099 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/136295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/136295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug in parsing C-style cast lambda (PR #136099)

2025-04-18 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/136099 >From 53033b278f89a508d079614eadd58b103211d5dd Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 17 Apr 2025 00:35:19 -0700 Subject: [PATCH 1/2] [clang-format] Fix a bug in parsing C-style cast lambda Fix #1359

[clang] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/16460 Her

[clang-tools-extra] [clang-tidy] Use llvm::less_second (NFC) (PR #136396)

2025-04-18 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/136396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
@@ -34,21 +34,22 @@ void test_invalid_call_1(int s) { int some_func2(int a, int b); void test_invalid_call_2() { - // CHECK: -RecoveryExpr {{.*}} 'int' contains-errors + // CHECK: -RecoveryExpr {{.*}} '' contains-errors zyn0217 wrote: > If calling ActOn

[clang-tools-extra] [llvm] [clang-doc] Adds a mustache backend (PR #133161)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: OK. I'll put up a patch set around Tuesday, April 22. https://github.com/llvm/llvm-project/pull/133161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Avoid C-style casts (PR #136390)

2025-04-18 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/136390 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)

2025-04-18 Thread via cfe-commits
github-actions[bot] wrote: @selimkeles Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a bui

[clang] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)

2025-04-18 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/135779 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0c0b5ab - [clang-format] Handle spaces in filename paths in clang-format-diff.py (#135779)

2025-04-18 Thread via cfe-commits
Author: Selim Keles Date: 2025-04-18T19:42:22-07:00 New Revision: 0c0b5abff7ebedde53ccb84a04dadb00b9b91f2b URL: https://github.com/llvm/llvm-project/commit/0c0b5abff7ebedde53ccb84a04dadb00b9b91f2b DIFF: https://github.com/llvm/llvm-project/commit/0c0b5abff7ebedde53ccb84a04dadb00b9b91f2b.diff L

[clang-tools-extra] [clang-tidy] Use llvm::less_second (NFC) (PR #136396)

2025-04-18 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/136396.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp (+1-3) ``diff diff

[clang-tools-extra] [clang-tidy] Use llvm::less_second (NFC) (PR #136396)

2025-04-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/136396 None >From c3f948665677851851abedfbb6cf11fe88fa4334 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 18 Apr 2025 10:09:47 -0700 Subject: [PATCH] [clang-tidy] Use llvm::less_second (NFC) --- clang-

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Matheus Izvekov via cfe-commits
@@ -34,21 +34,22 @@ void test_invalid_call_1(int s) { int some_func2(int a, int b); void test_invalid_call_2() { - // CHECK: -RecoveryExpr {{.*}} 'int' contains-errors + // CHECK: -RecoveryExpr {{.*}} '' contains-errors mizvekov wrote: If calling ActOnC

[clang] [clang][Driver] Support passing arbitrary args to `-cc1as` with `-Xclangas`. (PR #100714)

2025-04-18 Thread Alex Rønne Petersen via cfe-commits
https://github.com/alexrp closed https://github.com/llvm/llvm-project/pull/100714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6311b11 - [clang][Driver] Support passing arbitrary args to `-cc1as` with `-Xclangas`. (#100714)

2025-04-18 Thread via cfe-commits
Author: Alex Rønne Petersen Date: 2025-04-19T04:09:58+02:00 New Revision: 6311b11595f152a8f4aa02cfa544e72ede66688a URL: https://github.com/llvm/llvm-project/commit/6311b11595f152a8f4aa02cfa544e72ede66688a DIFF: https://github.com/llvm/llvm-project/commit/6311b11595f152a8f4aa02cfa544e72ede66688a

[clang] [Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers (PR #135135)

2025-04-18 Thread Yingwei Zheng via cfe-commits
dtcxzyw wrote: > This change broke a couple of ubsan tests on i686 on Windows (i.e. a 32 bit > environment): > https://github.com/mstorsjo/llvm-mingw/actions/runs/14527591706/job/40770945907 > > The failing tests are > https://github.com/llvm/llvm-project/blob/llvmorg-20.1.3/compiler-rt/test/

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
@@ -34,21 +34,22 @@ void test_invalid_call_1(int s) { int some_func2(int a, int b); void test_invalid_call_2() { - // CHECK: -RecoveryExpr {{.*}} 'int' contains-errors + // CHECK: -RecoveryExpr {{.*}} '' contains-errors zyn0217 wrote: And as for concept

[clang-tools-extra] [clang-doc][NFC] Prefer static functions for internal APIs (PR #136391)

2025-04-18 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/136391 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Avoid else after return (PR #136389)

2025-04-18 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/136389 >From cbde7084f9e465fb0053cf4b7d2e6aed52fd249b Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 18 Apr 2025 17:13:54 -0700 Subject: [PATCH] [clang-doc][NFC] Avoid else after return --- clang-tools-extra/cl

[clang-tools-extra] [clang-doc][NFC] Prefer static functions for internal APIs (PR #136391)

2025-04-18 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/136391 >From ec8bd52ba80c206a2de1f3958948dfce038ed9fd Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 18 Apr 2025 17:13:37 -0700 Subject: [PATCH] [clang-doc] Prefer static functions for internal APIs Additionally

[clang-tools-extra] [clang-doc][NFC] Prefer static functions for internal APIs (PR #136391)

2025-04-18 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,cpp -- clang-tools-extra/clang-doc/BitcodeReader.cpp clan

[clang-tools-extra] [clang-doc][NFC] Prefer static functions for internal APIs (PR #136391)

2025-04-18 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/136391 >From b4ab90404dc4011720dbd0d52774f02790143da6 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 18 Apr 2025 17:13:37 -0700 Subject: [PATCH] [clang-doc] Prefer static functions for internal APIs Additionally

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x64-windows-msvc` running on `windows-gcebot2` while building `clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/63/builds/5194 Here is the relevant piece of the

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/136295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 58a5c46 - [clang-format] Fix a bug in BWACS_MultiLine (#136281)

2025-04-18 Thread via cfe-commits
Author: Owen Pan Date: 2025-04-18T18:13:02-07:00 New Revision: 58a5c469d97302bb33a54338cf827a4cbe4e416a URL: https://github.com/llvm/llvm-project/commit/58a5c469d97302bb33a54338cf827a4cbe4e416a DIFF: https://github.com/llvm/llvm-project/commit/58a5c469d97302bb33a54338cf827a4cbe4e416a.diff LOG:

[clang] [clang-format] Fix a bug in BWACS_MultiLine (PR #136281)

2025-04-18 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/136281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug in annotating TT_PointerOrReference (PR #136073)

2025-04-18 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/136073 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   6   >