[clang] [clang][dataflow] Check for backedges directly (instead of loop statements). (PR #68923)

2023-10-15 Thread via cfe-commits
@@ -913,6 +913,34 @@ TEST_F(FlowConditionTest, WhileStmt) { }); } +TEST_F(FlowConditionTest, WhileStmtWithAssignmentInCondition) { + std::string Code = R"( +void target(bool Foo) { + // This test checks whether the analysis preserves the connection between +

[clang] [clang][dataflow] Check for backedges directly (instead of loop statements). (PR #68923)

2023-10-15 Thread via cfe-commits
@@ -913,6 +913,34 @@ TEST_F(FlowConditionTest, WhileStmt) { }); } +TEST_F(FlowConditionTest, WhileStmtWithAssignmentInCondition) { + std::string Code = R"( +void target(bool Foo) { + // This test checks whether the analysis preserves the connection between +

[clang] [clang][dataflow] Check for backedges directly (instead of loop statements). (PR #68923)

2023-10-15 Thread via cfe-commits
@@ -4099,6 +4099,20 @@ TEST(TransferTest, LoopDereferencingChangingRecordPointerConverges) { ASSERT_THAT_ERROR(checkDataflowWithNoopAnalysis(Code), llvm::Succeeded()); } +TEST(TransferTest, LoopWithDisjunctiveConditionConverges) { martinboehme wrote: Test

[clang] [clang][dataflow] Check for backedges directly (instead of loop statements). (PR #68923)

2023-10-15 Thread via cfe-commits
@@ -53,19 +52,8 @@ static int blockIndexInPredecessor(const CFGBlock &Pred, return BlockPos - Pred.succ_begin(); } -static bool isLoopHead(const CFGBlock &B) { - if (const auto *T = B.getTerminatorStmt()) -switch (T->getStmtClass()) { - case Stmt::WhileStmtClass: -

[clang] [clang][dataflow] Check for backedges directly (instead of loop statements). (PR #68923)

2023-10-15 Thread via cfe-commits
@@ -913,6 +913,34 @@ TEST_F(FlowConditionTest, WhileStmt) { }); } +TEST_F(FlowConditionTest, WhileStmtWithAssignmentInCondition) { + std::string Code = R"( +void target(bool Foo) { + // This test checks whether the analysis preserves the connection between +

[clang] [clang][dataflow] Check for backedges directly (instead of loop statements). (PR #68923)

2023-10-15 Thread via cfe-commits
@@ -502,14 +490,15 @@ runTypeErasedDataflowAnalysis( PostVisitCFG) { PrettyStackTraceAnalysis CrashInfo(CFCtx, "runTypeErasedDataflowAnalysis"); - PostOrderCFGView POV(&CFCtx.getCFG()); - ForwardDataflowWorklist Worklist(CFCtx.getCFG(), &POV); + const clang::CFG &

[clang] [clang][dataflow] Check for backedges directly (instead of loop statements). (PR #68923)

2023-10-15 Thread via cfe-commits
https://github.com/martinboehme edited https://github.com/llvm/llvm-project/pull/68923 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Check for backedges directly (instead of loop statements). (PR #68923)

2023-10-15 Thread via cfe-commits
https://github.com/martinboehme approved this pull request. LGTM with comments https://github.com/llvm/llvm-project/pull/68923 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Handle variadic functions (PR #67814)

2023-10-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/67814 >From ee34e6baf120ebde84bb0adbc2f9c73a66a6918a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 29 Sep 2023 16:43:59 +0200 Subject: [PATCH] [clang][Interp] Handle variadic functions Simil

[clang] [clang][Interp] Handle variadic functions (PR #67814)

2023-10-15 Thread Timm Baeder via cfe-commits
tbaederr wrote: Ping https://github.com/llvm/llvm-project/pull/67814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Handle delegating constructors (PR #67823)

2023-10-15 Thread Timm Baeder via cfe-commits
tbaederr wrote: Ping https://github.com/llvm/llvm-project/pull/67823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D156453: [clang][Interp] Create only globals when initializing a global variable

2023-10-15 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added inline comments. Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:1213 std::optional SubExprT = classify(SubExpr); - if (E->getStorageDuration() == SD_Static) { + bool IsStatic = E->getStorageDuration() == SD_Static; + if (GlobalDecl || IsStatic) { ---

[PATCH] D156453: [clang][Interp] Create only globals when initializing a global variable

2023-10-15 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder updated this revision to Diff 557713. tbaeder marked an inline comment as done. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D156453/new/ https://reviews.llvm.org/D156453 Files: clang/lib/AST/Interp/ByteCodeExprGen.cpp clang/lib/AST/Interp/ByteCodeExprGen.h clang/test/AST/I

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2023-10-15 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: @sam-mccall gentle ping~ https://github.com/llvm/llvm-project/pull/66462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Implement shadow stack on shadow stack mode with Zicfiss. (PR #68075)

2023-10-15 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk edited https://github.com/llvm/llvm-project/pull/68075 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Implement shadow stack on shadow stack mode with Zicfiss. (PR #68075)

2023-10-15 Thread Yeting Kuo via cfe-commits
@@ -106,9 +111,14 @@ static void emitSCSEpilogue(MachineFunction &MF, MachineBasicBlock &MBB, CSI, [&](CalleeSavedInfo &CSR) { return CSR.getReg() == RAReg; })) return; + const RISCVInstrInfo *TII = STI.getInstrInfo(); + if (STI.hasFeature(RISCV::FeatureStdExt

[clang] [AMDGPU] Remove Code Object V3 (PR #67118)

2023-10-15 Thread Pierre van Houtryve via cfe-commits
https://github.com/Pierre-vh closed https://github.com/llvm/llvm-project/pull/67118 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Implement shadow stack on shadow stack mode with Zicfiss. (PR #68075)

2023-10-15 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk updated https://github.com/llvm/llvm-project/pull/68075 >From 91bb1d9884276a37f93515a648aa6ece353fdc70 Mon Sep 17 00:00:00 2001 From: Yeting Kuo Date: Tue, 12 Sep 2023 12:28:00 +0800 Subject: [PATCH 1/5] [RISCV] Add MC layer support for Zicfiss. The patch adds the in

[clang] [clang][ExprConst] Fix crash on uninitialized array subobject (PR #67817)

2023-10-15 Thread Takuya Shimizu via cfe-commits
https://github.com/hazohelet updated https://github.com/llvm/llvm-project/pull/67817 >From acb5d8286335f85732ede8d33ac2529e13a3f61b Mon Sep 17 00:00:00 2001 From: Takuya Shimizu Date: Fri, 29 Sep 2023 23:49:11 +0900 Subject: [PATCH 1/4] [clang][ExprConst] Fix crash on uninitialized array subob

[clang] [clang] Additional FP classification functions (PR #69041)

2023-10-15 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff updated https://github.com/llvm/llvm-project/pull/69041 >From 1374e323198d7188e688845eb951df4148a1dfd8 Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Wed, 11 Oct 2023 14:27:26 +0700 Subject: [PATCH 1/5] [clang] Additional FP classification functions C language st

[PATCH] D157252: [clang][ExprConst] Handle 0 type size in builtin_memcpy etc.

2023-10-15 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added a comment. Ping Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D157252/new/ https://reviews.llvm.org/D157252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-15 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= ,

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-15 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= ,

[clang] [AMDGPU] Remove Code Object V3 (PR #67118)

2023-10-15 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/67118 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExprConst] Fix crash on uninitialized array subobject (PR #67817)

2023-10-15 Thread via cfe-commits
@@ -404,7 +404,7 @@ bool CheckPure(InterpState &S, CodePtr OpPC, const CXXMethodDecl *MD) { static void DiagnoseUninitializedSubobject(InterpState &S, const SourceInfo &SI, const FieldDecl *SubObjDecl) { assert(SubObjDecl && "Subob

[clang] [Clang][LoongArch] Support basic fp16, fp128 (PR #68851)

2023-10-15 Thread via cfe-commits
https://github.com/Xinmudotmoe edited https://github.com/llvm/llvm-project/pull/68851 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Additional FP classification functions (PR #69041)

2023-10-15 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff updated https://github.com/llvm/llvm-project/pull/69041 >From 1374e323198d7188e688845eb951df4148a1dfd8 Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Wed, 11 Oct 2023 14:27:26 +0700 Subject: [PATCH 1/4] [clang] Additional FP classification functions C language st

[clang] LoongArch fp16,fp128 basic support (PR #68851)

2023-10-15 Thread via cfe-commits
https://github.com/Xinmudotmoe updated https://github.com/llvm/llvm-project/pull/68851 >From 2ef1ddfb977da35f31f1f351ac4daf0478fff166 Mon Sep 17 00:00:00 2001 From: xinmu Date: Thu, 12 Oct 2023 13:36:34 +0800 Subject: [PATCH 1/3] LoongArch fp16,fp128 basic support --- clang/lib/Basic/Targets/

[clang] [RISCV] Implement shadow stack on shadow stack mode with Zicfiss. (PR #68075)

2023-10-15 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk edited https://github.com/llvm/llvm-project/pull/68075 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Remove experimental from Vector Crypto extensions (PR #69000)

2023-10-15 Thread Brandon Wu via cfe-commits
4vtomat wrote: > Thanks for the patch, some very quick feedback and I'd highlight the first > bullet as the most important, as this is potentially a blocker for graduating > these extensions from experimental. > > * My big concern with this would be the intrinsics - could you please comment >

[clang] [clang] Additional FP classification functions (PR #69041)

2023-10-15 Thread via 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 6e8013a1301ef31f3592035eae2ee08319edd318 69c7f90dfe21b96f6bc2678b08d9f002b0b0584d --

[clang] 94d0a3c - [clang][Interp][NFC] Add comments to Descriptor ctors

2023-10-15 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-10-16T06:52:07+02:00 New Revision: 94d0a3c4a8b43759cb896bbbe8bd38e7e02eb70e URL: https://github.com/llvm/llvm-project/commit/94d0a3c4a8b43759cb896bbbe8bd38e7e02eb70e DIFF: https://github.com/llvm/llvm-project/commit/94d0a3c4a8b43759cb896bbbe8bd38e7e02eb70e.diff LO

[clang] [clang][ExprConst] Fix crash on uninitialized array subobject (PR #67817)

2023-10-15 Thread Takuya Shimizu via cfe-commits
https://github.com/hazohelet updated https://github.com/llvm/llvm-project/pull/67817 >From acb5d8286335f85732ede8d33ac2529e13a3f61b Mon Sep 17 00:00:00 2001 From: Takuya Shimizu Date: Fri, 29 Sep 2023 23:49:11 +0900 Subject: [PATCH 1/3] [clang][ExprConst] Fix crash on uninitialized array subob

[clang] [clang][ExprConst] Fix crash on uninitialized array subobject (PR #67817)

2023-10-15 Thread Takuya Shimizu via cfe-commits
@@ -2411,10 +2411,15 @@ static bool CheckEvaluationResult(CheckEvaluationResultKind CERK, const FieldDecl *SubobjectDecl, CheckedTemporaries &CheckedTemps) { if (!Value.hasValue()) { -assert(SubobjectDec

[clang] [clang] Additional FP classification functions (PR #69041)

2023-10-15 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff updated https://github.com/llvm/llvm-project/pull/69041 >From 1374e323198d7188e688845eb951df4148a1dfd8 Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Wed, 11 Oct 2023 14:27:26 +0700 Subject: [PATCH 1/3] [clang] Additional FP classification functions C language st

[clang] [IRPGO] [Draft] Import vtable definitions in ThinTLO and use more efficient vtable comparison sequence with cost-benefit analysis (PR #69141)

2023-10-15 Thread Mingming Liu via cfe-commits
https://github.com/minglotus-6 edited https://github.com/llvm/llvm-project/pull/69141 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Correctly emit destructors for multi-dimensional arrays (PR #69140)

2023-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We were not taking those into account correctly when emitting destructors. Fix that and add tests for it. Fixes #69115 --- Full diff: https://github.com/llvm/llvm-project/pull/69140.diff 2 Files Affected:

[clang] [clang][Interp] Correctly emit destructors for multi-dimensional arrays (PR #69140)

2023-10-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/69140 We were not taking those into account correctly when emitting destructors. Fix that and add tests for it. Fixes #69115 >From 9a3a88061790193575dbf76c3ddb2c0566fd6543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ti

[clang-tools-extra] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl edited https://github.com/llvm/llvm-project/pull/68642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl edited https://github.com/llvm/llvm-project/pull/68642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl edited https://github.com/llvm/llvm-project/pull/68642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl edited https://github.com/llvm/llvm-project/pull/68642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
@@ -41,13 +42,12 @@ _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 boo return true; } -template < -class _Tp, -class _Up, -class _BinaryPredicate, -__enable_if_t<__is_trivial_equality_predicate<_BinaryPredicate, _Tp, _Up>::valu

[clang] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
@@ -41,13 +42,12 @@ _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 boo return true; } -template < -class _Tp, -class _Up, -class _BinaryPredicate, -__enable_if_t<__is_trivial_equality_predicate<_BinaryPredicate, _Tp, _Up>::valu

[clang-tools-extra] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl updated https://github.com/llvm/llvm-project/pull/68642 >From f0d93cc6a5cd485c654ab38221691db038bacc7d Mon Sep 17 00:00:00 2001 From: AntonRydahl Date: Mon, 9 Oct 2023 15:13:22 -0700 Subject: [PATCH 1/4] Merged __is_trivial_equality_predicate and __is_trivial_plu

[clang] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl updated https://github.com/llvm/llvm-project/pull/68642 >From f0d93cc6a5cd485c654ab38221691db038bacc7d Mon Sep 17 00:00:00 2001 From: AntonRydahl Date: Mon, 9 Oct 2023 15:13:22 -0700 Subject: [PATCH 1/4] Merged __is_trivial_equality_predicate and __is_trivial_plu

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

2023-10-15 Thread Justin Fargnoli via cfe-commits
https://github.com/justinfargnoli updated https://github.com/llvm/llvm-project/pull/68176 >From f792a030ac1761a96176332fea906cd2d1826c7b Mon Sep 17 00:00:00 2001 From: justinfargnoli Date: Sat, 12 Aug 2023 10:58:45 -0700 Subject: [PATCH 01/19] Add IRCanonicalizer.cpp --- llvm/lib/Transforms/U

[clang] [RISCV] Implement shadow stack on shadow stack mode with Zicfiss. (PR #68075)

2023-10-15 Thread Yeting Kuo via cfe-commits
@@ -106,9 +111,14 @@ static void emitSCSEpilogue(MachineFunction &MF, MachineBasicBlock &MBB, CSI, [&](CalleeSavedInfo &CSR) { return CSR.getReg() == RAReg; })) return; + const RISCVInstrInfo *TII = STI.getInstrInfo(); + if (STI.hasFeature(RISCV::FeatureStdExt

[clang] be72dca - [docs] [C++20] [Modules] Mentioning that -fdelayed-template-parsing is not working with modules

2023-10-15 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2023-10-16T10:38:33+08:00 New Revision: be72dca5e3ab3301e6927aca1c0823e382519bb3 URL: https://github.com/llvm/llvm-project/commit/be72dca5e3ab3301e6927aca1c0823e382519bb3 DIFF: https://github.com/llvm/llvm-project/commit/be72dca5e3ab3301e6927aca1c0823e382519bb3.diff LO

[clang] [Driver][DragonFly] Fixes for linker path and command-line option handling (PR #69095)

2023-10-15 Thread Brad Smith via cfe-commits
brad0 wrote: Fix a typo in a comment. https://github.com/llvm/llvm-project/pull/69095 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][DragonFly] Fixes for linker path and command-line option handling (PR #69095)

2023-10-15 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/69095 >From 1840ed82beb90edcdf8b4eff3de93d595fbc041d Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 15 Oct 2023 04:00:56 -0400 Subject: [PATCH] [Driver][DragonFly] Fixes for linker path and command-line option hand

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Brad Smith via cfe-commits
brad0 wrote: > Another question is whether we want to use `clang -Z` or `clang -Wl,-Z`. For > newer options we probably should recommend `-Wl,` more. Yes, I was thinking if this is used anywhere via the driver that it could be changed to using -Wl. https://github.com/llvm/llvm-project/pull/69

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-15 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf closed https://github.com/llvm/llvm-project/pull/68944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 819ac45 - [X86] Add USER_MSR instructions. (#68944)

2023-10-15 Thread via cfe-commits
Author: Freddy Ye Date: 2023-10-16T10:12:53+08:00 New Revision: 819ac45d1c1b7a2d784b2606c84de46ce714f278 URL: https://github.com/llvm/llvm-project/commit/819ac45d1c1b7a2d784b2606c84de46ce714f278 DIFF: https://github.com/llvm/llvm-project/commit/819ac45d1c1b7a2d784b2606c84de46ce714f278.diff LOG

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/69120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 993e839 - [Driver] Don't pass -Z to ld for ELF platforms (#69120)

2023-10-15 Thread via cfe-commits
Author: Fangrui Song Date: 2023-10-15T19:12:35-07:00 New Revision: 993e839480449de63aefb1a1ae9142eefed5e7a6 URL: https://github.com/llvm/llvm-project/commit/993e839480449de63aefb1a1ae9142eefed5e7a6 DIFF: https://github.com/llvm/llvm-project/commit/993e839480449de63aefb1a1ae9142eefed5e7a6.diff

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/69120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/69120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Fangrui Song via cfe-commits
MaskRay wrote: > OpenBSD has a -Z flag for our BFD linker. > > `-Z Produce 'Standard' executables, disables Writable XOR Executable features > in resulting binaries.` > > [openbsd/src@0abdc37](https://github.com/openbsd/src/commit/0abdc3723b5d33dde698ab941325edec2819c128) > > [openbsd/src@58

[clang] LoongArch fp16,fp128 basic support (PR #68851)

2023-10-15 Thread via cfe-commits
https://github.com/Xinmudotmoe updated https://github.com/llvm/llvm-project/pull/68851 >From 2ef1ddfb977da35f31f1f351ac4daf0478fff166 Mon Sep 17 00:00:00 2001 From: xinmu Date: Thu, 12 Oct 2023 13:36:34 +0800 Subject: [PATCH 1/2] LoongArch fp16,fp128 basic support --- clang/lib/Basic/Targets/

[clang] [clang][dataflow]Use cast_or_null instead of cast to prevent crash (PR #68510)

2023-10-15 Thread Qizhi Hu via cfe-commits
https://github.com/jcsxky edited https://github.com/llvm/llvm-project/pull/68510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow]Use cast_or_null instead cast to prevent crash (PR #68510)

2023-10-15 Thread Qizhi Hu via cfe-commits
jcsxky wrote: @ymand Could you take a look at this pr? https://github.com/llvm/llvm-project/pull/68510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
phoebewang wrote: Ping~ https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
phoebewang wrote: Ping~ https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture Specifi

[clang-tools-extra] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture Specifi

[clang] [Driver] Hook up Haiku PowerPC support (PR #69134)

2023-10-15 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/69134 >From ed2ff4586a4113e7b967112d700ca8ad56f0afdd Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 11 Oct 2023 19:25:33 -0400 Subject: [PATCH] [Driver] Hook up Haiku PowerPC support --- clang/lib/Basic/Targets.cp

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-15 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. https://github.com/llvm/llvm-project/pull/68944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Hook up Haiku PowerPC support (PR #69134)

2023-10-15 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/69134 None >From 914b3424d93f985c34ddc4180ff6271c8145e4ac Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 11 Oct 2023 19:25:33 -0400 Subject: [PATCH] [Driver] Hook up Haiku PowerPC support --- clang/lib/Basic/Targ

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-15 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf updated https://github.com/llvm/llvm-project/pull/68944 >From 2377ab2b9865d8f152996fd38f6b543767f8c2ae Mon Sep 17 00:00:00 2001 From: Freddy Ye Date: Wed, 11 Oct 2023 14:09:02 +0800 Subject: [PATCH 1/3] Add USER_MSR instructions. For more details about this instru

[clang-tools-extra] [clang-tidy][modernize-loop-convert]check isDependentSizedArrayType (PR #69062)

2023-10-15 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/69062 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 5ae5af1 - [clang-tidy][modernize-loop-convert]check isDependentSizedArrayType (#69062)

2023-10-15 Thread via cfe-commits
Author: Congcong Cai Date: 2023-10-16T09:02:53+08:00 New Revision: 5ae5af1d7c60ac10d91573d251c2d81083cd6ada URL: https://github.com/llvm/llvm-project/commit/5ae5af1d7c60ac10d91573d251c2d81083cd6ada DIFF: https://github.com/llvm/llvm-project/commit/5ae5af1d7c60ac10d91573d251c2d81083cd6ada.diff

[clang] [analyzer] Trust base to derived casts for dynamic types (PR #69057)

2023-10-15 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: This patch makes me think whether we actually respect final on methods/classes to avoid unnecessary bifurcation on virtual calls. We probably do not. https://github.com/llvm/llvm-project/pull/69057 ___ cfe-commits mailing list cfe-co

[clang] [analyzer] Trust base to derived casts for dynamic types (PR #69057)

2023-10-15 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. Added some nits inline, overall, it looks good to me. https://github.com/llvm/llvm-project/pull/69057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [analyzer] Trust base to derived casts for dynamic types (PR #69057)

2023-10-15 Thread Gábor Horváth via cfe-commits
@@ -609,9 +617,13 @@ storeWhenMoreInformative(ProgramStateRef &State, SymbolRef Sym, /// symbol and the destination type of the cast are unrelated, report an error. void DynamicTypePropagation::checkPostStmt(const CastExpr *CE, Checke

[clang] [analyzer] Trust base to derived casts for dynamic types (PR #69057)

2023-10-15 Thread Gábor Horváth via cfe-commits
@@ -392,19 +393,26 @@ void DynamicTypePropagation::checkPostCall(const CallEvent &Call, } } -/// TODO: Handle explicit casts. -/// Handle C++ casts. -/// -/// Precondition: the cast is between ObjCObjectPointers. ExplodedNode *DynamicTypePropagation::dynamicTypePropa

[clang] [analyzer] Trust base to derived casts for dynamic types (PR #69057)

2023-10-15 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun edited https://github.com/llvm/llvm-project/pull/69057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D155850: [HIP][Clang][CodeGen][RFC] Add codegen support for C++ Parallel Algorithm Offload

2023-10-15 Thread Alex Voicu via Phabricator via cfe-commits
AlexVlx updated this revision to Diff 557712. AlexVlx edited the summary of this revision. AlexVlx added a comment. Rebase. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D155850/new/ https://reviews.llvm.org/D155850 Files: clang/lib/CodeGen/BackendUtil.cpp clang/lib/CodeGen/CGBuilti

[clang-tools-extra] [clang-tidy][modernize-loop-convert]check isDependentSizedArrayType (PR #69062)

2023-10-15 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/69062 >From bfeaa2eeaa3d20e1919288bcf1027ec196378236 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sun, 15 Oct 2023 00:20:08 +0800 Subject: [PATCH 1/3] [clang-tidy][modernize-loop-convert]check isDependentSize

[clang-tools-extra] [clang-tidy][modernize-loop-convert]check isDependentSizedArrayType (PR #69062)

2023-10-15 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/69062 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][modernize-loop-convert]check isDependentSizedArrayType (PR #69062)

2023-10-15 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/69062 >From bfeaa2eeaa3d20e1919288bcf1027ec196378236 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sun, 15 Oct 2023 00:20:08 +0800 Subject: [PATCH 1/3] [clang-tidy][modernize-loop-convert]check isDependentSize

[clang] [Driver][DragonFly] Fixes for linker path and command-line option handling (PR #69095)

2023-10-15 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/69095 >From a8ff33aecfbcb130e4d47fd099e02f5f40f433ea Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 15 Oct 2023 04:00:56 -0400 Subject: [PATCH] [Driver][DragonFly] Fixes for linker path and command-line option hand

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Brad Smith via cfe-commits
https://github.com/brad0 approved this pull request. https://github.com/llvm/llvm-project/pull/69120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Brad Smith via cfe-commits
brad0 wrote: OpenBSD has a -Z flag for our BFD linker. ```-ZProduce 'Standard' executables, disables Writable XOR Executable features in resulting binaries.``` https://github.com/openbsd/src/commit/0abdc3723b5d33dde698ab941325edec2819c128 https://github.com/openbsd/src/commit/58cb06583

[clang] [clang] Add /Zc:__STDC__ flag to clang-cl (PR #68690)

2023-10-15 Thread via cfe-commits
https://github.com/xbjfk updated https://github.com/llvm/llvm-project/pull/68690 >From a89bee09fa7564f336886ff0eb76987b939c0c2c Mon Sep 17 00:00:00 2001 From: Reagan Bohan Date: Sun, 15 Oct 2023 23:26:02 + Subject: [PATCH] [clang] Add /Zc:__STDC__ flag to clang-cl This commit adds the /Zc:_

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-10-15 Thread Amir Ayupov via cfe-commits
https://github.com/aaupov updated https://github.com/llvm/llvm-project/pull/69133 >From 96e644279ccec1970c42cca89c05aac186b872e6 Mon Sep 17 00:00:00 2001 From: Amir Aupov Date: Mon, 16 Oct 2023 01:08:28 +0200 Subject: [PATCH] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options

[PATCH] D143617: [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options

2023-10-15 Thread Amir Ayupov via Phabricator via cfe-commits
Amir abandoned this revision. Amir added a comment. Migrated to https://github.com/llvm/llvm-project/pull/69133 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D143617/new/ https://reviews.llvm.org/D143617

[PATCH] D149867: [Clang][M68k] Add Clang support for the new M68k_RTD CC

2023-10-15 Thread Min-Yih Hsu via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGfd4f96290ac9: [Clang][M68k] Add Clang support for the new M68k_RTD

[clang] fd4f962 - [Clang][M68k] Add Clang support for the new M68k_RTD CC

2023-10-15 Thread Min-Yih Hsu via cfe-commits
Author: Min-Yih Hsu Date: 2023-10-15T16:13:43-07:00 New Revision: fd4f96290ac99bf8b9284d3b32743cac0bb135ea URL: https://github.com/llvm/llvm-project/commit/fd4f96290ac99bf8b9284d3b32743cac0bb135ea DIFF: https://github.com/llvm/llvm-project/commit/fd4f96290ac99bf8b9284d3b32743cac0bb135ea.diff L

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-10-15 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 7f881a2abe2c3eceeae0272fc41ba0a237770450..3987088f1b6f6b895f7563ad70c97074b0d4ded0 clang/

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amir Ayupov (aaupov) Changes Split up and refactor CLANG_BOLT_INSTRUMENT into support for perf no-LBR and perf with LBR profiling modes. Differential Revision: https://reviews.llvm.org/D143617 --- Full diff: https://github.com/llvm/llvm-

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-10-15 Thread Amir Ayupov via cfe-commits
https://github.com/aaupov created https://github.com/llvm/llvm-project/pull/69133 Split up and refactor CLANG_BOLT_INSTRUMENT into support for perf no-LBR and perf with LBR profiling modes. Differential Revision: https://reviews.llvm.org/D143617 >From 3987088f1b6f6b895f7563ad70c97074b0d4ded0

[clang] 7f881a2 - [clang-format] Treat AttributeMacro more like __attribute__

2023-10-15 Thread Owen Pan via cfe-commits
Author: Jared Grubb Date: 2023-10-15T15:58:24-07:00 New Revision: 7f881a2abe2c3eceeae0272fc41ba0a237770450 URL: https://github.com/llvm/llvm-project/commit/7f881a2abe2c3eceeae0272fc41ba0a237770450 DIFF: https://github.com/llvm/llvm-project/commit/7f881a2abe2c3eceeae0272fc41ba0a237770450.diff L

[clang] 6c7cf74 - Revert "[clang-format] Treat AttributeMacro more like __attribute__"

2023-10-15 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2023-10-15T15:52:17-07:00 New Revision: 6c7cf74a75572c3cc5d9979f02b67a7357e9c656 URL: https://github.com/llvm/llvm-project/commit/6c7cf74a75572c3cc5d9979f02b67a7357e9c656 DIFF: https://github.com/llvm/llvm-project/commit/6c7cf74a75572c3cc5d9979f02b67a7357e9c656.diff LOG:

[PATCH] D145262: [clang-format] Treat AttributeMacros more like __attribute__

2023-10-15 Thread Owen Pan via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG6f46bcc609f1: [clang-format] Treat AttributeMacro more like __attribute__ (authored by jaredgrubb, committed by owenpan). Changed prior to commit: https://reviews.llvm.org/D145262?vs=557674&id=557707#to

[clang] 6f46bcc - [clang-format] Treat AttributeMacro more like __attribute__

2023-10-15 Thread Owen Pan via cfe-commits
Author: Jared Grubb Date: 2023-10-15T15:44:57-07:00 New Revision: 6f46bcc609f14121e6942763ba9871f98541ea0e URL: https://github.com/llvm/llvm-project/commit/6f46bcc609f14121e6942763ba9871f98541ea0e DIFF: https://github.com/llvm/llvm-project/commit/6f46bcc609f14121e6942763ba9871f98541ea0e.diff L

[clang] [clang] Fix --entry command line option (PR #69114)

2023-10-15 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,5 @@ +// RUN: %clang -### --entry test %s 2>&1 | FileCheck %s MaskRay wrote: In the absence of `--target=`, the default target triple `LLVM_DEFAULT_TARGET_TRIPLE` is used. The selected `ToolChain` may not run AddLinkerInputs to render `-e`. We shoul

[clang] [clang] Fix --entry command line option (PR #69114)

2023-10-15 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay requested changes to this pull request. The new option (alias) can be unnamed. https://github.com/llvm/llvm-project/pull/69114 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [clang] Fix --entry command line option (PR #69114)

2023-10-15 Thread Sergei Barannikov via cfe-commits
https://github.com/s-barannikov approved this pull request. Thanks, LGTM (Please make sure to edit the description before merging so that `git log` does not contain irrelevant information.) https://github.com/llvm/llvm-project/pull/69114 ___ cfe-commi

[clang] [analyzer][NFC] Remove outdated FIXME comment (PR #68211)

2023-10-15 Thread Balazs Benics via cfe-commits
https://github.com/steakhal commented: LGTM Thanks. https://github.com/llvm/llvm-project/pull/68211 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   >