[clang] a07dbf1 - [clang][NFC] Annotate `PrettyPrinter.h` with `preferred_type`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T10:58:27+03:00 New Revision: a07dbf1fb0f4ba36911233c82914a9ddf3eb4a09 URL: https://github.com/llvm/llvm-project/commit/a07dbf1fb0f4ba36911233c82914a9ddf3eb4a09 DIFF: https://github.com/llvm/llvm-project/commit/a07dbf1fb0f4ba36911233c82914a9ddf3eb4a09.

[clang] c032225 - [clang][NFC] Annotate `RawCommentList.h` with `preferred_type`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T10:43:53+03:00 New Revision: c032225bfcac9322661fac8c943a63ba70eb0e19 URL: https://github.com/llvm/llvm-project/commit/c032225bfcac9322661fac8c943a63ba70eb0e19 DIFF: https://github.com/llvm/llvm-project/commit/c032225bfcac9322661fac8c943a63ba70eb0e19.

[clang] acb714c - [clang][NFC] Annotate `DeclTemplate.h` with `preferred_type`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T10:35:53+03:00 New Revision: acb714c10126192a2ead8b7fd3d5e16e4653d656 URL: https://github.com/llvm/llvm-project/commit/acb714c10126192a2ead8b7fd3d5e16e4653d656 DIFF: https://github.com/llvm/llvm-project/commit/acb714c10126192a2ead8b7fd3d5e16e4653d656.

[clang] f1fdbcb - [clang]]NFC] Annotate `DeclObjC.h` with `preferred_type`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T10:28:58+03:00 New Revision: f1fdbcba5fc0f88a481f105c2a16f56db0dd2940 URL: https://github.com/llvm/llvm-project/commit/f1fdbcba5fc0f88a481f105c2a16f56db0dd2940 DIFF: https://github.com/llvm/llvm-project/commit/f1fdbcba5fc0f88a481f105c2a16f56db0dd2940.

[clang] 13023ed - [clang][NFC] Annotate `DeclFriend.h` with `preferred_type`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T10:18:30+03:00 New Revision: 13023ed1d606a6e4a7c2590e1b698593bc317a61 URL: https://github.com/llvm/llvm-project/commit/13023ed1d606a6e4a7c2590e1b698593bc317a61 DIFF: https://github.com/llvm/llvm-project/commit/13023ed1d606a6e4a7c2590e1b698593bc317a61.

[clang] 61d17b1 - [clang][NFC] Annotate `DeclCXX.h` with `preferred_type`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T10:14:49+03:00 New Revision: 61d17b116880b34b6639e2780b9d46865d811be2 URL: https://github.com/llvm/llvm-project/commit/61d17b116880b34b6639e2780b9d46865d811be2 DIFF: https://github.com/llvm/llvm-project/commit/61d17b116880b34b6639e2780b9d46865d811be2.

[clang] [clang] Change representation of CurLexerKind (PR #70381)

2023-11-05 Thread via cfe-commits
https://github.com/serge-sans-paille closed https://github.com/llvm/llvm-project/pull/70381 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 95dd178 - [clang] Change representation of CurLexerKind (#70381)

2023-11-05 Thread via cfe-commits
Author: serge-sans-paille Date: 2023-11-06T07:13:05Z New Revision: 95dd17848383315050a5d64051bd695d0a653c51 URL: https://github.com/llvm/llvm-project/commit/95dd17848383315050a5d64051bd695d0a653c51 DIFF: https://github.com/llvm/llvm-project/commit/95dd17848383315050a5d64051bd695d0a653c51.diff

[clang] a5d2570 - [clang][NFC] Annotate ``DependentDiagnostic.h` with `preferred_type`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T10:04:21+03:00 New Revision: a5d25708616d692592e705a0913afd78237698af URL: https://github.com/llvm/llvm-project/commit/a5d25708616d692592e705a0913afd78237698af DIFF: https://github.com/llvm/llvm-project/commit/a5d25708616d692592e705a0913afd78237698af.

[clang] 421d6cc - [clang][NFC] Annotate `CXXInheritance.h` with `preferred_type`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T10:00:42+03:00 New Revision: 421d6ccc4c663b90aa03be7b7598fff50478e997 URL: https://github.com/llvm/llvm-project/commit/421d6ccc4c663b90aa03be7b7598fff50478e997 DIFF: https://github.com/llvm/llvm-project/commit/421d6ccc4c663b90aa03be7b7598fff50478e997.

[clang] 24faf3b - [clang][NFC] Annotate `Attr.h` with `preferred_type`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T09:58:02+03:00 New Revision: 24faf3b0b8e9b68304d9dd87c63afd5a0e813daa URL: https://github.com/llvm/llvm-project/commit/24faf3b0b8e9b68304d9dd87c63afd5a0e813daa DIFF: https://github.com/llvm/llvm-project/commit/24faf3b0b8e9b68304d9dd87c63afd5a0e813daa.

[clang] [Driver][LTO] Copy fix empty stats filename to AVR, FreeBSD, Fuchsia (PR #71359)

2023-11-05 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/71359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1881832 - [Driver][LTO] Copy fix empty stats filename to AVR, FreeBSD, Fuchsia (#71359)

2023-11-05 Thread via cfe-commits
Author: Brad Smith Date: 2023-11-06T01:56:27-05:00 New Revision: 1881832994840baa6e42f908b8822ce4d15ab632 URL: https://github.com/llvm/llvm-project/commit/1881832994840baa6e42f908b8822ce4d15ab632 DIFF: https://github.com/llvm/llvm-project/commit/1881832994840baa6e42f908b8822ce4d15ab632.diff LO

[clang] 17db462 - [clang][NFC] Annotate `TemplateBase.h` with `preferred_type`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T09:46:41+03:00 New Revision: 17db462810436e6cb5c422208d0d7718a8adb168 URL: https://github.com/llvm/llvm-project/commit/17db462810436e6cb5c422208d0d7718a8adb168 DIFF: https://github.com/llvm/llvm-project/commit/17db462810436e6cb5c422208d0d7718a8adb168.

[clang] b89aadf - [clang][NFC] Annotate `TemplateName.h` with `preferred_type`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T09:35:57+03:00 New Revision: b89aadf084feb025c2625f7bf7e206d666035ab1 URL: https://github.com/llvm/llvm-project/commit/b89aadf084feb025c2625f7bf7e206d666035ab1 DIFF: https://github.com/llvm/llvm-project/commit/b89aadf084feb025c2625f7bf7e206d666035ab1.

[clang] [Driver][LTO] Copy fix empty stats filename to AVR, FreeBSD, Fuchsia (PR #71359)

2023-11-05 Thread Brad Smith via cfe-commits
brad0 wrote: AIX, AMDGPU, HIPAMD, MinGW There are a few other ToolChains that support LTO linking that I have not touched at the moment. https://github.com/llvm/llvm-project/pull/71359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://l

[clang] [Driver][LTO] Copy fix empty stats filename to AVR, FreeBSD, Fuchsia (PR #71359)

2023-11-05 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/71359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][LTO] Copy fix empty stats filename to AVR, FreeBSD, Fuchsia (PR #71359)

2023-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes Copy 85451f486d8144f8aacd94a47802c77da5a04d27 over to AVR, FreeBSD and Fuchsia. --- Full diff: https://github.com/llvm/llvm-project/pull/71359.diff 4 Files Affected: - (modifi

[clang] [Driver][LTO] Copy fix empty stats filename to AVR, FreeBSD, Fuchsia (PR #71359)

2023-11-05 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/71359 Copy 85451f486d8144f8aacd94a47802c77da5a04d27 over to AVR, FreeBSD and Fuchsia. >From 6578c1955274684350b2a7de3369c4646930ac6b Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 5 Nov 2023 19:29:02 -0500 Subject:

[clang] fb9d124 - [clang][NFC] Clean up commented-out code in `StringLiteral`

2023-11-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T09:20:04+03:00 New Revision: fb9d1243f535a8b678824d2b63d33eb183a7f2bc URL: https://github.com/llvm/llvm-project/commit/fb9d1243f535a8b678824d2b63d33eb183a7f2bc DIFF: https://github.com/llvm/llvm-project/commit/fb9d1243f535a8b678824d2b63d33eb183a7f2bc.

[clang-tools-extra] [libc] [clang] [lldb] [libcxx] [flang] [compiler-rt] [llvm] [PowerPC] Support mcmodel=small/large for AIX (PR #70652)

2023-11-05 Thread Qiu Chaofan via cfe-commits
ecnelises wrote: https://github.com/llvm/llvm-project/issues/71356 to track SPE issue https://github.com/llvm/llvm-project/pull/70652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libc] [clang] [lldb] [libcxx] [flang] [compiler-rt] [llvm] [PowerPC] Support mcmodel=small/large for AIX (PR #70652)

2023-11-05 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises closed https://github.com/llvm/llvm-project/pull/70652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4704eaf - [PowerPC] Support more mcmodel options for AIX (#70652)

2023-11-05 Thread via cfe-commits
Author: Qiu Chaofan Date: 2023-11-06T13:24:07+08:00 New Revision: 4704eaf234c3c30117caacd7b073d6dd63fd0f65 URL: https://github.com/llvm/llvm-project/commit/4704eaf234c3c30117caacd7b073d6dd63fd0f65 DIFF: https://github.com/llvm/llvm-project/commit/4704eaf234c3c30117caacd7b073d6dd63fd0f65.diff L

[clang-tools-extra] [libc] [clang] [lldb] [libcxx] [flang] [compiler-rt] [llvm] [PowerPC] Support mcmodel=small/large for AIX (PR #70652)

2023-11-05 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises edited https://github.com/llvm/llvm-project/pull/70652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [Coroutines] Introduce [[clang::coro_only_destroy_when_complete]] (PR #71014)

2023-11-05 Thread via cfe-commits
https://github.com/h-vetinari commented: There is substantial inconsistency between "coro only destroy when complete" and "... when done" throughout the PR (in various forms; e.g. literal strings, snake_case, CamelCase, ALL_CAPS as well as file names). Presumably there should only be one spell

[clang] [clang-format] Add space in Verilog tagged unions (PR #71354)

2023-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (sstwcw) Changes In a tagged union expression, there should be a space between the field name and the data. Previously, the tag could be recognized as part of a dotted identifier or a struct literal, and the space would be om

[clang] [clang-format] Add space in Verilog tagged unions (PR #71354)

2023-11-05 Thread via cfe-commits
https://github.com/sstwcw created https://github.com/llvm/llvm-project/pull/71354 In a tagged union expression, there should be a space between the field name and the data. Previously, the tag could be recognized as part of a dotted identifier or a struct literal, and the space would be omitt

[clang] [clang-format] Stop breaking unbreakable strings in JS (PR #66168)

2023-11-05 Thread via cfe-commits
sstwcw wrote: > Here are string literal context from closure - This still misses contexts > when string literal is required, for example > https://github.com/search?q=repo%3Agoogle%2Fclosure-compiler%20%22%20must%20be%20a%20string%20literal%22&type=code > > I wonder, if splitting the literal w

[clang] [clang-format] Indent Verilog case statements with comments (PR #71353)

2023-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (sstwcw) Changes If a line contains a comment outside of (fake) parentheses, the part following it is indented according to `CurrentState.Indent`. A Verilog case label and the statement that follows are broken with mustBreakB

[clang] [clang-format] Add spaces around the Verilog implication operator (PR #71352)

2023-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (sstwcw) Changes The Verilog implication operator `->` is a binary operator meaning either the left hand side is false or the right hand side is true. Previously it was treated as the C++ struct member operator. I didn't even

[clang] [clang-format] Indent Verilog case statements with comments (PR #71353)

2023-11-05 Thread via cfe-commits
https://github.com/sstwcw created https://github.com/llvm/llvm-project/pull/71353 If a line contains a comment outside of (fake) parentheses, the part following it is indented according to `CurrentState.Indent`. A Verilog case label and the statement that follows are broken with mustBreakBefo

[clang] [clang-format] Add spaces around the Verilog implication operator (PR #71352)

2023-11-05 Thread via cfe-commits
https://github.com/sstwcw created https://github.com/llvm/llvm-project/pull/71352 The Verilog implication operator `->` is a binary operator meaning either the left hand side is false or the right hand side is true. Previously it was treated as the C++ struct member operator. I didn't even kn

[llvm] [clang] [clang-tools-extra] [Clang][Sema] Skip RecordDecl when checking scope of declarations (PR #69432)

2023-11-05 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises edited https://github.com/llvm/llvm-project/pull/69432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang] [llvm] [Clang][Sema] Skip RecordDecl when checking scope of declarations (PR #69432)

2023-11-05 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises edited https://github.com/llvm/llvm-project/pull/69432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang] [llvm] [Clang][Sema] Skip RecordDecl when checking scope of declarations (PR #69432)

2023-11-05 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises closed https://github.com/llvm/llvm-project/pull/69432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 267a437 - [Clang][Sema] Skip RecordDecl when checking scope of declarations (#69432)

2023-11-05 Thread via cfe-commits
Author: Qiu Chaofan Date: 2023-11-06T11:54:51+08:00 New Revision: 267a437920904723360cb2837172bd776db73057 URL: https://github.com/llvm/llvm-project/commit/267a437920904723360cb2837172bd776db73057 DIFF: https://github.com/llvm/llvm-project/commit/267a437920904723360cb2837172bd776db73057.diff L

[clang-tools-extra] [clang] [llvm] [Clang][Sema] Skip RecordDecl when checking scope of declarations (PR #69432)

2023-11-05 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises edited https://github.com/llvm/llvm-project/pull/69432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [flang] [libcxx] [libc] [lldb] [clang-tools-extra] [clang] [llvm] [PowerPC] Support mcmodel=large for AIX (PR #70652)

2023-11-05 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 approved this pull request. @ecnelises Let's first fix this for AIX. Could you please help to create a github issue for the SPE? Thanks. https://github.com/llvm/llvm-project/pull/70652 ___ cfe-commits mailing list cfe-

[compiler-rt] [flang] [libcxx] [libc] [lldb] [clang-tools-extra] [clang] [llvm] [PowerPC] Support mcmodel=large for AIX (PR #70652)

2023-11-05 Thread Chen Zheng via cfe-commits
@@ -5723,16 +5723,14 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (Arg *A = Args.getLastArg(options::OPT_mcmodel_EQ)) { StringRef CM = A->getValue(); bool Ok = false; -if (Triple.isOSAIX() && CM == "medium") { +if (Triple.isOSAIX() && C

[clang] [llvm] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Shao-Ce SUN via cfe-commits
https://github.com/sunshaoce closed https://github.com/llvm/llvm-project/pull/71140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fbdf6e2 - [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (#71140)

2023-11-05 Thread via cfe-commits
Author: Shao-Ce SUN Date: 2023-11-06T11:22:14+08:00 New Revision: fbdf6e2724e11baa4441cd053804fb2d2375817a URL: https://github.com/llvm/llvm-project/commit/fbdf6e2724e11baa4441cd053804fb2d2375817a DIFF: https://github.com/llvm/llvm-project/commit/fbdf6e2724e11baa4441cd053804fb2d2375817a.diff L

[compiler-rt] [llvm] [clang-tools-extra] [clang] [flang] [lldb] [mlir] [libcxx] [mlir] Prepare convert-gpu-to-spirv for OpenCL support (PR #69941)

2023-11-05 Thread Lei Zhang via cfe-commits
antiagainst wrote: > @antiagainst @joker-eph Can someone merge this PR? Thanks in advance. Done. Thanks for the contribution again! https://github.com/llvm/llvm-project/pull/69941 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[compiler-rt] [llvm] [clang-tools-extra] [clang] [flang] [lldb] [mlir] [libcxx] [mlir] Prepare convert-gpu-to-spirv for OpenCL support (PR #69941)

2023-11-05 Thread Lei Zhang via cfe-commits
https://github.com/antiagainst closed https://github.com/llvm/llvm-project/pull/69941 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [llvm] [clang-tools-extra] [clang] [flang] [libc] [mlir] [libcxx] [mlir][spirv] Implement gpu::TargetAttrInterface (PR #69949)

2023-11-05 Thread Lei Zhang via cfe-commits
@@ -15,6 +15,7 @@ #include "Utils.h" #include "mlir/Dialect/GPU/IR/GPUDialect.h" +#include "mlir/Dialect/SPIRV/IR/SPIRVAttributes.h" antiagainst wrote: SG. Thanks @jpienaar & @fabianmcg! https://github.com/llvm/llvm-project/pull/69949 ___

[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/71140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Shao-Ce SUN via cfe-commits
https://github.com/sunshaoce updated https://github.com/llvm/llvm-project/pull/71140 >From d8d0fcdd00b422e48af733ef638fe9857a05686e Mon Sep 17 00:00:00 2001 From: Shao-Ce SUN Date: Fri, 3 Nov 2023 11:50:58 +0800 Subject: [PATCH 1/6] [RISCV][Clang] Add bf16-type vector support for RVV --- clan

[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Craig Topper via cfe-commits
https://github.com/topperc edited https://github.com/llvm/llvm-project/pull/71140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Craig Topper via cfe-commits
@@ -6046,6 +6046,12 @@ void Sema::checkRVVTypeSupport(QualType Ty, SourceLocation Loc, Decl *D) { !TI.hasFeature("zvfh") && !TI.hasFeature("zvfhmin")) Diag(Loc, diag::err_riscv_type_requires_extension, D) << Ty << "zvfh or zvfhmin"; + // Check if enabled zvf

[clang-tools-extra] [llvm] [lldb] [clang] [flang] [IndVars] Add check of loop invariant for trunc instructions (PR #71072)

2023-11-05 Thread via cfe-commits
vfdff wrote: LGTM https://github.com/llvm/llvm-project/pull/71072 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Shao-Ce SUN via cfe-commits
https://github.com/sunshaoce updated https://github.com/llvm/llvm-project/pull/71140 >From d8d0fcdd00b422e48af733ef638fe9857a05686e Mon Sep 17 00:00:00 2001 From: Shao-Ce SUN Date: Fri, 3 Nov 2023 11:50:58 +0800 Subject: [PATCH 1/5] [RISCV][Clang] Add bf16-type vector support for RVV --- clan

[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Shao-Ce SUN via cfe-commits
@@ -6046,6 +6046,13 @@ void Sema::checkRVVTypeSupport(QualType Ty, SourceLocation Loc, Decl *D) { !TI.hasFeature("zvfh") && !TI.hasFeature("zvfhmin")) Diag(Loc, diag::err_riscv_type_requires_extension, D) << Ty << "zvfh or zvfhmin"; + // Check if enabled zfb

[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Shao-Ce SUN via cfe-commits
https://github.com/sunshaoce updated https://github.com/llvm/llvm-project/pull/71140 >From d8d0fcdd00b422e48af733ef638fe9857a05686e Mon Sep 17 00:00:00 2001 From: Shao-Ce SUN Date: Fri, 3 Nov 2023 11:50:58 +0800 Subject: [PATCH 1/4] [RISCV][Clang] Add bf16-type vector support for RVV --- clan

[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Craig Topper via cfe-commits
@@ -6046,6 +6046,13 @@ void Sema::checkRVVTypeSupport(QualType Ty, SourceLocation Loc, Decl *D) { !TI.hasFeature("zvfh") && !TI.hasFeature("zvfhmin")) Diag(Loc, diag::err_riscv_type_requires_extension, D) << Ty << "zvfh or zvfhmin"; + // Check if enabled zfb

[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Shao-Ce SUN via cfe-commits
sunshaoce wrote: > I believe we need to update `Sema::checkRVVTypeSupport` too Addressed. https://github.com/llvm/llvm-project/pull/71140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Shao-Ce SUN via cfe-commits
https://github.com/sunshaoce updated https://github.com/llvm/llvm-project/pull/71140 >From d8d0fcdd00b422e48af733ef638fe9857a05686e Mon Sep 17 00:00:00 2001 From: Shao-Ce SUN Date: Fri, 3 Nov 2023 11:50:58 +0800 Subject: [PATCH 1/3] [RISCV][Clang] Add bf16-type vector support for RVV --- clan

[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

2023-11-05 Thread Shao-Ce SUN via cfe-commits
https://github.com/sunshaoce edited https://github.com/llvm/llvm-project/pull/71140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [PowerPC] Add an alias for -mregnames so that full register names used in assembly. (PR #70255)

2023-11-05 Thread Chen Zheng via cfe-commits
@@ -197,6 +197,7 @@ CODEGENOPT(HIPCorrectlyRoundedDivSqrt, 1, 1) ///< -fno-hip-fp32-correctly-rounde CODEGENOPT(HIPSaveKernelArgName, 1, 0) ///< Set when -fhip-kernel-arg-name is enabled. CODEGENOPT(UniqueInternalLinkageNames, 1, 0) ///< Internal Linkage symbols get unique na

[clang] [llvm] [PowerPC] Add an alias for -mregnames so that full register names used in assembly. (PR #70255)

2023-11-05 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 edited https://github.com/llvm/llvm-project/pull/70255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [PowerPC] Add an alias for -mregnames so that full register names used in assembly. (PR #70255)

2023-11-05 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 approved this pull request. Thanks for adding this. LGTM https://github.com/llvm/llvm-project/pull/70255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [libclang/python] Expose Rewriter to the libclang python binding. (PR #71341)

2023-11-05 Thread Jimmy Z via cfe-commits
https://github.com/jimmy-zx updated https://github.com/llvm/llvm-project/pull/71341 >From 887751e365ca72515679f61d0734b1631ac38335 Mon Sep 17 00:00:00 2001 From: Jimmy Z <51149050+jimmy...@users.noreply.github.com> Date: Mon, 6 Nov 2023 00:25:39 + Subject: [PATCH 1/5] [libclang/python] Expos

[clang] [X86] Add a EVEX256 macro to match with GCC and MSVC (PR #71317)

2023-11-05 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/71317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-11-05 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

[lldb] [clang-tools-extra] [clang] [llvm] [flang] [IndVars] Add check of loop invariant for trunc instructions (PR #71072)

2023-11-05 Thread via cfe-commits
@@ -0,0 +1,28 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py +; RUN: opt < %s -passes=indvars -S | FileCheck %s + +declare void @foo(i16 noundef) + +; Function Attrs: mustprogress noreturn uwtable +define void @bar(i64 noundef %ptr) { +; CHECK-LABEL:

[PATCH] D154396: [clang] Add support for SerenityOS

2023-11-05 Thread Andrew Kaster via Phabricator via cfe-commits
ADKaster updated this revision to Diff 558012. ADKaster added a comment. Add more tests and remove items per comments More tests for crt*, eh-frame-hdr, stdlib arguments remove /usr/local/include remove -fno-use-init-array claim stdlib= args remove -nopie I hope that the new tests are more robus

[mlir] [openmp] [llvm] [clang] [OpenMP] Introduce the KernelLaunchEnvironment as implicit argument (PR #70401)

2023-11-05 Thread via cfe-commits
ronlieb wrote: performance degradation observed for this patch on trunk build : hpc2021 8 mpi210's reference run 518.tealeaf 10.8% 534.hpgmg7.3% https://github.com/llvm/llvm-project/pull/70401 ___ cfe-commits mailing list cfe-commits@lists.ll

[clang] [libclang/python] Expose Rewriter to the libclang python binding. (PR #71341)

2023-11-05 Thread Jimmy Z via cfe-commits
https://github.com/jimmy-zx updated https://github.com/llvm/llvm-project/pull/71341 >From 887751e365ca72515679f61d0734b1631ac38335 Mon Sep 17 00:00:00 2001 From: Jimmy Z <51149050+jimmy...@users.noreply.github.com> Date: Mon, 6 Nov 2023 00:25:39 + Subject: [PATCH 1/4] [libclang/python] Expos

[PATCH] D154396: [clang] Add support for SerenityOS

2023-11-05 Thread Andrew Kaster via Phabricator via cfe-commits
ADKaster added inline comments. Comment at: clang/lib/Driver/ToolChains/Serenity.cpp:76 + if (!IsStatic || IsStaticPIE) +CmdArgs.push_back("--eh-frame-hdr"); + MaskRay wrote: > ADKaster wrote: > > MaskRay wrote: > > > This is not tested > > Hm. this also see

[libunwind] [llvm] [clang-tools-extra] [clang] [libcxx] [libc++] Allow running the test suite with optimizations (PR #68753)

2023-11-05 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 e3c2eacfd8b95346cfa4e71ba08b91cab124047b 8499198a4d7b3b1e269f843ee71108cb6d7fc03c --

[clang] [libclang/python] Expose Rewriter to the libclang python binding. (PR #71341)

2023-11-05 Thread Jimmy Z via cfe-commits
https://github.com/jimmy-zx updated https://github.com/llvm/llvm-project/pull/71341 >From 887751e365ca72515679f61d0734b1631ac38335 Mon Sep 17 00:00:00 2001 From: Jimmy Z <51149050+jimmy...@users.noreply.github.com> Date: Mon, 6 Nov 2023 00:25:39 + Subject: [PATCH 1/3] [libclang/python] Expos

[clang] [libclang/python] Expose Rewriter to the libclang python binding. (PR #71341)

2023-11-05 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 cf7d4f543c73c2707e0c53bae1e7b8419e12b871..887751e365ca72515679f61d0734b1631ac38335 clang/

[clang-tools-extra] [llvm] [clang] [InstCombine] Convert or concat to fshl if opposite or concat exists (PR #68502)

2023-11-05 Thread via cfe-commits
HaohaiWen wrote: > > Any more comments? I'd like to merge it if no objection. > > I think there are outstanding objections, or at least blocking concerns from > nikic. gentle ping @nikic https://github.com/llvm/llvm-project/pull/68502 ___ cfe-co

[clang] [libclang/python] Expose Rewriter to the libclang python binding. (PR #71341)

2023-11-05 Thread Jimmy Z via cfe-commits
https://github.com/jimmy-zx edited https://github.com/llvm/llvm-project/pull/71341 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [libcxx] [clang] [libunwind] [libc++] Allow running the test suite with optimizations (PR #68753)

2023-11-05 Thread Louis Dionne via cfe-commits
https://github.com/ldionne updated https://github.com/llvm/llvm-project/pull/68753 >From 9824ef111975386152173916c1fd6a85264be0a0 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Tue, 10 Oct 2023 16:35:11 -0700 Subject: [PATCH 1/5] [libc++] Allow running the test suite with optimizations This

[clang] [libclang/python] Expose Rewriter to the libclang python binding. (PR #71341)

2023-11-05 Thread Jimmy Z via cfe-commits
https://github.com/jimmy-zx updated https://github.com/llvm/llvm-project/pull/71341 >From 887751e365ca72515679f61d0734b1631ac38335 Mon Sep 17 00:00:00 2001 From: Jimmy Z <51149050+jimmy...@users.noreply.github.com> Date: Mon, 6 Nov 2023 00:25:39 + Subject: [PATCH 1/2] [libclang/python] Expos

[PATCH] D154396: [clang] Add support for SerenityOS

2023-11-05 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added inline comments. Comment at: clang/lib/Driver/ToolChains/Serenity.cpp:76 + if (!IsStatic || IsStaticPIE) +CmdArgs.push_back("--eh-frame-hdr"); + ADKaster wrote: > MaskRay wrote: > > This is not tested > Hm. this also seems like incorrect logic.

[clang] [libclang/python] Expose Rewriter to the libclang python binding. (PR #71341)

2023-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jimmy Z (jimmy-zx) Changes Exposes `CXRewriter` API in https://github.com/llvm/llvm-project/commit/69e5abb57b70570cf04671a93246e5e624023650. --- Full diff: https://github.com/llvm/llvm-project/pull/71341.diff 2 Files Affected: - (modif

[clang] [libclang/python] Expose Rewriter to the libclang python binding. (PR #71341)

2023-11-05 Thread Jimmy Z via cfe-commits
https://github.com/jimmy-zx created https://github.com/llvm/llvm-project/pull/71341 Exposes `CXRewriter` API in https://github.com/llvm/llvm-project/commit/69e5abb57b70570cf04671a93246e5e624023650. >From 887751e365ca72515679f61d0734b1631ac38335 Mon Sep 17 00:00:00 2001 From: Jimmy Z <51149050+

[clang] [clang] Allow MCTargetOptions to be parseable by -mllvm. (PR #66347)

2023-11-05 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay requested changes to this pull request. Agree that the motivation should be communicated. Driver options have stronger stability guarantee. If there are sufficient motivation and useful MCTargetOptions that we don't feel comfortable exposing driver options, I think t

[libc] [libcxx] [clang] [libcxxabi] [llvm] [lld] [flang] [clang-tools-extra] [compiler-rt] [libc++] Fix the behavior of throwing `operator new` under -fno-exceptions (PR #69498)

2023-11-05 Thread Louis Dionne via cfe-commits
ldionne wrote: > I think we can check whether it's been overridden more easily using an asm > alias like this (when libc++ is built under -fno-exceptions): This doesn't work on Darwin (apparently we don't support the alias attribute on that platform). I could investigate doing this all non-Dar

[libc] [libcxx] [clang] [libcxxabi] [llvm] [lld] [flang] [clang-tools-extra] [compiler-rt] [libc++] Fix the behavior of throwing `operator new` under -fno-exceptions (PR #69498)

2023-11-05 Thread Louis Dionne via cfe-commits
https://github.com/ldionne updated https://github.com/llvm/llvm-project/pull/69498 >From 77c0256c3ae99808a8def68bfcf5eee2fad704ca Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 14 Jun 2023 17:49:22 -0700 Subject: [PATCH 1/7] [libc++] Fix the behavior of throwing `operator new` under -f

[libcxx] [clang] [llvm] [libc] [clang-tools-extra] [compiler-rt] [flang] [libcxxabi] [lld] [libc++] Fix the behavior of throwing `operator new` under -fno-exceptions (PR #69498)

2023-11-05 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,38 @@ +// -*- 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-

[clang] [clang] Do not pass -canonical-system-headers on Windows by default (PR #71097)

2023-11-05 Thread Fangrui Song via cfe-commits
@@ -1,3 +1,6 @@ +// REQUIRES: !system-windows MaskRay wrote: `UNSUPPORTED: system-windows` https://github.com/llvm/llvm-project/pull/71097 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [clang] Do not pass -canonical-system-headers on Windows by default (PR #71097)

2023-11-05 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/71097 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Do not pass -canonical-system-headers on Windows by default (PR #71097)

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

[clang] [clang] Do not pass -canonical-system-headers on Windows by default (PR #71097)

2023-11-05 Thread Fangrui Song via cfe-commits
@@ -1180,8 +1180,19 @@ void Clang::AddPreprocessingOptions(Compilation &C, const JobAction &JA, if (ArgM->getOption().matches(options::OPT_M) || ArgM->getOption().matches(options::OPT_MD)) CmdArgs.push_back("-sys-header-deps"); + + // #70011: Canonicaliz

[PATCH] D154396: [clang] Add support for SerenityOS

2023-11-05 Thread Andrew Kaster via Phabricator via cfe-commits
ADKaster added inline comments. Comment at: clang/lib/Driver/ToolChains/Serenity.cpp:76 + if (!IsStatic || IsStaticPIE) +CmdArgs.push_back("--eh-frame-hdr"); + MaskRay wrote: > This is not tested Hm. this also seems like incorrect logic. In my next push I wi

[clang] [analyzer][solver] On SymSym RelOps, check EQClass members for contradictions (PR #71284)

2023-11-05 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: I think every time we need to iterate over all member of an equivalence class, we might do something wrong. The point of the equivalence class would be to make sure those elements are equivalent. One way to avoid iteration would be to always use the representative of the equiv

[PATCH] D150083: [clang-format] ObjCPropertyAttributeOrder to sort ObjC property attributes

2023-11-05 Thread Jared Grubb via Phabricator via cfe-commits
jaredgrubb updated this revision to Diff 558010. jaredgrubb added a comment. Adjusting the Style comments, since the behavior changed and were not updated to reflect that leading/trailing comments no longer have special handling. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D150083/new/

[PATCH] D154396: [clang] Add support for SerenityOS

2023-11-05 Thread Andrew Kaster via Phabricator via cfe-commits
ADKaster added inline comments. Comment at: clang/lib/Driver/ToolChains/Serenity.cpp:202 + addSystemInclude(DriverArgs, CC1Args, + concat(D.SysRoot, "/usr/local/include")); + addSystemInclude(DriverArgs, CC1Args, concat(D.SysRoot, "/usr/include")); ---

[compiler-rt] [libcxx] [clang] [libc] [flang] [llvm] [clang-tools-extra] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-11-05 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/5] Merged __is_trivial_equality_predicate and __is_trivial_plu

[libcxx] [clang] [libc] [flang] [llvm] [compiler-rt] [clang-tools-extra] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-11-05 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/5] Merged __is_trivial_equality_predicate and __is_trivial_plu

[clang] [StackProtector] Do not emit the stack protector on GPU architectures (PR #70799)

2023-11-05 Thread Fangrui Song via cfe-commits
MaskRay wrote: I think this is fine, but we probably should think about the general option compatibility problem https://github.com/llvm/llvm-project/pull/70740#issuecomment-1786180822 https://github.com/llvm/llvm-project/pull/70799 ___ cfe-commits m

[clang] Added removal of file extension when guessing the toolchain (PR #69887)

2023-11-05 Thread Fangrui Song via cfe-commits
MaskRay wrote: In quite a few places we only detect `.exe` as the extension name. I am not sure we should commit to arbitrary extension name now. The build systems can consider `--driver-mode=cl` https://github.com/llvm/llvm-project/pull/69887 ___ cf

[clang] [Driver][Solaris][NFC] A little bit of clean up (PR #69867)

2023-11-05 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/69867 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8103ae6 - [Driver][Solaris][NFC] A little bit of clean up (#69867)

2023-11-05 Thread via cfe-commits
Author: Brad Smith Date: 2023-11-05T15:09:31-05:00 New Revision: 8103ae666402fbcfd68839994bfd848c3925fbed URL: https://github.com/llvm/llvm-project/commit/8103ae666402fbcfd68839994bfd848c3925fbed DIFF: https://github.com/llvm/llvm-project/commit/8103ae666402fbcfd68839994bfd848c3925fbed.diff LO

[clang-tools-extra] [libc] [libcxx] [compiler-rt] [flang] [clang] [llvm] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-11-05 Thread Anton Rydahl via cfe-commits
@@ -18,8 +18,11 @@ _LIBCPP_BEGIN_NAMESPACE_STD -template -struct __is_trivial_plus_operation : false_type {}; +template AntonRydahl wrote: Hi @ldionne! I am unsure about what I am supposed to do with the following: ```C++ template struct __desugars_to<__

[clang-tools-extra] [libc] [libcxx] [compiler-rt] [flang] [mlir] [clang] [llvm] [mlir][spirv] Implement gpu::TargetAttrInterface (PR #69949)

2023-11-05 Thread Fabian Mora via cfe-commits
@@ -15,6 +15,7 @@ #include "Utils.h" #include "mlir/Dialect/GPU/IR/GPUDialect.h" +#include "mlir/Dialect/SPIRV/IR/SPIRVAttributes.h" fabianmcg wrote: Back when the compilation redesign was happening we decided to add the attach* passes in GPU to avoid pollut

[clang] [clang-tools-extra] [llvm] [libc] [flang] [mlir] [compiler-rt] [libcxx] [mlir][spirv] Implement gpu::TargetAttrInterface (PR #69949)

2023-11-05 Thread Jacques Pienaar via cfe-commits
@@ -15,6 +15,7 @@ #include "Utils.h" #include "mlir/Dialect/GPU/IR/GPUDialect.h" +#include "mlir/Dialect/SPIRV/IR/SPIRVAttributes.h" jpienaar wrote: This feels off: you have GPU dialect transforms depending on SPIRV attributes/dialect (esp in header). Why is

[clang] [Clang][Driver][LTO] Fix empty stats filename when in LTO mode (PR #71197)

2023-11-05 Thread Min-Yih Hsu via cfe-commits
https://github.com/mshockwave closed https://github.com/llvm/llvm-project/pull/71197 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 85451f4 - [Clang][Driver][LTO] Fix empty stats filename when in LTO mode (#71197)

2023-11-05 Thread via cfe-commits
Author: Min-Yih Hsu Date: 2023-11-05T11:31:26-08:00 New Revision: 85451f486d8144f8aacd94a47802c77da5a04d27 URL: https://github.com/llvm/llvm-project/commit/85451f486d8144f8aacd94a47802c77da5a04d27 DIFF: https://github.com/llvm/llvm-project/commit/85451f486d8144f8aacd94a47802c77da5a04d27.diff L

  1   2   >