@@ -859,8 +861,10 @@ class PackDeductionScope {
// by this pack expansion, then clear out the deduction.
DeducedFromEarlierParameter = !Deduced[Index].isNull();
DeducedPack Pack(Index);
-Pack.Saved = Deduced[Index];
-Deduced[Index] = TemplateArgument();
+
@@ -1307,6 +1304,62 @@ DeduceTemplateArguments(Sema &S, TemplateParameterList
*TemplateParams,
return TemplateDeductionResult::Success;
}
+/// Deduce the template arguments by comparing the list of parameter
+/// types to the list of argument types, as in the parameter-type
https://github.com/zwuis updated
https://github.com/llvm/llvm-project/pull/102581
>From 9d5d8d99db6f7fa0b6973fe55582de9d34740b19 Mon Sep 17 00:00:00 2001
From: Yanzuo Liu
Date: Fri, 9 Aug 2024 15:45:40 +0800
Subject: [PATCH 1/2] Support non-reference structured bindings with braced
array as in
https://github.com/echesakov created
https://github.com/llvm/llvm-project/pull/105912
...control `FastMathFlags` during code-generation of `ConditionalOperator`.
This involves storing `FPOptionsOverride` in trailing storage of
`ConditionalOperator` and storing `CurFPOptionsOverride` when creat
github-actions[bot] wrote:
Thank you for submitting a Pull Request (PR) to the LLVM Project!
This PR will be automatically labeled and the relevant teams will be notified.
If you wish to, you can add reviewers by using the "Reviewers" section on this
page.
If this is not working for you, it
llvmbot wrote:
@llvm/pr-subscribers-clang-codegen
@llvm/pr-subscribers-clang-modules
Author: Egor Chesakov (echesakov)
Changes
...control `FastMathFlags` during code-generation of `ConditionalOperator`.
This involves storing `FPOptionsOverride` in trailing storage of
`ConditionalOperator
https://github.com/zwuis updated
https://github.com/llvm/llvm-project/pull/102581
>From 9d5d8d99db6f7fa0b6973fe55582de9d34740b19 Mon Sep 17 00:00:00 2001
From: Yanzuo Liu
Date: Fri, 9 Aug 2024 15:45:40 +0800
Subject: [PATCH 1/3] Support non-reference structured bindings with braced
array as in
@@ -0,0 +1,105 @@
+// RUN: %clang_cc1 -triple i386-unknown-unknown -target-feature +mmx \
+// RUN: -target-feature +sse2 -O0 -emit-llvm %s -o - | FileCheck %s
+
+// Test that mmx/sse2 shift intrinsics map to the expected builtins.
+
+// Don't include mm_malloc.h, it's system spec
@@ -0,0 +1,387 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only \
phoebewang wrote:
Move it to clang/test/CodeGen/X86?
https://github.com/llvm/llvm-project/pull/105852
___
cfe-commits mailing list
cf
@@ -5399,11 +5434,85 @@ static QualType
GetImplicitObjectParameterType(ASTContext &Context,
return Context.getLValueReferenceType(RawType);
}
+static TemplateDeductionResult FinishTemplateArgumentDeduction(
+Sema &S, FunctionTemplateDecl *FTD, int ArgIdx, QualType P, Qu
@@ -0,0 +1,32 @@
+// RUN: %clang_cc1 -std=c++23 -verify %s
+
+namespace t1 {
+template struct enable_if { typedef void type; };
+template class Foo {};
+template constexpr bool check() { return true; }
+template struct Bar {};
+
+template void func(Bar()>::type>) {}
+// expecte
@@ -5399,11 +5434,85 @@ static QualType
GetImplicitObjectParameterType(ASTContext &Context,
return Context.getLValueReferenceType(RawType);
}
+static TemplateDeductionResult FinishTemplateArgumentDeduction(
+Sema &S, FunctionTemplateDecl *FTD, int ArgIdx, QualType P, Qu
@@ -1216,10 +1308,225 @@ void DeclareImplicitDeductionGuidesForTypeAlias(
->getDeductionCandidateKind() == DeductionCandidate::Aggregate)
continue;
-BuildDeductionGuideForTypeAlias(SemaRef, AliasTemplate, F, Loc);
+BuildDeductionGuideForTypeAlias(Sema
@@ -1216,10 +1308,225 @@ void DeclareImplicitDeductionGuidesForTypeAlias(
->getDeductionCandidateKind() == DeductionCandidate::Aggregate)
continue;
-BuildDeductionGuideForTypeAlias(SemaRef, AliasTemplate, F, Loc);
+BuildDeductionGuideForTypeAlias(Sema
owenca wrote:
Bisected to 834ac2e205dd8e492d6084a7952e68e19a1f54db. @rymiel
https://github.com/llvm/llvm-project/pull/96801
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1216,10 +1308,225 @@ void DeclareImplicitDeductionGuidesForTypeAlias(
->getDeductionCandidateKind() == DeductionCandidate::Aggregate)
continue;
-BuildDeductionGuideForTypeAlias(SemaRef, AliasTemplate, F, Loc);
+BuildDeductionGuideForTypeAlias(Sema
https://github.com/owenca created
https://github.com/llvm/llvm-project/pull/105921
Fixes #105880.
>From c3db574bd29bc71e49aa28dc8d1349726f547089 Mon Sep 17 00:00:00 2001
From: Owen Pan
Date: Fri, 23 Aug 2024 20:28:50 -0700
Subject: [PATCH] [clang-format] Fix a misannotation of redundant r_pare
https://github.com/owenca milestoned
https://github.com/llvm/llvm-project/pull/105921
___
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-format
Author: Owen Pan (owenca)
Changes
Fixes #105880.
---
Full diff: https://github.com/llvm/llvm-project/pull/105921.diff
2 Files Affected:
- (modified) clang/lib/Format/TokenAnnotator.cpp (+2)
- (modified) clang/unittests/Format/TokenAnnot
https://github.com/zyn0217 updated
https://github.com/llvm/llvm-project/pull/102131
>From aa99ac433c9d383bfca732c19e5082a555f64c2d Mon Sep 17 00:00:00 2001
From: Younan Zhang
Date: Tue, 6 Aug 2024 20:08:43 +0800
Subject: [PATCH] [Clang][Concepts] Fix the constraint equivalence checking for
Tem
https://github.com/zyn0217 edited
https://github.com/llvm/llvm-project/pull/102131
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
owenca wrote:
After reviewing commit e00d32afb9d33a1eca48e2b041c9688436706c5b, I've come to
the conclusion that it would be better to revert it and keep lambda arrows
differentiated from function arrows.
https://github.com/llvm/llvm-project/pull/105613
_
https://github.com/owenca created
https://github.com/llvm/llvm-project/pull/105923
…519)"
This reverts commit e00d32afb9d33a1eca48e2b041c9688436706c5b and adds a test
for lambda arrow SplitPenalty.
Fixes #105480.
>From dbf35d6d7e1b0ba5c80453105757baf5357169d4 Mon Sep 17 00:00:00 2001
From: O
https://github.com/zyn0217 edited
https://github.com/llvm/llvm-project/pull/102131
___
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-format
Author: Owen Pan (owenca)
Changes
…519)"
This reverts commit e00d32afb9d33a1eca48e2b041c9688436706c5b and adds a test
for lambda arrow SplitPenalty.
Fixes #105480.
---
Full diff: https://github.com/llvm/llvm-project/pull/105923.diff
5
https://github.com/owenca milestoned
https://github.com/llvm/llvm-project/pull/105923
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/zyn0217 ready_for_review
https://github.com/llvm/llvm-project/pull/102131
___
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: Younan Zhang (zyn0217)
Changes
We established an instantiation scope in order for constraint equivalence
checking to properly map the uninstantiated parameters.
That mechanism mapped even packs to themselves. Consequently, parameter pack
@@ -944,12 +950,63 @@ getRHSTemplateDeclAndArgs(Sema &SemaRef,
TypeAliasTemplateDecl *AliasTemplate) {
return {Template, AliasRhsTemplateArgs};
}
+// Build the type for a deduction guide generated from an inherited constructor
+// [over.match.class.deduct]p1.10:
+// ... the
@@ -944,12 +950,63 @@ getRHSTemplateDeclAndArgs(Sema &SemaRef,
TypeAliasTemplateDecl *AliasTemplate) {
return {Template, AliasRhsTemplateArgs};
}
+// Build the type for a deduction guide generated from an inherited constructor
+// [over.match.class.deduct]p1.10:
+// ... the
@@ -944,12 +950,63 @@ getRHSTemplateDeclAndArgs(Sema &SemaRef,
TypeAliasTemplateDecl *AliasTemplate) {
return {Template, AliasRhsTemplateArgs};
}
+// Build the type for a deduction guide generated from an inherited constructor
+// [over.match.class.deduct]p1.10:
+// ... the
@@ -1388,6 +1695,33 @@ void Sema::DeclareImplicitDeductionGuides(TemplateDecl
*Template,
if (!AddedAny)
Transform.buildSimpleDeductionGuide(std::nullopt);
+ // FIXME: Handle explicit deduction guides from inherited constructors
+ // when the base deduction guides are
@@ -1388,6 +1695,33 @@ void Sema::DeclareImplicitDeductionGuides(TemplateDecl
*Template,
if (!AddedAny)
Transform.buildSimpleDeductionGuide(std::nullopt);
+ // FIXME: Handle explicit deduction guides from inherited constructors
antangelo wrote:
Done
@@ -944,12 +950,63 @@ getRHSTemplateDeclAndArgs(Sema &SemaRef,
TypeAliasTemplateDecl *AliasTemplate) {
return {Template, AliasRhsTemplateArgs};
}
+// Build the type for a deduction guide generated from an inherited constructor
+// [over.match.class.deduct]p1.10:
+// ... the
https://github.com/zyn0217 updated
https://github.com/llvm/llvm-project/pull/105617
>From b837b99272353cb792a9ef19f1f68fd0b4bf8514 Mon Sep 17 00:00:00 2001
From: Younan Zhang
Date: Thu, 22 Aug 2024 13:08:12 +0800
Subject: [PATCH] [Clang][NFC] Consolidate tests for default argument
substitution
https://github.com/owenca closed
https://github.com/llvm/llvm-project/pull/105613
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
owenca wrote:
See #105923.
https://github.com/llvm/llvm-project/pull/105613
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
X547 wrote:
Hello, one of this code authors here. Why I am seeing this patch only now?
https://github.com/llvm/llvm-project/pull/66038
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -9,20 +9,141 @@
#include "Haiku.h"
#include "CommonArgs.h"
#include "clang/Config/config.h"
+#include "clang/Driver/Compilation.h"
#include "llvm/Support/Path.h"
using namespace clang::driver;
+using namespace clang::driver::tools;
using namespace clang::driver::toolcha
@@ -9,20 +9,141 @@
#include "Haiku.h"
#include "CommonArgs.h"
#include "clang/Config/config.h"
+#include "clang/Driver/Compilation.h"
#include "llvm/Support/Path.h"
using namespace clang::driver;
+using namespace clang::driver::tools;
using namespace clang::driver::toolcha
@@ -3369,6 +3371,20 @@ TEST_F(TokenAnnotatorTest, GNULanguageStandard) {
EXPECT_TOKEN(Tokens[2], tok::spaceship, TT_BinaryOperator);
}
+TEST_F(TokenAnnotatorTest, SplitPenalty) {
+ auto Style = getLLVMStyle();
+ Style.ColumnLimit = 20;
+
+ auto Tokens = annotate("class fo
https://github.com/owenca updated
https://github.com/llvm/llvm-project/pull/105923
>From dbf35d6d7e1b0ba5c80453105757baf5357169d4 Mon Sep 17 00:00:00 2001
From: Owen Pan
Date: Fri, 23 Aug 2024 02:24:39 -0700
Subject: [PATCH 1/2] [clang-format] Revert "[clang-format][NFC] Delete
TT_LambdaArrow
https://github.com/tbaederr created
https://github.com/llvm/llvm-project/pull/105924
This depends on signed-ness.
>From c773015150b8a93a37cd6121091a2072b6df5710 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Sat, 24 Aug 2024 07:16:54 +0200
Subject: [PATCH] [clang][bytecode]
Author: Timm Bäder
Date: 2024-08-24T07:18:36+02:00
New Revision: 75ef95584d8867d0039a43bad0bd8e53f3293f67
URL:
https://github.com/llvm/llvm-project/commit/75ef95584d8867d0039a43bad0bd8e53f3293f67
DIFF:
https://github.com/llvm/llvm-project/commit/75ef95584d8867d0039a43bad0bd8e53f3293f67.diff
LO
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
Changes
This depends on signed-ness.
---
Full diff: https://github.com/llvm/llvm-project/pull/105924.diff
2 Files Affected:
- (modified) clang/lib/AST/ByteCode/IntegralAP.h (+10-2)
- (modified) clang/test/AST/Byt
mizvekov wrote:
I not opposed to exploring a solution now. I suspect there might be a nicer
solution that doesn't involve copies, I just have other priorities right now
and it will take me a while until I can sit down and think about this.
But if you want to think about the problem and find a
tbaederr wrote:
> > I guess it might make sense to create the `ConstantExpr` in any case, even
> > for a `None` `APValue`?
>
> The comment above `ConstantFoldAttrArgs` seems to suggest that that’s what’s
> supposed to happen if the expression isn’t dependent—I don’t know if there’s
> any code
chrisnc wrote:
@ahmedbougacha yes, I think it's correct that calling an
`__attribute__((interrupt))` function is safe to do on M-profile because there
is no difference in the return sequence; all it does is not assume that the
stack is 8-byte aligned initially. Even then, this is only needed w
Author: Timm Baeder
Date: 2024-08-24T07:50:23+02:00
New Revision: c81d6665601d648c1a5349b665ee6019f3786352
URL:
https://github.com/llvm/llvm-project/commit/c81d6665601d648c1a5349b665ee6019f3786352
DIFF:
https://github.com/llvm/llvm-project/commit/c81d6665601d648c1a5349b665ee6019f3786352.diff
L
https://github.com/tbaederr closed
https://github.com/llvm/llvm-project/pull/105924
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -972,8 +972,15 @@ static const Expr
*SubstituteConstraintExpressionWithoutSatisfaction(
// equivalence.
LocalInstantiationScope ScopeForParameters(S);
if (auto *FD = DeclInfo.getDecl()->getAsFunction())
-for (auto *PVD : FD->parameters())
- ScopeForParameters
@@ -972,8 +972,15 @@ static const Expr
*SubstituteConstraintExpressionWithoutSatisfaction(
// equivalence.
LocalInstantiationScope ScopeForParameters(S);
if (auto *FD = DeclInfo.getDecl()->getAsFunction())
-for (auto *PVD : FD->parameters())
- ScopeForParameters
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building
`clang` at step 10 "Add check check-offload".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/73/builds/4371
Here is the re
Author: Timm Bäder
Date: 2024-08-24T08:21:25+02:00
New Revision: 68030f86aef11558c9ed14a34250433f57923c84
URL:
https://github.com/llvm/llvm-project/commit/68030f86aef11558c9ed14a34250433f57923c84
DIFF:
https://github.com/llvm/llvm-project/commit/68030f86aef11558c9ed14a34250433f57923c84.diff
LO
https://github.com/s-barannikov approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/105824
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Timm Bäder
Date: 2024-08-24T08:24:58+02:00
New Revision: 62e7b59f10d9af809dd54fc064e2f60f0b48938c
URL:
https://github.com/llvm/llvm-project/commit/62e7b59f10d9af809dd54fc064e2f60f0b48938c
DIFF:
https://github.com/llvm/llvm-project/commit/62e7b59f10d9af809dd54fc064e2f60f0b48938c.diff
LO
Author: Justin Stitt
Date: 2024-08-23T23:33:23-07:00
New Revision: 76236fafda19ff3760443196edcd3cd9610ed733
URL:
https://github.com/llvm/llvm-project/commit/76236fafda19ff3760443196edcd3cd9610ed733
DIFF:
https://github.com/llvm/llvm-project/commit/76236fafda19ff3760443196edcd3cd9610ed733.diff
https://github.com/vitalybuka closed
https://github.com/llvm/llvm-project/pull/105709
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -314,26 +314,55 @@ Currently, this option supports three overflow-dependent
code idioms:
unsigned long foo = -1UL; // No longer causes a negation overflow warning
unsigned long bar = -2UL; // and so on...
-``post-decr-while``
+``unsigned-post-decr-while``
.. cod
@@ -972,8 +972,15 @@ static const Expr
*SubstituteConstraintExpressionWithoutSatisfaction(
// equivalence.
LocalInstantiationScope ScopeForParameters(S);
if (auto *FD = DeclInfo.getDecl()->getAsFunction())
-for (auto *PVD : FD->parameters())
- ScopeForParameters
https://github.com/tbaederr created
https://github.com/llvm/llvm-project/pull/105927
Since this must be true, add an assertion instead of just documenting it via
the comment.
>From 65ac59cb18b097251c7e6083f785562ba6278d82 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Sat,
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
Changes
Since this must be true, add an assertion instead of just documenting it via
the comment.
---
Full diff: https://github.com/llvm/llvm-project/pull/105927.diff
1 Files Affected:
- (modified) clang/lib/AST/
301 - 362 of 362 matches
Mail list logo