[clang] [llvm] [mlir] [IR][ModRef] Introduce `errno` memory location (PR #120783)

2025-01-28 Thread Antonio Frighetto via cfe-commits
https://github.com/antoniofrighetto updated https://github.com/llvm/llvm-project/pull/120783 >From 54d3ac991abaa341dd4798bbf6aeb3ede4441d64 Mon Sep 17 00:00:00 2001 From: Antonio Frighetto Date: Fri, 20 Dec 2024 19:30:59 +0100 Subject: [PATCH 1/2] [IR][ModRef] Introduce `errno` memory location

[clang] [TBAA] Don't emit pointer-tbaa for void pointers. (PR #122116)

2025-01-28 Thread Sam James via cfe-commits
@@ -2486,6 +2486,23 @@ are listed below. $ clang -fuse-ld=lld -Oz -Wl,--icf=safe -fcodegen-data-use code.cc +Strict Aliasing +--- + +Clang by default applies C/C++'s strict aliasing rules during optimizations. In thesamesam wrote: Thanks! It

[libclc] [libclc] Move conversion builtins to the CLC library (PR #124727)

2025-01-28 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/124727 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] 78b5bb7 - [libclc][NFC] Move key math headers to CLC (#124739)

2025-01-28 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-01-28T14:17:23Z New Revision: 78b5bb702fe97fe85f66d72598d0dfa7c49fe001 URL: https://github.com/llvm/llvm-project/commit/78b5bb702fe97fe85f66d72598d0dfa7c49fe001 DIFF: https://github.com/llvm/llvm-project/commit/78b5bb702fe97fe85f66d72598d0dfa7c49fe001.diff LOG

[clang] 820c6ac - [Clang] call HandleImmediateInvocation before checking for immediate escacalating expressions (reland) (#124708)

2025-01-28 Thread via cfe-commits
Author: cor3ntin Date: 2025-01-28T15:18:38+01:00 New Revision: 820c6ac7f5e438cc268ecb1fa2c6b17f0d168000 URL: https://github.com/llvm/llvm-project/commit/820c6ac7f5e438cc268ecb1fa2c6b17f0d168000 DIFF: https://github.com/llvm/llvm-project/commit/820c6ac7f5e438cc268ecb1fa2c6b17f0d168000.diff LOG:

[libclc] [libclc][NFC] Move key math headers to CLC (PR #124739)

2025-01-28 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/124739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] call HandleImmediateInvocation before checking for immediate escacalating expressions (reland) (PR #124708)

2025-01-28 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/124708 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP][ASan] Enable ASan Instrumentation for AMDGPUOpenMPToolChain. (PR #124754)

2025-01-28 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 commented: Broad question, should we instead aim for having `-fsanitize` work for both sides? I've always been very much against all these `*-gpu` bloat flags when we could just do `-Xarch_host -fsanitize` or `-Xarch_device -fsanitize`. The word against that it usual

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Erich Keane via cfe-commits
@@ -0,0 +1 @@ +add_subdirectory(DirectToLLVM) erichkeane wrote: newline at end of file here too, because github. https://github.com/llvm/llvm-project/pull/124650 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Erich Keane via cfe-commits
@@ -55,6 +55,9 @@ class CIRGenerator : public clang::ASTConsumer { void Initialize(clang::ASTContext &astContext) override; bool HandleTopLevelDecl(clang::DeclGroupRef group) override; mlir::ModuleOp getModule() const; + std::unique_ptr takeContext() { e

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/124650 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: I have concerns about `takeContext`, else everything else is a NIT. https://github.com/llvm/llvm-project/pull/124650 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [CodeGen] Replace of PointerType::get(Type) with opaque version (NFC) (PR #124771)

2025-01-28 Thread Mats Jun Larsen via cfe-commits
https://github.com/junlarsen created https://github.com/llvm/llvm-project/pull/124771 Follow-up to https://github.com/llvm/llvm-project/issues/123569 >From f3bbd6f0db4109016d98fe15a2b086b491df2d93 Mon Sep 17 00:00:00 2001 From: Mats Jun Larsen Date: Wed, 29 Jan 2025 00:31:32 +0900 Subject: [PA

[clang] [clang-format] Fix annotating attrs in class/struct (PR #124634)

2025-01-28 Thread Nico Weber via cfe-commits
nico wrote: (Why drop the formatting test? Seems good to have an integration test for this, no?) https://github.com/llvm/llvm-project/pull/124634 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang-tools-extra] [clang-tidy] Replace /* ... */ single-line comments with // ... comments (PR #124319)

2025-01-28 Thread via cfe-commits
@@ -0,0 +1,40 @@ +.. title:: clang-tidy - use-cpp-style-comments + +readability-use-cpp-style-comments +== + +Replace C-style comments with C++-style comments. +C-style comments (``/* ... */``) are inherited from C, while C++ introduces +``//`` as

[clang-tools-extra] [clang-tidy] Replace /* ... */ single-line comments with // ... comments (PR #124319)

2025-01-28 Thread via cfe-commits
@@ -0,0 +1,40 @@ +.. title:: clang-tidy - use-cpp-style-comments + +readability-use-cpp-style-comments +== + +Replace C-style comments with C++-style comments. +C-style comments (``/* ... */``) are inherited from C, while C++ introduces +``//`` as

[clang] [CodeGen] Replace of PointerType::get(Type) with opaque version (NFC) (PR #124771)

2025-01-28 Thread Mats Jun Larsen via cfe-commits
@@ -1097,31 +1097,10 @@ llvm::Type *CodeGenModule::getBlockDescriptorType() { if (BlockDescriptorType) return BlockDescriptorType; - llvm::Type *UnsignedLongTy = -getTypes().ConvertType(getContext().UnsignedLongTy); - - // struct __block_descriptor { - // unsign

[libclc] [libclc] Move conversion builtins to the CLC library (PR #124727)

2025-01-28 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: I think for `clspv`, we would need to invert the condition to skip user-facing functions. By that I mean that `clspv` will need all the `convert_*` functions, and not the `__clc_convert_*_rte`. Then we will need to update `clspv` to support natively the function with the `__cl

[clang-tools-extra] [clang-tidy] Replace /* ... */ single-line comments with // ... comments (PR #124319)

2025-01-28 Thread via cfe-commits
@@ -0,0 +1,40 @@ +.. title:: clang-tidy - use-cpp-style-comments + +readability-use-cpp-style-comments +== + +Replace C-style comments with C++-style comments. +C-style comments (``/* ... */``) are inherited from C, while C++ introduces +``//`` as

[clang] [CodeGen] Replace of PointerType::get(Type) with opaque version (NFC) (PR #124771)

2025-01-28 Thread Mats Jun Larsen via cfe-commits
https://github.com/junlarsen ready_for_review https://github.com/llvm/llvm-project/pull/124771 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] Replace of PointerType::get(Type) with opaque version (NFC) (PR #124771)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mats Jun Larsen (junlarsen) Changes Follow-up to https://github.com/llvm/llvm-project/issues/123569 --- Full diff: https://github.com/llvm/llvm-project/pull/124771.diff 7 Files Affected: - (modified) clang/lib/CodeGen/Address.h (+4-4)

[clang] [Clang] Enable -fextend-lifetimes at -Og (PR #118026)

2025-01-28 Thread Stephen Tozer via cfe-commits
SLTozer wrote: With the prior patches having landed, this is now in a state where it could land; I've rebased it onto main, meaning all of the code diff in this PR is now relevant. https://github.com/llvm/llvm-project/pull/118026 ___ cfe-commits mail

[clang] [OpenMP][ASan] Enable ASan Instrumentation for AMDGPUOpenMPToolChain. (PR #124754)

2025-01-28 Thread via cfe-commits
b-sumner wrote: > I'm referring to the fact that for a normal compile, if the user passes > `-fsanitize=address`, should that enable it for both the host and device? My > argument is that the user is capable of passing something like `-Xarch_host > -fsanitize=undefined -Xarch_device -fsanitize

[clang] [llvm] [WIP][clang][DebugInfo] Add new DW_AT_APPLE_ENUM_KIND to encode enum_extensibility (PR #124752)

2025-01-28 Thread Michael Buch via cfe-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/124752 When creating `EnumDecl`s from DWARF for Objective-C `NS_ENUM`s, the Swift compiler tries to figure out if it should perform "swiftification" of that enum (which involves renaming the enumerator cases, etc.)

[libclc] [libclc][NFC] Move key math headers to CLC (PR #124739)

2025-01-28 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/124739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][ASan] Refactor Clang-Driver "Sanitizer Bitcode" linking. (PR #123922)

2025-01-28 Thread Amit Kumar Pandey via cfe-commits
https://github.com/ampandey-1995 updated https://github.com/llvm/llvm-project/pull/123922 >From 5ec4303eb089038db1965b844b8b3bec136207bf Mon Sep 17 00:00:00 2001 From: Amit Pandey Date: Wed, 22 Jan 2025 15:41:41 +0530 Subject: [PATCH 1/3] [Driver][ASan] Refactor Clang-Driver "Sanitizer Bitcode"

[clang] [llvm] [mlir] [openmp] [Offload] Rework offloading entry type to be more generic (PR #124018)

2025-01-28 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/124018 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] disallow narrowing when matching template template parameters (PR #124313)

2025-01-28 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/124313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [InferAttrs] Mark errnomem-setting libcalls as such (PR #124742)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir Author: Antonio Frighetto (antoniofrighetto) Changes Mark C standard library functions that set `errno` as such, as included in the POSIX specification. Likewise, while deducing function attributes, determine whether a memory access affects errno

[clang] [nfc][analyzer] Add MemSpace trait to program state (PR #123003)

2025-01-28 Thread Donát Nagy via cfe-commits
@@ -1544,7 +1544,7 @@ SVal RegionStoreManager::getBinding(RegionBindingsConstRef B, Loc L, QualType T) // The location does not have a bound value. This means that it has // the value it had upon its creation and/or entry to the analyzed // function/method. These are e

[clang] [nfc][analyzer] Add MemSpace trait to program state (PR #123003)

2025-01-28 Thread Donát Nagy via cfe-commits
@@ -353,7 +352,7 @@ static std::string getRegionName(const SubRegion *Region) { return "the memory returned by 'alloca'"; if (isa(Region) && - isa(Region->getMemorySpace())) + isa(Region->getRawMemorySpace())) NagyDonat wrote: I think this sho

[clang] [nfc][analyzer] Add MemSpace trait to program state (PR #123003)

2025-01-28 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/123003 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Enable -fextend-lifetimes at -Og (PR #118026)

2025-01-28 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer updated https://github.com/llvm/llvm-project/pull/118026 >From beb5e1955f9b0aa106512bb10d4543232e4d4cfa Mon Sep 17 00:00:00 2001 From: Stephen Tozer Date: Thu, 28 Nov 2024 13:53:20 + Subject: [PATCH] Enable -fextend-lifetimes at -Og --- clang/docs/CommandGuide/c

[clang] [TySan] Add initial documentation for Type Sanitizer (PR #123595)

2025-01-28 Thread via cfe-commits
https://github.com/goussepi closed https://github.com/llvm/llvm-project/pull/123595 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] a8c82d5 - [libclc] Optimize isfpclass-like CLC builtins (#124145)

2025-01-28 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-01-28T16:23:52Z New Revision: a8c82d5fde1dab47a1a3fe27bb8ced8f0eb33ab9 URL: https://github.com/llvm/llvm-project/commit/a8c82d5fde1dab47a1a3fe27bb8ced8f0eb33ab9 DIFF: https://github.com/llvm/llvm-project/commit/a8c82d5fde1dab47a1a3fe27bb8ced8f0eb33ab9.diff LOG

[clang] [Clang][Sema] Fix wrong initialization kind when handling initializing structured bindings from an array with direct-list-initialization (PR #124793)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yanzuo Liu (zwuis) Changes In my PR #102581, elements of structured bindings is copy-initialized. They should be direct-initialized because the form of the initializer of the whole structured bindings is direct-list-initialization. [[dcl

[clang] [Clang][Sema] Fix wrong initialization kind when handling initializing structured bindings from an array with direct-list-initialization (PR #124793)

2025-01-28 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis created https://github.com/llvm/llvm-project/pull/124793 In my PR #102581, elements of structured bindings is copy-initialized. They should be direct-initialized because the form of the initializer of the whole structured bindings is direct-list-initialization. [[dcl.

[clang] [clang module] Current Working Directory Pruning (PR #124786)

2025-01-28 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu converted_to_draft https://github.com/llvm/llvm-project/pull/124786 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 822954b - [TySan] Add initial documentation for Type Sanitizer (#123595)

2025-01-28 Thread via cfe-commits
Author: gbMattN Date: 2025-01-28T16:58:03Z New Revision: 822954b4a97753b0c7accc606287529518e9d425 URL: https://github.com/llvm/llvm-project/commit/822954b4a97753b0c7accc606287529518e9d425 DIFF: https://github.com/llvm/llvm-project/commit/822954b4a97753b0c7accc606287529518e9d425.diff LOG: [TySa

[clang] [Clang] Fixed UnresolvedLookupExpr propagating into the codegen phase (PR #124609)

2025-01-28 Thread via cfe-commits
https://github.com/TilakChad updated https://github.com/llvm/llvm-project/pull/124609 >From e97f2215394198b75fd6ebf6ef2cf5d63e7ea444 Mon Sep 17 00:00:00 2001 From: Tilak Chad Date: Tue, 28 Jan 2025 00:09:33 +0545 Subject: [PATCH 1/2] [Clang] Fixed UnresolvedLookupExpr propagating into the code

[clang] [Clang][Sema] Fix wrong initialization kind when handling initializing structured bindings from an array with direct-list-initialization (PR #124793)

2025-01-28 Thread Yanzuo Liu via cfe-commits
zwuis wrote: Release note is not needed if this PR is cherry-picked to `release/20.x` branch. https://github.com/llvm/llvm-project/pull/124793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] eb10e94 - NFC: convert clang/test/AST/HLSL/StructuredBuffers-AST.hlsl to unix line endings

2025-01-28 Thread Matheus Izvekov via cfe-commits
Author: Matheus Izvekov Date: 2025-01-28T15:48:34-03:00 New Revision: eb10e94180dd722cf54cfaf1ed9d32aa0bb134a0 URL: https://github.com/llvm/llvm-project/commit/eb10e94180dd722cf54cfaf1ed9d32aa0bb134a0 DIFF: https://github.com/llvm/llvm-project/commit/eb10e94180dd722cf54cfaf1ed9d32aa0bb134a0.dif

[clang] [Clang][Sema] Fix wrong initialization kind when handling initializing structured bindings from an array with direct-list-initialization (PR #124793)

2025-01-28 Thread Vlad Serebrennikov via cfe-commits
@@ -4861,8 +4861,9 @@ static void TryListInitialization(Sema &S, S.Context.hasSameUnqualifiedType(SubInit[0]->getType(), DestType) && "Deduced to other type?"); TryArrayCopy(S, - InitializationKind::CreateCopy(Kind.getLocatio

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread Nick Desaulniers via cfe-commits
@@ -4352,19 +4352,11 @@ def stack_usage_file : Separate<["-"], "stack-usage-file">, def fextend_variable_liveness_EQ : Joined<["-"], "fextend-variable-liveness=">, Group, Visibility<[ClangOption, CC1Option]>, HelpText<"Extend the liveness of user variables through optimiza

[clang] [CUDA] Make target intrinsics work with ptx 8.7 (PR #124818)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Artem Belevich (Artem-B) Changes Fixes build break with CUDA-12.8 introduced in #123398 --- Full diff: https://github.com/llvm/llvm-project/pull/124818.diff 2 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsNVPTX.td (+2-1

[clang] [clang] fix template argument conversion (PR #124386)

2025-01-28 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/124386 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] disallow narrowing when matching template template parameters (PR #124313)

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

[clang] [CUDA] Make target intrinsics work with ptx 8.7 (PR #124818)

2025-01-28 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B created https://github.com/llvm/llvm-project/pull/124818 Fixes build break with CUDA-12.8 introduced in #123398 >From ebb322550e72a4c7c58d990340701248d6f61c95 Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Tue, 28 Jan 2025 10:45:16 -0800 Subject: [PATCH] [CUDA]

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread Nick Desaulniers via cfe-commits
@@ -4352,19 +4352,11 @@ def stack_usage_file : Separate<["-"], "stack-usage-file">, def fextend_variable_liveness_EQ : Joined<["-"], "fextend-variable-liveness=">, Group, Visibility<[ClangOption, CC1Option]>, HelpText<"Extend the liveness of user variables through optimiza

[clang] [Clang] Fixed invalid virtual copy constructor assertion (PR #124819)

2025-01-28 Thread via cfe-commits
https://github.com/vortex73 created https://github.com/llvm/llvm-project/pull/124819 None >From cee34e7727b0f8b9440b0d687a2da2f0b4734c15 Mon Sep 17 00:00:00 2001 From: Narayan Sreekumar Date: Wed, 29 Jan 2025 00:11:23 +0530 Subject: [PATCH] [Clang] Fixed invalid virtual copy constructor assert

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124674)

2025-01-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/124674 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124676)

2025-01-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/124676 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124675)

2025-01-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/124675 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2ef497e - [Sema] Migrate away from PointerUnion::dyn_cast (NFC) (#124675)

2025-01-28 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-28T10:56:26-08:00 New Revision: 2ef497e5b02650c59aa71676b7d891a138519685 URL: https://github.com/llvm/llvm-project/commit/2ef497e5b02650c59aa71676b7d891a138519685 DIFF: https://github.com/llvm/llvm-project/commit/2ef497e5b02650c59aa71676b7d891a138519685.diff L

[clang] 69c9bed - [Serialization] Migrate away from PointerUnion::dyn_cast (NFC) (#124676)

2025-01-28 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-28T10:57:01-08:00 New Revision: 69c9bed21b902bf83828c78d69691925f5452c35 URL: https://github.com/llvm/llvm-project/commit/69c9bed21b902bf83828c78d69691925f5452c35 DIFF: https://github.com/llvm/llvm-project/commit/69c9bed21b902bf83828c78d69691925f5452c35.diff L

[clang] e29c085 - [clang] disallow narrowing when matching template template parameters (#124313)

2025-01-28 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-01-28T15:51:17-03:00 New Revision: e29c085812e259910a3d8b6c2d2f471d1c3eede4 URL: https://github.com/llvm/llvm-project/commit/e29c085812e259910a3d8b6c2d2f471d1c3eede4 DIFF: https://github.com/llvm/llvm-project/commit/e29c085812e259910a3d8b6c2d2f471d1c3eede4.dif

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-dylib` running on `linaro-flang-aarch64-dylib` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/50/builds/9522 Here is the rel

[clang] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: None (Sirraide) Changes This relands #122991. I candidly still have no idea what went wrong last time; a bunch of bots started complaining with a relatively obscure error (see below). I’ve updated the branch and tried b

[clang] [ARM] Empty structs are 1-byte for C++ ABI (PR #124762)

2025-01-28 Thread Eli Friedman via cfe-commits
@@ -752,10 +780,13 @@ RValue ARMABIInfo::EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, CharUnits SlotSize = CharUnits::fromQuantity(4); // Empty records are ignored for parameter passing purposes. - if (isEmptyRecord(getContext(), Ty, true)) + uint64_t Size = getC

[clang] [clang] fix template argument conversion (PR #124386)

2025-01-28 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/124386 >From 8cf1056761d23fe3191d1ac3421da350b7404eb1 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Fri, 24 Jan 2025 19:25:38 -0300 Subject: [PATCH] [clang] fix template argument conversion Converted template

[clang] [ARM] Empty structs are 1-byte for C++ ABI (PR #124762)

2025-01-28 Thread Eli Friedman via cfe-commits
@@ -366,9 +387,15 @@ ABIArgInfo ARMABIInfo::classifyArgumentType(QualType Ty, bool isVariadic, return getNaturalAlignIndirect(Ty, RAA == CGCXXABI::RAA_DirectInMemory); } - // Ignore empty records. - if (isEmptyRecord(getContext(), Ty, true)) -return ABIArgInfo::ge

[clang] [ARM] Empty structs are 1-byte for C++ ABI (PR #124762)

2025-01-28 Thread Eli Friedman via cfe-commits
@@ -588,7 +615,8 @@ ABIArgInfo ARMABIInfo::classifyReturnType(QualType RetTy, bool isVariadic, // Otherwise this is an AAPCS variant. - if (isEmptyRecord(getContext(), RetTy, true)) + if (isEmptyRecord(getContext(), RetTy, true) || + getContext().getTypeSize(RetTy)

[clang] [clang][bytecode] Fix dummy handling for p2280r4 (PR #124396)

2025-01-28 Thread via cfe-commits
cor3ntin wrote: Is that a full P2280 implementation (I'm not familiar enough with the new constexpr engine to figure that out but going by the tests it seems to be) https://github.com/llvm/llvm-project/pull/124396 ___ cfe-commits mailing list cfe-comm

[clang] [DNC] Break formatting to test clang-format (PR #124809)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Jacob Lambert (lamb-j) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/124809.diff 1 Files Affected: - (modified) clang/lib/Driver/Driver.cpp (+6-7) ``diff diff --git a/clang/lib/Driver/Driver.cpp b/c

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Erich Keane via cfe-commits
@@ -44,7 +44,7 @@ class CIRGenerator : public clang::ASTConsumer { const clang::CodeGenOptions &codeGenOpts; protected: - std::unique_ptr mlirContext; + std::shared_ptr mlirContext; erichkeane wrote: Hmm... I don't think the shared pointer is the way here

[clang] [DNC] Break formatting to test clang-format (PR #124809)

2025-01-28 Thread Jacob Lambert via cfe-commits
https://github.com/lamb-j created https://github.com/llvm/llvm-project/pull/124809 None >From 4ed0192fca412dcb801ea75ad0d086153fa5b531 Mon Sep 17 00:00:00 2001 From: Jacob Lambert Date: Tue, 28 Jan 2025 09:43:14 -0800 Subject: [PATCH] [DNC] Break formatting to test clang-format --- clang/lib

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clangd-ubuntu-tsan` running on `clangd-ubuntu-clang` while building `clang,llvm` at step 5 "build-clangd-clangd-index-server-clangd-indexer". Full details are available at: https://lab.llvm.org/buildbot/#/builders/134/builds/

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-libcxx` running on `linaro-flang-aarch64-libcxx` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/89/builds/15409 Here is the

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-win-fast` running on `as-builder-3` while building `clang,llvm` at step 6 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/2/builds/15908 Here is the relevant p

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building `clang,llvm` at step 5 "compile-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/14785 Here is the relevant p

[clang] [AArch64] Enable vscale_range with +sme (PR #124466)

2025-01-28 Thread David Green via cfe-commits
@@ -708,7 +708,7 @@ AArch64TargetInfo::getVScaleRange(const LangOptions &LangOpts) const { return std::pair( LangOpts.VScaleMin ? LangOpts.VScaleMin : 1, LangOpts.VScaleMax); - if (hasFeature("sve")) + if (hasFeature("sve") || hasFeature("sme"))

[clang] 822f74a - [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (#124767)

2025-01-28 Thread via cfe-commits
Author: Stephen Tozer Date: 2025-01-28T18:25:32Z New Revision: 822f74a91106b7ca10e85508eb642e62ef945afa URL: https://github.com/llvm/llvm-project/commit/822f74a91106b7ca10e85508eb642e62ef945afa DIFF: https://github.com/llvm/llvm-project/commit/822f74a91106b7ca10e85508eb642e62ef945afa.diff LOG:

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer closed https://github.com/llvm/llvm-project/pull/124767 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [DNC] Break formatting to test clang-format (PR #124809)

2025-01-28 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 0b80491cd5e7dcb6d5432727d0a2c746a9a9438e 4ed0192fca412dcb801ea75ad0d086153fa5b531 --e

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-ubuntu-22-cmake-build-only` running on `rocm-docker-ubu-22` while building `clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/203/builds/1137 Here is th

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu` running on `doug-worker-1a` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/181/builds/12596 Here is the re

[clang] [clang-format] Fix annotating attrs in class/struct (PR #124634)

2025-01-28 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: > (Why drop the formatting test? Seems good to have an integration test for > this, no?) Because the bug was a misannotation. The formatting, based on the annotations, should already be covered. Of course one can always add more tests, and I'm not demanding to remove

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/16829 Here is t

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang,llvm` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/12607 Here is the relevant piece of the build l

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/builds/18501 Here is the

[clang] [Clang] Add fake use emission to Clang with -fextend-lifetimes (PR #110102)

2025-01-28 Thread via cfe-commits
gulfemsavrun wrote: This recently added tests failed on Windows like `extend-variable-liveness-except.cpp`, and https://github.com/llvm/llvm-project/commit/8ad9e1ecb7e565c2f99b4ef67517d1f37d1c80d0 did not fix this issue. Could you please revert while investigating? ``` FAIL: Clang :: CodeGen/e

[clang] [Clang][Sema] Fix wrong initialization kind when handling initializing structured bindings from an array with direct-list-initialization (PR #124793)

2025-01-28 Thread via cfe-commits
@@ -4861,8 +4861,9 @@ static void TryListInitialization(Sema &S, S.Context.hasSameUnqualifiedType(SubInit[0]->getType(), DestType) && "Deduced to other type?"); TryArrayCopy(S, - InitializationKind::CreateCopy(Kind.getLocatio

[clang] [AArch64] Enable vscale_range with +sme (PR #124466)

2025-01-28 Thread Sander de Smalen via cfe-commits
@@ -708,7 +708,7 @@ AArch64TargetInfo::getVScaleRange(const LangOptions &LangOpts) const { return std::pair( LangOpts.VScaleMin ? LangOpts.VScaleMin : 1, LangOpts.VScaleMax); - if (hasFeature("sve")) + if (hasFeature("sve") || hasFeature("sme"))

[clang] [ARM] Empty structs are 1-byte for C++ ABI (PR #124762)

2025-01-28 Thread Eli Friedman via cfe-commits
@@ -366,9 +387,15 @@ ABIArgInfo ARMABIInfo::classifyArgumentType(QualType Ty, bool isVariadic, return getNaturalAlignIndirect(Ty, RAA == CGCXXABI::RAA_DirectInMemory); } - // Ignore empty records. - if (isEmptyRecord(getContext(), Ty, true)) -return ABIArgInfo::ge

[clang] [Clang] Add fake use emission to Clang with -fextend-lifetimes (PR #110102)

2025-01-28 Thread Zhengxing li via cfe-commits
lizhengxing wrote: It's a name mangling issue on Windows (or maybe other OS). For example, the check `// CHECK-LABEL: define{{.*}}**_ZN1C4testEi**(ptr{{[^,]*}} %this, i32{{.*}} %p)` in fake-use-this.cpp expects the string contains `_ZN1C4testEi`. However, the compiler on Windows outputs `d

[clang] 986581f - [AST] Migrate away from PointerUnion::dyn_cast (NFC) (#124674)

2025-01-28 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-28T10:56:09-08:00 New Revision: 986581f6bcef8736c942a9fec9cf12bfbc57c1f6 URL: https://github.com/llvm/llvm-project/commit/986581f6bcef8736c942a9fec9cf12bfbc57c1f6 DIFF: https://github.com/llvm/llvm-project/commit/986581f6bcef8736c942a9fec9cf12bfbc57c1f6.diff L

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2025-01-28 Thread via cfe-commits
https://github.com/4m4n-x-B4w4ne edited https://github.com/llvm/llvm-project/pull/120087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread via cfe-commits
https://github.com/Sirraide created https://github.com/llvm/llvm-project/pull/124821 This relands #122991. I candidly still have no idea what went wrong last time; a bunch of bots started complaining with a relatively obscure error (see below). I’ve updated the branch and tried bulding Clang

[clang] [AArch64] Match GCC behaviour for zero-size structs (PR #124760)

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

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Andy Kaylor via cfe-commits
@@ -44,7 +44,7 @@ class CIRGenerator : public clang::ASTConsumer { const clang::CodeGenOptions &codeGenOpts; protected: - std::unique_ptr mlirContext; + std::shared_ptr mlirContext; andykaylor wrote: Sorry, I thought shared pointer was what you were sugge

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Aaron Ballman via cfe-commits
@@ -55,6 +56,13 @@ class EmitCIRAction : public CIRGenAction { EmitCIRAction(mlir::MLIRContext *MLIRCtx = nullptr); }; +class EmitLLVMAction : public CIRGenAction { + virtual void anchor(); + +public: + EmitLLVMAction(mlir::MLIRContext *MLIRCtx = nullptr);

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Aaron Ballman via cfe-commits
@@ -66,6 +81,17 @@ class CIRGenConsumer : public clang::ASTConsumer { MlirModule->print(*OutputStream, Flags); } break; +case CIRGenAction::OutputType::EmitLLVM: { + llvm::LLVMContext LLVMCtx; + auto LLVMModule = lowerFromCIRToLLVMIR(CI.getFron

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,41 @@ +//- LowerToLLVM.cpp - Lowering from CIR to LLVMIR -===// +// +// 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: Apa

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Aaron Ballman via cfe-commits
@@ -7,42 +7,56 @@ //===--===// #include "clang/CIR/FrontendAction/CIRGenAction.h" -#include "clang/CIR/CIRGenerator.h" -#include "clang/Frontend/CompilerInstance.h" - #include "mlir/IR/MLIRContext.h" #inclu

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Aaron Ballman via cfe-commits
@@ -55,6 +55,9 @@ class CIRGenerator : public clang::ASTConsumer { void Initialize(clang::ASTContext &astContext) override; bool HandleTopLevelDecl(clang::DeclGroupRef group) override; mlir::ModuleOp getModule() const; + std::shared_ptr getContext() { Aa

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread Stephen Tozer via cfe-commits
SLTozer wrote: Apologies, I didn't expect this PR to trigger a failure and didn't catch the triggered failures; thank you for catching this so quickly! https://github.com/llvm/llvm-project/pull/124767 ___ cfe-commits mailing list cfe-commits@lists.llv

[clang] [NFC][docs][HIP] Update HIP docs around `hipstdpar` and SPIR-V (PR #124803)

2025-01-28 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/124803 >From ed7ee56acc5434233191cfb1c556165f193c4005 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Tue, 28 Jan 2025 17:45:07 + Subject: [PATCH 1/2] Add missing `hipstdpar` documentation; remove reference to tem

[clang] [clang][SME] Account for C++ lambdas in SME builtin diagnostics (PR #124750)

2025-01-28 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Please add some tests for lambdas with streaming attributes, for example: ``` void f() { auto x = []__arm_locally_streaming {}; x(); } ``` https://github.com/llvm/llvm-project/pull/124750 ___ cfe-commits mailing list cfe-commits@l

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Aaron Ballman via cfe-commits
@@ -7,42 +7,56 @@ //===--===// #include "clang/CIR/FrontendAction/CIRGenAction.h" -#include "clang/CIR/CIRGenerator.h" -#include "clang/Frontend/CompilerInstance.h" - #include "mlir/IR/MLIRContext.h" #inclu

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu-dwarf5` running on `doug-worker-1b` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/163/builds/12504 Here is

  1   2   3   4   5   6   >