[clang] [flang] [Flang][OpenMP][Driver][AMDGPU] Fix -mcode-object-version (PR #134230)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sergio Afonso (skatrak) Changes This patch updates flang to follow clang's behavior when processing the `-mcode-object-version option`. It is now used to populate an LLVM module flag called `amdhsa_code_object_version` expected by the ba

[clang] 7febd78 - No longer diagnose __auto_type as the auto extension (#134129)

2025-04-03 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-04-03T07:13:30-04:00 New Revision: 7febd78f1e6caacb05ea43fa838a3b2b21fdd0bd URL: https://github.com/llvm/llvm-project/commit/7febd78f1e6caacb05ea43fa838a3b2b21fdd0bd DIFF: https://github.com/llvm/llvm-project/commit/7febd78f1e6caacb05ea43fa838a3b2b21fdd0bd.diff

[clang] No longer diagnose __auto_type as the auto extension (PR #134129)

2025-04-03 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/134129 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Arm] Add more -mtp=cp15 tests (PR #134098)

2025-04-03 Thread Vladi Krapp via cfe-commits
@@ -1,93 +1,94 @@ -// Test of the AArch32 values of -mtp=, checking that each one maps to -// the right target features. - -// RUN: %clang --target=armv7-linux -mtp=cp15 -### -S %s 2>&1 | \ -// RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER-HARD %s -// ARMv7_THREAD_POINTER-HARD

[clang] [flang] [Flang][OpenMP][Driver][AMDGPU] Fix -mcode-object-version (PR #134230)

2025-04-03 Thread Sergio Afonso via cfe-commits
https://github.com/skatrak edited https://github.com/llvm/llvm-project/pull/134230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[CLANG-CL] ignores wpadded" (PR #134239)

2025-04-03 Thread Alex Bradbury via cfe-commits
https://github.com/asb edited https://github.com/llvm/llvm-project/pull/134239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SROA] Vector promote some memsets (PR #133301)

2025-04-03 Thread via cfe-commits
macurtis-amd wrote: @arsenm Are you okay with the latest revision? https://github.com/llvm/llvm-project/pull/133301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Arm] Add more -mtp=cp15 tests (PR #134098)

2025-04-03 Thread Simon Tatham via cfe-commits
https://github.com/statham-arm approved this pull request. LGTM. Thanks for the tweaks. As usual, probably best to give other reviewers a chance to comment too. https://github.com/llvm/llvm-project/pull/134098 ___ cfe-commits mailing list cfe-commits@

[clang] [X86][AVX10.2] Replace nepbh with bf16 to match with others, NFCI (PR #134240)

2025-04-03 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/134240 None >From cf4be7b5e130593f54752066b1ab569da9cc12fa Mon Sep 17 00:00:00 2001 From: "Wang, Phoebe" Date: Thu, 3 Apr 2025 20:23:08 +0800 Subject: [PATCH] [X86][AVX10.2] Replace nepbh with bf16 to match with ot

[clang] [X86][AVX10.2] Replace nepbh with bf16 to match with others, NFCI (PR #134240)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Phoebe Wang (phoebewang) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/134240.diff 4 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsX86.td (+3-3) - (modified) clang/lib/CodeGen/TargetBuiltins/X

[clang] [compiler-rt] [llvm] [ASan] Add metadata to renamed instructions so ASan doesn't use the i… (PR #119387)

2025-04-03 Thread via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/119387 >From b0845c970847aca0f50cc72fec6fb2334b4f10d3 Mon Sep 17 00:00:00 2001 From: gbMattN Date: Thu, 3 Apr 2025 11:50:31 +0100 Subject: [PATCH] [ASan] Add metadata to renamed instructions so ASan doesn't use the in

[clang] [llvm] [SROA] Vector promote some memsets (PR #133301)

2025-04-03 Thread Nikita Popov via cfe-commits
https://github.com/nikic requested changes to this pull request. Missing PR description. The tests also don't make any sense to me, seeing as they compile down to a constant, unused insertelement. https://github.com/llvm/llvm-project/pull/133301 ___ c

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2025-04-03 Thread Nikita Popov via cfe-commits
https://github.com/nikic commented: Please call this llvm-mustache-spec -- let's try to avoid polluting the global namespace with niche tools. I also wonder whether this shouldn't be a util rather than tool -- this is purely for internal use, right? https://github.com/llvm/llvm-project/pull/1

[clang] 0080404 - [clang] Add SPIR-V to some OpenMP clang tests (#133503)

2025-04-03 Thread via cfe-commits
Author: Nick Sarnie Date: 2025-04-03T14:36:46Z New Revision: 008040482b15aa76699e61e59218e92d3786e17a URL: https://github.com/llvm/llvm-project/commit/008040482b15aa76699e61e59218e92d3786e17a DIFF: https://github.com/llvm/llvm-project/commit/008040482b15aa76699e61e59218e92d3786e17a.diff LOG: [

[clang] [CIR] Upstream support for break and continue statements (PR #134181)

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

[clang] [llvm] Add clang driver changes to support MTI RISC-V (PR #134065)

2025-04-03 Thread Djordje Todorovic via cfe-commits
https://github.com/djtodoro updated https://github.com/llvm/llvm-project/pull/134065 >From 513b1ae05ed6049586a23acab6c0a2f7dbb48454 Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Wed, 26 Mar 2025 09:24:29 +0100 Subject: [PATCH 1/3] [clang][RISCV] Set default CPU for vendor --- clang/

[clang] [llvm] [clang] [OpenMP] New OpenMP 6.0 self_maps clause - CodeGen (PR #134131)

2025-04-03 Thread via cfe-commits
https://github.com/Ritanya-B-Bharadwaj edited https://github.com/llvm/llvm-project/pull/134131 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add `__bf16` Type Support Macros With Literal Suffix Support (PR #134214)

2025-04-03 Thread via cfe-commits
https://github.com/overmighty requested changes to this pull request. This PR currently adds two suffixes: `bf16` and just `b`. Is this intended? GCC seems to only support `bf16`: https://godbolt.org/z/hEfcrGrG1. It currently also lets Clang accept the following C++ code if the target doesn't

[clang] [clang] Add `__bf16` Type Support Macros With Literal Suffix Support (PR #134214)

2025-04-03 Thread via cfe-commits
@@ -117,29 +119,34 @@ static void DefineFloatMacros(MacroBuilder &Builder, StringRef Prefix, NormMax = PickFP(Sem, "6.5504e+4", "3.40282347e+38", "1.7976931348623157e+308", "1.18973149535723176502e+4932", "8.98846567431157953864652595394

[clang] [llvm] [clang] [OpenMP] New OpenMP 6.0 self_maps clause - CodeGen (PR #134131)

2025-04-03 Thread Alexey Bataev via cfe-commits
@@ -236,6 +236,8 @@ enum class OpenMPOffloadMappingFlags : uint64_t { // dynamic. // This is an OpenMP extension for the sake of OpenACC support. OMP_MAP_OMPX_HOLD = 0x2000, + /// Self directs mapping without creating a separate device copy. + OMP_MAP_SELF = 0x4000, ---

[clang] [CLANG-CL] ignores wpadded (PR #130182)

2025-04-03 Thread Alex Bradbury via cfe-commits
=?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes Message-ID: In-Reply-To:

[clang] [clang] fp options fix for __builtin_convertvector (PR #134102)

2025-04-03 Thread Jakub Ficek via cfe-commits
ficol wrote: Hi @shafik, could you please check this? It's a small fix that was missing in https://github.com/llvm/llvm-project/pull/125522 https://github.com/llvm/llvm-project/pull/134102 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [WIP] Implement `-dump-deserialized-declaration-ranges` flag. (PR #133910)

2025-04-03 Thread Ilya Biryukov via cfe-commits
@@ -7968,6 +7968,10 @@ def print_dependency_directives_minimized_source : Flag<["-"], "print-dependency-directives-minimized-source">, HelpText<"Print the output of the dependency directives source minimizer">; } +def print_deserialized_declarations : Joined<["-"], + "pri

[clang] [compiler-rt] [llvm] [ASan] Add metadata to renamed instructions so ASan doesn't use the i… (PR #119387)

2025-04-03 Thread via cfe-commits
https://github.com/gbMattN closed https://github.com/llvm/llvm-project/pull/119387 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add warning message for C++17 alias template CTAD (PR #133806)

2025-04-03 Thread via cfe-commits
GeorgeKA wrote: > thanks. will you need us to merge that for you? Yes, if you wouldn't mind @cor3ntin . The checks have passed https://github.com/llvm/llvm-project/pull/133806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [llvm] [HLSL] Implement dot2add intrinsic (PR #131237)

2025-04-03 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. LGTM, please address Finn’s requests before merging. https://github.com/llvm/llvm-project/pull/131237 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

[clang] 7145ead - [Clang] Add warning message for C++17 alias template CTAD (#133806)

2025-04-03 Thread via cfe-commits
Author: GeorgeKA Date: 2025-04-03T15:58:52+02:00 New Revision: 7145ead280ba10d08fe48e7859f1a61a64653104 URL: https://github.com/llvm/llvm-project/commit/7145ead280ba10d08fe48e7859f1a61a64653104 DIFF: https://github.com/llvm/llvm-project/commit/7145ead280ba10d08fe48e7859f1a61a64653104.diff LOG:

[clang] [flang] [Flang][OpenMP][Driver][AMDGPU] Fix -mcode-object-version (PR #134230)

2025-04-03 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/134230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fp options fix for __builtin_convertvector (PR #134102)

2025-04-03 Thread Jakub Ficek via cfe-commits
https://github.com/ficol updated https://github.com/llvm/llvm-project/pull/134102 >From 5f0a65433744a9b1abd3aa82417d716a0aa5b33b Mon Sep 17 00:00:00 2001 From: "Ficek, Jakub" Date: Wed, 2 Apr 2025 17:41:30 +0200 Subject: [PATCH 1/2] [clang] fp options fix for __builtin_convertvector Add missin

[clang] [WIP] Implement `-dump-deserialized-declaration-ranges` flag. (PR #133910)

2025-04-03 Thread Viktoriia Bakalova via cfe-commits
https://github.com/VitaNuo edited https://github.com/llvm/llvm-project/pull/133910 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP] Implement `-dump-deserialized-declaration-ranges` flag. (PR #133910)

2025-04-03 Thread Ilya Biryukov via cfe-commits
@@ -139,16 +283,17 @@ FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, return nullptr; // If there are no registered plugins we don't need to wrap the consumer - if (FrontendPluginRegistry::begin() == FrontendPluginRegistry::end()) -return Consumer; +

[clang] [WIP] Implement `-dump-deserialized-declaration-ranges` flag. (PR #133910)

2025-04-03 Thread Ilya Biryukov via cfe-commits
@@ -139,16 +283,17 @@ FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, return nullptr; // If there are no registered plugins we don't need to wrap the consumer - if (FrontendPluginRegistry::begin() == FrontendPluginRegistry::end()) -return Consumer; +

[clang] [clang] Add `__bf16` Type Support Macros With Literal Suffix Support (PR #134214)

2025-04-03 Thread via cfe-commits
@@ -1022,7 +1035,11 @@ NumericLiteralParser::NumericLiteralParser(StringRef TokSpelling, (LangOpts.OpenMPIsTargetDevice && Target.getTriple().isNVPTX())) && s + 2 < ThisTokEnd && s[1] == '1' && s[2] == '6') { s += 2; // success, eat up 2 characters

[clang] [Clang] Add warning message for C++17 alias template CTAD (PR #133806)

2025-04-03 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/133806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SROA] Vector promote some memsets (PR #133301)

2025-04-03 Thread via cfe-commits
https://github.com/macurtis-amd edited https://github.com/llvm/llvm-project/pull/133301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add SPIR-V to some OpenMP clang tests (PR #133503)

2025-04-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex closed https://github.com/llvm/llvm-project/pull/133503 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SROA] Vector promote some memsets (PR #133301)

2025-04-03 Thread via cfe-commits
macurtis-amd wrote: Thanks Nikita for taking a look at this. > Missing PR description. I've updated the PR description. > The tests also don't make any sense to me, seeing as they compile down to a > constant, unused insertelement. Yes. Tests are very synthetic. Reduced from the already red

[clang] [llvm] Define pointer layout for AVR program address space (PR #134254)

2025-04-03 Thread James Wainwright via cfe-commits
https://github.com/jwnrt created https://github.com/llvm/llvm-project/pull/134254 AVR uses separate address spaces for data (0) and program (1) memory, however pointer layout is only defined for address space 0 in the data layout string. The `p[n]` directive defines pointer layouts where `n` d

[clang] [llvm] Define pointer layout for AVR program address space (PR #134254)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: James Wainwright (jwnrt) Changes AVR uses separate address spaces for data (0) and program (1) memory, however pointer layout is only defined for address space 0 in the data layout string. The `p[n]` directive defines pointer layouts wher

[clang] [llvm] Define pointer layout for AVR program address space (PR #134254)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: James Wainwright (jwnrt) Changes AVR uses separate address spaces for data (0) and program (1) memory, however pointer layout is only defined for address space 0 in the data layout string. The `p[n]` directive defines pointer la

[clang] [Driver] Add linker options to support statical linking to shared flang-rt on AIX. (PR #131822)

2025-04-03 Thread Daniel Chen via cfe-commits
https://github.com/DanielCChen updated https://github.com/llvm/llvm-project/pull/131822 >From 28634f01af16c2d0eb9ac12d569d3393dbcc7edf Mon Sep 17 00:00:00 2001 From: Daniel Chen Date: Tue, 18 Mar 2025 11:09:41 -0400 Subject: [PATCH 1/3] [Driver] Add linker options to support statical linking t

[clang] Revert "[CLANG-CL] ignores wpadded" (PR #134239)

2025-04-03 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp -- clang/lib/AST/RecordLayoutBuilder.cpp ``

[clang] [clang-tools-extra] [clang] support pack expansions for trailing requires clauses (PR #133190)

2025-04-03 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/133190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang] support pack expansions for trailing requires clauses (PR #133190)

2025-04-03 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/133190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SYCL] Add AOT compilation support for Intel GPUs in clang-sycl-linker (PR #133194)

2025-04-03 Thread Victor Lomuller via cfe-commits
@@ -0,0 +1,131 @@ +//===--- SYCL.h -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [EquivalenceClasses] Use SmallVector for deterministic iteration order. (PR #134075)

2025-04-03 Thread Florian Hahn via cfe-commits
@@ -138,6 +139,9 @@ class EquivalenceClasses { /// ECValues, it just keeps the key as part of the value. std::set TheMapping; + /// List of all members, used to provide a determinstic iteration order. + SmallVector Members; fhahn wrote: Shared it here h

[clang] [llvm] [mlir] [MLIR][OpenMP] Add codegen for teams reductions (PR #133310)

2025-04-03 Thread Jan Leyonberg via cfe-commits
@@ -3688,27 +3708,95 @@ static Function *getFreshReductionFunc(Module &M) { ".omp.reduction.func", &M); } -OpenMPIRBuilder::InsertPointOrErrorTy -OpenMPIRBuilder::createReductions(const LocationDescription &Loc, - Inse

<    1   2   3   4   5