@@ -97,6 +97,41 @@ core.DivideZero (C, C++, ObjC)
.. literalinclude:: checkers/dividezero_example.c
:language: c
+.. _core-FixedAddressDereference:
+
+core.FixedAddressDereference (C, C++, ObjC)
+"""
+Check for dereferences of fixed
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: AdityaK (hiraditya)
Changes
```
llvm-project/clang/lib/Sema/SemaExprCXX.cpp:63:29: warning: variable 'II' set
but not used [-Wunused-but-set-variable]
63 | if (const IdentifierInfo *II = NNS->getAsIdentifier())
|
https://github.com/hiraditya closed
https://github.com/llvm/llvm-project/pull/133307
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/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 89cfeeb062577069d1da236d33810bb0416f1102
9839bc69c6b33155dba13b0bc50c9859641ac107 --e
https://github.com/T-Gruber created
https://github.com/llvm/llvm-project/pull/133381
Remove the early return for BaseRegions of type ElementRegion. Return
meaningful MemRegionVal for these cases as well.
Previous discussion:
https://discourse.llvm.org/t/lvalueelement-returns-unknownval-for-mu
llvmbot wrote:
@llvm/pr-subscribers-clang-static-analyzer-1
Author: None (T-Gruber)
Changes
Remove the early return for BaseRegions of type ElementRegion. Return
meaningful MemRegionVal for these cases as well.
Previous discussion:
https://discourse.llvm.org/t/lvalueelement-returns-unkn
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: None (T-Gruber)
Changes
Remove the early return for BaseRegions of type ElementRegion. Return
meaningful MemRegionVal for these cases as well.
Previous discussion:
https://discourse.llvm.org/t/lvalueelement-returns-unknownval-for-multi-d
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/133382
None
>From 473166e7c7944857c083b1c057e4c89dd3469ea8 Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Thu, 27 Mar 2025 20:53:55 -0700
Subject: [PATCH] [Format] Use a range constructor of DenseSet (NFC)
-
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Mallikarjuna Gouda (mgoudar)
Changes
Relands #132907 with a fix in the testcase:
clang/test/CodeGen/Mips/subtarget-feature-test.c
enable this test for only mips64 target
PR #130587 defined same SubTargetFeature for CPUs i6400 and i6500 whi
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-tools-extra,clang` at step 5 "build-unified-tree".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/181/builds/15922
H
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Justin Cady (justincady)
Changes
Reverts llvm/llvm-project#130976
Breaks clang-cmake-x86_64-avx512-linux bot.
---
Full diff: https://github.com/llvm/llvm-project/pull/132095.diff
3 Files Affected:
- (modified) clang/lib/CodeGen/Coverag
@@ -0,0 +1,177 @@
+// RUN: %clang_cc1 -fsycl-is-host -emit-llvm -triple x86_64-unknown-linux-gnu
%s -o - | FileCheck --check-prefixes=CHECK-HOST,CHECK-HOST-LINUX %s
+// RUN: %clang_cc1 -fsycl-is-device -emit-llvm -aux-triple
x86_64-unknown-linux-gnu -triple amdgcn %s -o - | File
Author: Congcong Cai
Date: 2025-03-28T06:21:15+08:00
New Revision: 01e505b9922485514d4e1f9a26c390d0e7a71bf4
URL:
https://github.com/llvm/llvm-project/commit/01e505b9922485514d4e1f9a26c390d0e7a71bf4
DIFF:
https://github.com/llvm/llvm-project/commit/01e505b9922485514d4e1f9a26c390d0e7a71bf4.diff
https://github.com/HerrCai0907 closed
https://github.com/llvm/llvm-project/pull/133018
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
HerrCai0907 wrote:
> > It would feel safer if the custom check was passed via command-line
> > instead, similar to --config
>
> But then you will not be able to properly disable such checks for subfolders
> (modules) of some huge project, right?
it can be done by checks.
https://github.com/l
@@ -161,8 +164,11 @@ struct TypeInfo {
: Type(SymbolID(), Name, InfoType::IT_default, Name, Path) {}
bool operator==(const TypeInfo &Other) const { return Type == Other.Type; }
-
+
ilovepi wrote:
nit: whitespace on empty line.
https://github.com/ll
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: None (macurtis-amd)
Changes
---
Patch is 32.26 KiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/pull/133301.diff
7 Files Affected:
- (modified) clang/test/CodeGenOpenCL/amdgpu-nullptr.cl (+4-6)
-
https://github.com/broxigarchen edited
https://github.com/llvm/llvm-project/pull/133298
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/broxigarchen edited
https://github.com/llvm/llvm-project/pull/133298
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kiranchandramohan approved this pull request.
LG.
https://github.com/llvm/llvm-project/pull/132409
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -209,6 +215,7 @@ struct FieldTypeInfo : public TypeInfo {
return std::tie(Type, Name, DefaultValue) ==
std::tie(Other.Type, Other.Name, Other.DefaultValue);
}
+
ilovepi wrote:
remove
https://github.com/llvm/llvm-project/pull/133161
_
Author: Ryosuke Niwa
Date: 2025-03-27T15:47:38-07:00
New Revision: a285be320aadad51c431eed87cc2540951b3e4da
URL:
https://github.com/llvm/llvm-project/commit/a285be320aadad51c431eed87cc2540951b3e4da
DIFF:
https://github.com/llvm/llvm-project/commit/a285be320aadad51c431eed87cc2540951b3e4da.diff
@@ -85,7 +86,7 @@ def check(self, file_check_suffix, input_text):
class CheckRunner:
-def __init__(self, args, extra_args):
+def __init__(self, args: argparse.Namespace, extra_args: List[str]):
EugeneZelenko wrote:
```suggestion
def __init__(self
https://github.com/cor3ntin updated
https://github.com/llvm/llvm-project/pull/132849
>From b5b5275093f6942238536834c6508551f7ceffd8 Mon Sep 17 00:00:00 2001
From: Corentin Jabot
Date: Sun, 16 Mar 2025 23:34:19 +0100
Subject: [PATCH 01/11] [Clang] Improve subsumption.
The main goal of this patc
@@ -48,15 +48,16 @@
import re
import subprocess
import sys
+from typing import List, Tuple
EugeneZelenko wrote:
I think `list` and `tuple` should be used.
https://github.com/llvm/llvm-project/pull/133140
___
cfe-com
https://github.com/farzonl closed
https://github.com/llvm/llvm-project/pull/133251
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -115,6 +115,7 @@ add_clang_library(clangCodeGen
PatternInit.cpp
SanitizerMetadata.cpp
SwiftCallingConv.cpp
+ LangBuiltins/CGHLSLBuiltins.cpp
arsenm wrote:
I wouldn't bother with the LangBuiltins subdirectory
https://github.com/llvm/llvm-project/pul
https://github.com/yxsamliu approved this pull request.
LGTM. Thanks
https://github.com/llvm/llvm-project/pull/133263
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/haampie created
https://github.com/llvm/llvm-project/pull/133263
There is special logic to detect the hip runtime when llvm is installed
with Spack. It works by matching the install prefix of llvm against
`llvm-amdgpu-*` followed by effectively globbing for
```
/../hip-x.y.z-
llvmbot wrote:
@llvm/pr-subscribers-backend-amdgpu
@llvm/pr-subscribers-clang-driver
Author: Harmen Stoppels (haampie)
Changes
There is special logic to detect the hip runtime when llvm is installed
with Spack. It works by matching the install prefix of llvm against
`llvm-amdgpu-*` followe
https://github.com/carlosgalvezp approved this pull request.
LGTM!
https://github.com/llvm/llvm-project/pull/133018
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -71,91 +73,77 @@ static cl::list
"default, run all delta passes."),
cl::cat(LLVMReduceOptions), cl::CommaSeparated);
-#define DELTA_PASSES
\
- do {
@@ -164,24 +152,25 @@ static void runDeltaPassName(TestRunner &Tester,
StringRef PassName) {
void llvm::printDeltaPasses(raw_ostream &OS) {
OS << "Delta passes (pass to `--delta-passes=` as a comma separated
list):\n";
-#define DELTA_PASS(NAME, FUNC) OS << " " << NAME <<
@@ -0,0 +1,68 @@
+//===--- DeltaPasses.def - Delta Pass Definitions --*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apach
@@ -17,8 +17,8 @@
#include "Delta.h"
namespace llvm {
-void reduceAliasesDeltaPass(TestRunner &Test);
-void reduceIFuncsDeltaPass(TestRunner &Test);
+void reduceAliasesDeltaPass(TestRunner &Test, StringRef PassMessage);
arsenm wrote:
Something is backwards he
@@ -71,91 +73,77 @@ static cl::list
"default, run all delta passes."),
cl::cat(LLVMReduceOptions), cl::CommaSeparated);
-#define DELTA_PASSES
\
- do {
@@ -71,91 +73,77 @@ static cl::list
"default, run all delta passes."),
cl::cat(LLVMReduceOptions), cl::CommaSeparated);
-#define DELTA_PASSES
\
- do {
@@ -17,8 +17,8 @@
#include "Delta.h"
namespace llvm {
-void reduceAliasesDeltaPass(TestRunner &Test);
-void reduceIFuncsDeltaPass(TestRunner &Test);
+void reduceAliasesDeltaPass(TestRunner &Test, StringRef PassMessage);
arsenm wrote:
That is, the DeltaPass st
https://github.com/cor3ntin approved this pull request.
LGTM, Thanks!
Will you need me to merge that for you?
https://github.com/llvm/llvm-project/pull/133077
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailm
Fznamznon wrote:
Thank you for your help @rnk @zmodem !
https://github.com/llvm/llvm-project/pull/126240
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Artem-B approved this pull request.
https://github.com/llvm/llvm-project/pull/133296
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
DKLoehr wrote:
Ach, I was so focused on making the build work that I forgot to run tests...
Fixed now, either by disabling the warning or adding it as expected, as seemed
appropriate.
https://github.com/llvm/llvm-project/pull/133265
___
cfe-commits ma
https://github.com/DKLoehr created
https://github.com/llvm/llvm-project/pull/133265
This turns on the unnecessary-virtual-specifier warning in genera, but disables
it when building LLVM. It also tweaks the warning description to be slightly
more accurate.
Background: I've been working on clea
https://github.com/broxigarchen updated
https://github.com/llvm/llvm-project/pull/133298
>From fee2c8dcfb01fbe5d8e08cf9ccf6e92f341d76f9 Mon Sep 17 00:00:00 2001
From: guochen2
Date: Thu, 27 Mar 2025 14:41:40 -0400
Subject: [PATCH] add true16 feature in clang driver
---
clang/include/clang/Dri
@@ -273,11 +279,148 @@ inline CFTypeRef bridge_cast(NSObject *object)
return (__bridge CFTypeRef)object;
}
+template
+struct ObjCTypeCastTraits {
+public:
+static bool isType(id object) { return [object isKindOfClass:[ExpectedType
class]]; }
+
+template
+sta
https://github.com/broxigarchen edited
https://github.com/llvm/llvm-project/pull/133298
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Sirraide commented:
The release note is still missing.
ut other than that this looks fine I think, but I’d say wait a few days before
merging in case anyone else has any opinions as to whether this should be
enabled by default or not.
https://github.com/llvm/llvm-project/pul
https://github.com/Sirraide edited
https://github.com/llvm/llvm-project/pull/133265
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/jhuber6 closed
https://github.com/llvm/llvm-project/pull/133296
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Joseph Huber
Date: 2025-03-27T14:02:47-05:00
New Revision: a2432793ea7d12ecbd424f7ed2c0e36f34a2df24
URL:
https://github.com/llvm/llvm-project/commit/a2432793ea7d12ecbd424f7ed2c0e36f34a2df24
DIFF:
https://github.com/llvm/llvm-project/commit/a2432793ea7d12ecbd424f7ed2c0e36f34a2df24.diff
llvmbot wrote:
@llvm/pr-subscribers-backend-amdgpu
Author: None (macurtis-amd)
Changes
---
Patch is 32.26 KiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/pull/133301.diff
7 Files Affected:
- (modified) clang/test/CodeGenOpenCL/amdgpu-nullptr.cl
github-actions[bot] wrote:
:warning: undef deprecator found issues in your code. :warning:
You can test this locally with the following command:
``bash
git diff -U0 --pickaxe-regex -S
'([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)'
08aedf7201e296af532575685372bb5ff7ed8b01
https://github.com/bogner commented:
One comment saying you should rename all of the methods in this patch and a few
small suggestions, but this is looking pretty close
https://github.com/llvm/llvm-project/pull/133302
___
cfe-commits mailing list
cfe-
https://github.com/bogner edited
https://github.com/llvm/llvm-project/pull/133302
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,188 @@
+#include "clang/Parse/ParseHLSLRootSignature.h"
+
+#include "llvm/Support/raw_ostream.h"
+
+using namespace llvm::hlsl::rootsig;
+
+namespace clang {
+namespace hlsl {
+
+static std::string FormatTokenKinds(ArrayRef Kinds) {
+ std::string TokenString;
+ llvm::
@@ -0,0 +1,110 @@
+//===--- ParseHLSLRootSignature.h ---*- C++
-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,110 @@
+//===--- ParseHLSLRootSignature.h ---*- C++
-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,188 @@
+#include "clang/Parse/ParseHLSLRootSignature.h"
+
+#include "llvm/Support/raw_ostream.h"
+
+using namespace llvm::hlsl::rootsig;
+
+namespace clang {
+namespace hlsl {
+
+static std::string FormatTokenKinds(ArrayRef Kinds) {
+ std::string TokenString;
+ llvm::
@@ -0,0 +1,188 @@
+#include "clang/Parse/ParseHLSLRootSignature.h"
+
+#include "llvm/Support/raw_ostream.h"
+
+using namespace llvm::hlsl::rootsig;
+
+namespace clang {
+namespace hlsl {
+
+static std::string FormatTokenKinds(ArrayRef Kinds) {
+ std::string TokenString;
+ llvm::
@@ -0,0 +1,188 @@
+#include "clang/Parse/ParseHLSLRootSignature.h"
+
+#include "llvm/Support/raw_ostream.h"
+
+using namespace llvm::hlsl::rootsig;
+
+namespace clang {
+namespace hlsl {
+
+static std::string FormatTokenKinds(ArrayRef Kinds) {
+ std::string TokenString;
+ llvm::
@@ -0,0 +1,110 @@
+//===--- ParseHLSLRootSignature.h ---*- C++
-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,188 @@
+#include "clang/Parse/ParseHLSLRootSignature.h"
+
+#include "llvm/Support/raw_ostream.h"
+
+using namespace llvm::hlsl::rootsig;
+
+namespace clang {
+namespace hlsl {
+
+static std::string FormatTokenKinds(ArrayRef Kinds) {
bogner wrote:
You c
@@ -42,6 +42,11 @@ Potentially Breaking Changes
C/C++ Language Potentially Breaking Changes
---
+- Some old-style offsetof idioms like ``((int)(&(((struct S *)0)->field)))``
are treated
efriedma-quic wrote:
I was think
https://github.com/rniwa updated
https://github.com/llvm/llvm-project/pull/132784
>From aed6967708809b964c4969ec4e6477dade61132d Mon Sep 17 00:00:00 2001
From: Ryosuke Niwa
Date: Mon, 24 Mar 2025 10:13:16 -0700
Subject: [PATCH 1/2] [WebKit Checkers] Recognize Objective-C and CF pointer
convers
https://github.com/rniwa edited https://github.com/llvm/llvm-project/pull/132784
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -273,11 +279,148 @@ inline CFTypeRef bridge_cast(NSObject *object)
return (__bridge CFTypeRef)object;
}
+template
+struct ObjCTypeCastTraits {
+public:
+static bool isType(id object) { return [object isKindOfClass:[ExpectedType
class]]; }
+
+template
+sta
Author: Jan Svoboda
Date: 2025-03-21T14:39:50-07:00
New Revision: 72e596f35951e849de9fc739238e84ec1217b939
URL:
https://github.com/llvm/llvm-project/commit/72e596f35951e849de9fc739238e84ec1217b939
DIFF:
https://github.com/llvm/llvm-project/commit/72e596f35951e849de9fc739238e84ec1217b939.diff
L
https://github.com/broxigarchen edited
https://github.com/llvm/llvm-project/pull/133298
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
CatherineMoore wrote:
Will resubmit later
https://github.com/llvm/llvm-project/pull/133138
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1,13 +1,10 @@
# Including the native target is important because some of LLVM's tests fail if
# you don't.
-set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
+set(LLVM_TARGETS_TO_BUILD "Native;SPIRV" CACHE STRING "")
-# Include the DirectX target for DXIL code generation,
https://github.com/t-rasmud approved this pull request.
LGTM!
https://github.com/llvm/llvm-project/pull/132784
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/sumitsays updated
https://github.com/llvm/llvm-project/pull/131237
>From 6d5c4053c90975d64e378e52779dab9c3ffb64cd Mon Sep 17 00:00:00 2001
From: Sumit Agarwal
Date: Thu, 13 Mar 2025 16:02:32 -0700
Subject: [PATCH 01/13] dot2add working for dxil without sema check
---
clang/
https://github.com/fmayer updated
https://github.com/llvm/llvm-project/pull/133350
>From 8ece858e76fad0962b2567f03bf80bcaf2828348 Mon Sep 17 00:00:00 2001
From: Florian Mayer
Date: Thu, 27 Mar 2025 18:25:23 -0700
Subject: [PATCH 1/5] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?UT
https://github.com/mgoudar created
https://github.com/llvm/llvm-project/pull/133366
Relands #132907 with a fix in the testcase:
clang/test/CodeGen/Mips/subtarget-feature-test.c
enable this test for only mips64 target
PR #130587 defined same SubTargetFeature for CPUs i6400 and i6500 which
resul
https://github.com/Un1q32 updated
https://github.com/llvm/llvm-project/pull/124651
>From d4e97c4113086c3d2dfa3bf6e9ecfee377f8c4b6 Mon Sep 17 00:00:00 2001
From: Un1q32
Date: Mon, 27 Jan 2025 18:00:34 -0500
Subject: [PATCH 1/3] [Clang] Link libgcc_s.1.dylib when building for macOS
10.5 and olde
@@ -0,0 +1,52 @@
+// RUN: %clang_cc1 -finclude-default-header -triple
dxil-pc-shadermodel6.2-library %s -fnative-half-type -verify
+
+uint16_t test_asuint16_less_argument()
+{
+return asuint16();
+ // expected-error@-1 {{no matching function for call to 'asuint16'}}
+ // ex
https://github.com/anutosh491 updated
https://github.com/llvm/llvm-project/pull/133037
>From dfe49e826705a5e9371e17e66e40c31602beea8e Mon Sep 17 00:00:00 2001
From: anutosh491
Date: Wed, 26 Mar 2025 10:33:37 +0530
Subject: [PATCH 1/3] Implement LoadDynamicLibrary for clang-repl wasm use
cases
@@ -2601,10 +2601,11 @@ class CXXConstructorDecl final
void anchor() override;
size_t numTrailingObjects(OverloadToken) const {
-return CXXConstructorDeclBits.IsInheritingConstructor;
+return getCanonicalDecl()->CXXConstructorDeclBits.IsInheritingConstructor;
}
llvmbot wrote:
@llvm/pr-subscribers-pgo
Author: Justin Cady (justincady)
Changes
Relands #130976 with adjustments to test requirements.
Calls to __noreturn__ functions result in region termination for
coverage mapping. But this creates incorrect coverage results when
__noreturn__ function
uecker wrote:
> It seems to me that we could simplify the implementation by being a bit more
> literal in the interpretation of the requirements: look only at the type,
> alignment, name, and bitfield-width of members. Just don't bother checking
> other stuff
>
> I'd hope it can look more lik
https://github.com/zyn0217 updated
https://github.com/llvm/llvm-project/pull/133212
>From 34632d01840af89745dc79d27e06bd86aeb04c84 Mon Sep 17 00:00:00 2001
From: Younan Zhang
Date: Thu, 27 Mar 2025 13:58:36 +0800
Subject: [PATCH 1/3] [Clang] Correct the DeclRefExpr's Type after the
initializer
@@ -19849,11 +19849,14 @@ static void DoMarkVarDeclReferenced(
SemaRef.InstantiateVariableDefinition(PointOfInstantiation, Var);
});
-// Re-set the member to trigger a recomputation of the dependence bits
-// for the expression.
-if (a
@@ -316,6 +316,7 @@ Bug Fixes in This Version
- Fixed a modules crash where exception specifications were not propagated
properly (#GH121245, relanded in #GH129982)
- Fixed a problematic case with recursive deserialization within
``FinishedDeserializing()`` where
``PassInte
https://github.com/zyn0217 updated
https://github.com/llvm/llvm-project/pull/133212
>From 34632d01840af89745dc79d27e06bd86aeb04c84 Mon Sep 17 00:00:00 2001
From: Younan Zhang
Date: Thu, 27 Mar 2025 13:58:36 +0800
Subject: [PATCH 1/3] [Clang] Correct the DeclRefExpr's Type after the
initializer
https://github.com/frasercrmck closed
https://github.com/llvm/llvm-project/pull/132956
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/jhuber6 updated
https://github.com/llvm/llvm-project/pull/133164
>From 8c8885d486ac72145d7fd7ba003db7ea9ab17a1f Mon Sep 17 00:00:00 2001
From: Joseph Huber
Date: Wed, 26 Mar 2025 16:03:20 -0500
Subject: [PATCH 1/3] [Clang] Make `--lto-partitions` only default for HIP
Summary
https://github.com/zyn0217 updated
https://github.com/llvm/llvm-project/pull/133212
>From 34632d01840af89745dc79d27e06bd86aeb04c84 Mon Sep 17 00:00:00 2001
From: Younan Zhang
Date: Thu, 27 Mar 2025 13:58:36 +0800
Subject: [PATCH 1/4] [Clang] Correct the DeclRefExpr's Type after the
initializer
https://github.com/frasercrmck updated
https://github.com/llvm/llvm-project/pull/133119
>From afb5cf51ce0b2de2a3d58dbd493c80173e970fac Mon Sep 17 00:00:00 2001
From: Fraser Cormack
Date: Wed, 26 Mar 2025 16:18:34 +
Subject: [PATCH 1/2] [libclc] Pass -fapprox-func when compiling 'native'
bu
https://github.com/frasercrmck updated
https://github.com/llvm/llvm-project/pull/133119
>From afb5cf51ce0b2de2a3d58dbd493c80173e970fac Mon Sep 17 00:00:00 2001
From: Fraser Cormack
Date: Wed, 26 Mar 2025 16:18:34 +
Subject: [PATCH 1/4] [libclc] Pass -fapprox-func when compiling 'native'
bu
https://github.com/frasercrmck updated
https://github.com/llvm/llvm-project/pull/133119
>From afb5cf51ce0b2de2a3d58dbd493c80173e970fac Mon Sep 17 00:00:00 2001
From: Fraser Cormack
Date: Wed, 26 Mar 2025 16:18:34 +
Subject: [PATCH 1/3] [libclc] Pass -fapprox-func when compiling 'native'
bu
https://github.com/frasercrmck closed
https://github.com/llvm/llvm-project/pull/133226
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/no92 updated https://github.com/llvm/llvm-project/pull/87845
>From 696b5b24601d2ef773833a9e4b2336107efd586c Mon Sep 17 00:00:00 2001
From: no92
Date: Fri, 6 Sep 2024 21:17:53 +0200
Subject: [PATCH 1/3] [llvm] Add managarm OS target
---
llvm/include/llvm/ADT/bit.h
https://github.com/AaronBallman updated
https://github.com/llvm/llvm-project/pull/133125
>From 75ef42d644da9136fb07014ade18b6be137426a1 Mon Sep 17 00:00:00 2001
From: Aaron Ballman
Date: Wed, 26 Mar 2025 12:54:29 -0400
Subject: [PATCH 1/5] [C2y] Implement WG14 N3369 and N3469 (_Countof)
C2y ad
https://github.com/AaronBallman updated
https://github.com/llvm/llvm-project/pull/133125
>From 75ef42d644da9136fb07014ade18b6be137426a1 Mon Sep 17 00:00:00 2001
From: Aaron Ballman
Date: Wed, 26 Mar 2025 12:54:29 -0400
Subject: [PATCH 1/6] [C2y] Implement WG14 N3369 and N3469 (_Countof)
C2y ad
@@ -0,0 +1,68 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c2y -pedantic -Wall -Wno-comment -verify
%s
+
+/* WG14 N3369: Clang 21
+ * _Lengthof operator
+ *
+ * Adds an operator to get the length of an array. Note that WG14 N3469 renamed
+ * this operator to _Countof.
+ */
-
@@ -14926,6 +14926,42 @@ bool IntExprEvaluator::VisitUnaryExprOrTypeTraitExpr(
return false;
}
+ case UETT_CountOf: {
+QualType Ty = E->getTypeOfArgument();
+assert(Ty->isArrayType());
+
+// We don't need to worry about array element qualifiers, so getting t
@@ -0,0 +1,68 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c2y -pedantic -Wall -Wno-comment -verify
%s
+
+/* WG14 N3369: Clang 21
+ * _Lengthof operator
+ *
+ * Adds an operator to get the length of an array. Note that WG14 N3469 renamed
+ * this operator to _Countof.
+ */
-
@@ -450,6 +453,116 @@ class StmtComparer {
};
} // namespace
+static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
+ const Attr *Attr1, const Attr *Attr2) {
+ // Two attributes are structurally equivalent if they are
AaronBallman wrote:
> If split stacks are negatively impacting profiling, debugging, or other
> compiler development tasks, I have to ask, have we considered optimizing
> clang stack usage?
Strong +1 to this.
> Apple platforms and tools are known to support this, so this only enables it
> th
cor3ntin wrote:
> There is weak consensus to add `stdcountof.h` which supplies a `countof`
> macro. However, there's no changes to the standard which add one (yet), so I
> figured that can be done in a follow-up.
Then I'd really like a feature.
We already have a bunch, It makes sense to add on
301 - 400 of 496 matches
Mail list logo