[clang] b522675 - Revert "[LinkerWrapper] Add 'Freestanding' config to the LTO pass" (#75528)

2023-12-15 Thread via cfe-commits
Author: fel-cab Date: 2023-12-15T08:25:14-06:00 New Revision: b522675816d6d5c0b0ae23e14115f4aa5a081583 URL: https://github.com/llvm/llvm-project/commit/b522675816d6d5c0b0ae23e14115f4aa5a081583 DIFF: https://github.com/llvm/llvm-project/commit/b522675816d6d5c0b0ae23e14115f4aa5a081583.diff LOG:

[clang] Revert "[LinkerWrapper] Add 'Freestanding' config to the LTO pass" (PR #75528)

2023-12-15 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. https://github.com/llvm/llvm-project/pull/75528 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[LinkerWrapper] Add 'Freestanding' config to the LTO pass" (PR #75528)

2023-12-15 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/75528 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][SME2] Add SME2 MLA/MLS builtins. (PR #75584)

2023-12-15 Thread Dinar Temirbulatov via cfe-commits
@@ -315,6 +315,223 @@ let TargetGuard = "sme2" in { def SVBMOPS : Inst<"svbmops_za32[_{d}]_m", "viPPdd", "iUi", MergeNone, "aarch64_sme_bmops_za32", [IsSharedZA, IsStreaming], [ImmCheck<0, ImmCheck0_3>]>; } +// FMLA/FMLS +let TargetGuard = "sme2" in { + def SVMLA_MULTI_VG

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

2023-12-15 Thread via cfe-commits
https://github.com/LWenH updated https://github.com/llvm/llvm-project/pull/74239 >From 8e7399015e74059731ea19468d2ee514a9a3e9a4 Mon Sep 17 00:00:00 2001 From: LWenH <924105...@qq.com> Date: Sun, 3 Dec 2023 19:59:49 +0800 Subject: [PATCH] [mcp] Bug fix for reverted patch 70778 In pr 70778, when w

[flang] [clang] [flang][nfc] Refactor linker invocation logic (PR #75534)

2023-12-15 Thread Michael Klemm via cfe-commits
https://github.com/mjklemm edited https://github.com/llvm/llvm-project/pull/75534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][nfc] Refactor linker invocation logic (PR #75534)

2023-12-15 Thread Michael Klemm via cfe-commits
https://github.com/mjklemm approved this pull request. LGTM! Thanks for the refactoring. This makes the code much easier to digest! https://github.com/llvm/llvm-project/pull/75534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [flang] [flang][nfc] Refactor linker invocation logic (PR #75534)

2023-12-15 Thread Michael Klemm via cfe-commits
@@ -1116,73 +1116,87 @@ bool tools::addOpenMPRuntime(ArgStringList &CmdArgs, const ToolChain &TC, return true; } +/// Determines if --whole-archive is active in the list of arguments. +static bool isWholeArchivePresent(const ArgList &Args) { + bool WholeArchiveActive = fal

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

2023-12-15 Thread via cfe-commits
LWenH wrote: Resolve X86 conflict test files. Ping. https://github.com/llvm/llvm-project/pull/74239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 32f9983 - [AMDGPU] - Add address space for strided buffers (#74471)

2023-12-15 Thread via cfe-commits
Author: Jessica Del Date: 2023-12-15T15:49:25+01:00 New Revision: 32f9983c064557883223b585810eac3c6797d500 URL: https://github.com/llvm/llvm-project/commit/32f9983c064557883223b585810eac3c6797d500 DIFF: https://github.com/llvm/llvm-project/commit/32f9983c064557883223b585810eac3c6797d500.diff L

[clang] [mlir] [llvm] [AMDGPU] - Add address space for strided buffers (PR #74471)

2023-12-15 Thread Jessica Del via cfe-commits
https://github.com/OutOfCache closed https://github.com/llvm/llvm-project/pull/74471 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-12-15 Thread Sander de Smalen via cfe-commits
@@ -8,6 +8,8 @@ // RUN: -S -Werror -emit-llvm -disable-O0-optnone -o - -x c++ %s | opt -S -p mem2reg,instcombine,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK // RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-fea

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

2023-12-15 Thread Sander de Smalen via cfe-commits
@@ -2,7 +2,10 @@ // REQUIRES: aarch64-registered-target // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -O1 -Werror -emit-llvm -o - %s | FileCheck %s // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -O1 -Werror -emit-ll

[libcxx] [lldb] [llvm] [openmp] [clang] [flang] [lld] [libc] [clang-tools-extra] [compiler-rt] Gcc 75 libomptarget type convert (PR #75562)

2023-12-15 Thread via cfe-commits
https://github.com/SunilKuravinakop closed https://github.com/llvm/llvm-project/pull/75562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][nfc] Refactor linker invocation logic (PR #75534)

2023-12-15 Thread Andrzej Warzyński via cfe-commits
@@ -1116,73 +1116,87 @@ bool tools::addOpenMPRuntime(ArgStringList &CmdArgs, const ToolChain &TC, return true; } +/// Determines if --whole-archive is active in the list of arguments. +static bool isWholeArchivePresent(const ArgList &Args) { + bool WholeArchiveActive = fal

[clang] 71bbfab - [flang][nfc] Refactor linker invocation logic (#75534)

2023-12-15 Thread via cfe-commits
Author: Andrzej Warzyński Date: 2023-12-15T15:04:37Z New Revision: 71bbfabd08d90a3007f6034e420daa66c41027db URL: https://github.com/llvm/llvm-project/commit/71bbfabd08d90a3007f6034e420daa66c41027db DIFF: https://github.com/llvm/llvm-project/commit/71bbfabd08d90a3007f6034e420daa66c41027db.diff

[llvm] [flang] [clang] [libc] [clang-tools-extra] [compiler-rt] [flang][OpenMP] Move handling of OpenMP symbol flags to OpenMP.cpp (PR #75523)

2023-12-15 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/75523 >From 21261fef67dbbea956adf2e09b8abacd92d9caf3 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Thu, 14 Dec 2023 13:45:17 -0600 Subject: [PATCH 1/3] [flang][OpenMP] Move handling of OpenMP symbol flags t

[clang] [flang] [flang][nfc] Refactor linker invocation logic (PR #75534)

2023-12-15 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space closed https://github.com/llvm/llvm-project/pull/75534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [lldb] [llvm] [openmp] [clang] [flang] [lld] [libc] [clang-tools-extra] [compiler-rt] Gcc 75 libomptarget type convert (PR #75562)

2023-12-15 Thread via cfe-commits
SunilKuravinakop wrote: Since this has been done in https://github.com/llvm/llvm-project/pull/75419 with the change suggested by Joseph Huber, I am closing this. https://github.com/llvm/llvm-project/pull/75562 ___ cfe-commits mailing list cfe-commits@

[clang] [Clang][AST] Fix crash in APValue::LValueBase::getType when we have invalid decl (PR #75130)

2023-12-15 Thread Erich Keane via cfe-commits
@@ -70,11 +70,13 @@ QualType APValue::LValueBase::getType() const { // constexpr int *p = &arr[1]; // valid? // // For now, we take the most complete type we can find. -for (auto *Redecl = cast(D->getMostRecentDecl()); Redecl; +for (auto *Redecl = cast(D->ge

[clang] [llvm] [X86][AVX10] Allow 64-bit mask register used without EVEX512 (PR #75571)

2023-12-15 Thread Evgenii Kudriashov via cfe-commits
e-kud wrote: LGTM. Thanks! https://github.com/llvm/llvm-project/pull/75571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][nfc] Refactor linker invocation logic (PR #75534)

2023-12-15 Thread Michael Klemm via cfe-commits
@@ -1116,73 +1116,87 @@ bool tools::addOpenMPRuntime(ArgStringList &CmdArgs, const ToolChain &TC, return true; } +/// Determines if --whole-archive is active in the list of arguments. +static bool isWholeArchivePresent(const ArgList &Args) { + bool WholeArchiveActive = fal

[clang] [libc] [clang-tools-extra] [compiler-rt] [flang] [llvm] [flang][OpenMP] Move handling of OpenMP symbol flags to OpenMP.cpp (PR #75523)

2023-12-15 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz closed https://github.com/llvm/llvm-project/pull/75523 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [lldb] [openmp] [clang] [mlir] [lld] [llvm] [clang-tools-extra] [compiler-rt] [flang] [libc] [builtins][arm64] Build __init_cpu_features_resolver on Apple platforms (PR #73685)

2023-12-15 Thread Jon Roelofs via cfe-commits
jroelofs wrote: Sorry about that... thanks! https://github.com/llvm/llvm-project/pull/73685 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] In compilation databases, add support for relative directories (PR #69856)

2023-12-15 Thread via cfe-commits
https://github.com/Overhatted updated https://github.com/llvm/llvm-project/pull/69856 >From 7a92e0a3996ea3f518b6c3d740e1122902668308 Mon Sep 17 00:00:00 2001 From: Overhatted <15021741+overhat...@users.noreply.github.com> Date: Fri, 15 Dec 2023 15:53:56 + Subject: [PATCH] In compilation data

[lld] [llvm] [libcxxabi] [compiler-rt] [libc] [openmp] [mlir] [clang-tools-extra] [clang] [lldb] [libcxx] [flang] [builtins][arm64] Build __init_cpu_features_resolver on Apple platforms (PR #73685)

2023-12-15 Thread Jon Roelofs via cfe-commits
jroelofs wrote: > BTW, when compiling the file I also get a bunch of warnings in this style: @mstorsjo maybe `unsigned long` is 32 bits on that platform... what's the target triple? https://github.com/llvm/llvm-project/pull/73685 ___ cfe-commits mail

[lld] [llvm] [libcxxabi] [compiler-rt] [libc] [openmp] [mlir] [clang-tools-extra] [clang] [lldb] [libcxx] [flang] [builtins][arm64] Build __init_cpu_features_resolver on Apple platforms (PR #73685)

2023-12-15 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > > BTW, when compiling the file I also get a bunch of warnings in this style: > > @mstorsjo maybe `unsigned long` is 32 bits on that platform... what's the > target triple? Ah, indeed - yes, Windows has 32 bit `long`s. The triples are `aarch64-windows-gnu` or `aarch64-windows

[llvm] [lld] [clang] [compiler-rt] [libcxxabi] [lldb] [clang-tools-extra] [flang] [libcxx] [AMDGPU] GFX12: select @llvm.prefetch intrinsic (PR #74576)

2023-12-15 Thread Mariusz Sikora via cfe-commits
https://github.com/mariusz-sikora-at-amd closed https://github.com/llvm/llvm-project/pull/74576 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][SME] Warn when using a streaming builtin from a non-streaming function (PR #75487)

2023-12-15 Thread Sam Tebbs via cfe-commits
@@ -1702,6 +1705,62 @@ void SVEEmitter::createSMERangeChecks(raw_ostream &OS) { OS << "#endif\n\n"; } +void SVEEmitter::createStreamingAttrs(raw_ostream &OS, ACLEKind Kind) { + std::vector RV = Records.getAllDerivedDefinitions("Inst"); + SmallVector, 128> Defs; + for (aut

[clang] [lld] [libcxxabi] [llvm] [flang] [clang-tools-extra] [openmp] [compiler-rt] [lldb] [libc] [libcxx] [mlir] [builtins][arm64] Build __init_cpu_features_resolver on Apple platforms (PR #73685)

2023-12-15 Thread Jon Roelofs via cfe-commits
jroelofs wrote: > this file suffers from a pretty deep ifdef nesting jungle, so I'm not sure if > that's the best solution I'll refactor, and put up a new PR. https://github.com/llvm/llvm-project/pull/73685 ___ cfe-commits mailing list cfe-commits@li

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

2023-12-15 Thread Dinar Temirbulatov via cfe-commits
https://github.com/dtemirbulatov updated https://github.com/llvm/llvm-project/pull/72487 >From 6e2c1015c6cf6b226bc9e28c563167e07b9c4074 Mon Sep 17 00:00:00 2001 From: Dinar Temirbulatov Date: Thu, 16 Nov 2023 07:21:17 + Subject: [PATCH 1/4] [AArch64][SME2] Add FCLAMP, CNTP builtins for SME2

[llvm] [clang] [mlir] [LLVM][IR] Replace ConstantInt's specialisation of getType() with getIntegerType(). (PR #75217)

2023-12-15 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm updated https://github.com/llvm/llvm-project/pull/75217 >From d19e9e20432c0dfe50bfba7cd782179653f42b2b Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Wed, 29 Nov 2023 14:45:06 + Subject: [PATCH] [LLVM][IR] Replace ConstantInt's specialisation of getType()

[clang] [llvm] [clang-tools-extra] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-15 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: The new tests started failing on Apple build bot: https://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/38908/ Can you please fix these or revert the commit? https://github.com/llvm/llvm-project/pull/65815 ___ cfe-

[clang] [AArch64][SME2] Add SME2 MLA/MLS builtins. (PR #75584)

2023-12-15 Thread Kerry McLaughlin via cfe-commits
@@ -315,6 +315,219 @@ let TargetGuard = "sme2" in { def SVBMOPS : Inst<"svbmops_za32[_{d}]_m", "viPPdd", "iUi", MergeNone, "aarch64_sme_bmops_za32", [IsSharedZA, IsStreaming], [ImmCheck<0, ImmCheck0_3>]>; } +// FMLA/FMLS +let TargetGuard = "sme2" in { + def SVMLA_MULTI_VG

[clang] [clang][dataflow] Fix an issue with `Environment::getResultObjectLocation()`. (PR #75483)

2023-12-15 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/75483 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-12-15 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. https://github.com/llvm/llvm-project/pull/72487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [InstrProf] Single byte counters in coverage (PR #75425)

2023-12-15 Thread Zequan Wu via cfe-commits
@@ -569,16 +577,26 @@ struct CounterCoverageMappingBuilder /// Return a counter for the subtraction of \c RHS from \c LHS Counter subtractCounters(Counter LHS, Counter RHS, bool Simplify = true) { +if (llvm::EnableSingleByteCoverage) + assert( + 0 && +

[compiler-rt] [clang] [llvm] [InstrProf] Single byte counters in coverage (PR #75425)

2023-12-15 Thread Zequan Wu via cfe-commits
@@ -234,8 +246,20 @@ struct MapRegionCounters : public RecursiveASTVisitor { if (Hash.getHashVersion() == PGO_HASH_V1) return Base::TraverseIfStmt(If); +// When single byte coverage mode is enabled, add a counter to then and +// else. +for (Stmt *CS : If

[clang] [clang-tools-extra] [llvm] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-15 Thread via cfe-commits
quic-akaryaki wrote: Thanks for letting me know, I'm preparing a fix. By the way, is there a way to run a buildbot manually? https://github.com/llvm/llvm-project/pull/65815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread Pavel Kalugin via cfe-commits
https://github.com/p4vook created https://github.com/llvm/llvm-project/pull/75629 Check if the last translation unit or its first declaration are actually empty and do not nead cleanup. Previously this caused segmentation fault on empty PTUs. Add a regression test. Fixes: #72980 >From 2c4ab

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it i

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Pavel Kalugin (p4vook) Changes Check if the last translation unit or its first declaration are actually empty and do not nead cleanup. Previously this caused segmentation fault on empty PTUs. Add a regression test. Fixes: #72980 --- Fu

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: clang-repl "int x = 10;" "{ int t; a::b(t); }" "int y = 10;" vgvassilev wrote: Can you move this in the `code-undo.cpp` test? https://github.com/llvm/llvm-project/pull/75629 ___ cfe-commits ma

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread Vassil Vassilev via cfe-commits
@@ -373,7 +373,15 @@ std::unique_ptr IncrementalParser::GenModule() { void IncrementalParser::CleanUpPTU(PartialTranslationUnit &PTU) { TranslationUnitDecl *MostRecentTU = PTU.TUPart; + if (!MostRecentTU) { +return; + } vgvassilev wrote: ```suggestio

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread Vassil Vassilev via cfe-commits
@@ -373,7 +373,15 @@ std::unique_ptr IncrementalParser::GenModule() { void IncrementalParser::CleanUpPTU(PartialTranslationUnit &PTU) { TranslationUnitDecl *MostRecentTU = PTU.TUPart; + if (!MostRecentTU) { +return; + } + TranslationUnitDecl *FirstTU = MostRecentTU

[clang] [llvm] [clang-tools-extra] [flang] [flang][openacc/mp][NFC] Remove unused baseAddr argument (PR #75537)

2023-12-15 Thread Valentin Clement バレンタイン クレメン via cfe-commits
https://github.com/clementval updated https://github.com/llvm/llvm-project/pull/75537 >From ae0e461d8c9c013d7d3c2d16d811df6b30e66abd Mon Sep 17 00:00:00 2001 From: Valentin Clement Date: Thu, 14 Dec 2023 13:58:33 -0800 Subject: [PATCH] [flang][openacc/mp][NFC] Remove unused baseAddr argument -

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread Pavel Kalugin via cfe-commits
https://github.com/p4vook updated https://github.com/llvm/llvm-project/pull/75629 >From 2c4ab0990b55be21ca820d84eebb46b1814bb0aa Mon Sep 17 00:00:00 2001 From: Pavel Kalugin Date: Fri, 15 Dec 2023 15:05:45 +0300 Subject: [PATCH 1/2] [clang-repl] fix segfault in CleanUpPTU() Check if the last t

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread Pavel Kalugin via cfe-commits
https://github.com/p4vook updated https://github.com/llvm/llvm-project/pull/75629 >From 2c4ab0990b55be21ca820d84eebb46b1814bb0aa Mon Sep 17 00:00:00 2001 From: Pavel Kalugin Date: Fri, 15 Dec 2023 15:05:45 +0300 Subject: [PATCH 1/3] [clang-repl] fix segfault in CleanUpPTU() Check if the last t

[clang] [AArch64][SME] Warn when using a streaming builtin from a non-streaming function (PR #75487)

2023-12-15 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. Assuming the tests pass after changing `BuiltinType` to a `std::optional`, the patch looks fine to me. https://github.com/llvm/llvm-project/pull/75487 ___ cfe-commits mailing list cfe-commit

[clang] [llvm] [clang-tools-extra] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-15 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: > Thanks for letting me know, I'm preparing a fix. By the way, is there a way > to run a buildbot manually? Thanks! Not that I know of. https://github.com/llvm/llvm-project/pull/65815 ___ cfe-commits mailing list cfe-commits@lists

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread Pavel Kalugin via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: clang-repl "int x = 10;" "{ int t; a::b(t); }" "int y = 10;" p4vook wrote: I don't quite understand, the `code-undo.cpp` doesn't seem to have anything that produces an error, but this test does. If we define a::b(t), clang-repl stops se

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread Pavel Kalugin via cfe-commits
https://github.com/p4vook edited https://github.com/llvm/llvm-project/pull/75629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread Pavel Kalugin via cfe-commits
https://github.com/p4vook edited https://github.com/llvm/llvm-project/pull/75629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-15 Thread via cfe-commits
quic-akaryaki wrote: Trying a fix in #75631. https://github.com/llvm/llvm-project/pull/65815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [llvm] [clang] [flang] [libcxx] [clang-tools-extra] [libc] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-15 Thread Bill Wendling via cfe-commits
@@ -4073,6 +4221,51 @@ LValue CodeGenFunction::EmitArraySubscriptExpr(const ArraySubscriptExpr *E, ArrayLV = EmitLValue(Array); auto *Idx = EmitIdxAfterBase(/*Promote*/true); +if (SanOpts.has(SanitizerKind::ArrayBounds)) { + // If the array being accessed h

[clang] [llvm] [Instrumentation][X86] Limit setting large section flag to medium/large code models (PR #75542)

2023-12-15 Thread Arthur Eubanks via cfe-commits
https://github.com/aeubanks updated https://github.com/llvm/llvm-project/pull/75542 >From 884347b73d68e2d469b3903f248e72921434 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Thu, 14 Dec 2023 15:41:31 -0800 Subject: [PATCH 1/3] [Instrumentation][X86] Limit setting large section flag to

[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

2023-12-15 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: clang-repl "int x = 10;" "{ int t; a::b(t); }" "int y = 10;" vgvassilev wrote: Then we can put it in a new file called `error-recovery.cpp`. https://github.com/llvm/llvm-project/pull/75629 ___

[clang] [flang] [clang-tools-extra] [llvm] [flang][openacc/mp][NFC] Remove unused baseAddr argument (PR #75537)

2023-12-15 Thread Valentin Clement バレンタイン クレメン via cfe-commits
https://github.com/clementval closed https://github.com/llvm/llvm-project/pull/75537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang-tools-extra] [clang] Add out-of-line-atomics support to GlobalISel (PR #74588)

2023-12-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 67aec2f58bf1568bb1c68d4906bc3c0103ff3c98 84aa367c3fd9f96b354bf49183cbd6fc8a836ffa --

[clang] [llvm] [Instrumentation][X86] Limit setting large section flag to medium/large code models (PR #75542)

2023-12-15 Thread Arthur Eubanks via cfe-commits
https://github.com/aeubanks closed https://github.com/llvm/llvm-project/pull/75542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add languages as server capabilities (PR #75633)

2023-12-15 Thread Chris B via cfe-commits
https://github.com/llvm-beanz created https://github.com/llvm/llvm-project/pull/75633 This change adds a list of supported langauges as part of the server capabilities. This is related to a PR to add HLSL support to the clangd VSCode plugin (https://github.com/clangd/vscode-clangd/pull/392).

[clang-tools-extra] [clangd] Add languages as server capabilities (PR #75633)

2023-12-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Chris B (llvm-beanz) Changes This change adds a list of supported langauges as part of the server capabilities. This is related to a PR to add HLSL support to the clangd VSCode plugin (https://github.com/clangd/vscode-clangd/pull/392).

[clang] [mlir] [llvm] [LLVM][IR] Replace ConstantInt's specialisation of getType() with getIntegerType(). (PR #75217)

2023-12-15 Thread Paul Walker via cfe-commits
paulwalker-arm wrote: Turns out there was just a single extra instance, within MLIR. It's an interesting one though and I've noted it as it looks like I'll need to extend `ModuleImport::getConstantAsAttr` as part of the patch that enables direct VectorType support for ConstantInt/FP. https:/

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-15 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree created https://github.com/llvm/llvm-project/pull/75637 This patch fixes the following build error on z/OS `error: unknown type name 'Dl_info'` by adding a guard to check if we have dladdr. >From 6b102c50136b8f49b2d678b06fb8f14f866cca70 Mon Sep 17 00:00:00 2001 F

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Abhina Sree (abhina-sree) Changes This patch fixes the following build error on z/OS `error: unknown type name 'Dl_info'` by adding a guard to check if we have dladdr. --- Full diff: https://github.com/llvm/llvm-project/pull/75637.diff

[llvm] [clang-tools-extra] [clang] [flang] [compiler-rt] [lld] [libcxxabi] [libc] [lldb] [openmp] [mlir] [libcxx] [builtins][arm64] Build __init_cpu_features_resolver on Apple platforms (PR #73685)

2023-12-15 Thread Jon Roelofs via cfe-commits
jroelofs wrote: https://github.com/llvm/llvm-project/pull/75635 https://github.com/llvm/llvm-project/pull/73685 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [lldb] [clang-tools-extra] [lld] [libcxx] [libcxxabi] [mlir] [flang] [clang] [openmp] [libc] [compiler-rt] [builtins][arm64] Build __init_cpu_features_resolver on Apple platforms (PR #73685)

2023-12-15 Thread Jon Roelofs via cfe-commits
jroelofs wrote: Refactor here: https://github.com/llvm/llvm-project/pull/75635 https://github.com/llvm/llvm-project/pull/73685 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-15 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree updated https://github.com/llvm/llvm-project/pull/75637 >From 6b102c50136b8f49b2d678b06fb8f14f866cca70 Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Fri, 15 Dec 2023 13:13:24 -0500 Subject: [PATCH 1/2] check if we have dlfcn.h and dladdr --- clang

[clang] [compiler-rt] [clang][UBSan] Add implicit conversion check for bitfields (PR #75481)

2023-12-15 Thread Axel Lundberg via cfe-commits
Zonotora wrote: Hi, @vitalybuka @zygoloid @AaronBallman you might have something to say about this commit https://github.com/llvm/llvm-project/pull/75481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang-tools-extra] [clangd] Track IWYU pragmas for non-preamble includes (PR #75612)

2023-12-15 Thread Sam McCall via cfe-commits
@@ -113,7 +113,7 @@ class PragmaIncludes { llvm::DenseSet ShouldKeep; /// Owns the strings. - llvm::BumpPtrAllocator Arena; + std::shared_ptr Arena; sam-mccall wrote: This doesn't look threadsafe. Two PIs associated with parallel ParsedAST builds will

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-15 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree updated https://github.com/llvm/llvm-project/pull/75637 >From 6b102c50136b8f49b2d678b06fb8f14f866cca70 Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Fri, 15 Dec 2023 13:13:24 -0500 Subject: [PATCH 1/3] check if we have dlfcn.h and dladdr --- clang

[clang] [clang-repl] fix top-level statement declaration context (PR #75547)

2023-12-15 Thread Pavel Kalugin via cfe-commits
https://github.com/p4vook updated https://github.com/llvm/llvm-project/pull/75547 >From 97c3ed6c8a007dbca32416ebb31cf4c3bd52b264 Mon Sep 17 00:00:00 2001 From: Pavel Kalugin Date: Fri, 15 Dec 2023 03:07:06 +0300 Subject: [PATCH 1/2] [clang-repl] fix top-level statement declaration context Chan

[clang] [compiler-rt] [clang][UBSan] Add implicit conversion check for bitfields (PR #75481)

2023-12-15 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Is is UB? https://github.com/llvm/llvm-project/pull/75481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [clang][UBSan] Add implicit conversion check for bitfields (PR #75481)

2023-12-15 Thread Vitaly Buka via cfe-commits
@@ -1094,6 +1114,27 @@ void ScalarExprEmitter::EmitIntegerTruncationCheck(Value *Src, QualType SrcType, {Src, Dst}); } +static llvm::Value *EmitIsNegativeTestHelper(Value *V, QualType VType, vitalybuka wrote: Please extract lambda to function

[clang] [clang-repl] fix top-level statement declaration context (PR #75547)

2023-12-15 Thread Pavel Kalugin via cfe-commits
https://github.com/p4vook updated https://github.com/llvm/llvm-project/pull/75547 >From 97c3ed6c8a007dbca32416ebb31cf4c3bd52b264 Mon Sep 17 00:00:00 2001 From: Pavel Kalugin Date: Fri, 15 Dec 2023 03:07:06 +0300 Subject: [PATCH 1/3] [clang-repl] fix top-level statement declaration context Chan

[compiler-rt] [clang] [clang][UBSan] Add implicit conversion check for bitfields (PR #75481)

2023-12-15 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: @LebedevRI who added implicit-integer-truncation https://github.com/llvm/llvm-project/pull/75481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [clang] [clang][UBSan] Add implicit conversion check for bitfields (PR #75481)

2023-12-15 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > Is is UB? I guess it follows existing convention `implicit-integer-truncation` is convenience check and `implicit-signed-integer-truncation` is UB https://github.com/llvm/llvm-project/pull/75481 ___ cfe-commits mailing list cfe-co

[clang] [openmp] [Clang][OpenMP] Fix mapping of structs to device (PR #75642)

2023-12-15 Thread Gheorghe-Teodor Bercea via cfe-commits
https://github.com/doru1004 created https://github.com/llvm/llvm-project/pull/75642 Fix mapping of structs to device. The following example fails: ``` #include #include struct Descriptor { int *datum; long int x; int xi; long int arr[1][30]; }; int main() { Descriptor dat = Descr

[clang] [openmp] [Clang][OpenMP] Fix mapping of structs to device (PR #75642)

2023-12-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Gheorghe-Teodor Bercea (doru1004) Changes Fix mapping of structs to device. The following example fails: ``` #include #include struct Descriptor { int *datum; long int x; int xi; long int arr[1][30]; }; int

[openmp] [clang] [Clang][OpenMP] Fix mapping of structs to device (PR #75642)

2023-12-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 29ee66f4a0967e43a035f147c960743c7b640f2f 2dc40b67e55985de4e9e89758d6c65eb73faac02 --

[llvm] [libcxx] [flang] [clang] [clang-tools-extra] [compiler-rt] [libc] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-15 Thread John McCall via cfe-commits
@@ -4073,6 +4221,51 @@ LValue CodeGenFunction::EmitArraySubscriptExpr(const ArraySubscriptExpr *E, ArrayLV = EmitLValue(Array); auto *Idx = EmitIdxAfterBase(/*Promote*/true); +if (SanOpts.has(SanitizerKind::ArrayBounds)) { + // If the array being accessed h

[clang] [openmp] [Clang][OpenMP] Fix mapping of structs to device (PR #75642)

2023-12-15 Thread Gheorghe-Teodor Bercea via cfe-commits
https://github.com/doru1004 updated https://github.com/llvm/llvm-project/pull/75642 >From ae6cf04a149f00f52c1da8e7b9c1ca3af5393f99 Mon Sep 17 00:00:00 2001 From: Doru Bercea Date: Fri, 15 Dec 2023 10:22:38 -0500 Subject: [PATCH] Fix mapping of structs to device. --- clang/lib/CodeGen/CGOpenMP

[compiler-rt] [libcxx] [llvm] [clang-tools-extra] [libc] [flang] [clang] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-15 Thread John McCall via cfe-commits
https://github.com/rjmccall edited https://github.com/llvm/llvm-project/pull/73730 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [lldb] [libcxx] [llvm] [clang-tools-extra] [lld] [libc] [mlir] [openmp] [flang] [clang] [MLIR] Enabling Intel GPU Integration. (PR #65539)

2023-12-15 Thread Sang Ik Lee via cfe-commits
silee2 wrote: Closing as all sub-components has been merged. https://github.com/llvm/llvm-project/pull/65539 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [libcxx] [flang] [clang] [lldb] [clang-tools-extra] [mlir] [lld] [openmp] [compiler-rt] [libc] [MLIR] Enabling Intel GPU Integration. (PR #65539)

2023-12-15 Thread Sang Ik Lee via cfe-commits
https://github.com/silee2 closed https://github.com/llvm/llvm-project/pull/65539 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [flang] [llvm] [flang] GETLOG runtime and extension implementation: get login username (PR #74628)

2023-12-15 Thread Yi Wu via cfe-commits
yi-wu-arm wrote: Windows CI failure: compiler out of heap space. https://github.com/llvm/llvm-project/pull/74628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [libcxx] [flang] [clang] [clang-tools-extra] [compiler-rt] [libc] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-15 Thread Bill Wendling via cfe-commits
@@ -4073,6 +4221,51 @@ LValue CodeGenFunction::EmitArraySubscriptExpr(const ArraySubscriptExpr *E, ArrayLV = EmitLValue(Array); auto *Idx = EmitIdxAfterBase(/*Promote*/true); +if (SanOpts.has(SanitizerKind::ArrayBounds)) { + // If the array being accessed h

[compiler-rt] [clang] [libcxx] [libc] [flang] [llvm] [clang-tools-extra] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-15 Thread Bill Wendling via cfe-commits
@@ -4022,8 +4169,36 @@ LValue CodeGenFunction::EmitArraySubscriptExpr(const ArraySubscriptExpr *E, ArrayLV = EmitArraySubscriptExpr(ASE, /*Accessed*/ true); else ArrayLV = EmitLValue(Array); + auto *Idx = EmitIdxAfterBase(/*Promote*/true); +if (SanOp

[clang] [llvm] [Clang][SVE2.1] Add floating-point variants of `svrevd_XX` (PR #75117)

2023-12-15 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/75117 >From e11897d680dbb892aa645a6fc7f63f91fde3bd7c Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Mon, 11 Dec 2023 23:25:07 + Subject: [PATCH 1/2] [Clang][SVE2.1] Add floating-point variants of `sv

[clang] [openmp] [Clang][OpenMP] Fix mapping of structs to device (PR #75642)

2023-12-15 Thread Gheorghe-Teodor Bercea via cfe-commits
https://github.com/doru1004 updated https://github.com/llvm/llvm-project/pull/75642 >From e0e1f5e7bb2f95f2568b5dd647b883f4740bcafd Mon Sep 17 00:00:00 2001 From: Doru Bercea Date: Fri, 15 Dec 2023 10:22:38 -0500 Subject: [PATCH] Fix mapping of structs to device. --- clang/lib/CodeGen/CGOpenMP

[clang] [openmp] [Clang][OpenMP] Fix mapping of structs to device (PR #75642)

2023-12-15 Thread Gheorghe-Teodor Bercea via cfe-commits
https://github.com/doru1004 updated https://github.com/llvm/llvm-project/pull/75642 >From 32454489d4e77f22ab935827dffe0febbb7b0626 Mon Sep 17 00:00:00 2001 From: Doru Bercea Date: Fri, 15 Dec 2023 10:22:38 -0500 Subject: [PATCH] Fix mapping of structs to device. --- clang/lib/CodeGen/CGOpenMP

[clang] 0b7dda3 - Revert "[flang][nfc] Refactor linker invocation logic (#75534)"

2023-12-15 Thread Philip Reames via cfe-commits
Author: Philip Reames Date: 2023-12-15T11:08:09-08:00 New Revision: 0b7dda3d4cbe6a4180fd80f91e9f29e474c1d896 URL: https://github.com/llvm/llvm-project/commit/0b7dda3d4cbe6a4180fd80f91e9f29e474c1d896 DIFF: https://github.com/llvm/llvm-project/commit/0b7dda3d4cbe6a4180fd80f91e9f29e474c1d896.diff

[clang] [openmp] [Clang][OpenMP] Fix mapping of structs to device (PR #75642)

2023-12-15 Thread Gheorghe-Teodor Bercea via cfe-commits
doru1004 wrote: @alexey-bataev I have reworked the previous patch with your advice in mind. The emitCombinedEntry function was not changed since eliminating the combined entry has many ramifications which would need to be handled in a separate patch. For now this fixes the immediate error in a

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-15 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree updated https://github.com/llvm/llvm-project/pull/75637 >From fa5de46426920ed3592fcd0b0dd5b810b62d22c1 Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Fri, 15 Dec 2023 13:13:24 -0500 Subject: [PATCH] check if we have dlfcn.h and dladdr --- clang/too

[clang] [Clang][SVE2.1] Make a part of the name optional for `svwhileXX` builtins with predicate-as-counter (PR #75200)

2023-12-15 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/75200 >From bb881371fb036819a1d6489a9779e2c5ac7e7d3c Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Tue, 12 Dec 2023 15:08:33 + Subject: [PATCH 1/4] [Clang][SVE2.1] Make the part of the name optional

[clang] [clang] Strict aliasing warning ala GCC [PR50066] (PR #74155)

2023-12-15 Thread Nathan Sidwell via cfe-commits
@@ -37,6 +38,27 @@ class ASTConsumer { friend class SemaConsumer; +public: + /// Allow type-based aliasing information to be interrogated by the AST + /// producer (for diagnostics). + class TypeAliasing { urnathan wrote: Oh, we also endup deriving from

[clang] [clang] Strict aliasing warning ala GCC [PR50066] (PR #74155)

2023-12-15 Thread Nathan Sidwell via cfe-commits
@@ -498,3 +498,137 @@ CodeGenTBAA::mergeTBAAInfoForMemoryTransfer(TBAAAccessInfo DestInfo, // access type regardless of their base types. return TBAAAccessInfo::getMayAliasInfo(); } + +// Determine the aliasing kind bit-converting from type Src to type Dst. +CodeGenTBAA::A

[clang] [clang] Strict aliasing warning ala GCC [PR50066] (PR #74155)

2023-12-15 Thread Nathan Sidwell via cfe-commits
urnathan wrote: > > > FWIW the GCC doc is > > > https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-aliasing_003dn > > > It says for Level 3 "If optimization is enabled, it also runs in the > > > back end, where it deals with multiple statement cases using > > > flow-sensiti

[libc] [libcxx] [compiler-rt] [llvm] [clang-tools-extra] [clang] [flang] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-15 Thread John McCall via cfe-commits
@@ -4022,8 +4169,36 @@ LValue CodeGenFunction::EmitArraySubscriptExpr(const ArraySubscriptExpr *E, ArrayLV = EmitArraySubscriptExpr(ASE, /*Accessed*/ true); else ArrayLV = EmitLValue(Array); + auto *Idx = EmitIdxAfterBase(/*Promote*/true); +if (SanOp

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-15 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree updated https://github.com/llvm/llvm-project/pull/75637 >From 61385bf2fa5c7369812eed6d40d04599f2383ee0 Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Fri, 15 Dec 2023 14:39:23 -0500 Subject: [PATCH] check if we have dlfcn.h and dladdr --- clang/too

<    1   2   3   4   >