[clang] [clang] Reduce the small vector size for DeclTypeInfo. (PR #148788)

2025-07-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes The `Declarator` class is large (4584 bytes) and used as a stack-local variable during parsing. This patch reduces the default size of its `DeclTypeInfo` member, reducing the overall size down to 3880 bytes. T

[clang] [clang] Reduce the small vector size for DeclTypeInfo. (PR #148788)

2025-07-14 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/148788 The `Declarator` class is large (4584 bytes) and used as a stack-local variable during parsing. This patch reduces the default size of its `DeclTypeInfo` member, reducing the overall size down to 3880 bytes. Th

[clang-tools-extra] [clang-tidy] Speed up `misc-header-include-cycle` (PR #148757)

2025-07-14 Thread Baranov Victor via cfe-commits
vbvictor wrote: Could you use `-enable-check-profile` and get a benchmark for standalone `clang-tidy` before and after the patch? https://clang.llvm.org/extra/clang-tidy/Contributing.html#on-checks-profiling https://github.com/llvm/llvm-project/pull/148757 _

[clang] [llvm] [DirectX] Validate registers are bound to root signature (PR #146785)

2025-07-14 Thread via cfe-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/146785 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analysis] Avoid some warnings about exit from noreturn function (PR #144408)

2025-07-14 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` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/23366 Here is the relevant piece of the build log fo

[clang] [Analysis] Avoid some warnings about exit from noreturn function (PR #144408)

2025-07-14 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff closed https://github.com/llvm/llvm-project/pull/144408 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 977cfea - [Analysis] Avoid some warnings about exit from noreturn function (#144408)

2025-07-14 Thread via cfe-commits
Author: Serge Pavlov Date: 2025-07-15T12:56:11+07:00 New Revision: 977cfea786401eab2b167307221a15fa6747e28e URL: https://github.com/llvm/llvm-project/commit/977cfea786401eab2b167307221a15fa6747e28e DIFF: https://github.com/llvm/llvm-project/commit/977cfea786401eab2b167307221a15fa6747e28e.diff

[clang-tools-extra] [clang-tidy] fix `bugprone-narrowing-conversions` false positive for conditional expression (PR #139474)

2025-07-14 Thread via cfe-commits
@@ -554,15 +554,23 @@ bool NarrowingConversionsCheck::handleConditionalOperator( // We have an expression like so: `output = cond ? lhs : rhs` // From the point of view of narrowing conversion we treat it as two // expressions `output = lhs` and `output = rhs`. -

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148762)

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

[clang] b1a25ce - [Sema] Remove unnecessary casts (NFC) (#148762)

2025-07-14 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-07-14T22:18:37-07:00 New Revision: b1a25ce73c6a4fd123b92682e465215d39154244 URL: https://github.com/llvm/llvm-project/commit/b1a25ce73c6a4fd123b92682e465215d39154244 DIFF: https://github.com/llvm/llvm-project/commit/b1a25ce73c6a4fd123b92682e465215d39154244.diff L

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Vassil Vassilev via cfe-commits
@@ -250,17 +254,35 @@ const ASTContext &Value::getASTContext() const { return getInterpreter().getASTContext(); } -void Value::dump() const { print(llvm::outs()); } +void Value::dump() { print(llvm::outs()); } void Value::printType(llvm::raw_ostream &Out) const { - Out <

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Vassil Vassilev via cfe-commits
@@ -416,6 +416,8 @@ Interpreter::Interpreter(std::unique_ptr Instance, return; } } + + ValuePrintingInfo.resize(4); vgvassilev wrote: It was a `std::vector` of a predefined elements. I removed this by switching to a `std::array`. Good catch!

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Vassil Vassilev via cfe-commits
@@ -18,18 +18,341 @@ #include "clang/Frontend/CompilerInstance.h" #include "clang/Interpreter/Interpreter.h" #include "clang/Interpreter/Value.h" +#include "clang/Lex/Preprocessor.h" #include "clang/Sema/Lookup.h" #include "clang/Sema/Sema.h" #include "llvm/Support/Error.h

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Vassil Vassilev via cfe-commits
@@ -119,9 +119,9 @@ class REPL_EXTERNAL_VISIBILITY Value { ~Value(); void printType(llvm::raw_ostream &Out) const; - void printData(llvm::raw_ostream &Out) const; - void print(llvm::raw_ostream &Out) const; - void dump() const; + void printData(llvm::raw_ostream &Out);

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/148701 >From 114e4ec4194afa865bd22f6d76b29200d231bef9 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sun, 16 Jul 2023 21:18:26 + Subject: [PATCH 1/3] [clang-repl] Lay the basic infrastructure for pretty p

[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-14 Thread Anthony Tran via cfe-commits
https://github.com/anthonyhatran edited https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/148701 >From 114e4ec4194afa865bd22f6d76b29200d231bef9 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sun, 16 Jul 2023 21:18:26 + Subject: [PATCH 1/2] [clang-repl] Lay the basic infrastructure for pretty p

[clang] [Clang] fix crash in codegen caused by deferred asm diagnostics under -fopenmp (PR #147163)

2025-07-14 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: There's one other possibility... you could make "deferred" diagnostics not defer diagnosing quite so much. If the function is defined in a way that it inherently must be emitted, or it's already been odr-used, there's no point to actually deferring the diagnostic: we know

[clang] [RISCV] Prefix mcpu/mtune/march/mabi with '-' in comments. NFC (PR #148723)

2025-07-14 Thread Craig Topper via cfe-commits
https://github.com/topperc closed https://github.com/llvm/llvm-project/pull/148723 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9a9db2a - [RISCV] Prefix mcpu/mtune/march/mabi with '-' in comments. NFC (#148723)

2025-07-14 Thread via cfe-commits
Author: Craig Topper Date: 2025-07-14T20:52:46-07:00 New Revision: 9a9db2a39c7640ebd803741e4f058598bca04f0b URL: https://github.com/llvm/llvm-project/commit/9a9db2a39c7640ebd803741e4f058598bca04f0b DIFF: https://github.com/llvm/llvm-project/commit/9a9db2a39c7640ebd803741e4f058598bca04f0b.diff

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148762)

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

[clang] [RISCV] Add -march=unset to cancel and ignore a previous -march. (PR #148321)

2025-07-14 Thread Fangrui Song via cfe-commits
MaskRay wrote: > I forgot about tomorrow's LLVM 21 branch so maybe I should merge this based > on the support I've received so far? Looks good! > https://github.com/toppers what's the status of this in GCC? If it's in there > I think we should land/backport this, otherwise after the branch is

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148762)

2025-07-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes getAsmLabel() already returns Expr *. --- Full diff: https://github.com/llvm/llvm-project/pull/148762.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaDecl.cpp (+2-2) ``diff diff --

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148762)

2025-07-14 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/148762 getAsmLabel() already returns Expr *. >From d39e906124798e0cc790f5ef1aed131247341b4f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 13 Jul 2025 13:26:35 -0700 Subject: [PATCH] [Sema] Remove unnec

[clang] [llvm] [llvm] Change `fp128` lowering to use `f128` functions by default (PR #76558)

2025-07-14 Thread Trevor Gross via cfe-commits
https://github.com/tgross35 edited https://github.com/llvm/llvm-project/pull/76558 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ObjC][PAC] Add ptrauth protections to objective-c (PR #147899)

2025-07-14 Thread John McCall via cfe-commits
@@ -1003,15 +1003,29 @@ Arm and AArch64 Support `as specified here `_ is now available. - Support has been added for the following processors (command-line identifiers in pa

[clang] [clang][ObjC][PAC] Add ptrauth protections to objective-c (PR #147899)

2025-07-14 Thread John McCall via cfe-commits
https://github.com/rjmccall edited https://github.com/llvm/llvm-project/pull/147899 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ObjC][PAC] Add ptrauth protections to objective-c (PR #147899)

2025-07-14 Thread John McCall via cfe-commits
https://github.com/rjmccall approved this pull request. Mostly LGTM https://github.com/llvm/llvm-project/pull/147899 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm] Change `fp128` lowering to use `f128` functions by default (PR #76558)

2025-07-14 Thread Trevor Gross via cfe-commits
https://github.com/tgross35 edited https://github.com/llvm/llvm-project/pull/76558 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm] Change `fp128` lowering to use `f128` functions by default (PR #76558)

2025-07-14 Thread Trevor Gross via cfe-commits
@@ -39,7 +39,7 @@ define double @f5(double %x, double %y) { define fp128 @f6(fp128 %x, fp128 %y) { ; CHECK-LABEL: f6: -; CHECK: brasl %r14, powl@PLT +; CHECK: brasl %r14, powf128@PLT tgross35 wrote: This has been updated to not change the current behavior on

[clang] [clang] Update diagnostics and documentation for type aware allocators (PR #148576)

2025-07-14 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,155 @@ += +C++ Type Aware Allocators += + +.. contents:: + :local: + +Introduction + + +Clang includes an implementation of P2719 "Type-aware allocation and deallocation +functions". + +This is a feature tha

[clang] [clang] Update diagnostics and documentation for type aware allocators (PR #148576)

2025-07-14 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/148576 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Update diagnostics and documentation for type aware allocators (PR #148576)

2025-07-14 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/148576 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7ba0c98 - [RISCV] Rename the vector crypto intrinsic test vcpopv.c to vcpop.c. NFC.

2025-07-14 Thread Jim Lin via cfe-commits
Author: Jim Lin Date: 2025-07-15T09:00:35+08:00 New Revision: 7ba0c98265977651540c64795b244166af329ca8 URL: https://github.com/llvm/llvm-project/commit/7ba0c98265977651540c64795b244166af329ca8 DIFF: https://github.com/llvm/llvm-project/commit/7ba0c98265977651540c64795b244166af329ca8.diff LOG:

[clang] [llvm] [RISCV] Add Andes XAndesBFHCvt (Andes Scalar BFLOAT16) extension (PR #148563)

2025-07-14 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/148563 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 22707fd - [RISCV] Add Andes XAndesBFHCvt (Andes Scalar BFLOAT16) extension (#148563)

2025-07-14 Thread via cfe-commits
Author: Jim Lin Date: 2025-07-15T08:59:00+08:00 New Revision: 22707fd4a594a1b00cc68893dd1887c8971b4c98 URL: https://github.com/llvm/llvm-project/commit/22707fd4a594a1b00cc68893dd1887c8971b4c98 DIFF: https://github.com/llvm/llvm-project/commit/22707fd4a594a1b00cc68893dd1887c8971b4c98.diff LOG:

[clang] [clang] Update diagnostics and documentation for type aware allocators (PR #148576)

2025-07-14 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt edited https://github.com/llvm/llvm-project/pull/148576 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Andes XAndesBFHCvt (Andes Scalar BFLOAT16) extension (PR #148563)

2025-07-14 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/148563 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] Fix -Wuninitialized for values passed by const pointers (PR #147221)

2025-07-14 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/147221 >From f1e26fed6c5023ba59990112ec4a77b024247e4b Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 4 Jul 2025 23:55:41 -0700 Subject: [PATCH 1/3] [clang] Fix -Wuninitialized for values passed by const poin

[clang-tools-extra] [llvm] [CI][Github] Switch windows to server 2022 (PR #148743)

2025-07-14 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/148743 >From f511f7a3fbb802c59c7cbbe489355d93f9ab725a Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Mon, 14 Jul 2025 22:37:28 + Subject: [PATCH 1/2] [CI][Github] Switch windows to server 2022 This pat

[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-14 Thread via cfe-commits
@@ -18699,6 +18699,15 @@ bool Sema::CheckOverridingFunctionAttributes(CXXMethodDecl *New, QualType ModQT = Context.getFunctionType(NewFT->getReturnType(), NewFT->getParamTypes(), EPI); New->setType(ModQT);

[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-14 Thread via cfe-commits
https://github.com/Sirraide commented: I think that makes sense; make sure to add a release note for it though. https://github.com/llvm/llvm-project/pull/148690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-14 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/148690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-14 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/148337 >From 8343c946e874ee27e71781ac1bd10fb680b08fbf Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 11 Jul 2025 18:23:10 -0700 Subject: [PATCH 1/2] [clang] Add -Wuninitialized-const-pointer This option is s

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-14 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/148337 >From 8343c946e874ee27e71781ac1bd10fb680b08fbf Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 11 Jul 2025 18:23:10 -0700 Subject: [PATCH 1/2] [clang] Add -Wuninitialized-const-pointer This option is s

[clang-tools-extra] [clang-tidy] Make `bugprone-unhandled-self-assignment` check more general (PR #147066)

2025-07-14 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti approved this pull request. https://github.com/llvm/llvm-project/pull/147066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-14 Thread Tom Honermann via cfe-commits
@@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s + +// expected-error@+1{{'clang::sycl_external' attribute only applies to functions}} +[[clang::sycl_external]] int a; + + +// expected-error@+2{{'clang::sycl_external' attribute only applies to funct

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-07-14 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/132924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-07-14 Thread Baranov Victor via cfe-commits
@@ -66,22 +89,45 @@ void AvoidCArraysCheck::registerMatchers(MatchFinder *Finder) { hasParent(varDecl(isExternC())), hasParent(fieldDecl( hasParent(recordDecl(isExternCContext(), -

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-07-14 Thread Baranov Victor via cfe-commits
@@ -66,22 +89,45 @@ void AvoidCArraysCheck::registerMatchers(MatchFinder *Finder) { hasParent(varDecl(isExternC())), hasParent(fieldDecl( hasParent(recordDecl(isExternCContext(), -

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-07-14 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor commented: Tests lgtm, minor comments on code. Please rebase on fresh main https://github.com/llvm/llvm-project/pull/132924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-14 Thread Julian Schmidt via cfe-commits
@@ -134,14 +136,27 @@ void QualifiedAutoCheck::registerMatchers(MatchFinder *Finder) { auto IsBoundToType = refersToType(equalsBoundNode("type")); auto UnlessFunctionType = unless(hasUnqualifiedDesugaredType(functionType())); - auto IsAutoDeducedToPointer = [](const std

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-14 Thread Julian Schmidt via cfe-commits
@@ -96,3 +96,23 @@ Note in the LLVM alias, the default value is `false`. matched against only the type name (i.e. ``Type``). E.g. to suppress reports for ``std::array`` iterators use `std::array<.*>::(const_)?iterator` string. The default is an empty string. + +.. option:

[clang] [LifetimeSafety] Make the dataflow analysis generic (PR #148222)

2025-07-14 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148222 >From 927f92a13bfe02ca3e458723a0e74fe0b7f53d18 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 11 Jul 2025 11:11:47 + Subject: [PATCH 1/2] [LifetimeSafety] Add expired loans analysis --- clang/lib/A

[clang] [LifetimeSafety] Make the dataflow analysis generic (PR #148222)

2025-07-14 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148222 >From 927f92a13bfe02ca3e458723a0e74fe0b7f53d18 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 11 Jul 2025 11:11:47 + Subject: [PATCH 1/2] [LifetimeSafety] Add expired loans analysis --- clang/lib/A

[clang] [DebugInfo] Add option for producing no source-file hash (PR #148657)

2025-07-14 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse closed https://github.com/llvm/llvm-project/pull/148657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 641ff6d - [DebugInfo] Add option for producing no source-file hash (#148657)

2025-07-14 Thread via cfe-commits
Author: Jeremy Morse Date: 2025-07-14T20:48:41+01:00 New Revision: 641ff6db383d0730ae2587c86aa59b6b3cf8341d URL: https://github.com/llvm/llvm-project/commit/641ff6db383d0730ae2587c86aa59b6b3cf8341d DIFF: https://github.com/llvm/llvm-project/commit/641ff6db383d0730ae2587c86aa59b6b3cf8341d.diff

[clang] [CIR][NFC] Fix typo in assertion message (Must) (PR #148704)

2025-07-14 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. https://github.com/llvm/llvm-project/pull/148704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream the basic structure of LoweringPrepare pass (PR #148545)

2025-07-14 Thread Bruno Cardoso Lopes via cfe-commits
@@ -72,4 +72,14 @@ def CIRFlattenCFG : Pass<"cir-flatten-cfg"> { let dependentDialects = ["cir::CIRDialect"]; } +def LoweringPrepare : Pass<"cir-lowering-prepare"> { + let summary = "Preparation work before lowering to LLVM dialect"; + let description = [{ +This pass d

[clang] [CIR] Upstream the basic structure of LoweringPrepare pass (PR #148545)

2025-07-14 Thread Bruno Cardoso Lopes via cfe-commits
@@ -72,4 +72,14 @@ def CIRFlattenCFG : Pass<"cir-flatten-cfg"> { let dependentDialects = ["cir::CIRDialect"]; } +def LoweringPrepare : Pass<"cir-lowering-prepare"> { + let summary = "Preparation work before lowering to LLVM dialect"; bcardosolopes wrote: `

[clang] [CIR] Upstream the basic structure of LoweringPrepare pass (PR #148545)

2025-07-14 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/148545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream the basic structure of LoweringPrepare pass (PR #148545)

2025-07-14 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. We need to update some of the entries because they are old now, so a few comments on that, otherwise LGTM https://github.com/llvm/llvm-project/pull/148545 ___ cfe-commits mailing list cfe-co

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-14 Thread via cfe-commits
https://github.com/EugeneZelenko edited https://github.com/llvm/llvm-project/pull/148622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-14 Thread via cfe-commits
@@ -97,6 +97,41 @@ linter tool. It provides an extensible framework for building compiler-based static analyses detecting and fixing bug-prone patterns, performance, portability and maintainability issues. +``clang-include-fixer`` EugeneZelenko wrote: Will b

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-14 Thread via cfe-commits
@@ -97,6 +97,41 @@ linter tool. It provides an extensible framework for building compiler-based static analyses detecting and fixing bug-prone patterns, performance, portability and maintainability issues. +``clang-include-fixer`` +--- + +`clang-include-fi

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-14 Thread via cfe-commits
@@ -97,6 +97,41 @@ linter tool. It provides an extensible framework for building compiler-based static analyses detecting and fixing bug-prone patterns, performance, portability and maintainability issues. +``clang-include-fixer`` +--- + +`clang-include-fi

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-07-14 Thread via cfe-commits
@@ -37,9 +37,11 @@ cond.end: ; preds = %entry, %cond.true ; CHECK: testq ; CHECK: je ; CHECK: callq alloc +; CHECK-NEXT: nop sivadeilra wrote: >From my testing, MSVC actually does insert a NOP before the SEH epilogue.

[clang] [clang] Update diagnostics for type aware allocators (PR #148576)

2025-07-14 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > Please update `clang/docs/LanguageExtensions.rst`. Good point, also as it got dropped from C++26 I'm restoring and updating the in tree docs as well. https://github.com/llvm/llvm-project/pull/148576 ___ cfe-commits mailing list cfe-co

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-14 Thread Baranov Victor via cfe-commits
@@ -97,6 +97,41 @@ linter tool. It provides an extensible framework for building compiler-based static analyses detecting and fixing bug-prone patterns, performance, portability and maintainability issues. +``clang-include-fixer`` +--- + +`clang-include-fi

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-14 Thread Baranov Victor via cfe-commits
@@ -97,6 +97,41 @@ linter tool. It provides an extensible framework for building compiler-based static analyses detecting and fixing bug-prone patterns, performance, portability and maintainability issues. +``clang-include-fixer`` +--- + +`clang-include-fi

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Aaron Ballman via cfe-commits
@@ -18,18 +18,341 @@ #include "clang/Frontend/CompilerInstance.h" #include "clang/Interpreter/Interpreter.h" #include "clang/Interpreter/Value.h" +#include "clang/Lex/Preprocessor.h" #include "clang/Sema/Lookup.h" #include "clang/Sema/Sema.h" #include "llvm/Support/Error.h

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Aaron Ballman via cfe-commits
@@ -200,6 +192,24 @@ class Interpreter { llvm::SmallVector ValuePrintingInfo; std::unique_ptr JITBuilder; + + /// @} + /// @name Value and pretty printing support + /// @{ + + std::string ValueDataToString(const Value &V); AaronBallman wrote: Why is `

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Aaron Ballman via cfe-commits
@@ -416,6 +416,8 @@ Interpreter::Interpreter(std::unique_ptr Instance, return; } } + + ValuePrintingInfo.resize(4); AaronBallman wrote: Can you explain why this is needed? https://github.com/llvm/llvm-project/pull/148701

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Aaron Ballman via cfe-commits
@@ -250,17 +254,35 @@ const ASTContext &Value::getASTContext() const { return getInterpreter().getASTContext(); } -void Value::dump() const { print(llvm::outs()); } +void Value::dump() { print(llvm::outs()); } void Value::printType(llvm::raw_ostream &Out) const { - Out <

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Aaron Ballman via cfe-commits
@@ -119,9 +119,9 @@ class REPL_EXTERNAL_VISIBILITY Value { ~Value(); void printType(llvm::raw_ostream &Out) const; - void printData(llvm::raw_ostream &Out) const; - void print(llvm::raw_ostream &Out) const; - void dump() const; + void printData(llvm::raw_ostream &Out);

[clang] [clang] Add support for -fcx-limited-range and #pragma CX_LIMITED_RANGE. (PR #68820)

2025-07-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Zahira Ammarguellat (zahiraam) Changes This patch adds the #pragma CX_LIMITED_RANGE defined in the C specification. It also adds the options -f[no]cx-limited-range and -f[no]cx-fortran-rules. Their behavior is like the gcc’s command line

[clang] [lldb] [clang][DebugInfo] Emit global variable definitions for static data members with constant initializers (PR #70551)

2025-07-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo Author: Michael Buch (Michael137) Changes When an LLDB user asks for the value of a static data member, LLDB starts by searching the Names accelerator table for the corresponding variable definition DIE. For static data members with out-of-clas

[clang] [lldb] [clang][DebugInfo] Emit global variable definitions for static data members with constant initializers (PR #70551)

2025-07-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes When an LLDB user asks for the value of a static data member, LLDB starts by searching the Names accelerator table for the corresponding variable definition DIE. For static data members with out-of-class de

[clang] [CIR][NFC] Fix typo in assertion message (Must) (PR #148704)

2025-07-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bogdan Vetrenko (bv2k4) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/148704.diff 1 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenClass.cpp (+1-1) ``diff diff --git a/clang/lib/CIR/CodeGen/CIRGe

[clang] [LifetimeSafety] Add expired loans analysis (PR #148222)

2025-07-14 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148222 >From 80d6c7b536cff6d95416e70676c9b33e5d1e174a Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 11 Jul 2025 11:11:47 + Subject: [PATCH 1/2] [LifetimeSafety] Add expired loans analysis --- clang/lib/A

[clang] [CIR][NFC] Fix typo in assertion message (Must) (PR #148704)

2025-07-14 Thread Bogdan Vetrenko via cfe-commits
https://github.com/bv2k4 created https://github.com/llvm/llvm-project/pull/148704 None >From 37b5f288a9f2b10cd22c22ebd2a2ada7fdfe54d3 Mon Sep 17 00:00:00 2001 From: Bogdan Vetrenko Date: Mon, 14 Jul 2025 22:11:27 +0300 Subject: [PATCH] [CIR][NFC] Fix typo in assertion message (Must) --- clan

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vassil Vassilev (vgvassilev) Changes The idea is to store a type-value pair in clang::Value which is updated by the interpreter runtime. The class copies builtin types and boxes non-builtin types to provide some lifetime control. The pat

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-14 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev created https://github.com/llvm/llvm-project/pull/148701 The idea is to store a type-value pair in clang::Value which is updated by the interpreter runtime. The class copies builtin types and boxes non-builtin types to provide some lifetime control. The patch ena

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-07-14 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/134375 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 6ac286c - [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (#134375)

2025-07-14 Thread via cfe-commits
Author: Baranov Victor Date: 2025-07-14T21:59:28+03:00 New Revision: 6ac286cd491b419dd18a6e8de3aaef4caa44e093 URL: https://github.com/llvm/llvm-project/commit/6ac286cd491b419dd18a6e8de3aaef4caa44e093 DIFF: https://github.com/llvm/llvm-project/commit/6ac286cd491b419dd18a6e8de3aaef4caa44e093.diff

[clang] [llvm] [AMDGPU] Add support for `v_tanh_bf16` on gfx1250 (PR #147425)

2025-07-14 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec approved this pull request. LGTM modulo the crash fix. https://github.com/llvm/llvm-project/pull/147425 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Improve --verify-config documentation (PR #148699)

2025-07-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Keith Smiley (keith) Changes Previously it wasn't clear that passing this disables otherwise running clang-tidy. --- Full diff: https://github.com/llvm/llvm-project/pull/148699.diff 1 Files Affected: - (modified) clang-tools-extra

[clang-tools-extra] [clang-tidy] Improve --verify-config documentation (PR #148699)

2025-07-14 Thread Keith Smiley via cfe-commits
https://github.com/keith created https://github.com/llvm/llvm-project/pull/148699 Previously it wasn't clear that passing this disables otherwise running clang-tidy. >From 24cdc2b4087f23f7384fb9504a0bccce0ad914fa Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 14 Jul 2025 11:52:21 -070

[clang] [LifetimeSafety] Add expired loans analysis (PR #148222)

2025-07-14 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148222 >From 80d6c7b536cff6d95416e70676c9b33e5d1e174a Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 11 Jul 2025 11:11:47 + Subject: [PATCH 1/2] [LifetimeSafety] Add expired loans analysis --- clang/lib/A

[clang] [llvm] [AMDGPU] Add support for `v_tanh_bf16` on gfx1250 (PR #147425)

2025-07-14 Thread Shilei Tian via cfe-commits
shiltian wrote: FWIW, the crash still exists. https://github.com/llvm/llvm-project/pull/147425 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Add support for `v_tanh_bf16` on gfx1250 (PR #147425)

2025-07-14 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/147425 >From f75f85e997f95bd29e244e199d16c89dffca1232 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Mon, 14 Jul 2025 12:56:54 -0400 Subject: [PATCH] [AMDGPU] Add support for `v_tanh_bf16` on gfx1250 Co-authored-by

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-14 Thread via cfe-commits
https://github.com/raoanag edited https://github.com/llvm/llvm-project/pull/147342 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Add support for `v_tanh_bf16` on gfx1250 (PR #147425)

2025-07-14 Thread Shilei Tian via cfe-commits
@@ -2,169 +2,69 @@ # RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -mattr=+real-true16 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX1250,GFX1250-REAL16 %s # RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -mattr=-real-true16 -disassemble -show-encoding < %s | FileChec

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-14 Thread via cfe-commits
@@ -79,7 +79,7 @@ let TargetPrefix = "spv" in { def int_spv_refract : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty, LLVMMatchType<0>, - LLVMVectorElementType<0>], + ll

[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)

2025-07-14 Thread Anatoly Trosinenko via cfe-commits
atrosinenko wrote: I have rebased this PR onto current `main` branch and moved the new test to `AArch64/` subdirectory. There are no unresolved comments anymore, as far as I can see. https://github.com/llvm/llvm-project/pull/141573 ___ cfe-commits ma

[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)

2025-07-14 Thread Anatoly Trosinenko via cfe-commits
@@ -0,0 +1,25 @@ +// RUN: %clang_cc1 -triple aarch64-linux-gnu -mbranch-target-enforce -msign-return-address=all -emit-llvm %s -o - | FileCheck --check-prefixes=CHECK,BTI-SIGNRA %s atrosinenko wrote: Updated in 23a5407776bb7aa27b4fd07f5221c265fb080b1e, tha

[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)

2025-07-14 Thread Anatoly Trosinenko via cfe-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/141573 >From 3e625155a44a88ec8f276f8c25379bec1a153e38 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Mon, 26 May 2025 22:28:55 +0300 Subject: [PATCH 1/4] [AArch64][FMV] Enable PAuth and BTI hardening of re

[clang] [llvm] [DirectX] Validate registers are bound to root signature (PR #146785)

2025-07-14 Thread via cfe-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/146785 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DirectX] Validate registers are bound to root signature (PR #146785)

2025-07-14 Thread via cfe-commits
@@ -945,6 +946,7 @@ class DXILOpLoweringLegacy : public ModulePass { AU.addPreserved(); AU.addPreserved(); AU.addPreserved(); +AU.addPreserved(); joaosaffran wrote: This pass, changes the IR, therefore, in order to preserve the data from RootS

[clang] [llvm] [AMDGPU] Add support for `v_tanh_bf16` on gfx1250 (PR #147425)

2025-07-14 Thread Stanislav Mekhanoshin via cfe-commits
@@ -2,169 +2,69 @@ # RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -mattr=+real-true16 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX1250,GFX1250-REAL16 %s # RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -mattr=-real-true16 -disassemble -show-encoding < %s | FileChec

  1   2   3   4   5   >