[clang] [Clang] [WIP] Added builtin_alloca support for OpenCL1.2 and below (PR #95750)

2024-07-02 Thread Vikash Gupta via cfe-commits
@@ -0,0 +1,255 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 +// RUN: %clang_cc1 %s -O0 -triple amdgcn-amd-amdhsa -cl-std=CL1.2 \ +// RUN: -emit-llvm -o - | FileCheck --check-prefix=OPENCL12 %s +// RUN: %clang_cc1 %s -

[clang] [Sema] Fix crash in Sema::FindInstantiatedDecl (PR #96509)

2024-07-02 Thread Alejandro Álvarez Ayllón via cfe-commits
alejandro-alvarez-sonarsource wrote: Ping (@cor3ntin, @Endilll ?) https://github.com/llvm/llvm-project/pull/96509 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CUDA] Add support for CUDA-12.6 and sm_100 (PR #97402)

2024-07-02 Thread Sergey Kozub via cfe-commits
sergey-kozub wrote: This PR is redundant, closing. https://github.com/llvm/llvm-project/pull/97402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CUDA] Add support for CUDA-12.6 and sm_100 (PR #97402)

2024-07-02 Thread Sergey Kozub via cfe-commits
https://github.com/sergey-kozub closed https://github.com/llvm/llvm-project/pull/97402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Driver][X86] Add flang visibility for -mapx-features= (PR #97525)

2024-07-02 Thread Shengchen Kan via cfe-commits
KanRobert wrote: Also, AArch64 also exposes the tuning flag `msve-vector-bits=` to flang. https://github.com/llvm/llvm-project/pull/97525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [flang] [Driver][X86] Add flang visibility for -mapx-features= (PR #97525)

2024-07-02 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert edited https://github.com/llvm/llvm-project/pull/97525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Driver][X86] Add flang visibility for -mapx-features= (PR #97525)

2024-07-02 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/97525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Driver][X86] Add flang visibility for -mapx-features= (PR #97525)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shengchen Kan (KanRobert) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/97525.diff 2 Files Affected: - (modified) clang/include/clang/Driver/Options.td (+1-1) - (modified) flang/test/Driver/target-cpu-features.f90 (

[clang] [flang] [Driver][X86] Add flang visibility for -mapx-features= (PR #97525)

2024-07-02 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert created https://github.com/llvm/llvm-project/pull/97525 None >From 1aab0a95629371c61273c80f6335a6723c7d27c4 Mon Sep 17 00:00:00 2001 From: Shengchen Kan Date: Wed, 3 Jul 2024 11:30:47 +0800 Subject: [PATCH] [Driver][X86] Add flang visibility for -mapx-features= --

[clang] [llvm] [AIX] Add -msave-reg-params to save arguments to stack (PR #97524)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Qiu Chaofan (ecnelises) Changes In PowerPC ABI, a few initial arguments are passed through registers, but their places in parameter save area are reserved, arguments passed by memory goes after the reser

[clang] [llvm] [AIX] Add -msave-reg-params to save arguments to stack (PR #97524)

2024-07-02 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises created https://github.com/llvm/llvm-project/pull/97524 In PowerPC ABI, a few initial arguments are passed through registers, but their places in parameter save area are reserved, arguments passed by memory goes after the reserved location. For debugging purpose,

[clang] [flang] [mlir] [flang] Retry add basic -mtune support (PR #96688)

2024-07-02 Thread Tobias Gysi via cfe-commits
@@ -0,0 +1,9 @@ +; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s gysit wrote: > To me, it would make sense if mlir-translate didn't care - it doesn't have to > interpret these attributes, does it? It doesn't do anything with them except f

[clang] [llvm] [RISCV] Remove SeenExtMap from RISCVISAInfo::parseArchString. (PR #97506)

2024-07-02 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/97506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] add more test to clang-doc (PR #97518)

2024-07-02 Thread via cfe-commits
@@ -0,0 +1,701 @@ +// RUN: sed 's|$test_dir|%/S|g' %S/Inputs/advance-project/database_template.json > %t/build/compile_commands.json +// RUN: clang-doc --format=html --doxygen --output=%t/docs --executor=all-TUs %t/build/compile_commands.json +// RUN: clang-doc --format=md --do

[clang] [llvm] [RISCV] Remove SeenExtMap from RISCVISAInfo::parseArchString. (PR #97506)

2024-07-02 Thread Craig Topper via cfe-commits
@@ -306,7 +306,7 @@ // RUN: not %clang --target=riscv32-unknown-elf -march=rv32ixabc_ -### %s \ // RUN: -fsyntax-only 2>&1 | FileCheck -check-prefix=RV32-XSEP %s // RV32-XSEP: error: invalid arch name 'rv32ixabc_', -// RV32-XSEP: extension name missing after separator '_' +// R

[clang] [llvm] [RISCV] Remove SeenExtMap from RISCVISAInfo::parseArchString. (PR #97506)

2024-07-02 Thread Pengcheng Wang via cfe-commits
@@ -306,7 +306,7 @@ // RUN: not %clang --target=riscv32-unknown-elf -march=rv32ixabc_ -### %s \ // RUN: -fsyntax-only 2>&1 | FileCheck -check-prefix=RV32-XSEP %s // RV32-XSEP: error: invalid arch name 'rv32ixabc_', -// RV32-XSEP: extension name missing after separator '_' +// R

[clang-tools-extra] [clang-doc] add more test to clang-doc (PR #97518)

2024-07-02 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,31 @@ +#include "Array.h" + +// Implementation of Array + +/** +* Initializes all elements of the array to their default value. +*/ +template +Array::Array() { + // Implementation stub +} + +/** +* Array access operator for Array +* Provides read and write access to

[clang] [OpenCL] Emit opencl.cxx.version metadata for C++ (PR #92140)

2024-07-02 Thread Haonan Yang via cfe-commits
haonanya wrote: Hi, @AnastasiaStulova, can you please take a look? Related to https://github.com/llvm/llvm-project/issues/91912. Thanks very much. https://github.com/llvm/llvm-project/pull/92140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang-tools-extra] [clang-doc] add more test to clang-doc (PR #97518)

2024-07-02 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi commented: Thanks for adding more tests. Clang-Doc badly needs more comprehensive test coverage. I have a few concerns, however, about the testing strategy. Largely, these tests seem to check the exact output, rather than spot checking for particular features. What

[clang-tools-extra] [clang-doc] add more test to clang-doc (PR #97518)

2024-07-02 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,701 @@ +// RUN: sed 's|$test_dir|%/S|g' %S/Inputs/advance-project/database_template.json > %t/build/compile_commands.json +// RUN: clang-doc --format=html --doxygen --output=%t/docs --executor=all-TUs %t/build/compile_commands.json +// RUN: clang-doc --format=md --do

[clang-tools-extra] [clang-doc] add more test to clang-doc (PR #97518)

2024-07-02 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,701 @@ +// RUN: sed 's|$test_dir|%/S|g' %S/Inputs/advance-project/database_template.json > %t/build/compile_commands.json +// RUN: clang-doc --format=html --doxygen --output=%t/docs --executor=all-TUs %t/build/compile_commands.json +// RUN: clang-doc --format=md --do

[clang-tools-extra] [clang-doc] add more test to clang-doc (PR #97518)

2024-07-02 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/97518 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-02 Thread via cfe-commits
mahesh-attarde wrote: ping @RKSimon @MaskRay https://github.com/llvm/llvm-project/pull/95904 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] add more test to clang-doc (PR #97518)

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

[clang-tools-extra] [clang-doc] add more test to clang-doc (PR #97518)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: None (PeterChou1) Changes This patches adds more e2e test to clang-doc which tests the html and markdown output. I've made the following changes - Modified basic-project.test to also include the markdown output - Added namespa

[clang] 6a992bc - [PowerPC] refactor CPU info in PPCTargetParser.def, NFC

2024-07-02 Thread Chen Zheng via cfe-commits
Author: Chen Zheng Date: 2024-07-03T00:20:14-04:00 New Revision: 6a992bc89f5ca25d132abd044d78ecf27ae6e162 URL: https://github.com/llvm/llvm-project/commit/6a992bc89f5ca25d132abd044d78ecf27ae6e162 DIFF: https://github.com/llvm/llvm-project/commit/6a992bc89f5ca25d132abd044d78ecf27ae6e162.diff LO

[clang-tools-extra] reapply [clang-doc] Add --asset option to clang-doc (PR #96358)

2024-07-02 Thread via cfe-commits
dyung wrote: @PeterChou1, your change is causing a test failure when using a non-ninja generator to build because the path name is not as expected. I have put details in #97507, can you take a look? https://github.com/llvm/llvm-project/pull/96358 ___

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-02 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/97103 >From c784272b3f66ca06be4ab8e72a0963e5ebb6a869 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Fri, 28 Jun 2024 12:40:56 -0700 Subject: [PATCH 1/9] update tests, update code --- clang/include/clang/Basic/A

[clang] [clang] inherit GD to let the codegen add kcfi type for ifunc (PR #96400)

2024-07-02 Thread via cfe-commits
aokblast wrote: The problem happens because ifunc can refer resolver that havn't been defined before ifunc attribute. But LLVM Function only add attribute when it constructed first time. So there are two possible path: In the under case, no_sanitize cannot be add because it happens at ifunc("

[clang] [llvm] [RISCV] Remove SeenExtMap from RISCVISAInfo::parseArchString. (PR #97506)

2024-07-02 Thread Craig Topper via cfe-commits
https://github.com/topperc updated https://github.com/llvm/llvm-project/pull/97506 >From d64fc1ad1a214ce8cbba95836e2eced70b308c5e Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 2 Jul 2024 19:08:11 -0700 Subject: [PATCH 1/2] [RISCV] Remove SeenExtMap from RISCVISAInfo::parseArchString.

[clang] [llvm] [RISCV] Remove SeenExtMap from RISCVISAInfo::parseArchString. (PR #97506)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Craig Topper (topperc) Changes Use the Exts map directly instead of adding to a temporary MapVector first. There are a couple functional change from this. -If an unknown extension is duplicated, we will now print an error for it being unk

[clang] [llvm] [RISCV] Remove SeenExtMap from RISCVISAInfo::parseArchString. (PR #97506)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang-driver Author: Craig Topper (topperc) Changes Use the Exts map directly instead of adding to a temporary MapVector first. There are a couple functional change from this. -If an unknown extension is duplicated, w

[clang] [llvm] [RISCV] Remove SeenExtMap from RISCVISAInfo::parseArchString. (PR #97506)

2024-07-02 Thread Craig Topper via cfe-commits
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/97506 Use the Exts map directly instead of adding to a temporary MapVector first. There are a couple functional change from this. -If an unknown extension is duplicated, we will now print an error for it being unknown

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-02 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/96561 >From 2d3957ac14906d569acf5b3ceb5c7e2f4dfabe54 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Mon, 24 Jun 2024 15:14:52 -0500 Subject: [PATCH] [Clang] Introduce 'clang-nvlink-wrappaer' to work around 'nvlink'

[clang-tools-extra] Fix Default Asset File locator for clang docs (PR #97505)

2024-07-02 Thread Joshua Batista via cfe-commits
bob80905 wrote: An important assumption I'm making here is that the Debug directory cannot exist without the Release directory. If this assumption doesn't hold, then this fix will fail if only the release directory exists and debug is missing. I believe by the nature of how the llvm project is

[clang-tools-extra] Fix Default Asset File locator for clang docs (PR #97505)

2024-07-02 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/97505 >From 1c190c9c6b55aec23bab6d7b2a0f489c59285dc7 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Tue, 2 Jul 2024 18:38:24 -0700 Subject: [PATCH 1/2] if debug exists, go up an extra dir --- clang-tools-extra/

[clang-tools-extra] Fix Default Asset File locator for clang docs (PR #97505)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Joshua Batista (bob80905) Changes In `clang-tools-extra\clang-doc\tool\ClangDocMain.cpp`, there is a function, `getDefaultAssetFiles` that tries to find the location of `\share\clang-doc\index.js`, but fails. This i

[clang-tools-extra] Fix Default Asset File locator for clang docs (PR #97505)

2024-07-02 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 created https://github.com/llvm/llvm-project/pull/97505 In `clang-tools-extra\clang-doc\tool\ClangDocMain.cpp`, there is a function, `getDefaultAssetFiles` that tries to find the location of `\share\clang-doc\index.js`, but fails. This is because there are alternat

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-02 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From d5d7a7cf49d0b46e90b09eff2708a49a566acdda Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-02 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/97103 >From c784272b3f66ca06be4ab8e72a0963e5ebb6a869 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Fri, 28 Jun 2024 12:40:56 -0700 Subject: [PATCH 1/8] update tests, update code --- clang/include/clang/Basic/A

[clang] [Clang][Driver] Link nsan runtime (PR #97364)

2024-07-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot2` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/936 Here is the relevant piece of the bui

[clang] [Clang][Sema] Treat explicit specializations of static data member templates declared without 'static' as static data members when diagnosing uses of 'auto' (PR #97425)

2024-07-02 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov approved this pull request. https://github.com/llvm/llvm-project/pull/97425 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0856064 - [clang][StaticAnalyzer] Avoid 'raw_string_ostream::str' (NFC)

2024-07-02 Thread Youngsuk Kim via cfe-commits
Author: Youngsuk Kim Date: 2024-07-02T19:52:09-05:00 New Revision: 0856064ea219d029e7d2c4f68bb88196fe647f6b URL: https://github.com/llvm/llvm-project/commit/0856064ea219d029e7d2c4f68bb88196fe647f6b DIFF: https://github.com/llvm/llvm-project/commit/0856064ea219d029e7d2c4f68bb88196fe647f6b.diff

[libunwind] [libunwind] Remove needless `sys/uio.h` (PR #97495)

2024-07-02 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder edited https://github.com/llvm/llvm-project/pull/97495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Artem Dergachev via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To:

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Artem Dergachev via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To:

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Artem Dergachev via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To:

[libunwind] [libunwind] Remove needless `sys/uio.h` (PR #97495)

2024-07-02 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder edited https://github.com/llvm/llvm-project/pull/97495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver] Link nsan runtime (PR #97364)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov closed https://github.com/llvm/llvm-project/pull/97364 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7c94a22 - [Clang][Driver] Link nsan runtime (#97364)

2024-07-02 Thread via cfe-commits
Author: Alexander Shaposhnikov Date: 2024-07-02T17:34:44-07:00 New Revision: 7c94a227bccf4d067a65f4ed88aa415fd1de9d81 URL: https://github.com/llvm/llvm-project/commit/7c94a227bccf4d067a65f4ed88aa415fd1de9d81 DIFF: https://github.com/llvm/llvm-project/commit/7c94a227bccf4d067a65f4ed88aa415fd1de9

[clang] [Clang][Driver] Link nsan runtime (PR #97364)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
@@ -627,6 +627,20 @@ // CHECK-COV-LINUX: "-lpthread" // CHECK-COV-LINUX: "-lresolv" +// RUN: %clang -### %s 2>&1 \ +// RUN: --target=x86_64-unknown-linux -fuse-ld=ld -fsanitize=numerical \ +// RUN: -resource-dir=%S/Inputs/resource_dir \ +// RUN: --sysroot=%S/Inputs

[clang] [Clang][Driver] Link nsan runtime (PR #97364)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
@@ -627,6 +627,20 @@ // CHECK-COV-LINUX: "-lpthread" // CHECK-COV-LINUX: "-lresolv" +// RUN: %clang -### %s 2>&1 \ +// RUN: --target=x86_64-unknown-linux -fuse-ld=ld -fsanitize=numerical \ +// RUN: -resource-dir=%S/Inputs/resource_dir \ +// RUN: --sysroot=%S/Inputs

[clang] [Clang][Driver] Link nsan runtime (PR #97364)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov updated https://github.com/llvm/llvm-project/pull/97364 >From 1e5ab152d018c9cfe15ba849c2a287efafa7bbc0 Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Mon, 1 Jul 2024 23:29:57 + Subject: [PATCH] [Clang][Driver] Link nsan runtime --- cl

[libunwind] [libunwind] Remove needless `sys/uio.h` (PR #97495)

2024-07-02 Thread Izaak Schroeder via cfe-commits
izaakschroeder wrote: /cc @michaelrj-google @jhuber6 https://github.com/llvm/llvm-project/pull/97495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Remove needless `sys/uio.h` (PR #97495)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Izaak Schroeder (izaakschroeder) Changes No reference to `readv` or `writev`. --- Full diff: https://github.com/llvm/llvm-project/pull/97495.diff 1 Files Affected: - (modified) libunwind/src/UnwindCursor.hpp (-1) ``diff d

[libunwind] [libunwind] Remove needless `sys/uio.h` (PR #97495)

2024-07-02 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder created https://github.com/llvm/llvm-project/pull/97495 No reference to `readv` or `writev`. >From 03b4411534405fc4a4e9dcb5ec94afdd455a8e38 Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:38 -0700 Subject: [PATCH] [libunwind] Remove

[clang] [llvm] Remove llvm/MC/MCAsmLayout.h and the unused parameter in MCAssembler::layout (PR #97449)

2024-07-02 Thread Davide Italiano via cfe-commits
dcci wrote: > Just to clarify, these changes are fairly straightforward and shouldn't > impact any clients. You can't really make this assumption. Maybe in this case it was true, but in the other case that I mention (relaxing frames eagerly, your assumption was incorrect and we had to adapt B

[clang] [llvm] Remove llvm/MC/MCAsmLayout.h and the unused parameter in MCAssembler::layout (PR #97449)

2024-07-02 Thread Fangrui Song via cfe-commits
MaskRay wrote: > Thanks. RIP MCAsmLayout. Thanks for the review! > dcci: Thanks for putting this up for review. I appreciate you doing it, for > this and future MC patches that could impact BOLT. Just to clarify, these changes are fairly straightforward and shouldn't impact any clients. (Th

[clang] 3402a1a - [Clang] Enable nsan instrumentation pass (#97359)

2024-07-02 Thread via cfe-commits
Author: Alexander Shaposhnikov Date: 2024-07-02T16:57:30-07:00 New Revision: 3402a1a4d2d4c7ead69156c3d741fc9ae9c4d399 URL: https://github.com/llvm/llvm-project/commit/3402a1a4d2d4c7ead69156c3d741fc9ae9c4d399 DIFF: https://github.com/llvm/llvm-project/commit/3402a1a4d2d4c7ead69156c3d741fc9ae9c4d

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov closed https://github.com/llvm/llvm-project/pull/97359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Remove llvm/MC/MCAsmLayout.h and the unused parameter in MCAssembler::layout (PR #97449)

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

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
@@ -707,6 +708,9 @@ static void addSanitizers(const Triple &TargetTriple, MPM.addPass(createModuleToFunctionPassAdaptor(ThreadSanitizerPass())); } +if (LangOpts.Sanitize.has(SanitizerKind::NumericalStability)) + MPM.addPass(NumericalStabilitySanitizerPass())

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
@@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - -fsanitize=numerical %s | FileCheck %s alexander-shaposhnikov wrote: done https://github.com/llvm/llvm-project/pull/97359 ___ cfe-comm

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov updated https://github.com/llvm/llvm-project/pull/97359 >From b231f0be6963a9cf0233c307b0b9030f9bdc120a Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Mon, 1 Jul 2024 22:20:29 + Subject: [PATCH] [Clang] Add nsan instrumentation pass to t

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-02 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/97103 >From c784272b3f66ca06be4ab8e72a0963e5ebb6a869 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Fri, 28 Jun 2024 12:40:56 -0700 Subject: [PATCH 1/7] update tests, update code --- clang/include/clang/Basic/A

[clang] [llvm] Remove llvm/MC/MCAsmLayout.h and the unused parameter in MCAssembler::layout (PR #97449)

2024-07-02 Thread Davide Italiano via cfe-commits
dcci wrote: Thanks for putting this up for review. I appreciate you doing it, for this and future MC patches that could impact BOLT. https://github.com/llvm/llvm-project/pull/97449 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [llvm] Remove llvm/MC/MCAsmLayout.h and the unused parameter in MCAssembler::layout (PR #97449)

2024-07-02 Thread Maksim Panchenko via cfe-commits
https://github.com/maksfb approved this pull request. Thanks. RIP `MCAsmLayout`. https://github.com/llvm/llvm-project/pull/97449 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU][OpenMP] Do not attach -fcuda-is-device flag for AMDGPU OpenMP (PR #96909)

2024-07-02 Thread Aaron Jarmusch via cfe-commits
ajarmusch wrote: This change seems to have broken a CI: https://gitlab.e4s.io/uo-public/llvm-openmp-offloading/-/jobs/283716 Could you please take a look and revert if you need time to investigate? https://github.com/llvm/llvm-project/pull/96909 ___

[clang] [C23] Add INFINITY and NAN macros to (PR #96659)

2024-07-02 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/96659 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [HLSL] Implement intangible AST type (PR #97362)

2024-07-02 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/97362 >From a07ea8d187cbba5717b89f5c54138f12993b3ee8 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Thu, 6 Jun 2024 11:44:56 -0700 Subject: [PATCH 1/6] wip: Stub out adding an HLSLResource builtin type There are a

[clang] [lldb] [clang][RecordLayoutBuilder] Be stricter about inferring packed-ness in ExternalLayouts (PR #97443)

2024-07-02 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/97443 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [HLSL] Implement intangible AST type (PR #97362)

2024-07-02 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 60d4a3517610494e5b2ef6bf347cdc71a6a979e5 6c6f17ca827feb8384441cbd6d44493954ba726f --

[clang] [lldb] [HLSL] Implement intangible AST type (PR #97362)

2024-07-02 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/97362 >From a07ea8d187cbba5717b89f5c54138f12993b3ee8 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Thu, 6 Jun 2024 11:44:56 -0700 Subject: [PATCH 1/5] wip: Stub out adding an HLSLResource builtin type There are a

[clang] Pass LangOpts from CompilerInstance to DependencyScanningWorker (PR #93753)

2024-07-02 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: > > You can certainly construct cases where the different lexing rules in > > different language modes allow you to detect which language you're in from > > within the preprocessor ([1](https://eel.is/c++draft/diff.cpp11.lex) > > [2](https://eel.is/c++draft/diff.cpp14.lex#2

[clang] [Clang][Sema] Treat explicit specializations of static data member templates declared without 'static' as static data members when diagnosing uses of 'auto' (PR #97425)

2024-07-02 Thread Richard Smith via cfe-commits
https://github.com/zygoloid approved this pull request. https://github.com/llvm/llvm-project/pull/97425 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Run availability diagnostic on exported functions (PR #97352)

2024-07-02 Thread Helena Kotas via cfe-commits
https://github.com/hekota closed https://github.com/llvm/llvm-project/pull/97352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5196a91 - [HLSL] Run availability diagnostic on exported functions (#97352)

2024-07-02 Thread via cfe-commits
Author: Helena Kotas Date: 2024-07-02T15:21:11-07:00 New Revision: 5196a91b0827b895aba63ce150ebc8f10795316c URL: https://github.com/llvm/llvm-project/commit/5196a91b0827b895aba63ce150ebc8f10795316c DIFF: https://github.com/llvm/llvm-project/commit/5196a91b0827b895aba63ce150ebc8f10795316c.diff

[clang] clang: Relax LangOpts checks when lexing quoted numbers during preprocessing (PR #95798)

2024-07-02 Thread Jan Svoboda via cfe-commits
@@ -2068,7 +2068,8 @@ bool Lexer::LexNumericConstant(Token &Result, const char *CurPtr) { } // If we have a digit separator, continue. - if (C == '\'' && (LangOpts.CPlusPlus14 || LangOpts.C23)) { + if (C == '\'' && + (LangOpts.CPlusPlus14 || LangOpts.C23 || Parsing

[clang] [Clang] Allow raw string literals in C as an extension (PR #88265)

2024-07-02 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: > To clarify, that means setting the `RawStringLiterals` LangOpt in > `DependencyDirectivesScanner.cpp`, right? I’m assuming yes, but I just want > to make sure. Yes, that's what I had in mind 👍 https://github.com/llvm/llvm-project/pull/88265 _

[clang] [Driver] Add -Wa, options --crel and --allow-experimental-crel (PR #97378)

2024-07-02 Thread Fangrui Song via cfe-commits
@@ -801,6 +801,9 @@ def warn_drv_missing_multilib : Warning< def note_drv_available_multilibs : Note< "available multilibs are:%0">; +def err_drv_experimental_crel : Error< + "-Wa,--allow-experimental-crel must be specified to use -Wa,--crel. CREL is experimental and takes

[clang] [Driver] Add -Wa, options --crel and --allow-experimental-crel (PR #97378)

2024-07-02 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,25 @@ +// RUN: not %clang -### -c --target=x86_64 -Wa,--crel %s 2>&1 | FileCheck %s --check-prefix=NOEXP + +// NOEXP: error: -Wa,--allow-experimental-crel must be specified to use -Wa,--crel. CREL is experimental and takes a non-standard section type code + +// RUN: %

[clang] [Driver] Add -Wa, options --crel and --allow-experimental-crel (PR #97378)

2024-07-02 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,25 @@ +// RUN: not %clang -### -c --target=x86_64 -Wa,--crel %s 2>&1 | FileCheck %s --check-prefix=NOEXP + +// NOEXP: error: -Wa,--allow-experimental-crel must be specified to use -Wa,--crel. CREL is experimental and takes a non-standard section type code + +// RUN: %

[clang] [Driver] Add -Wa, options --crel and --allow-experimental-crel (PR #97378)

2024-07-02 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/97378 >From 6e47264dc3d7395b30bedeeba7c8ca2e7b376727 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 1 Jul 2024 19:44:57 -0700 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?UTF-

[clang] [flang] [mlir] [flang] Retry add basic -mtune support (PR #96688)

2024-07-02 Thread Alexis Perry-Holby via cfe-commits
@@ -0,0 +1,9 @@ +; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s AlexisPerry wrote: I have been trying to reproduce my error ever since saying I had one and have been unsuccessful. It now appears that mlir-translate doesn't care about the

[clang] [clang][CodeGen] Zero init unspecified fields in initializers in C (#97459) (PR #97121)

2024-07-02 Thread via cfe-commits
yabinc wrote: @efriedma-quic, Thanks for the suggestion! I have created a new bug in https://github.com/llvm/llvm-project/issues/97459, and also updated commit message to clarify that this is needed by the linux kernel instead of c23 standard. https://github.com/llvm/llvm-project/pull/97121 __

[clang] [clang][CodeGen] Zero init unspecified fields in initializers in C (#97459) (PR #97121)

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

[clang] [clang][CodeGen] Zero init unspecified fields in initializers in C (#78034) (PR #97121)

2024-07-02 Thread via cfe-commits
https://github.com/yabinc updated https://github.com/llvm/llvm-project/pull/97121 >From d3aa71bfd9f4766e2aadc0d028d26ea7bd5e50a6 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Thu, 27 Jun 2024 17:11:52 -0700 Subject: [PATCH] [clang][CodeGen] Zero init unspecified fields in initializers in C (#

[clang] [analyzer][NFC] Add some docs for LazyCompoundValue (PR #97407)

2024-07-02 Thread Artem Dergachev via cfe-commits
@@ -346,6 +352,39 @@ class CompoundVal : public NonLoc { static bool classof(SVal V) { return V.getKind() == CompoundValKind; } }; +/// The simplest example of a concrete compound value is nonloc::CompoundVal, +/// which represents a concrete r-value of an initializer-list o

[clang] [analyzer][NFC] Add some docs for LazyCompoundValue (PR #97407)

2024-07-02 Thread Artem Dergachev via cfe-commits
@@ -346,6 +352,39 @@ class CompoundVal : public NonLoc { static bool classof(SVal V) { return V.getKind() == CompoundValKind; } }; +/// The simplest example of a concrete compound value is nonloc::CompoundVal, +/// which represents a concrete r-value of an initializer-list o

[clang] [analyzer][NFC] Add some docs for LazyCompoundValue (PR #97407)

2024-07-02 Thread Artem Dergachev via cfe-commits
@@ -346,6 +352,39 @@ class CompoundVal : public NonLoc { static bool classof(SVal V) { return V.getKind() == CompoundValKind; } }; +/// The simplest example of a concrete compound value is nonloc::CompoundVal, +/// which represents a concrete r-value of an initializer-list o

[clang] [analyzer][NFC] Add some docs for LazyCompoundValue (PR #97407)

2024-07-02 Thread Artem Dergachev via cfe-commits
@@ -326,6 +326,12 @@ class LocAsInteger : public NonLoc { static bool classof(SVal V) { return V.getKind() == LocAsIntegerKind; } }; +/// The simplest example of a concrete compound value is nonloc::CompoundVal, +/// which represents a concrete r-value of an initializer-list

[clang] [analyzer][NFC] Add some docs for LazyCompoundValue (PR #97407)

2024-07-02 Thread Artem Dergachev via cfe-commits
https://github.com/haoNoQ edited https://github.com/llvm/llvm-project/pull/97407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer][NFC] Add some docs for LazyCompoundValue (PR #97407)

2024-07-02 Thread Artem Dergachev via cfe-commits
https://github.com/haoNoQ commented: Thanks a lot!! Some comments are very much overdue here. https://github.com/llvm/llvm-project/pull/97407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-02 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/96561 >From 2bb5bd081a29b9bf1c4e6e0f727e21a1b9258920 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Mon, 24 Jun 2024 15:14:52 -0500 Subject: [PATCH] [Clang] Introduce 'clang-nvlink-wrappaer' to work around 'nvlink'

[clang] [Clang][Comments] Attach comments to decl even if preproc directives are in between (PR #88367)

2024-07-02 Thread via cfe-commits
hdoc wrote: +1 on the revert and thank you for letting me know about this. I'll make changes to limit how aggressively the frontend attaches comments to decls inline with what @gribozavr and @danakj suggested. https://github.com/llvm/llvm-project/pull/88367 ___

[clang] [llvm] [PAC][Driver] Implement `-mbranch-protection=pauthabi` option (PR #97237)

2024-07-02 Thread Anton Korobeynikov via cfe-commits
asl wrote: > Is there any thought on how we want to manage signing schemas going forward? > For example I can imagine looking an environment from the triple to select a > signing schema for a particular platform. I could also see a potential for a > separate command line option to choose from

[clang] [clang] Extend lifetimebound analysis to detect within-initializer assignments between pointer-like objects. (PR #97473)

2024-07-02 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 c3079ffcd34e8ee2faaf7576a69a49acc1a3653f e1bd3e3d813ecce1e93957c3cbe26a8c3182abd6 --

[clang] [clang] Extend lifetimebound analysis to detect within-initializer assignments between pointer-like objects. (PR #97473)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes This patch extend the lifetimebound analysis to cover assignments between pointer-like objects (`gsl::Pointer`). Specifically, it tracks the RHS of assignment operators to determine if it points to a temporary

[clang] [clang] Extend lifetimebound analysis to detect within-initializer assignments between pointer-like objects. (PR #97473)

2024-07-02 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/97473 This patch extend the lifetimebound analysis to cover assignments between pointer-like objects (`gsl::Pointer`). Specifically, it tracks the RHS of assignment operators to determine if it points to a temporary ob

[clang] [clang][OpenMP] Use leaf constructs in `mapLoopConstruct` (PR #97446)

2024-07-02 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/97446 >From 316d5a11bd7f6afb99cd7d25baf43ec2679561dc Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 1 Jul 2024 15:18:07 -0500 Subject: [PATCH 1/3] [clang][OpenMP] Use leaf constructs in `mapLoopConstruc

  1   2   3   4   >