[clang] [clang] Ensure fixed point conversions work in C++ (PR #68344)

2023-11-15 Thread via cfe-commits
https://github.com/PiJoules updated https://github.com/llvm/llvm-project/pull/68344 >From 28dc7fe190676356a79e1315532a989aba0988cf Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Thu, 5 Oct 2023 19:19:47 + Subject: [PATCH] [clang] Ensure fixed point conversions work in C++ --- clang/inc

[clang] [clang] Ensure fixed point conversions work in C++ (PR #68344)

2023-11-15 Thread via cfe-commits
https://github.com/PiJoules updated https://github.com/llvm/llvm-project/pull/68344 >From f0e6a031dca41c2bc66e3c8fbb90e8e57bddc54b Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Thu, 5 Oct 2023 19:19:47 + Subject: [PATCH] [clang] Ensure fixed point conversions work in C++ --- clang/inc

[clang] [clang] Ensure fixed point conversions work in C++ (PR #68344)

2023-11-15 Thread via cfe-commits
https://github.com/PiJoules updated https://github.com/llvm/llvm-project/pull/68344 >From 59582cb54562c3c6933003267a46aebb50c67b42 Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Thu, 5 Oct 2023 19:19:47 + Subject: [PATCH] [clang] Ensure fixed point conversions work in C++ --- clang/inc

[clang] 10cc3a8 - [MS-ABI] skip generate comdat for vftable defined with internal alias. (#71748)

2023-11-15 Thread via cfe-commits
Author: jyu2-git Date: 2023-11-15T17:39:54-08:00 New Revision: 10cc3a8556a8ff9557890c96de162cb2c09669e2 URL: https://github.com/llvm/llvm-project/commit/10cc3a8556a8ff9557890c96de162cb2c09669e2 DIFF: https://github.com/llvm/llvm-project/commit/10cc3a8556a8ff9557890c96de162cb2c09669e2.diff LOG:

[clang-tools-extra] [clang] [llvm] [MS-ABI] skip generate comdat for vftable defined with internal alias. (PR #71748)

2023-11-15 Thread via cfe-commits
https://github.com/jyu2-git closed https://github.com/llvm/llvm-project/pull/71748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 71a7108 - [RISCV][MC] MC layer support for xcvmem and xcvelw extensions

2023-11-15 Thread via cfe-commits
Author: LiaoChunyu Date: 2023-11-16T09:46:11+08:00 New Revision: 71a7108ee91a522251ff37638e26158570c1e2a5 URL: https://github.com/llvm/llvm-project/commit/71a7108ee91a522251ff37638e26158570c1e2a5 DIFF: https://github.com/llvm/llvm-project/commit/71a7108ee91a522251ff37638e26158570c1e2a5.diff LO

[clang] [Work-in-Progress][Clang][RISCV] Create supporting intrinsics around RVV BFloat16 type (PR #72463)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yueh-Ting (eop) Chen (eopXD) Changes First few commits are NFC, and then followed by commits to add intrinsics to support the RVV Bfloat16 types. Intrinsics specification: https://github.com/riscv-non-isa/rvv-intrinsic-doc/pull/293 ---

[clang] [Work-in-Progress][Clang][RISCV] Create supporting intrinsics around RVV BFloat16 type (PR #72463)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Yueh-Ting (eop) Chen (eopXD) Changes First few commits are NFC, and then followed by commits to add intrinsics to support the RVV Bfloat16 types. Intrinsics specification: https://github.com/riscv-non-isa/rvv-intrinsic-doc/pull/

[clang] fix: compatible C++ empty record with align UB with gcc (PR #72197)

2023-11-15 Thread via cfe-commits
https://github.com/hstk30-hw closed https://github.com/llvm/llvm-project/pull/72197 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] -rdynamic option (PR #72089)

2023-11-15 Thread via cfe-commits
https://github.com/ls-Mou closed https://github.com/llvm/llvm-project/pull/72089 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Supports viewing class member variables in lambda when using the vs debugger (PR #71564)

2023-11-15 Thread via cfe-commits
@@ -0,0 +1,48 @@ +// RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -o %t.obj -- %s GkvJwa wrote: I check the IR through the command line: ``` %clang_cc1 -triple x86_64-windows-msvc -emit-llvm --std=c++17 %s -o - ``` and confirmed that this patch will not be

[clang] 6416b2d - [clang][Interp] Implement IntegralAP subtraction (#71648)

2023-11-15 Thread via cfe-commits
Author: Timm Baeder Date: 2023-11-16T06:18:17+01:00 New Revision: 6416b2d0a81abdce0819961b9d12609e34916098 URL: https://github.com/llvm/llvm-project/commit/6416b2d0a81abdce0819961b9d12609e34916098 DIFF: https://github.com/llvm/llvm-project/commit/6416b2d0a81abdce0819961b9d12609e34916098.diff L

[clang] 0f8c51a - [clang][Interp] Implement __builtin_parity (#71662)

2023-11-15 Thread via cfe-commits
Author: Timm Baeder Date: 2023-11-16T06:24:04+01:00 New Revision: 0f8c51a5230b37331bd62d3e4ad73ac4a5deb106 URL: https://github.com/llvm/llvm-project/commit/0f8c51a5230b37331bd62d3e4ad73ac4a5deb106 DIFF: https://github.com/llvm/llvm-project/commit/0f8c51a5230b37331bd62d3e4ad73ac4a5deb106.diff L

[flang] [compiler-rt] [llvm] [clang] [clang-tools-extra] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-15 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/27] [clang] Add support for new loop attribute [[clang::code

[flang] [compiler-rt] [llvm] [clang] [clang-tools-extra] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-15 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/28] [clang] Add support for new loop attribute [[clang::code

[clang] [CodeGen] Add conditional to module cloning in bitcode linking (PR #72478)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jacob Lambert (lamb-j) Changes Now that we have a commandline option dictating a second link step, (-relink-builtin-bitcode-postop), we can condition the module creation when linking in bitcode modules. This aims to improve performance by

[clang] [CodeGen] Add conditional to module cloning in bitcode linking (PR #72478)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Jacob Lambert (lamb-j) Changes Now that we have a commandline option dictating a second link step, (-relink-builtin-bitcode-postop), we can condition the module creation when linking in bitcode modules. This aims to improve perfor

[clang-tools-extra] [clangd] Add includes from source to non-self-contained headers (PR #72479)

2023-11-15 Thread via cfe-commits
https://github.com/sr-tream created https://github.com/llvm/llvm-project/pull/72479 It's a hack to solve include headers from source to non-self-contained headers Limitations: - header file must be matched by `isHeaderFile` without language options - non-self-contained header must be included b

[clang-tools-extra] [clangd] Add includes from source to non-self-contained headers (PR #72479)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: SR_team (sr-tream) Changes It's a hack to solve include headers from source to non-self-contained headers Limitations: - header file must be matched by `isHeaderFile` without language options - non-self-contained header must be included b

[clang] [CodeGen] Add conditional to module cloning in bitcode linking (PR #72478)

2023-11-15 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 c3b9c36f3ab4d9021951a00c9a6798e3fe0a48a5 3a2a066eeadce6b8f3cd5645965ffe564e68fba3 --

[clang-tools-extra] [clangd] Add includes from source to non-self-contained headers (PR #72479)

2023-11-15 Thread via cfe-commits
https://github.com/sr-tream edited https://github.com/llvm/llvm-project/pull/72479 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add includes from source to non-self-contained headers (PR #72479)

2023-11-15 Thread via cfe-commits
https://github.com/sr-tream edited https://github.com/llvm/llvm-project/pull/72479 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add includes from source to non-self-contained headers (PR #72479)

2023-11-15 Thread via cfe-commits
https://github.com/sr-tream edited https://github.com/llvm/llvm-project/pull/72479 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bffa8e1 - [clang][Interp] Implement __builtin_clrsb (#72243)

2023-11-15 Thread via cfe-commits
Author: Timm Baeder Date: 2023-11-16T07:30:54+01:00 New Revision: bffa8e1d1aeebdcfca935f7b998e8e100bca08a4 URL: https://github.com/llvm/llvm-project/commit/bffa8e1d1aeebdcfca935f7b998e8e100bca08a4 DIFF: https://github.com/llvm/llvm-project/commit/bffa8e1d1aeebdcfca935f7b998e8e100bca08a4.diff L

[llvm] [clang] [AArch64][SME2] Add ldr_zt, str_zt builtins and intrinsics (PR #71795)

2023-11-15 Thread via cfe-commits
mikaelholmen wrote: Hi @MDevereau With EXPENSIVE_CHECKS the new testcase fails due to a verifier check: ``` build-all-expensive/bin/llvm-lit -av ../clang/test/CodeGen/aarch64-sme2-intrinsics/acle_sme2_ldr_str_zt.c ``` results in ``` # After AArch64 Instruction Selection # Machine code for funct

[clang] [AArch64][SME2] Add FCLAMP, CNTP builtins for SME2 (PR #72487)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Dinar Temirbulatov (dtemirbulatov) Changes This change enables FCLAMP, FCLAMP_BF16, CNTP builtins for SME2 target. --- Full diff: https://github.com/llvm/llvm-project/pull/72487.diff 4 Files Affected: - (modified) clang/include/clang/Ba

[clang] [clang][dataflow] Emit an error if source code is not compiled as C++. (PR #65301)

2023-11-16 Thread via cfe-commits
martinboehme wrote: > Is this the right place to add this check? It doesn't seem like there's any > C++-specific logic here. > > Presumably the real incompatibility is `clang::CFG` or one of the consumers > of `dataflow::ControlFlowContext`? Much of the logic in the dataflow framework assumes

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-16 Thread via cfe-commits
https://github.com/schenker updated https://github.com/llvm/llvm-project/pull/71974 >From d899ad40afd6a84210313e6e5f94bb1d678a4778 Mon Sep 17 00:00:00 2001 From: Thomas Schenker Date: Fri, 10 Nov 2023 18:58:26 +0100 Subject: [PATCH] [clang-tidy] bugprone-assert-side-effect non-const operator m

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-16 Thread via cfe-commits
schenker wrote: Thanks for pointing out, I squashed and changed the settings. https://github.com/llvm/llvm-project/pull/71974 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Implement IntegralAP::mul() (PR #72491)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72491.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/IntegralAP.h (+5-7) - (modified) clang/test/AST/Interp/intap.cpp (+16) `

[clang] aa4e34b - [clang][Interp] Implement bitwise operations for IntegralAP (#71807)

2023-11-16 Thread via cfe-commits
Author: Timm Baeder Date: 2023-11-16T09:31:24+01:00 New Revision: aa4e34bd814a7d34551ab2e88cb2c45e78ada442 URL: https://github.com/llvm/llvm-project/commit/aa4e34bd814a7d34551ab2e88cb2c45e78ada442 DIFF: https://github.com/llvm/llvm-project/commit/aa4e34bd814a7d34551ab2e88cb2c45e78ada442.diff L

[clang] [Work-in-Progress][Clang][RISCV] Create supporting intrinsics around RVV BFloat16 type (PR #72463)

2023-11-16 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 aa4e34bd814a7d34551ab2e88cb2c45e78ada442 f3bdd76d81cf07f0d240ebc1b2ace5a9dc8fa320 --

[clang-tools-extra] c95d581 - [clang-tidy] bugprone-assert-side-effect non-const operator methods (#71974)

2023-11-16 Thread via cfe-commits
Author: schenker Date: 2023-11-16T09:53:40+01:00 New Revision: c95d5813b823bbb61cd7d676b959e64754098f49 URL: https://github.com/llvm/llvm-project/commit/c95d5813b823bbb61cd7d676b959e64754098f49 DIFF: https://github.com/llvm/llvm-project/commit/c95d5813b823bbb61cd7d676b959e64754098f49.diff LOG:

[clang] 979eb55 - [Clang][Sema] Differentiate between partial/explicit specializations when diagnosing unexpanded packs (#72015)

2023-11-16 Thread via cfe-commits
Author: Krystian Stasiowski Date: 2023-11-16T10:46:44+01:00 New Revision: 979eb558dd7c203be10fa24ab2b0d7cb93c3443b URL: https://github.com/llvm/llvm-project/commit/979eb558dd7c203be10fa24ab2b0d7cb93c3443b DIFF: https://github.com/llvm/llvm-project/commit/979eb558dd7c203be10fa24ab2b0d7cb93c3443b

[clang] [analyzer] Use AllocaRegion in MallocChecker (PR #72402)

2023-11-16 Thread via cfe-commits
@@ -266,13 +266,18 @@ void CheckUseZeroAllocated1(void) { } char CheckUseZeroAllocated2(void) { + // FIXME: The return value of `alloca()` is modeled with `AllocaRegion` + // instead of `SymbolicRegion`, so the current implementation of + // `MallocChecker::checkUseZeroAllo

[libcxx] [lld] [compiler-rt] [clang-tools-extra] [flang] [libunwind] [clang] [lldb] [llvm] [AMDGPU] - Add constant folding for s_quadmask (PR #72381)

2023-11-16 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 979eb558dd7c203be10fa24ab2b0d7cb93c3443b 3302aaf961982c5c32d692fb813fa25ad7ea33d4 --

[clang] [clang] Non-object types are non-trivially relocatable (PR #69734)

2023-11-16 Thread via cfe-commits
@@ -477,10 +477,10 @@ Bug Fixes in This Version - Clang now prints unnamed members in diagnostic messages instead of giving an empty ''. Fixes (`#63759 `_) -- Fix crash in __builtin_strncmp and related builtins when the siz

[clang] [clang] Non-object types are non-trivially relocatable (PR #69734)

2023-11-16 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/69734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fix: compatible C++ empty record with align UB with gcc (PR #72197)

2023-11-16 Thread via cfe-commits
https://github.com/hstk30-hw reopened https://github.com/llvm/llvm-project/pull/72197 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

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

[clang] [llvm] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-16 Thread via cfe-commits
https://github.com/simpal01 updated https://github.com/llvm/llvm-project/pull/71545 >From e2b6fa1cb088f2c3cf05a38959a3f3d34eda92c5 Mon Sep 17 00:00:00 2001 From: Simi Pallipurath Date: Tue, 7 Nov 2023 13:05:08 + Subject: [PATCH 1/5] [ARM] .fpu equals fpv5-d16 disables floating point MVE wh

[clang] [llvm] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-16 Thread via cfe-commits
@@ -0,0 +1,35 @@ +// RUN: %clang --target=arm-none-eabi -mcpu=cortex-m85 -mfloat-abi=hard -O2 -save-temps=obj -S -o - %s | FileCheck %s +// RUN: %clang --target=arm-none-eabi -mcpu=cortex-m85 -mfloat-abi=hard -O2 -c -mthumb -save-temps=obj %s +// RUN: %clang --target=arm-none-ea

[clang] [llvm] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-16 Thread via cfe-commits
@@ -0,0 +1,35 @@ +// RUN: %clang --target=arm-none-eabi -mcpu=cortex-m85 -mfloat-abi=hard -O2 -save-temps=obj -S -o - %s | FileCheck %s +// RUN: %clang --target=arm-none-eabi -mcpu=cortex-m85 -mfloat-abi=hard -O2 -c -mthumb -save-temps=obj %s +// RUN: %clang --target=arm-none-ea

[clang] [llvm] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-16 Thread via cfe-commits
@@ -0,0 +1,35 @@ +// RUN: %clang --target=arm-none-eabi -mcpu=cortex-m85 -mfloat-abi=hard -O2 -save-temps=obj -S -o - %s | FileCheck %s simpal01 wrote: Done https://github.com/llvm/llvm-project/pull/71545 ___ cfe-comm

[clang] [analyzer] Use AllocaRegion in MallocChecker (PR #72402)

2023-11-16 Thread via cfe-commits
DonatNagyE wrote: > Hmm, it really worries me that `MallocChecker` is setting a return value > outside of `evalCall()`. This can easily lead to conflicts if multiple > checkers try to do this: `evalCall()` is protected from conflicts (the engine > asserts that at most one checker evaluates eac

[clang] [analyzer] Use AllocaRegion in MallocChecker (PR #72402)

2023-11-16 Thread via cfe-commits
@@ -266,13 +266,18 @@ void CheckUseZeroAllocated1(void) { } char CheckUseZeroAllocated2(void) { + // FIXME: The return value of `alloca()` is modeled with `AllocaRegion` + // instead of `SymbolicRegion`, so the current implementation of + // `MallocChecker::checkUseZeroAllo

[clang] [analyzer] Use AllocaRegion in MallocChecker (PR #72402)

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

[clang] fix: compatible C++ empty record with align UB with gcc (PR #72197)

2023-11-16 Thread via cfe-commits
hstk30-hw wrote: This is the code I debug located. Seem the comment is out of date? https://github.com/llvm/llvm-project/blob/1b82cc1186b8bf716205c9b86b851db667792a64/clang/lib/CodeGen/Targets/AArch64.cpp#L298C1-L311C4 This issue https://github.com/llvm/llvm-project/commit/1711cc930bda8d27e8

[clang] [analyzer] Use AllocaRegion in MallocChecker (PR #72402)

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

[clang] [llvm] [clang-tools-extra] [clang-apply-replacements] Apply format only if --format is specified (PR #70801)

2023-11-16 Thread via cfe-commits
https://github.com/kuganv updated https://github.com/llvm/llvm-project/pull/70801 >From 1d50caf93e4b8fb3fc9e24fe7fba83b328f08d57 Mon Sep 17 00:00:00 2001 From: Kugan <34810920+kug...@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:12:10 + Subject: [PATCH] Apply format only if --format is

[clang] 27e6e4a - [CUDA][HIP] make trivial ctor/dtor host device (#72394)

2023-11-16 Thread via cfe-commits
Author: Yaxun (Sam) Liu Date: 2023-11-16T08:42:54-05:00 New Revision: 27e6e4a4d0e3296cebad8db577ec0469a286795e URL: https://github.com/llvm/llvm-project/commit/27e6e4a4d0e3296cebad8db577ec0469a286795e DIFF: https://github.com/llvm/llvm-project/commit/27e6e4a4d0e3296cebad8db577ec0469a286795e.dif

[clang] [compiler-rt] [flang] [llvm] [clang-tools-extra] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-16 Thread via cfe-commits
@@ -322,6 +322,71 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[clang] [compiler-rt] [flang] [llvm] [clang-tools-extra] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

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

[clang] 4cf996d - [clang][Interp] Implement IntegralAP::mul() (#72491)

2023-11-16 Thread via cfe-commits
Author: Timm Baeder Date: 2023-11-16T15:06:11+01:00 New Revision: 4cf996d6a20d8fd0817c953fd383d261409e6d04 URL: https://github.com/llvm/llvm-project/commit/4cf996d6a20d8fd0817c953fd383d261409e6d04 DIFF: https://github.com/llvm/llvm-project/commit/4cf996d6a20d8fd0817c953fd383d261409e6d04.diff L

[clang] [Driver] Support -mcmodel= for LoongArch (PR #72514)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Lu Weining (SixWeining) Changes 7e42545 rejects unsupported mcmodel options, but small/medium/large should be supported models for LoongArch. In addition, to be compatible with gcc, mapping some of their values to clang's. The mapping is

[clang] [Driver] Support -mcmodel= for LoongArch (PR #72514)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Lu Weining (SixWeining) Changes 7e42545 rejects unsupported mcmodel options, but small/medium/large should be supported models for LoongArch. In addition, to be compatible with gcc, mapping some of their values to clang's. The map

[clang] fc35ad0 - [Clang][SME2] Add single and multi min/max by vector builtins (#71707)

2023-11-16 Thread via cfe-commits
Author: Sam Tebbs Date: 2023-11-16T14:25:08Z New Revision: fc35ad06285d65bc3c68dc7bb6454e69f603bb7b URL: https://github.com/llvm/llvm-project/commit/fc35ad06285d65bc3c68dc7bb6454e69f603bb7b DIFF: https://github.com/llvm/llvm-project/commit/fc35ad06285d65bc3c68dc7bb6454e69f603bb7b.diff LOG: [Cl

[clang] [coroutines] Introduce [[clang::coro_lifetimebound]] (PR #72516)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Utkarsh Saxena (usx95) Changes --- Patch is 20.15 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/72516.diff 10 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+5) - (modified) cl

[clang] c0c8679 - [AIX] Disable flaky ClangScanDeps test

2023-11-16 Thread via cfe-commits
Author: Jake Egan Date: 2023-11-16T09:33:13-05:00 New Revision: c0c8679f047e78fbf5d6baa3e9640a3d7e155620 URL: https://github.com/llvm/llvm-project/commit/c0c8679f047e78fbf5d6baa3e9640a3d7e155620 DIFF: https://github.com/llvm/llvm-project/commit/c0c8679f047e78fbf5d6baa3e9640a3d7e155620.diff LOG

[clang] [flang] [flang] Add runtimes using --dependent-lib on MSVC targets (PR #72519)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: David Truby (DavidTruby) Changes This patch uses the added --dependent-lib support to add the relevant runtimes on MSVC targets as `/DEFAULTLIB:` sections in the object file rather than on the link line. This should help CMake suppor

[clang] [flang] [flang] Add runtimes using --dependent-lib on MSVC targets (PR #72519)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: David Truby (DavidTruby) Changes This patch uses the added --dependent-lib support to add the relevant runtimes on MSVC targets as `/DEFAULTLIB:` sections in the object file rather than on the link line. This should help CMake suppor

[clang] [flang] [flang] Add runtimes using --dependent-lib on MSVC targets (PR #72519)

2023-11-16 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 ac4868ea3c495baf5cbcb729e03f95b4425420dc b58c339f7e8fb4cefbe3bad36bb40518beecf864 --

[clang] [clang-format] Fix crashes in AlignArrayOfStructures (PR #72520)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixed #55493. Fixed #68431. --- Full diff: https://github.com/llvm/llvm-project/pull/72520.diff 3 Files Affected: - (modified) clang/lib/Format/WhitespaceManager.cpp (+3-1) - (modified) clang/lib/Format

[clang-tools-extra] [clang-apply-replacements] Apply format only if --format is specified (PR #70801)

2023-11-16 Thread via cfe-commits
https://github.com/kuganv updated https://github.com/llvm/llvm-project/pull/70801 >From ac5aae468a7bce7f0036677d8e5c75b574f0fde3 Mon Sep 17 00:00:00 2001 From: Kugan <34810920+kug...@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:12:10 + Subject: [PATCH] Apply format only if --format is

[llvm] [clang] [clang-tools-extra] [MCP] Enhance MCP copy Instruction removal for special case (PR #70778)

2023-11-16 Thread via cfe-commits
https://github.com/LWenH updated https://github.com/llvm/llvm-project/pull/70778 >From a42f48a44c614f2c996f3f4cb0561e2f7ab35d6f Mon Sep 17 00:00:00 2001 From: LWenH <924105...@qq.com> Date: Tue, 31 Oct 2023 16:33:41 +0800 Subject: [PATCH 1/8] add pre commit test for later mcp patch --- llvm/tes

[clang] [analyzer] Switch to PostStmt callbacks in ArrayBoundV2 (PR #72107)

2023-11-16 Thread via cfe-commits
DonatNagyE wrote: I evaluated a mostly [1] clean analysis run and it reveals that this change has almost no effects when CSA analyses stable open source code (this is the expected behavior, stable code doesn't contain out of bounds memory access). The only differences are apparently caused by

[clang] 59b2301 - [AArch64] Introduce the Armv9.5-A architecture version (#72392)

2023-11-16 Thread via cfe-commits
Author: Lucas Duarte Prates Date: 2023-11-16T15:38:32Z New Revision: 59b2301508ecd97175f4093039bbf887f6d5b484 URL: https://github.com/llvm/llvm-project/commit/59b2301508ecd97175f4093039bbf887f6d5b484 DIFF: https://github.com/llvm/llvm-project/commit/59b2301508ecd97175f4093039bbf887f6d5b484.diff

[clang] [llvm] [clang-tools-extra] [MCP] Enhance MCP copy Instruction removal for special case (PR #70778)

2023-11-16 Thread via cfe-commits
LWenH wrote: > > Shouldn't we forget about L1 when we get to L2? > > I agree with we should forget about L1 when we get to L2. The semantic of > `Copies[Unit].DefRegs` should be Registers defined by `Unit` in COPY > instructions, we want to keep this invariant during tracking. I think it's >

[clang] Remove warnings from -Wchar-subscripts for known positive constants (PR #69061)

2023-11-16 Thread via cfe-commits
https://github.com/wheatman updated https://github.com/llvm/llvm-project/pull/69061 >From d19da42a2ccf65a6d9b6696ab0bdb3bb42cd3832 Mon Sep 17 00:00:00 2001 From: Brian Wheatman Date: Sat, 14 Oct 2023 12:02:19 -0400 Subject: [PATCH] Remove warnings from -Wchar-subscripts for known positive cons

[clang] d3b75c4 - [clang] Make `-fvisibility={}` and `-ftype-visibility={}` benign options. (#71985)

2023-11-16 Thread via cfe-commits
Author: Juergen Ributzka Date: 2023-11-16T08:41:20-08:00 New Revision: d3b75c4750673b6d0d8a224f02b2c0885209a49a URL: https://github.com/llvm/llvm-project/commit/d3b75c4750673b6d0d8a224f02b2c0885209a49a DIFF: https://github.com/llvm/llvm-project/commit/d3b75c4750673b6d0d8a224f02b2c0885209a49a.di

[clang] Supports viewing class member variables in lambda when using the vs debugger (PR #71564)

2023-11-16 Thread via cfe-commits
https://github.com/GkvJwa updated https://github.com/llvm/llvm-project/pull/71564 >From 5a2416d3c8da7ccdc87a84283bb12e454a832b71 Mon Sep 17 00:00:00 2001 From: GkvJwa Date: Wed, 8 Nov 2023 01:37:19 +0800 Subject: [PATCH] Supports viewing class member in lambda when using the vs debugger Use "

[clang] TESTING infra (PR #72533)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shahid Iqbal (shahidiqbal13) Changes Just a Test git review , will abandoned --- Full diff: https://github.com/llvm/llvm-project/pull/72533.diff 1 Files Affected: - (modified) clang/NOTES.txt (+2) ``diff diff --git a/clang/N

[clang] Supports viewing class member variables in lambda when using the vs debugger (PR #71564)

2023-11-16 Thread via cfe-commits
@@ -0,0 +1,48 @@ +// RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -o %t.obj -- %s GkvJwa wrote: got it, review again https://github.com/llvm/llvm-project/pull/71564 ___ cfe-commits mailing list cfe-commits@lists.

[clang] 699e101 - [clang][analyzer] Improve 'errno' handling in StdLibraryFunctionsChecker. (#71392)

2023-11-16 Thread via cfe-commits
Author: Balázs Kéri Date: 2023-11-16T18:06:51+01:00 New Revision: 699e1019af8d73ce256bd2bb1df3a1d8c14d8b72 URL: https://github.com/llvm/llvm-project/commit/699e1019af8d73ce256bd2bb1df3a1d8c14d8b72 DIFF: https://github.com/llvm/llvm-project/commit/699e1019af8d73ce256bd2bb1df3a1d8c14d8b72.diff L

[llvm] [compiler-rt] [libcxx] [clang] fix python SyntaxWarnings in check-all output (PR #72538)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxx Author: Georgios Eleftheriou (eleftg) Changes by converting the offending strings to raw @lattner --- Full diff: https://github.com/llvm/llvm-project/pull/72538.diff 4 Files Affected: - (modified) clang/lib/Tooling/DumpTool/generate_cxx_src_

[compiler-rt] [clang] [libcxx] [llvm] fix python SyntaxWarnings in check-all output (PR #72538)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Georgios Eleftheriou (eleftg) Changes by converting the offending strings to raw @lattner --- Full diff: https://github.com/llvm/llvm-project/pull/72538.diff 4 Files Affected: - (modified) clang/lib/Tooling/DumpTool/generate_cxx_src_l

[clang] [clang][AST] Invalidate DecompositionDecl if it has invalid initializer. (PR #72428)

2023-11-16 Thread via cfe-commits
@@ -13540,6 +13540,15 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, bool DirectInit) { CreateRecoveryExpr(Init->getBeginLoc(), Init->getEndLoc(), Args); if (RecoveryExpr.get()) VDecl->setInit(RecoveryExpr.get()); + // In general, f

[clang] [clang][AST] Invalidate DecompositionDecl if it has invalid initializer. (PR #72428)

2023-11-16 Thread via cfe-commits
@@ -24,4 +24,17 @@ void test() { auto b4 = A(1); // CHECK: `-VarDecl {{.*}} invalid b5 'auto' auto b5 = A{1}; -} \ No newline at end of file +} + +void pr72198() { cor3ntin wrote: ```suggestion void GH72198() { ``` https://github.com/llvm/llvm-project/p

[clang] [clang][AST] Invalidate DecompositionDecl if it has invalid initializer. (PR #72428)

2023-11-16 Thread via cfe-commits
@@ -24,4 +24,17 @@ void test() { auto b4 = A(1); // CHECK: `-VarDecl {{.*}} invalid b5 'auto' auto b5 = A{1}; -} \ No newline at end of file +} + +void pr72198() { + // CHECK: DecompositionDecl {{.*}} invalid 'int' + int [_, b] = {0, 0}; + [b]{}; +} + +int get_point();

[llvm] [libc] [flang] [openmp] [lldb] [libcxx] [mlir] [clang] Fix Logical expression used for merged conditional if in FlattenCFG pass (PR #72522)

2023-11-16 Thread via cfe-commits
https://github.com/mahtohappy updated https://github.com/llvm/llvm-project/pull/72522 >From ce4f4fc02e25359c8f38ff9ecf2a2d82aa90df72 Mon Sep 17 00:00:00 2001 From: mahtohappy Date: Thu, 16 Nov 2023 06:53:24 -0800 Subject: [PATCH] Fix Logical expression used for merged conditional if --- llvm/

[llvm] [libc] [flang] [openmp] [lldb] [libcxx] [mlir] [clang] Fix Logical expression used for merged conditional if in FlattenCFG pass (PR #72522)

2023-11-16 Thread via cfe-commits
https://github.com/mahtohappy updated https://github.com/llvm/llvm-project/pull/72522 >From ce4f4fc02e25359c8f38ff9ecf2a2d82aa90df72 Mon Sep 17 00:00:00 2001 From: mahtohappy Date: Thu, 16 Nov 2023 06:53:24 -0800 Subject: [PATCH 1/2] Fix Logical expression used for merged conditional if --- l

[llvm] [clang] [Offloading][NFC] Refactor handling of offloading entries (PR #72544)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: This patch is a simple refactoring of code out of the linker wrapper into a common location. The main motivation behind this change is to make it easier to change the handling in the future to accept

[compiler-rt] [clang-tools-extra] [clang] [llvm] [thinlto] Implement the import of vtable definitions. (PR #72551)

2023-11-16 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 0718c1a8405ac130d72cd3525befed2911618cc7 ad4ec98b508eae67133187a0948092da5fee8e36 --

[clang-tools-extra] [clang-tidy][NFC][DOC] Add missing HICPP rule id's (PR #72553)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Björn Svensson (bjosv) Changes Add HICPP rule identities to the documentation for `hicpp-avoid-c-arrays` and `hicpp-no-assembler`. Includes an update of `hicpp-avoid-goto` to look like other aliased checks. References: * avoid-c-arr

[clang] [AMDGPU] Treat printf as builtin for OpenCL (PR #72554)

2023-11-16 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 186db1bcb0096a6af348d7e17866c68fa2004068 6ace9d0a51064be189093ca3bb42416aafadb7f6 --

[clang] [llvm] Enable OpenCL hostcall printf (WIP) (PR #72556)

2023-11-16 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 cb4627d15027e1ed0051f5e5af447602f0f60971 f9329597564d4e3390f6d0d3a08e4a6f66b52de4 --

[clang] 34e4e5e - [flang][Driver] Support -rpath, -shared, and -static in the frontend (#66702)

2023-11-16 Thread via cfe-commits
Author: Tarun Prabhu Date: 2023-11-16T12:01:17-07:00 New Revision: 34e4e5eb70818fca90574beb8f5617e27bfac138 URL: https://github.com/llvm/llvm-project/commit/34e4e5eb70818fca90574beb8f5617e27bfac138 DIFF: https://github.com/llvm/llvm-project/commit/34e4e5eb70818fca90574beb8f5617e27bfac138.diff

[clang] Remove warnings from -Wchar-subscripts for known positive constants (PR #69061)

2023-11-16 Thread via cfe-commits
wheatman wrote: @AaronBallman if there are no more comments, could you please merge it in https://github.com/llvm/llvm-project/pull/69061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [compiler-rt] [flang] [llvm] [clang-tools-extra] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-16 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/29] [clang] Add support for new loop attribute [[clang::code

[llvm] [flang] [clang-tools-extra] [clang] [compiler-rt] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-16 Thread via cfe-commits
@@ -322,6 +322,71 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[llvm] [flang] [clang] [clang-tools-extra] [compiler-rt] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-16 Thread via cfe-commits
@@ -322,6 +322,71 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[clang] [Driver] Simply some gcc search logic (PR #72558)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tom Stellard (tstellar) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72558.diff 2 Files Affected: - (modified) clang/lib/Driver/ToolChains/Gnu.cpp (+7-11) - (modified) clang/lib/Driver/ToolChains/Gnu.h (-1)

[llvm] [flang] [clang] [clang-tools-extra] [compiler-rt] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-16 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/30] [clang] Add support for new loop attribute [[clang::code

[llvm] [clang] [compiler-rt] [clang-tools-extra] [flang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

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

[llvm] [flang] [clang] [clang-tools-extra] [compiler-rt] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

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

[flang] [clang-tools-extra] [llvm] [clang] [compiler-rt] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-16 Thread via cfe-commits
@@ -359,16 +359,34 @@ static Attr *handleCodeAlignAttr(Sema &S, Stmt *St, const ParsedAttr &A) { static void CheckForDuplicateCodeAlignAttrs(Sema &S, const SmallVectorImpl &Attrs) { - const Attr *A = nullptr; - for (const auto *I : Attrs) { -

[clang] [AMDGPU] Treat printf as builtin for OpenCL (PR #72554)

2023-11-16 Thread via cfe-commits
@@ -2458,6 +2458,11 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, &getTarget().getLongDoubleFormat() == &llvm::APFloat::IEEEquad()) BuiltinID = mutateLongDoubleBuiltin(BuiltinID); + // Mutate the printf builtin ID so that we u

[clang] b2d62c9 - [clang] Ensure fixed point conversions work in C++ (#68344)

2023-11-16 Thread via cfe-commits
Author: PiJoules Date: 2023-11-16T13:11:15-08:00 New Revision: b2d62c9a58433e2a2ca8d2c9cd6b0b612dca2e76 URL: https://github.com/llvm/llvm-project/commit/b2d62c9a58433e2a2ca8d2c9cd6b0b612dca2e76 DIFF: https://github.com/llvm/llvm-project/commit/b2d62c9a58433e2a2ca8d2c9cd6b0b612dca2e76.diff LOG:

[clang] [clang] Ensure fixed point conversions work in C++ (PR #68344)

2023-11-16 Thread via cfe-commits
https://github.com/PiJoules closed https://github.com/llvm/llvm-project/pull/68344 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ClangModule] Fix decl-params-determinisim test after serialization change (PR #72572)

2023-11-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Steven Wu (cachemeifyoucan) Changes Fix decl-params-determinisim test after 48be81e1 packed some information in the clang module. The test is to make sure the decls are appearing in a strict ordering and it relies on check the cor

<    13   14   15   16   17   18   19   20   21   22   >