[clang] [clang-format] Fix a bug in annotating CastRParen (PR #107675)

2024-09-07 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/107675 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bcd586b - [clang-format] Fix a bug in annotating CastRParen (#107675)

2024-09-07 Thread via cfe-commits
Author: Owen Pan Date: 2024-09-07T16:56:28-07:00 New Revision: bcd586b5abfc7c22a1c0eca3a7abf18e7a09518d URL: https://github.com/llvm/llvm-project/commit/bcd586b5abfc7c22a1c0eca3a7abf18e7a09518d DIFF: https://github.com/llvm/llvm-project/commit/bcd586b5abfc7c22a1c0eca3a7abf18e7a09518d.diff LOG:

[clang] [clang] Fix crash in code with StmtExpr and atomic char load in Expr::EvaluateAsRValue. (PR #106751)

2024-09-07 Thread via cfe-commits
https://github.com/c8ef closed https://github.com/llvm/llvm-project/pull/106751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][docs] Add clang-tutor to ExternalClangExamples. (PR #107665)

2024-09-07 Thread via cfe-commits
https://github.com/c8ef updated https://github.com/llvm/llvm-project/pull/107665 >From 441667c1113c7c65c485e4a66fade8c529dca949 Mon Sep 17 00:00:00 2001 From: c8ef Date: Sat, 7 Sep 2024 10:39:25 +0800 Subject: [PATCH 1/2] Update ExternalClangExamples.rst --- clang/docs/ExternalClangExamples.rs

[clang] [clang][docs] Add clang-tutor to ExternalClangExamples. (PR #107665)

2024-09-07 Thread via cfe-commits
@@ -98,3 +98,6 @@ List of projects and tools uses of reserved identifiers to ensuring that code adheres to lifecycle protocols for certain LibreOffice-specific classes. They may serve as examples for writing RecursiveASTVisitor-based plugins." + +`

[clang] [clang-tools-extra] [mlir] [mlir] Add insert method for ApplyToEachResultList class (PR #107684)

2024-09-07 Thread via cfe-commits
https://github.com/fawdlstty edited https://github.com/llvm/llvm-project/pull/107684 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] Use original file path for CUID (PR #107734)

2024-09-07 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu created https://github.com/llvm/llvm-project/pull/107734 to avoid being nondeterministic due to random path in distributed build. >From 725953ccbdb1f57eaac234cf5729f64a9fdbce13 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Sat, 7 Sep 2024 20:32:48 -0400 Sub

[clang] [HIP] Use original file path for CUID (PR #107734)

2024-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yaxun (Sam) Liu (yxsamliu) Changes to avoid being nondeterministic due to random path in distributed build. --- Full diff: https://github.com/llvm/llvm-project/pull/107734.diff 2 Files Affected: - (modified) clang/lib/Driver/Driver.cpp

[clang] [CUDA/HIP] propagate -cuid to a host-only compilation. (PR #107483)

2024-09-07 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu approved this pull request. LGTM. Thanks https://github.com/llvm/llvm-project/pull/107483 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LLVM] Add IRNormalizer Pass (PR #68176)

2024-09-07 Thread Justin Fargnoli via cfe-commits
justinfargnoli wrote: Hi @plotfi, thanks for pinging me on this! Generally speaking, two things deserve additional focus: - UX testing to find: - Improvements to existing features - New features to add - Additional testing to ensure that the pass preserves the semantics of the IR. - e.

[clang] [clang][bytecode] Implement logical operators for vector type (PR #107678)

2024-09-07 Thread Timm Baeder via cfe-commits
@@ -1300,6 +1309,16 @@ bool Compiler::VisitVectorBinOp(const BinaryOperator *E) { if (!this->emitGT(ElemT, E)) return false; break; +case BO_LAnd: + // a && b is equivalent to a!=0 & b!=0 tbaederr wrote: Not sure how one would imp

[clang] [clang][bytecode] Implement logical operators for vector type (PR #107678)

2024-09-07 Thread Timm Baeder via cfe-commits
@@ -1267,7 +1268,15 @@ bool Compiler::VisitVectorBinOp(const BinaryOperator *E) { auto getElem = [=](unsigned Offset, unsigned Index) { if (!this->emitGetLocal(PT_Ptr, Offset, E)) return false; -return this->emitArrayElemPop(ElemT, Index, E); +if (!this->em

[clang] [clang][bytecode] Implement logical operators for vector type (PR #107678)

2024-09-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/107678 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reapply "[Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer" (PR #97308)

2024-09-07 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/97308 >From e6ee9bef17ca8c597f816661f5bdf16eb5a6a982 Mon Sep 17 00:00:00 2001 From: yronglin Date: Wed, 7 Aug 2024 22:55:40 +0800 Subject: [PATCH 01/12] Reapply "[Clang][CWG1815] Support lifetime extension of tempora

[clang] Reapply "[Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer" (PR #97308)

2024-09-07 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/97308 >From e6ee9bef17ca8c597f816661f5bdf16eb5a6a982 Mon Sep 17 00:00:00 2001 From: yronglin Date: Wed, 7 Aug 2024 22:55:40 +0800 Subject: [PATCH 01/13] Reapply "[Clang][CWG1815] Support lifetime extension of tempora

[clang] Reapply "[Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer" (PR #97308)

2024-09-07 Thread via cfe-commits
@@ -750,8 +750,22 @@ void InitListChecker::FillInEmptyInitForField(unsigned Init, FieldDecl *Field, if (Field->hasInClassInitializer()) { if (VerifyOnly) return; - - ExprResult DIE = SemaRef.BuildCXXDefaultInitExpr(Loc, Field); + ExprResult DIE; +

[clang] Reapply "[Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer" (PR #97308)

2024-09-07 Thread via cfe-commits
@@ -5479,6 +5479,7 @@ void Sema::InstantiateVariableInitializer( *this, Sema::ExpressionEvaluationContext::PotentiallyEvaluated, Var); keepInLifetimeExtendingContext(); +keepInRebuildDefaultArgOrInitContext(); yronglin wrote: I removed these 2

[clang] Reapply "[Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer" (PR #97308)

2024-09-07 Thread via cfe-commits
@@ -7849,13 +7854,17 @@ class Sema final : public SemaBase { /// keepInLifetimeExtendingContext - Pull down InLifetimeExtendingContext /// flag from previous context. void keepInLifetimeExtendingContext() { -if (ExprEvalContexts.size() > 2 && -parentEvaluation

[clang] [clang][bytecode] Implement logical operators for vector type (PR #107678)

2024-09-07 Thread via cfe-commits
yronglin wrote: Thanks for the review! https://github.com/llvm/llvm-project/pull/107678 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cf11eb6 - [clang][bytecode] Implement logical operators for vector type (#107678)

2024-09-07 Thread via cfe-commits
Author: yronglin Date: 2024-09-08T14:04:00+08:00 New Revision: cf11eb62e1d0fa41f68b4ca3150eac854ac2e991 URL: https://github.com/llvm/llvm-project/commit/cf11eb62e1d0fa41f68b4ca3150eac854ac2e991 DIFF: https://github.com/llvm/llvm-project/commit/cf11eb62e1d0fa41f68b4ca3150eac854ac2e991.diff LOG:

[clang] [clang][bytecode] Implement logical operators for vector type (PR #107678)

2024-09-07 Thread via cfe-commits
https://github.com/yronglin closed https://github.com/llvm/llvm-project/pull/107678 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] Avoid repeated hash lookups (NFC) (PR #107736)

2024-09-07 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/107736 None >From 4e519d4f71b47513f6da0258e7a27dd71763f312 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 7 Sep 2024 23:27:23 -0700 Subject: [PATCH] [CodeGen] Avoid repeated hash lookups (NFC) --- clan

[clang] [CodeGen] Avoid repeated hash lookups (NFC) (PR #107736)

2024-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/107736.diff 1 Files Affected: - (modified) clang/lib/CodeGen/CodeGenFunction.h (+4-10) ``diff diff --git a/clang/lib/CodeGen/CodeG

[clang] [clang][docs] Add clang-tutor to ExternalClangExamples. (PR #107665)

2024-09-07 Thread Danny Mösch via cfe-commits
https://github.com/SimplyDanny approved this pull request. https://github.com/llvm/llvm-project/pull/107665 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Frontend] Avoid repeated hash lookups (NFC) (PR #107728)

2024-09-07 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM with the note that converting these to SmallSetVector would probably be more elegant... https://github.com/llvm/llvm-project/pull/107728 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [CodeGen] Avoid repeated hash lookups (NFC) (PR #107736)

2024-09-07 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/107736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2