[clang] [clang][Interp] Implement __builtin_classify_type (PR #71972)

2023-11-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/71972 >From b4a4ce956f4aa6c084d112d519fe98eb9f585559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 10 Nov 2023 19:33:21 +0100 Subject: [PATCH] [clang][Interp] Implement

[clang] [clang][Interp] Implement __builtin_classify_type (PR #71972)

2023-11-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/71972 >From ddda59905a49415c9c5387d7a05ed4cf768cb74b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 10 Nov 2023 19:33:21 +0100 Subject: [PATCH] [clang][Interp] Implement

[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] [AArch64][SME2] Add FCLAMP, CNTP builtins for SME2 (PR #72487)

2023-11-15 Thread Dinar Temirbulatov via cfe-commits
https://github.com/dtemirbulatov created https://github.com/llvm/llvm-project/pull/72487 This change enables FCLAMP, FCLAMP_BF16, CNTP builtins for SME2 target. >From dc691934814029de64494272697d562ddb86dfee Mon Sep 17 00:00:00 2001 From: Dinar Temirbulatov Date: Thu, 16 Nov 2023 07:21:17

[clang-tools-extra] [llvm] [PowerPC] Implement llvm.set.rounding intrinsic (PR #67302)

2023-11-15 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises updated https://github.com/llvm/llvm-project/pull/67302 >From a1567f579531c3abbd1f4e9b7c7edd2f95ead42c Mon Sep 17 00:00:00 2001 From: Qiu Chaofan Date: Mon, 25 Sep 2023 17:10:51 +0800 Subject: [PATCH 1/2] [PowerPC] Implement llvm.set.rounding intrinsic According

[clang] [PowerPC] Disable float128 on AIX in Clang (PR #67298)

2023-11-15 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises updated https://github.com/llvm/llvm-project/pull/67298 >From 58cd725354eae6aa733c98374a804de0ef595c60 Mon Sep 17 00:00:00 2001 From: Qiu Chaofan Date: Mon, 25 Sep 2023 16:57:39 +0800 Subject: [PATCH 1/2] [PowerPC] Disable float128 on AIX in Clang PowerPC AIX

[clang] [clang][Interp] Implement __builtin_bitreverse (PR #71687)

2023-11-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/71687 >From f10454ffa4337726e6f3b324a38ffc1fd381b54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 8 Nov 2023 15:51:44 +0100 Subject: [PATCH] [clang][Interp] Implement __builtin_bitreverse

[clang] [PowerPC] Disable float128 on AIX in Clang (PR #67298)

2023-11-15 Thread Kai Luo via cfe-commits
@@ -52,7 +52,7 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector , HasDirectMove = true; } else if (Feature == "+htm") { HasHTM = true; -} else if (Feature == "+float128") { +} else if (Feature == "+float128" && !getTriple().isOSAIX()) {

[clang] [PowerPC] Disable float128 on AIX in Clang (PR #67298)

2023-11-15 Thread Kai Luo via cfe-commits
@@ -52,7 +52,7 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector , HasDirectMove = true; } else if (Feature == "+htm") { HasHTM = true; -} else if (Feature == "+float128") { +} else if (Feature == "+float128" && !getTriple().isOSAIX()) {

[clang] [PowerPC] Disable float128 on AIX in Clang (PR #67298)

2023-11-15 Thread Kai Luo via cfe-commits
https://github.com/bzEq deleted https://github.com/llvm/llvm-project/pull/67298 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Disable float128 on AIX in Clang (PR #67298)

2023-11-15 Thread Kai Luo via cfe-commits
@@ -52,7 +52,7 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector , HasDirectMove = true; } else if (Feature == "+htm") { HasHTM = true; -} else if (Feature == "+float128") { +} else if (Feature == "+float128" && !getTriple().isOSAIX()) {

[clang] [llvm] [AMDGPU] Add code model (#70760) test for amdgpu target. (PR #71019)

2023-11-15 Thread Pravin Jagtap via cfe-commits
https://github.com/pravinjagtap updated https://github.com/llvm/llvm-project/pull/71019 >From 88e45f090a0eb7023a155dd464097467cab018bd Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Thu, 2 Nov 2023 01:05:35 -0400 Subject: [PATCH 1/6] [AMDGPU] Add code model (#70760) test for amdgpu target.

[llvm] [clang] [AMDGPU] Add code model (#70760) test for amdgpu target. (PR #71019)

2023-11-15 Thread Pravin Jagtap via cfe-commits
https://github.com/pravinjagtap updated https://github.com/llvm/llvm-project/pull/71019 >From 88e45f090a0eb7023a155dd464097467cab018bd Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Thu, 2 Nov 2023 01:05:35 -0400 Subject: [PATCH 1/6] [AMDGPU] Add code model (#70760) test for amdgpu target.

[compiler-rt] [clang-tools-extra] [clang] [llvm] [mlir] [flang] [mlir] Verify non-negative `offset` and `size` (PR #72059)

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

[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

[clang] [clang][Interp] Implement __builtin_clrsb (PR #72243)

2023-11-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/72243 ___ 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

[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] [CodeGen] Add conditional to module cloning in bitcode linking (PR #72478)

2023-11-15 Thread Jacob Lambert via cfe-commits
@@ -251,32 +255,50 @@ bool BackendConsumer::LinkInModules(llvm::Module *M, bool ShouldLinkFiles) { } CurLinkModule = LM.Module.get(); - -// TODO: If CloneModule() is updated to support cloning of unmaterialized -// modules, we can remove this bool Err;

[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
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

[clang] [CodeGen] Implement post-opt linking option for builtin bitocdes (PR #69371)

2023-11-15 Thread Jacob Lambert via cfe-commits
@@ -48,428 +49,365 @@ #include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/YAMLTraits.h" #include "llvm/Transforms/IPO/Internalize.h" +#include "llvm/Transforms/Utils/Cloning.h" -#include #include using namespace clang; using namespace llvm; #define

[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

[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

[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

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

2023-11-15 Thread Jacob Lambert via cfe-commits
https://github.com/lamb-j created https://github.com/llvm/llvm-project/pull/72478 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

[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] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-15 Thread Utkarsh Saxena via cfe-commits
@@ -7482,3 +7482,54 @@ generation of the other destruction cases, optimizing the above `foo.destroy` to }]; } + + +def CoroReturnTypeAndWrapperDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ +The ``coro_return_type`` attribute should be marked on a

[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] [clang] Add bitint classification for __builtin_classify_type (PR #72036)

2023-11-15 Thread Timm Baeder via cfe-commits
@@ -217,6 +217,8 @@ Non-comprehensive list of changes in this release (e.g., ``uint16x8_t``), this returns the constant number of elements at compile-time. For scalable vectors, e.g., SVE or RISC-V V, the number of elements is not known at compile-time and is

[clang] [clang][Interp] Implement __builtin_clrsb (PR #72243)

2023-11-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/72243 >From 03dfcf6bc645aaadda0d25358871dca811d5bd35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 14 Nov 2023 12:42:03 +0100 Subject: [PATCH] [clang][Interp] Implement __builtin_clrsb ---

[clang] 291f4a0 - [Driver] -rdynamic: remove duplicate -export-dynamic

2023-11-15 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2023-11-15T21:24:12-08:00 New Revision: 291f4a00232b5742940d67e2ecf9168631251317 URL: https://github.com/llvm/llvm-project/commit/291f4a00232b5742940d67e2ecf9168631251317 DIFF: https://github.com/llvm/llvm-project/commit/291f4a00232b5742940d67e2ecf9168631251317.diff

[clang] [clang][Interp] Implement __builtin_parity (PR #71662)

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

[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

[clang] [clang][Interp] Implement __builtin_bitreverse (PR #71687)

2023-11-15 Thread Timm Baeder via cfe-commits
@@ -59,13 +59,54 @@ static void pushInt(InterpState , int32_t Val) { llvm_unreachable("Int isn't 16 or 32 bit?"); } -static bool retInt(InterpState , CodePtr OpPC, APValue ) { - PrimType IntType = getIntPrimType(S); - if (IntType == PT_Sint32) -return Ret(S, OpPC,

[clang] [clang][Interp] Implement IntegralAP subtraction (PR #71648)

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

[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

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

2023-11-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/71807 >From 72b46d891d34e7c0810bec335221a109cf4fb3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 9 Nov 2023 14:29:51 +0100 Subject: [PATCH] [clang][Interp] Implement bitwise operations for

[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] [CodeGen] Implement post-opt linking option for builtin bitocdes (PR #69371)

2023-11-15 Thread Jacob Lambert via cfe-commits
@@ -48,428 +49,365 @@ #include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/YAMLTraits.h" #include "llvm/Transforms/IPO/Internalize.h" +#include "llvm/Transforms/Utils/Cloning.h" -#include #include using namespace clang; using namespace llvm; #define

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-15 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/71945 >From 89a2d60fc012742a74a008fb77213bcd47734503 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 10 Nov 2023 15:10:44 +0100 Subject: [PATCH 1/8] [coroutines] Introduce [[clang::coro_return_type]] and

[llvm] [compiler-rt] [clang-tools-extra] [lldb] [clang] [flang] [mlir] [Profile] Add binary profile correlation for code coverage. (PR #69493)

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

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

2023-11-15 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu updated https://github.com/llvm/llvm-project/pull/72394 >From 0efce26340ce058cd2477f5dccbb6ab35cb1c2a0 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Tue, 14 Nov 2023 22:08:45 -0500 Subject: [PATCH] [CUDA][HIP] make trivial ctor/dtor host device Make

[llvm] [clang] [clang-tools-extra] [AMDGPU] Fix GCNRewritePartialRegUses pass: vector regclass is selected instead of scalar. (PR #69957)

2023-11-15 Thread Carl Ritson via cfe-commits
perlfu wrote: > I can regenerate the tests but I'm not sure how to do it best here: submit > the updated tests, rebase this PR's branch on top of the commit and then > force push the branch? Or I can simply merge _main_ with the updated tests > commit into this PR's branch? I do not know

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

2023-11-15 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD updated https://github.com/llvm/llvm-project/pull/72463 >From 2091781c4cf201e078a702bdd17bc66a3a608177 Mon Sep 17 00:00:00 2001 From: eopXD Date: Tue, 14 Nov 2023 00:52:47 -0800 Subject: [PATCH 1/3] [Clang][RISCV] Simplify variable name and its guarded condition. NFC

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-15 Thread Chuanqi Xu via cfe-commits
@@ -7482,3 +7482,54 @@ generation of the other destruction cases, optimizing the above `foo.destroy` to }]; } + + +def CoroReturnTypeAndWrapperDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ +The ``coro_return_type`` attribute should be marked on a

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-15 Thread Chuanqi Xu via cfe-commits
@@ -7482,3 +7482,54 @@ generation of the other destruction cases, optimizing the above `foo.destroy` to }]; } + + +def CoroReturnTypeAndWrapperDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ +The ``coro_return_type`` attribute should be marked on a

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-15 Thread Chuanqi Xu via cfe-commits
@@ -300,6 +300,11 @@ Attribute Changes in Clang to reduce the size of the destroy functions for coroutines which are known to be destroyed after having reached the final suspend point. +- Clang now introduced ``[[clang::coro_return_type]]`` and

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-15 Thread Chuanqi Xu via cfe-commits
@@ -7482,3 +7482,54 @@ generation of the other destruction cases, optimizing the above `foo.destroy` to }]; } + + +def CoroReturnTypeAndWrapperDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ +The ``coro_return_type`` attribute should be marked on a

[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] 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] Fix crash with modules and constexpr destructor (PR #69076)

2023-11-15 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: The key point now is the rationale why this change relates to modules. It looks not good to proceed without understanding this. Otherwise we're playing with a black box... And the concrete method, ..., well, I guess we had no choice but debugging it hardly. For example,

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-15 Thread Chuanqi Xu via cfe-commits
@@ -11591,6 +11591,10 @@ def err_conflicting_aligned_options : Error < def err_coro_invalid_addr_of_label : Error< "the GNU address of label extension is not allowed in coroutines." >; +def err_coroutine_return_type : Error< ChuanqiXu9 wrote: The intention

[clang] [Clang][RISCV] Remove duplicate functions isRVVSizelessBuiltinType. NFC (PR #67089)

2023-11-15 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/67089 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Check nullness of captured type before use (PR #72230)

2023-11-15 Thread Qiu Chaofan via cfe-commits
ecnelises wrote: Abandon in favor of #72428 https://github.com/llvm/llvm-project/pull/72230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Check nullness of captured type before use (PR #72230)

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

[clang] Recommit "[Clang][RISCV] Introduce tuple types for RVV bfloat16 #72216" (PR #72370)

2023-11-15 Thread Craig Topper via cfe-commits
@@ -1101,7 +1101,7 @@ enum PredefinedTypeIDs { /// /// Type IDs for non-predefined types will start at /// NUM_PREDEF_TYPE_IDs. -const unsigned NUM_PREDEF_TYPE_IDS = 500; +const unsigned NUM_PREDEF_TYPE_IDS = 502; topperc wrote: Then your commit message

[clang] [Sema] Check nullness of captured type before use (PR #72230)

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

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

2023-11-15 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD updated https://github.com/llvm/llvm-project/pull/72463 >From 2091781c4cf201e078a702bdd17bc66a3a608177 Mon Sep 17 00:00:00 2001 From: eopXD Date: Tue, 14 Nov 2023 00:52:47 -0800 Subject: [PATCH 1/2] [Clang][RISCV] Simplify variable name and its guarded condition. NFC

[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:

[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 Yueh-Ting Chen via cfe-commits
https://github.com/eopXD edited https://github.com/llvm/llvm-project/pull/72463 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-11-15 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD created https://github.com/llvm/llvm-project/pull/72463 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 >From

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

2023-11-15 Thread Cody Tapscott via cfe-commits
topolarity 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`? https://github.com/llvm/llvm-project/pull/65301

[PATCH] D158824: [RISCV][MC] MC layer support for xcvmem and xcvelw extensions

2023-11-15 Thread Liao Chunyu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG71a7108ee91a: [RISCV][MC] MC layer support for xcvmem and xcvelw extensions (authored by liaolucy). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[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

[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] 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

[lldb] [flang] [clang] [clang-tools-extra] [llvm] [mlir] [compiler-rt] [CodeGen][DebugInfo] Add missing debug info for jump table BB (PR #71021)

2023-11-15 Thread Adrian Prantl via cfe-commits
https://github.com/adrian-prantl approved this pull request. https://github.com/llvm/llvm-project/pull/71021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] Implement post-opt linking option for builtin bitocdes (PR #69371)

2023-11-15 Thread Mike Rice via cfe-commits
@@ -48,428 +49,365 @@ #include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/YAMLTraits.h" #include "llvm/Transforms/IPO/Internalize.h" +#include "llvm/Transforms/Utils/Cloning.h" -#include #include using namespace clang; using namespace llvm; #define

[clang] [Clang][RISCV] Remove duplicate functions isRVVSizelessBuiltinType. NFC (PR #67089)

2023-11-15 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD updated https://github.com/llvm/llvm-project/pull/67089 >From 0c449af2049f32103a4f7edf5852f317f6454a23 Mon Sep 17 00:00:00 2001 From: eopXD Date: Thu, 21 Sep 2023 23:17:22 -0700 Subject: [PATCH] [Clang][RISCV] Remove duplicate functions isRVVSizelessBuiltinType. NFC

[clang] [Clang][RISCV] Remove duplicate functions isRVVSizelessBuiltinType. NFC (PR #67089)

2023-11-15 Thread Yueh-Ting Chen via cfe-commits
eopXD wrote: Ping. https://github.com/llvm/llvm-project/pull/67089 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [-Wunsafe-buffer-usage] Add FixableGadget for AddAssign in UnspecifiedUntypedContext (PR #71862)

2023-11-15 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud updated https://github.com/llvm/llvm-project/pull/71862 >From 6636745d1c444747a33c91b366a730d81ca5db5a Mon Sep 17 00:00:00 2001 From: Rashmi Mudduluru Date: Wed, 1 Nov 2023 13:43:12 -0700 Subject: [PATCH 01/11] [-Wunsafe-buffer-usage][WIP] Fixable gadget for

[clang] Fix to attribute plugins reaching an unreachable (PR #70877)

2023-11-15 Thread Amy Huang via cfe-commits
https://github.com/amykhuang updated https://github.com/llvm/llvm-project/pull/70877 >From 8216d6bc5329d4fcb723db14e2c503cb718cb36d Mon Sep 17 00:00:00 2001 From: Amy Huang Date: Tue, 31 Oct 2023 16:45:17 -0700 Subject: [PATCH 1/2] Fix attribute plugins --- clang/lib/Sema/ParsedAttr.cpp | 15

[clang] Recommit "[Clang][RISCV] Introduce tuple types for RVV bfloat16 #72216" (PR #72370)

2023-11-15 Thread Yueh-Ting Chen via cfe-commits
@@ -1101,7 +1101,7 @@ enum PredefinedTypeIDs { /// /// Type IDs for non-predefined types will start at /// NUM_PREDEF_TYPE_IDs. -const unsigned NUM_PREDEF_TYPE_IDS = 500; +const unsigned NUM_PREDEF_TYPE_IDS = 502; eopXD wrote: I extended `NUM_PREDEF_TYPE_IDS`

[clang] Recommit "[Clang][RISCV] Introduce tuple types for RVV bfloat16 #72216" (PR #72370)

2023-11-15 Thread Yueh-Ting Chen via cfe-commits
@@ -1101,7 +1101,7 @@ enum PredefinedTypeIDs { /// /// Type IDs for non-predefined types will start at /// NUM_PREDEF_TYPE_IDs. -const unsigned NUM_PREDEF_TYPE_IDS = 500; +const unsigned NUM_PREDEF_TYPE_IDS = 502; eopXD wrote: It is not the problem of 502 or

[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] [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] [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] [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 6eb6d223644f09e6c307856a2ddb71d65d06968d 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++ ---

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

2023-11-15 Thread via cfe-commits
@@ -2192,6 +2194,9 @@ static bool IsStandardConversion(Sema , Expr* From, QualType ToType, From->isIntegerConstantExpr(S.getASTContext())) { SCS.Second = ICK_Compatible_Conversion; FromType = ToType; + } else if (ToType->isFixedPointType() ||

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

2023-11-15 Thread via cfe-commits
@@ -156,7 +156,8 @@ ImplicitConversionRank clang::GetConversionRank(ImplicitConversionKind Kind) { // it was omitted by the patch that added // ICK_Zero_Queue_Conversion ICR_C_Conversion, -ICR_C_Conversion_Extension +

[clang] Recommit "[Clang][RISCV] Introduce tuple types for RVV bfloat16 #72216" (PR #72370)

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

[clang] Recommit "[Clang][RISCV] Introduce tuple types for RVV bfloat16 #72216" (PR #72370)

2023-11-15 Thread Craig Topper via cfe-commits
@@ -1101,7 +1101,7 @@ enum PredefinedTypeIDs { /// /// Type IDs for non-predefined types will start at /// NUM_PREDEF_TYPE_IDs. -const unsigned NUM_PREDEF_TYPE_IDS = 500; +const unsigned NUM_PREDEF_TYPE_IDS = 502; topperc wrote: Why is 502, but 600 is bad?

[compiler-rt] [llvm] [clang-tools-extra] [clang] [IRPGO][ValueProfile] Instrument virtual table address that could be used to do virtual table address comparision for indirect-call-promotion. (PR #668

2023-11-15 Thread Mingming Liu via cfe-commits
minglotus-6 wrote: One heads up, the latest 'git merge main' brings a failure in test https://github.com/llvm/llvm-project/blob/main/compiler-rt/test/fuzzer/gc-sections.test :( . `ninja check-all` on a clean main gives the same failure. Hopefully it would be fixed soon.

[clang] Recommit "[Clang][RISCV] Introduce tuple types for RVV bfloat16 #72216" (PR #72370)

2023-11-15 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD closed https://github.com/llvm/llvm-project/pull/72370 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1c93781 - Recommit "[Clang][RISCV] Introduce tuple types for RVV bfloat16 #72216" (#72370)

2023-11-15 Thread via cfe-commits
Author: Yueh-Ting (eop) Chen Date: 2023-11-16T08:25:54+08:00 New Revision: 1c93781918135b16b19f7a9758040e0e18420617 URL: https://github.com/llvm/llvm-project/commit/1c93781918135b16b19f7a9758040e0e18420617 DIFF:

[llvm] [clang-tools-extra] [clang] [InstCombine] Convert or concat to fshl if opposite or concat exists (PR #68502)

2023-11-15 Thread via cfe-commits
HaohaiWen wrote: > > Thanks for the updated example! > > > > To explain what I meant in first comment using this example: We would > > perform the transform https://alive2.llvm.org/ce/z/nllcB_, which does not > > depend at all on how `%yx` is constructed, and whether there is any way to > >

[clang] Fix to attribute plugins reaching an unreachable (PR #70877)

2023-11-15 Thread Louis Dionne via cfe-commits
ldionne wrote: This is weird, it's the first time I see this and I couldn't find any obvious offending commit. It looks like it shouldn't be related, but at the same time we're not seeing this issue in any of the other builds in the Clang pipeline. You could consider updating the PR with the

[clang] [-Wunsafe-buffer-usage] Add FixableGadget for AddAssign in UnspecifiedUntypedContext (PR #71862)

2023-11-15 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud updated https://github.com/llvm/llvm-project/pull/71862 >From 6636745d1c444747a33c91b366a730d81ca5db5a Mon Sep 17 00:00:00 2001 From: Rashmi Mudduluru Date: Wed, 1 Nov 2023 13:43:12 -0700 Subject: [PATCH 01/10] [-Wunsafe-buffer-usage][WIP] Fixable gadget for

[clang] [clang-format] Handle lambdas in QualifierAlignment (PR #72456)

2023-11-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixed #62780. --- Full diff: https://github.com/llvm/llvm-project/pull/72456.diff 3 Files Affected: - (modified) clang/lib/Format/QualifierAlignmentFixer.cpp (+9-3) - (modified)

[clang] [clang-format] Handle lambdas in QualifierAlignment (PR #72456)

2023-11-15 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/72456 Fixed #62780. >From 5aae5d3c5b976d91548219aba4fb9c937d0fbbcc Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Wed, 15 Nov 2023 16:13:46 -0800 Subject: [PATCH] [clang-format] Handle lambdas in QualifierAlignment

[clang-tools-extra] [clang-tidy] Add new performance-use-starts-ends-with check (PR #72385)

2023-11-15 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/72385 >From 96e00378116ca5fbfad6edb220e86326dc4f9897 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Wed, 15 Nov 2023 01:13:10 -0800 Subject: [PATCH] [clang-tidy] Add new performance-use-starts-ends-with

[clang-tools-extra] [llvm] [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 1eb1638a12c619febf1fe9830f34e51a56d4c20e 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++ ---

[libunwind] [libunwind] Remove unnecessary strcpy dependency (PR #72043)

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

[libunwind] b7a249d - [libunwind] Remove unnecessary strcpy dependency (#72043)

2023-11-15 Thread via cfe-commits
Author: Michael Kenzel Date: 2023-11-15T18:41:53-05:00 New Revision: b7a249d26fe61432050df470d23bdea417fda574 URL: https://github.com/llvm/llvm-project/commit/b7a249d26fe61432050df470d23bdea417fda574 DIFF:

[libunwind] [libunwind] Remove unnecessary strcpy dependency (PR #72043)

2023-11-15 Thread Louis Dionne via cfe-commits
ldionne wrote: This seems reasonable. I read the discussion about the size of the member but I think this is unlikely to change much -- plus I think the compiler should be able to diagnose in case the string becomes smaller and we'd be copying from a past-the-end location into the data

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

2023-11-15 Thread Juergen Ributzka via cfe-commits
https://github.com/ributzka updated https://github.com/llvm/llvm-project/pull/71985 >From a6a9ebe0f8077889b6cb4bafd75c9eb66a823bc4 Mon Sep 17 00:00:00 2001 From: Juergen Ributzka Date: Fri, 10 Nov 2023 12:39:16 -0800 Subject: [PATCH 1/2] [clang] Make `-fvisibility={}` and

  1   2   3   4   5   6   >