https://github.com/Endilll requested changes to this pull request.
You need to run `clang/www/make_cxx_drs` script in order to make
`cxx_dr_status.html` reflect that CWG1351 is now implemented.
https://github.com/llvm/llvm-project/pull/76248
___
cfe-c
@@ -379,6 +379,18 @@ namespace dr1347 { // dr1347: 3.1
#endif
}
+namespace dr1351 { // dr1351: 1
Endilll wrote:
I guess you intended `// dr1351: 18`.
https://github.com/llvm/llvm-project/pull/76248
___
cfe-commits
@@ -0,0 +1,206 @@
+//===-- runtime/execute.cpp
---===//
+//
+// 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,206 @@
+//===-- runtime/execute.cpp
---===//
+//
+// 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
https://github.com/klausler approved this pull request.
https://github.com/llvm/llvm-project/pull/74077
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -173,5 +173,72 @@ RT_API_ATTRS void ShallowCopy(const Descriptor &to, const
Descriptor &from) {
ShallowCopy(to, from, to.IsContiguous(), from.IsContiguous());
}
+RT_API_ATTRS const char *EnsureNullTerminated(
+const char *str, std::size_t length, Terminator &terminat
https://github.com/klausler edited
https://github.com/llvm/llvm-project/pull/74077
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/11happy updated
https://github.com/llvm/llvm-project/pull/76680
>From 3c8dfcf96e732f4546f8019c0111fd873b233162 Mon Sep 17 00:00:00 2001
From: 11happy
Date: Mon, 1 Jan 2024 19:53:45 +0530
Subject: [PATCH 1/8] Changed Checks from TriviallyCopyable to
TriviallyCopyConstructible
llvmbot wrote:
@llvm/pr-subscribers-clang-codegen
Author: Sander de Smalen (sdesmalen-arm)
Changes
This patch replaces the `__arm_new_za`, `__arm_shared_za` and
`__arm_preserves_za` attributes in favour of:
* `__arm_new("za")`
* `__arm_in("za")`
* `__arm_out("za")`
* `__arm_inout("za")`
*
https://github.com/mati865 approved this pull request.
Thank you
https://github.com/llvm/llvm-project/pull/76949
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
11happy wrote:
Hello @cor3ntin I have made changes as you suggested.
Thank you
https://github.com/llvm/llvm-project/pull/76680
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
sdesmalen-arm wrote:
I'm aware the PR is quite large, but I didn't really know a sensible way to
split this up. I'm happy to split things out if there are any suggestions.
https://github.com/llvm/llvm-project/pull/76971
___
cfe-commits mailing list
cf
https://github.com/11happy updated
https://github.com/llvm/llvm-project/pull/76680
>From 3c8dfcf96e732f4546f8019c0111fd873b233162 Mon Sep 17 00:00:00 2001
From: 11happy
Date: Mon, 1 Jan 2024 19:53:45 +0530
Subject: [PATCH 1/9] Changed Checks from TriviallyCopyable to
TriviallyCopyConstructible
https://github.com/MDevereau updated
https://github.com/llvm/llvm-project/pull/76711
>From 908da224bd01e4758392a98ba2191185d7296c6a Mon Sep 17 00:00:00 2001
From: Matt Devereau
Date: Tue, 2 Jan 2024 11:36:33 +
Subject: [PATCH 1/2] [AArch64][SME2] Fix SME2 mla/mls tests
The ACLE defines the
Author: Sam Tebbs
Date: 2024-01-04T16:50:31Z
New Revision: 8f8152091cae186b35f73331df13f36b0f905eb4
URL:
https://github.com/llvm/llvm-project/commit/8f8152091cae186b35f73331df13f36b0f905eb4
DIFF:
https://github.com/llvm/llvm-project/commit/8f8152091cae186b35f73331df13f36b0f905eb4.diff
LOG: [Cl
https://github.com/SamTebbs33 closed
https://github.com/llvm/llvm-project/pull/75958
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -163,6 +170,40 @@ void attribute_const() {
std::as_const(n); // expected-warning {{ignoring return value}}
}
+struct D {
+ void* operator new(__SIZE_TYPE__, D&&(*)(D&));
+ void* operator new(__SIZE_TYPE__, D*(*)(D&));
+ void* operator new(__SIZE_TYPE__, const D&(*)(D&)
https://github.com/SamTebbs33 created
https://github.com/llvm/llvm-project/pull/76973
Reverts llvm/llvm-project#75958
I mistakenly included a commit from my local main after rebasing.
>From d63f848e75b66ae2e5915ada4bd5b370e05f9829 Mon Sep 17 00:00:00 2001
From: Sam Tebbs
Date: Thu, 4 Jan 2024
Author: Sam Tebbs
Date: 2024-01-04T16:53:14Z
New Revision: a7a78fd427569a7ad8a27e682a66fe414f004a35
URL:
https://github.com/llvm/llvm-project/commit/a7a78fd427569a7ad8a27e682a66fe414f004a35
DIFF:
https://github.com/llvm/llvm-project/commit/a7a78fd427569a7ad8a27e682a66fe414f004a35.diff
LOG: Rev
https://github.com/SamTebbs33 closed
https://github.com/llvm/llvm-project/pull/76973
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Sam Tebbs (SamTebbs33)
Changes
Reverts llvm/llvm-project#75958
I mistakenly included a commit from my local main after rebasing.
---
Patch is 88.95 KiB, truncated to 20.00 KiB below, full version:
https://github.com/llvm/llvm-project/pu
Michael137 wrote:
Ah looks like in `GetClangDeclForDIE`, when trying to parse the
`DW_AT_specification` that the CU-level `DW_TAG_variable` points to, we now try
to `CreateVariableDeclaration`, because the static member is a
`DW_TAG_variable` too. Whereas previously we would just fall-through
@@ -5151,6 +5151,14 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine
&Line,
return true;
if (Left.IsUnterminatedLiteral)
return true;
+ if (Right.is(tok::lessless) && Right.Next && Left.is(tok::string_literal) &&
+ // FIXME: Breaking after newlines s
jrmwng wrote:
@jansvoboda11 the same error using the above steps
```
547>-- Build started: Project: check-all, Configuration: Release x64 --
547>Running all regression tests
547>llvm-lit.py: C:\GitHub\llvm-project\llvm\utils\lit\lit\llvm\config.py:46:
note: using lit tools: C:\Program F
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Sam Tebbs (SamTebbs33)
Changes
This patch adds IsStreamingOrSVE2p1 to the applicable builtins and a warning
for when those builtins are not used in a streaming or sve2p1 function.
Fix after reverting https://github.com/llvm/llvm-project/p
@@ -246,7 +246,7 @@ void test_svmls_single2_f64(uint32_t slice_base,
svfloat64x2_t zn, svfloat64_t z
// CPP-CHECK-NEXT:ret void
//
void test_svmls_single4_f64(uint32_t slice_base, svfloat64x4_t zn, svfloat64_t
zm) __arm_streaming __arm_shared_za {
- SVE_ACLE_FUNC(svmls_s
https://github.com/alanzhao1 created
https://github.com/llvm/llvm-project/pull/76976
This bug is caused by parenthesized list initialization not being implemented
in `CodeGenFunction::EmitNewArrayInitializer(...)`.
Parenthesized list initialization of `struct`s with `operator new` already
wo
https://github.com/mordante approved this pull request.
Thanks LGTM!
https://github.com/llvm/llvm-project/pull/76632
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante edited
https://github.com/llvm/llvm-project/pull/76632
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,97 @@
+//===--===//
+//
+// 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: Apac
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Alan Zhao (alanzhao1)
Changes
This bug is caused by parenthesized list initialization not being implemented
in `CodeGenFunction::EmitNewArrayInitializer(...)`.
Parenthesized list initialization of `struct`s with `operator new` already
w
https://github.com/srcarroll updated
https://github.com/llvm/llvm-project/pull/76003
>From 860a2f794bdf12ff1f08d4802570757e805264b0 Mon Sep 17 00:00:00 2001
From: Sam
Date: Mon, 18 Dec 2023 15:53:41 -0600
Subject: [PATCH 1/8] [mlir][Linalg] Support dynamic sizes in `lower_pack`
transform
---
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 a7a78fd427569a7ad8a27e682a66fe414f004a35
ee4e3c8634bb876166ee753a4ebcbf3c1699a175 --
https://github.com/alanzhao1 updated
https://github.com/llvm/llvm-project/pull/76976
>From ee4e3c8634bb876166ee753a4ebcbf3c1699a175 Mon Sep 17 00:00:00 2001
From: Alan Zhao
Date: Wed, 3 Jan 2024 12:29:21 -0800
Subject: [PATCH 1/2] [clang] Fix parenthesized list initialization of arrays
not wor
https://github.com/mordante ready_for_review
https://github.com/llvm/llvm-project/pull/76833
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-libcxx
Author: Mark de Wever (mordante)
Changes
…te initialization" (#76272)""
With updates the libc++ tests.
This reverts commit 2205d23 and relands
86dc6e1 and
7ab16fb.
Original commit was reverted because of failing libc++ tests, see #76232 for the
https://github.com/alanzhao1 updated
https://github.com/llvm/llvm-project/pull/76976
>From ee4e3c8634bb876166ee753a4ebcbf3c1699a175 Mon Sep 17 00:00:00 2001
From: Alan Zhao
Date: Wed, 3 Jan 2024 12:29:21 -0800
Subject: [PATCH 1/3] [clang] Fix parenthesized list initialization of arrays
not wor
@@ -246,7 +246,7 @@ void test_svmls_single2_f64(uint32_t slice_base,
svfloat64x2_t zn, svfloat64_t z
// CPP-CHECK-NEXT:ret void
//
void test_svmls_single4_f64(uint32_t slice_base, svfloat64x4_t zn, svfloat64_t
zm) __arm_streaming __arm_shared_za {
- SVE_ACLE_FUNC(svmls_s
https://github.com/balazske created
https://github.com/llvm/llvm-project/pull/76979
Some stream functions were recently added to `StreamChecker` that were not
modeled by `StdCLibraryFunctionsChecker`. To ensure consistency these functions
are added to the other checker too.
Some of the related
llvmbot wrote:
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-clang-static-analyzer-1
Author: Balázs Kéri (balazske)
Changes
Some stream functions were recently added to `StreamChecker` that were not
modeled by `StdCLibraryFunctionsChecker`. To ensure consistency these functions
are add
https://github.com/lntue closed https://github.com/llvm/llvm-project/pull/76931
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
wangpc-pp wrote:
> @wangpc-pp did you have interested on helping psABI side? it would be great
> if you can help since I suspect I don't have enough bandwidth to deal with
> that soon.
Yes, I'm glad to. I think what we need to do is to fix some Zdinx issues? :-)
And, I think I have to explain
https://github.com/SunilKuravinakop updated
https://github.com/llvm/llvm-project/pull/76938
>From 1dcd4703002acdde370a285089008e409043717b Mon Sep 17 00:00:00 2001
From: Sunil Kuravinakop
Date: Thu, 4 Jan 2024 04:08:28 -0600
Subject: [PATCH 1/2] Changes uploaded to the phabricator on Dec 16th a
Author: 刘雨培
Date: 2024-01-05T01:32:10+08:00
New Revision: e78a1f491cbc0a57de7bf86058359dd0bd282540
URL:
https://github.com/llvm/llvm-project/commit/e78a1f491cbc0a57de7bf86058359dd0bd282540
DIFF:
https://github.com/llvm/llvm-project/commit/e78a1f491cbc0a57de7bf86058359dd0bd282540.diff
LOG: [Cla
https://github.com/LYP951018 closed
https://github.com/llvm/llvm-project/pull/76967
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
asb wrote:
@nemanjai I'm curious if you have an interest / need to support RVE or not?
https://github.com/llvm/llvm-project/pull/76777
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -179,6 +180,11 @@ Assembly Support
Supported
Fully supported by the compiler. This includes everything in Assembly
Support, along with - if relevant - C language intrinsics for the instructions
and pattern matching by the compiler to recognize idiomatic patterns which ca
https://github.com/rsandifo-arm edited
https://github.com/llvm/llvm-project/pull/76971
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/rsandifo-arm commented:
Thanks for doing this, looks good! I've got some initial comments below, but I
think they probably repeat for other parts of the patch. The two main ones are:
* We should consume arguments to attribute keywords iff the attribute is
defined to take a
@@ -3696,6 +3696,12 @@ def err_sme_definition_using_sm_in_non_sme_target :
Error<
"function executed in streaming-SVE mode requires 'sme'">;
def err_sme_definition_using_za_in_non_sme_target : Error<
"function using ZA state requires 'sme'">;
+def err_conflicting_attribute
@@ -6852,30 +6852,73 @@ without changing modes.
}];
}
-def ArmSmeSharedZADocs : Documentation {
+def ArmInDocs : Documentation {
let Category = DocCatArmSmeAttributes;
let Content = [{
-The ``__arm_shared_za`` keyword applies to prototyped function types and
specifies
@@ -6787,6 +6787,9 @@ void Parser::ParseDirectDeclarator(Declarator &D) {
// For consistency with attribute parsing.
Diag(Tok, diag::err_keyword_not_allowed) << Tok.getIdentifierInfo();
ConsumeToken();
+ BalancedDelimiterTracker T(*this, tok::l_paren);
--
@@ -4033,12 +4033,27 @@ class FunctionType : public Type {
SME_NormalFunction = 0,
SME_PStateSMEnabledMask = 1 << 0,
SME_PStateSMCompatibleMask = 1 << 1,
-SME_PStateZASharedMask = 1 << 2,
-SME_PStateZAPreservedMask = 1 << 3,
-SME_AttributeMask = 0b111'11
@@ -3175,11 +3175,16 @@ static void checkArmStreamingBuiltin(Sema &S, CallExpr
*TheCall,
}
static bool hasSMEZAState(const FunctionDecl *FD) {
- if (FD->hasAttr())
-return true;
- if (const auto *T = FD->getType()->getAs())
-if (T->getAArch64SMEAttributes() & Functi
@@ -1767,14 +1767,22 @@ static void
AddAttributesFromFunctionProtoType(ASTContext &Ctx,
FPT->isNothrow())
FuncAttrs.addAttribute(llvm::Attribute::NoUnwind);
- if (FPT->getAArch64SMEAttributes() & FunctionType::SME_PStateSMEnabledMask)
+ unsigned SMEBits = FPT->get
https://github.com/wdunicornpro updated
https://github.com/llvm/llvm-project/pull/75254
>From 410aaea22e1824c7f8ba27a8f538d0c039a5ab62 Mon Sep 17 00:00:00 2001
From: Duo Wang
Date: Fri, 8 Dec 2023 15:38:08 -0800
Subject: [PATCH 1/2] add `-Wno-stack-exhausted` flag to support asan and ubsan
---
@@ -1,18 +1,12 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-backtrace-limit=2 %s
-//
-// FIXME: Disable this test when Clang was built with ASan, because ASan
-// increases our per-frame stack usage enough that this test no longer fits
-// within our normal stack space
@@ -0,0 +1,157 @@
+//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy
--===//
+//
+// 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
@@ -1,18 +1,12 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-backtrace-limit=2 %s
-//
-// FIXME: Disable this test when Clang was built with ASan, because ASan
-// increases our per-frame stack usage enough that this test no longer fits
-// within our normal stack space
@@ -6124,35 +6136,36 @@ processImplicitMapsWithDefaultMappers(Sema &S,
DSAStackTy *Stack,
bool Sema::mapLoopConstruct(llvm::SmallVector &ClausesWithoutBind,
ArrayRef Clauses,
-OpenMPBindClauseKind BindKind,
+
wlei-llvm wrote:
> We will need some protection against accidentally consuming old profile with
> new toolchain and vice versa. The cost of investigating mysterious perf
> regression can be high and we'd rather simply error out in those cases. Maybe
> consider some flag for `SecProfSummaryFlag
koute wrote:
> But I think this patch can work just fine [...] Apart from vendors' need, the
> request is mainly from Rust language community I think.
To put our 3 cents here, [we](https://github.com/paritytech) also need it. We
are (well, it's mostly me right now since it's still a prototype)
@@ -163,6 +170,40 @@ void attribute_const() {
std::as_const(n); // expected-warning {{ignoring return value}}
}
+struct D {
+ void* operator new(__SIZE_TYPE__, D&&(*)(D&));
+ void* operator new(__SIZE_TYPE__, D*(*)(D&));
+ void* operator new(__SIZE_TYPE__, const D&(*)(D&)
@@ -7,7 +7,7 @@
!
! This test is for x86_64, where exponent-letter 'q' is for
! 10-byte extended precision
-! UNSUPPORTED: system-windows
+! UNSUPPORTED: system-windows, system-aix
madanial0 wrote:
The underflow failure only occurs on AIX for powerpc not on li
https://github.com/jansvoboda11 created
https://github.com/llvm/llvm-project/pull/76985
When the test was ran via a symlink path, the diagnostic did not fire, since
the `%t` path in the include directive would differ in more than just a case
from the real path of the header file.
>From c8ebe8
jansvoboda11 wrote:
Thank you. I think the symlink is most likely the culprit. I'll be able to
confirm on my Windows machine tomorrow. For now, I have a speculative fix:
https://github.com/llvm/llvm-project/pull/76985
https://github.com/llvm/llvm-project/pull/74782
@@ -0,0 +1,97 @@
+//===--===//
+//
+// 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: Apac
Zingam wrote:
> Thanks LGTM!
Thank you very much for the review!
https://github.com/llvm/llvm-project/pull/76632
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
=?utf-8?b?5b6Q5oyB5oGS?= Xu Chiheng,=?utf-8?b?5b6Q5oyB5oGS?= Xu Chiheng
Message-ID:
In-Reply-To:
https://github.com/asl requested changes to this pull request.
This lacks tests and some references how TLS is implemented on Cygwin
https://github.com/llvm/llvm-project/pull/76943
https://github.com/Sirraide updated
https://github.com/llvm/llvm-project/pull/75883
>From f51b382fd33d4cf3f75bdaa172bb8697a6cadc9e Mon Sep 17 00:00:00 2001
From: Sirraide
Date: Tue, 19 Dec 2023 02:48:25 +0100
Subject: [PATCH 1/4] [Clang] Support MSPropertyRefExpr as placement arg to
new-expres
@@ -163,6 +170,40 @@ void attribute_const() {
std::as_const(n); // expected-warning {{ignoring return value}}
}
+struct D {
+ void* operator new(__SIZE_TYPE__, D&&(*)(D&));
+ void* operator new(__SIZE_TYPE__, D*(*)(D&));
+ void* operator new(__SIZE_TYPE__, const D&(*)(D&)
https://github.com/erichkeane approved this pull request.
https://github.com/llvm/llvm-project/pull/75883
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -130,27 +137,24 @@ C &&(&rMove)(C&) = std::move; // #8 expected-note
{{instantiation of}}
C &&(&rForward)(C&) = std::forward; // #9 expected-note {{instantiation of}}
int (&rUnrelatedMove)(B, B) = std::move;
-#if __cplusplus <= 201703L
-// expected-warning@#1 {{non-address
@@ -0,0 +1,60 @@
+//=== SocketMsgSupport.cpp
===//
+//
+// 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
@@ -130,27 +137,24 @@ C &&(&rMove)(C&) = std::move; // #8 expected-note
{{instantiation of}}
C &&(&rForward)(C&) = std::forward; // #9 expected-note {{instantiation of}}
int (&rUnrelatedMove)(B, B) = std::move;
-#if __cplusplus <= 201703L
-// expected-warning@#1 {{non-address
@@ -130,27 +137,24 @@ C &&(&rMove)(C&) = std::move; // #8 expected-note
{{instantiation of}}
C &&(&rForward)(C&) = std::forward; // #9 expected-note {{instantiation of}}
int (&rUnrelatedMove)(B, B) = std::move;
-#if __cplusplus <= 201703L
-// expected-warning@#1 {{non-address
@@ -0,0 +1,48 @@
+//===-- Utils.h
---===//
+//
+// 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
@@ -383,6 +383,9 @@ class FrontendOptions {
LLVM_PREFERRED_TYPE(bool)
unsigned ModulesShareFileManager : 1;
+ /// Connect to module build daemon
+ unsigned ModuleBuildDaemon : 1;
jansvoboda11 wrote:
Mark this with `LLVM_PREFERRED_TYPE(bool)`, like the o
srcarroll wrote:
It was suggested to me by @chelini to only have the `reshape` op to handle all
cases and get rid of the `expand_shape` op. We can then implement a
canonicalizer to convert when valid. I'm all for this, however want to make
sure this is the direction we want to go before I st
@@ -0,0 +1,48 @@
+//===-- Utils.h
---===//
+//
+// 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
https://github.com/ZijunZhaoCCK updated
https://github.com/llvm/llvm-project/pull/76887
>From 9b90c41bd209a49de85987529bd7286401b01ef2 Mon Sep 17 00:00:00 2001
From: Zijun Zhao
Date: Wed, 3 Jan 2024 18:27:09 -0800
Subject: [PATCH] Move nondiscard tests of ranges::contains() to the right
place.
https://github.com/ZijunZhaoCCK updated
https://github.com/llvm/llvm-project/pull/75373
>From 74f256d8a77ee2ba8e0d5bbb6519aa2729cf94d5 Mon Sep 17 00:00:00 2001
From: zijunzhao
Date: Wed, 13 Dec 2023 20:07:45 +
Subject: [PATCH 01/13] Make clang report garbage target versions.
Clang always s
https://github.com/ZijunZhaoCCK ready_for_review
https://github.com/llvm/llvm-project/pull/75373
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/andykaylor edited
https://github.com/llvm/llvm-project/pull/76873
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -6771,6 +6771,9 @@ def warn_pointer_sub_null_ptr : Warning<
def warn_floatingpoint_eq : Warning<
"comparing floating point with == or != is unsafe">,
InGroup>, DefaultIgnore;
+def warn_fast_floatingpoint_eq : Warning<
+ "explicit comparison with %0 in fast floating poin
https://github.com/andykaylor commented:
Expanding the scope a bit, it would also be useful to have warnings for
constant NaN or Inf values passed as arguments or used in binary operations.
https://github.com/llvm/llvm-project/pull/76873
___
cfe-commi
@@ -2245,6 +2246,11 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl,
unsigned BuiltinID,
case Builtin::BI__builtin_islessequal:
case Builtin::BI__builtin_islessgreater:
case Builtin::BI__builtin_isunordered:
+if (BuiltinID == Builtin::BI__builtin_isunordered) {
@@ -13846,6 +13880,37 @@ Sema::CheckReturnValExpr(Expr *RetValExp, QualType
lhsType,
CheckPPCMMAType(RetValExp->getType(), ReturnLoc);
}
+/// Diagnose comparison to NAN or INFINITY in fast math modes.
+/// The comparison to NaN or INFINITY is always false in
+/// fast mod
@@ -2267,6 +2273,16 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl,
unsigned BuiltinID,
case Builtin::BI__builtin_signbit:
case Builtin::BI__builtin_signbitf:
case Builtin::BI__builtin_signbitl:
+FPO = TheCall->getFPFeaturesInEffect(getLangOpts());
---
@@ -13044,9 +13044,12 @@ static QualType checkArithmeticOrEnumeralCompare(Sema
&S, ExprResult &LHS,
if (Type->isAnyComplexType() && BinaryOperator::isRelationalOp(Opc))
return S.InvalidOperands(Loc, LHS, RHS);
- // Check for comparisons of floating point operands using
@@ -13846,6 +13880,37 @@ Sema::CheckReturnValExpr(Expr *RetValExp, QualType
lhsType,
CheckPPCMMAType(RetValExp->getType(), ReturnLoc);
}
+/// Diagnose comparison to NAN or INFINITY in fast math modes.
+/// The comparison to NaN or INFINITY is always false in
+/// fast mod
chelini wrote:
> It was suggested to me by @chelini to only have the `reshape` op to handle
> all cases and get rid of the `expand_shape` op. We can then implement a
> canonicalizer to convert when valid. I'm all for this, however want to make
> sure this is the direction we want to go before
https://github.com/Sirraide updated
https://github.com/llvm/llvm-project/pull/75883
>From f51b382fd33d4cf3f75bdaa172bb8697a6cadc9e Mon Sep 17 00:00:00 2001
From: Sirraide
Date: Tue, 19 Dec 2023 02:48:25 +0100
Subject: [PATCH 1/5] [Clang] Support MSPropertyRefExpr as placement arg to
new-expres
https://github.com/erichkeane approved this pull request.
https://github.com/llvm/llvm-project/pull/75883
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -130,27 +137,24 @@ C &&(&rMove)(C&) = std::move; // #8 expected-note
{{instantiation of}}
C &&(&rForward)(C&) = std::forward; // #9 expected-note {{instantiation of}}
int (&rUnrelatedMove)(B, B) = std::move;
-#if __cplusplus <= 201703L
-// expected-warning@#1 {{non-address
https://github.com/Sirraide updated
https://github.com/llvm/llvm-project/pull/75883
>From c46f8efd68bf5c32164a64de36081e65a7171763 Mon Sep 17 00:00:00 2001
From: Sirraide
Date: Tue, 19 Dec 2023 02:48:25 +0100
Subject: [PATCH 1/5] [Clang] Support MSPropertyRefExpr as placement arg to
new-expres
https://github.com/Sirraide updated
https://github.com/llvm/llvm-project/pull/75883
>From c46f8efd68bf5c32164a64de36081e65a7171763 Mon Sep 17 00:00:00 2001
From: Sirraide
Date: Tue, 19 Dec 2023 02:48:25 +0100
Subject: [PATCH 1/6] [Clang] Support MSPropertyRefExpr as placement arg to
new-expres
Sirraide wrote:
Just did a rebase and also updated the release notes to mention these changes
https://github.com/llvm/llvm-project/pull/75883
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co
@@ -2621,6 +2642,29 @@ SDValue
DAGTypeLegalizer::PromoteFloatRes_FP_ROUND(SDNode *N) {
return DAG.getNode(GetPromotionOpcode(VT, NVT), DL, NVT, Round);
}
+// Explicit operation to reduce precision. Reduce the value to half precision
+// and promote it back to the legal typ
https://github.com/andykaylor edited
https://github.com/llvm/llvm-project/pull/74332
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
201 - 300 of 534 matches
Mail list logo