[clang] [clang][PAC][darwin] Set correct default ptrauth features for arm64e-darwin (PR #153722)

2025-08-14 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt created https://github.com/llvm/llvm-project/pull/153722 This PR makes sure that when targeting arm64e on darwin platforms the correct flags are set for the userspace platform ABI. >From eaeb3b514f56bb7f638712cb938c72de4b17dc14 Mon Sep 17 00:00:00 2001 From: Oliver Hu

[clang] [clang][PAC][darwin] Set correct default ptrauth features for arm64e-darwin (PR #153722)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oliver Hunt (ojhunt) Changes This PR makes sure that when targeting arm64e on darwin platforms the correct flags are set for the userspace platform ABI. --- Full diff: https://github.com/llvm/llvm-project/pull/153722.diff 4 Files Affect

[clang] a1b6e7f - [clang][LoongArch] Ensure `target("lasx")` implies LSX support (#153542)

2025-08-14 Thread via cfe-commits
Author: Ami-zhang Date: 2025-08-15T09:53:08+08:00 New Revision: a1b6e7ff393533a5c4f3bdfd4efe5da106e2de2b URL: https://github.com/llvm/llvm-project/commit/a1b6e7ff393533a5c4f3bdfd4efe5da106e2de2b DIFF: https://github.com/llvm/llvm-project/commit/a1b6e7ff393533a5c4f3bdfd4efe5da106e2de2b.diff LOG

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread via cfe-commits
https://github.com/Ami-zhang closed https://github.com/llvm/llvm-project/pull/153542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [Coroutines] Add llvm.coro.where and drop return value of llvm.coro.end (PR #153404)

2025-08-14 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/153404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [Coroutines] Add llvm.coro.where and drop return value of llvm.coro.end (PR #153404)

2025-08-14 Thread Chuanqi Xu via cfe-commits
@@ -2117,6 +2118,30 @@ Example: %hdl.result = ... ; get address of returned coroutine handle ret ptr %hdl.result +'llvm.coro.where' Intrinsic +^^ +:: + + declare i1 @llvm.coro.where() ChuanqiXu9 wrote: I pr

[clang] [llvm] [mlir] [Coroutines] Add llvm.coro.where and drop return value of llvm.coro.end (PR #153404)

2025-08-14 Thread Chuanqi Xu via cfe-commits
@@ -2117,6 +2118,30 @@ Example: %hdl.result = ... ; get address of returned coroutine handle ret ptr %hdl.result +'llvm.coro.where' Intrinsic +^^ +:: + + declare i1 @llvm.coro.where() + +Overview: +" + +The '``llvm.c

[clang] [llvm] [mlir] [Coroutines] Add llvm.coro.where and drop return value of llvm.coro.end (PR #153404)

2025-08-14 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: Did a quick scanning. It looks good generally. https://github.com/llvm/llvm-project/pull/153404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang][Docs] Update Pointer Authentication documentation (PR #152596)

2025-08-14 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/152596 >From 8776323a7ef1dd625f1fbd02fab912a2dc8e2081 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Thu, 7 Aug 2025 13:42:48 -0700 Subject: [PATCH 1/3] [NFC][Clang][Docs] Update Pointer Authentication documentation

[clang] [Clang][Webassembly] Remove unrachable code in ParseTypeQualifierListOpt (PR #153729)

2025-08-14 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik created https://github.com/llvm/llvm-project/pull/153729 Static analysis flagged this goto as unreachable and indeed it is, so removing it. >From 98ea646f9fb4331f24cb3492338efa0eaca7763b Mon Sep 17 00:00:00 2001 From: Shafik Yaghmour Date: Thu, 14 Aug 2025 19:02:51 -

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-14 Thread Andy MacGregor via cfe-commits
@@ -47,14 +47,21 @@ TEST_F(NumericLiteralInfoTest, IntegerLiteral) { // Hexadecimal. EXPECT_TRUE(verifyInfo(NumericLiteralInfo("0xF"), 1)); EXPECT_TRUE(verifyInfo(NumericLiteralInfo("0XfZ"), 1, npos, npos, 3)); + + // C++ suffixes. + EXPECT_TRUE(verifyInfo(NumericLitera

[clang] [Clang][Webassembly] Remove unrachable code in ParseTypeQualifierListOpt (PR #153729)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shafik Yaghmour (shafik) Changes Static analysis flagged this goto as unreachable and indeed it is, so removing it. --- Full diff: https://github.com/llvm/llvm-project/pull/153729.diff 1 Files Affected: - (modified) clang/lib/Parse/Par

[clang] [llvm] [NVPTX] Consolidate and cleanup various NVPTXISD nodes (NFC) (PR #145581)

2025-08-14 Thread Alex MacLean via cfe-commits
AlexMaclean wrote: @ThomasRaoux thanks for the investigation. Please confirm if https://github.com/llvm/llvm-project/pull/153730 fixes the issue! https://github.com/llvm/llvm-project/pull/145581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [NFC][Clang][Docs] Update Pointer Authentication documentation (PR #152596)

2025-08-14 Thread Oliver Hunt via cfe-commits
@@ -255,33 +260,160 @@ signing schema breaks down even more simply: It is important that the signing schema be independently derived at all signing and authentication sites. Preferably, the schema should be hard-coded everywhere it is needed, but at the very least, it must not

[clang] [CIR] Upstream GotoOp (PR #153701)

2025-08-14 Thread via cfe-commits
@@ -433,6 +435,25 @@ mlir::LogicalResult CIRGenFunction::emitReturnStmt(const ReturnStmt &s) { return mlir::success(); } +mlir::LogicalResult CIRGenFunction::emitGotoStmt(const clang::GotoStmt &s) { + // FIXME: LLVM codegen inserts emit stop point here for debug info + //

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread via cfe-commits
azuresky01 wrote: Can it be backported to LLVM 21? https://github.com/llvm/llvm-project/pull/153542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-08-14 Thread Wael Yehia via cfe-commits
w2yehia wrote: I mistakenly thought ifunc can be forward declared with enough information to indicate it's an ifunc, so that all callsites of ifunc can be converted to indirect calls through the function descriptor (which is something that was planned as an immediate next step after this PR or

[clang] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-08-14 Thread Fangrui Song via cfe-commits
@@ -397,6 +399,98 @@ void llvm::embedBufferInModule(Module &M, MemoryBufferRef Buf, appendToCompilerUsed(M, GV); } +void llvm::lowerIFuncsOnAIX(Module &M) { MaskRay wrote: Should not introduce new target-specific intrinsic uses in lib/Transform. I think t

[clang] [Headers][X86] Remove duplicate __v8hu, NFCI (PR #153734)

2025-08-14 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/153734 Newly added in xmmintrin.h by c8312bdd1665225c585dd2b0bff5e46d569edd45 >From 40265a5b25d3bed04e99532b7202945f08c95dd8 Mon Sep 17 00:00:00 2001 From: "Wang, Phoebe" Date: Fri, 15 Aug 2025 11:28:07 +0800 Subje

[clang] [Headers][X86] Remove duplicate __v8hu, NFCI (PR #153734)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Phoebe Wang (phoebewang) Changes Newly added in xmmintrin.h by c8312bdd1665225c585dd2b0bff5e46d569edd45 --- Full diff: https://github.com/llvm/llvm-project/pull/153734.diff 1 Files Affected: - (modified) clang/lib/Headers/emmintri

[clang] [Headers][X86] Remove duplicate __v8hu, NFCI (PR #153734)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Phoebe Wang (phoebewang) Changes Newly added in xmmintrin.h by c8312bdd1665225c585dd2b0bff5e46d569edd45 --- Full diff: https://github.com/llvm/llvm-project/pull/153734.diff 1 Files Affected: - (modified) clang/lib/Headers/emmintrin.h (-

[clang] [llvm] [RISCV] Support Base P RV32/64 Instructions (PR #150379)

2025-08-14 Thread via cfe-commits
realqhc wrote: > I missed this patch in my email. I posted #153458 for the other shift > instructions. I used RVPShiftD_ri instead of RVPShiftD_ri. D would be the > usual suffix for "doubleword" or 64 bits. Thanks, I will modify this patch to include p15-17 using your sugessions after #153629

[clang-tools-extra] [Clangd][NFC] Normalize all file path root names (PR #153736)

2025-08-14 Thread via cfe-commits
https://github.com/EcutAtom336 created https://github.com/llvm/llvm-project/pull/153736 Normalize all file path root names in GlobalChanges to uppercase to avoid case-sensitive copying on Windows. This will cause vscode-clangd to be unable to rename symbols (renaming cannot apply modifications

[clang-tools-extra] [Clangd][NFC] Normalize all file path root names (PR #153736)

2025-08-14 Thread via cfe-commits
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

[clang-tools-extra] [Clangd][NFC] Normalize all file path root names (PR #153736)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: zhujiatao (EcutAtom336) Changes Normalize all file path root names in GlobalChanges to uppercase to avoid case-sensitive copying on Windows. This will cause vscode-clangd to be unable to rename symbols (renaming cannot apply modification

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread via cfe-commits
Ami-zhang wrote: > Can it be backported to LLVM 21? Yes. https://github.com/llvm/llvm-project/pull/153542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread via cfe-commits
https://github.com/Ami-zhang milestoned https://github.com/llvm/llvm-project/pull/153542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread via cfe-commits
Ami-zhang wrote: /cherry-pick 793a6b4fd402c929e04f9da407fe4491d5d9d22e a1b6e7ff393533a5c4f3bdfd4efe5da106e2de2b https://github.com/llvm/llvm-project/pull/153542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#153739 https://github.com/llvm/llvm-project/pull/153542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Retrieve documentation for member function instance from index (PR #153337)

2025-08-14 Thread Nathan Ridge via cfe-commits
@@ -1887,7 +1887,19 @@ class CodeCompleteFlow { for (auto &Cand : C.first) { if (Cand.SemaResult && Cand.SemaResult->Kind == CodeCompletionResult::RK_Declaration) { -auto ID = clangd::getSymbolID(Cand.SemaResult->getDeclaration()); +

[clang] [clang] Allow no trivial before C++ module directive (PR #153641)

2025-08-14 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/153641 >From 62ab3571fd1c528bab72193deaf0171028d4bb39 Mon Sep 17 00:00:00 2001 From: yronglin Date: Fri, 15 Aug 2025 02:12:23 +0800 Subject: [PATCH 1/2] [clang] Allow no trivial before C++ module directive Signed-off

[clang] [clang] Allow no trivial before C++ module directive (PR #153641)

2025-08-14 Thread via cfe-commits
@@ -0,0 +1,388 @@ +//===--- TrivialDirectiveTracer.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

[clang] [clang] Allow no trivial before C++ module directive (PR #153641)

2025-08-14 Thread via cfe-commits
@@ -1682,3 +1688,37 @@ const char *Preprocessor::getCheckPoint(FileID FID, const char *Start) const { return nullptr; } + +/// Whether allow C++ module directive. +bool Preprocessor::hasSeenNoTrivialPPDirective() const { + return DirTracer && DirTracer->hasSeenNoTrivialPPD

[clang] [clang] Allow no trivial before C++ module directive (PR #153641)

2025-08-14 Thread via cfe-commits
https://github.com/yronglin edited https://github.com/llvm/llvm-project/pull/153641 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Retrieve documentation for member function instance from index (PR #153337)

2025-08-14 Thread Younan Zhang via cfe-commits
@@ -1887,7 +1887,19 @@ class CodeCompleteFlow { for (auto &Cand : C.first) { if (Cand.SemaResult && Cand.SemaResult->Kind == CodeCompletionResult::RK_Declaration) { -auto ID = clangd::getSymbolID(Cand.SemaResult->getDeclaration()); +

[clang-tools-extra] [clangd] Retrieve documentation for member function instance from index (PR #153337)

2025-08-14 Thread Younan Zhang via cfe-commits
@@ -1887,7 +1887,19 @@ class CodeCompleteFlow { for (auto &Cand : C.first) { if (Cand.SemaResult && Cand.SemaResult->Kind == CodeCompletionResult::RK_Declaration) { -auto ID = clangd::getSymbolID(Cand.SemaResult->getDeclaration()); +

[clang-tools-extra] [Clangd][NFC] Normalize all file path root names (PR #153736)

2025-08-14 Thread via cfe-commits
https://github.com/EcutAtom336 updated https://github.com/llvm/llvm-project/pull/153736 >From 0a478fdde90e4b02aa349ca62073d51871875af3 Mon Sep 17 00:00:00 2001 From: zhujiatao <1975841...@qq.com> Date: Fri, 15 Aug 2025 11:23:01 +0800 Subject: [PATCH] [Clangd][NFC] Normalize all file path root na

<    1   2   3   4   5