[clang] [clang][C23] Support N3029 Improved Normal Enumerations (PR #103917)

2024-09-05 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,59 @@ +// RUN: %clang_cc1 -verify -triple x86_64-unknown-linux-gnu -fsyntax-only --embed-dir=%S/Inputs -std=c23 %s -pedantic -Wpre-c23-compat AaronBallman wrote: You should split this into two `RUN` lines, one `-std=c23 -Wpre-c23-compat` and the othe

[clang] [clang][C23] Support N3029 Improved Normal Enumerations (PR #103917)

2024-09-05 Thread Aaron Ballman via cfe-commits
@@ -1039,7 +1039,8 @@ def err_opencl_invalid_param : Error< "declaring function parameter of type %0 is not allowed%select{; did you forget * ?|}1">; def err_opencl_invalid_return : Error< "declaring function return value of type %0 is not allowed %select{; did you forget

[clang] [clang][C23] Support N3029 Improved Normal Enumerations (PR #103917)

2024-09-05 Thread Aaron Ballman via cfe-commits
@@ -1,23 +1,23 @@ -// RUN: %clang_cc1 -triple %itanium_abi_triple %s -fsyntax-only -verify -pedantic +// RUN: %clang_cc1 -triple %itanium_abi_triple %s -fsyntax-only -verify=expected,c99 -pedantic AaronBallman wrote: Should this get `-std=c99`? https://github.

[clang] [Parser][NFC] Move the core parsing of an attribute into a separate method (PR #107300)

2024-09-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/107300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Parser][NFC] Move the core parsing of an attribute into a separate method (PR #107300)

2024-09-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Generally LGTM though I had a question about the naming. https://github.com/llvm/llvm-project/pull/107300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [Parser][NFC] Move the core parsing of an attribute into a separate method (PR #107300)

2024-09-05 Thread Aaron Ballman via cfe-commits
@@ -2943,6 +2943,9 @@ class Parser : public CodeCompletionHandler { return false; } + bool ParseGNUSingleAttribute(ParsedAttributes &Attrs, SourceLocation &EndLoc, AaronBallman wrote: This could be read as parsing `__attribute__((foo))` as opposed to j

[clang] 84cf3a5 - [Clang] CWG2749: relational operators involving pointers to void (#93046)

2024-09-05 Thread via cfe-commits
Author: Mital Ashok Date: 2024-09-05T14:23:08+02:00 New Revision: 84cf3a573e89b18ce79ff32a7646c0a99729029c URL: https://github.com/llvm/llvm-project/commit/84cf3a573e89b18ce79ff32a7646c0a99729029c DIFF: https://github.com/llvm/llvm-project/commit/84cf3a573e89b18ce79ff32a7646c0a99729029c.diff L

[clang] [Clang] CWG2749: relational operators involving pointers to void (PR #93046)

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

[clang] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-05 Thread Зишан Мирза via cfe-commits
https://github.com/zimirza ready_for_review https://github.com/llvm/llvm-project/pull/107285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Add InitLinkScope for temporary variables (PR #106552)

2024-09-05 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > all CXXThisExpr found within that CXXDefaultInitExpr point to the > InitListExpr and not to the actual instance pointer of the current stack > frame. What do you mean "point to"? (They would point to the `this` object for the class in which the default init expr is foun

[clang] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-05 Thread Зишан Мирза via cfe-commits
https://github.com/zimirza converted_to_draft https://github.com/llvm/llvm-project/pull/107285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-05 Thread Зишан Мирза via cfe-commits
https://github.com/zimirza updated https://github.com/llvm/llvm-project/pull/107285 From b982621407a1ab1746a023809aae5c6a2b983679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B8=D1=88=D0=B0=D0=BD=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0?= <149377404+zimi...@users.noreply.github.com>

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,443 @@ +/*===--- avx10_2satcvtdsintrin.h - AVX512SATCVTDS intrinsics === + * + * 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] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,443 @@ +/*===--- avx10_2satcvtdsintrin.h - AVX512SATCVTDS intrinsics === + * + * 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] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,443 @@ +/*===--- avx10_2satcvtdsintrin.h - AVX512SATCVTDS intrinsics === + * + * 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] check deduction consistency when partial ordering function templates (PR #100692)

2024-09-05 Thread via cfe-commits
cor3ntin wrote: Reduced further ```cpp template class DoFHandler; template class FiniteElement; template void back_interpolate(const DoFHandler &, const InVector &, const FiniteElement &, OutVector &){}; template class DH, class InVector, class OutVector,

[clang] [Clang] Add __builtin_is_within_lifetime to implement P2641R4's std::is_within_lifetime (PR #91895)

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

[clang] 2a07509 - [Clang] Add __builtin_is_within_lifetime to implement P2641R4's std::is_within_lifetime (#91895)

2024-09-05 Thread via cfe-commits
Author: Mital Ashok Date: 2024-09-05T14:42:59+02:00 New Revision: 2a07509c8d3c8b5b2c88e4f73dde0071bf506870 URL: https://github.com/llvm/llvm-project/commit/2a07509c8d3c8b5b2c88e4f73dde0071bf506870 DIFF: https://github.com/llvm/llvm-project/commit/2a07509c8d3c8b5b2c88e4f73dde0071bf506870.diff L

[clang] [NFC] Move warning from COdeGen to Sema. (PR #107397)

2024-09-05 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam created https://github.com/llvm/llvm-project/pull/107397 None >From 621578de568be1e71665254060956ea1971965c9 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 5 Sep 2024 05:42:26 -0700 Subject: [PATCH] [NFC] Move warning from COdeGen to Sema. --- clang

[clang] [NFC] Move warning from CodeGen to Sema. (PR #107397)

2024-09-05 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/107397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] CWG2749: relational operators involving pointers to void (PR #93046)

2024-09-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/4974 Here is the relevant piece of the build log for

[clang] [NFC] Move warning from CodeGen to Sema. (PR #107397)

2024-09-05 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/107397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -625,6 +625,317 @@ defm VCVTTPS2IUBS : avx10_sat_cvt_base<0x6a, "vcvttps2iubs", SchedWriteVecIMul, X86vcvttp2iubsSAE>, AVX512PDIi8Base, T_MAP5, EVEX_CD8<32, CD8VF>; +//---

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -625,6 +625,317 @@ defm VCVTTPS2IUBS : avx10_sat_cvt_base<0x6a, "vcvttps2iubs", SchedWriteVecIMul, X86vcvttp2iubsSAE>, AVX512PDIi8Base, T_MAP5, EVEX_CD8<32, CD8VF>; +//---

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -625,6 +625,317 @@ defm VCVTTPS2IUBS : avx10_sat_cvt_base<0x6a, "vcvttps2iubs", SchedWriteVecIMul, X86vcvttp2iubsSAE>, AVX512PDIi8Base, T_MAP5, EVEX_CD8<32, CD8VF>; +//---

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -625,6 +625,317 @@ defm VCVTTPS2IUBS : avx10_sat_cvt_base<0x6a, "vcvttps2iubs", SchedWriteVecIMul, X86vcvttp2iubsSAE>, AVX512PDIi8Base, T_MAP5, EVEX_CD8<32, CD8VF>; +//---

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -625,6 +625,317 @@ defm VCVTTPS2IUBS : avx10_sat_cvt_base<0x6a, "vcvttps2iubs", SchedWriteVecIMul, X86vcvttp2iubsSAE>, AVX512PDIi8Base, T_MAP5, EVEX_CD8<32, CD8VF>; +//---

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -625,6 +625,317 @@ defm VCVTTPS2IUBS : avx10_sat_cvt_base<0x6a, "vcvttps2iubs", SchedWriteVecIMul, X86vcvttp2iubsSAE>, AVX512PDIi8Base, T_MAP5, EVEX_CD8<32, CD8VF>; +//---

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,526 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3 +; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown --show-mc-encoding -mattr=+avx10.2-512 | FileCheck %s --check-prefixes=CHECK,X64 +; RUN:

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,526 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3 +; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown --show-mc-encoding -mattr=+avx10.2-512 | FileCheck %s --check-prefixes=CHECK,X64 +; RUN:

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-05 Thread Phoebe Wang via cfe-commits
@@ -5520,6 +5520,106 @@ let TargetPrefix = "x86" in { [IntrNoMem, ImmArg>]>; } +// conversion with saturation +let TargetPrefix = "x86" in { + def int_x86_avx512_vcvttss2sis : ClangBuiltin<"__builtin_ia32_vcvttss2sis32">, phoebewa

[clang] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-05 Thread Зишан Мирза via cfe-commits
https://github.com/zimirza updated https://github.com/llvm/llvm-project/pull/107285 From b982621407a1ab1746a023809aae5c6a2b983679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B8=D1=88=D0=B0=D0=BD=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0?= <149377404+zimi...@users.noreply.github.com>

[clang] [clang][bytecode] Implement comparsion operators for vector type (PR #107258)

2024-09-05 Thread via cfe-commits
@@ -1222,6 +1224,117 @@ bool Compiler::VisitComplexBinOp(const BinaryOperator *E) { return true; } +template +bool Compiler::VisitVectorBinOp(const BinaryOperator *E) { + assert(E->getType()->isVectorType()); yronglin wrote: Done. https://github.com/llv

[clang] [clang][bytecode] Implement comparsion operators for vector type (PR #107258)

2024-09-05 Thread via cfe-commits
@@ -1222,6 +1224,117 @@ bool Compiler::VisitComplexBinOp(const BinaryOperator *E) { return true; } +template +bool Compiler::VisitVectorBinOp(const BinaryOperator *E) { + assert(E->getType()->isVectorType()); + + // FIXME: Current only support comparison binary operator,

[clang] [clang][bytecode] Implement comparsion operators for vector type (PR #107258)

2024-09-05 Thread via cfe-commits
@@ -1222,6 +1224,117 @@ bool Compiler::VisitComplexBinOp(const BinaryOperator *E) { return true; } +template +bool Compiler::VisitVectorBinOp(const BinaryOperator *E) { + assert(E->getType()->isVectorType()); + + // FIXME: Current only support comparison binary operator,

[clang] [clang][bytecode] Implement comparsion operators for vector type (PR #107258)

2024-09-05 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/107258 >From ae9fd2653ef3f5d6323c8c8e857fbf45f394f0ce Mon Sep 17 00:00:00 2001 From: yronglin Date: Wed, 4 Sep 2024 23:31:16 +0800 Subject: [PATCH 1/2] [clang][bytecode] Implement comparsion operators for vector type

[clang] [clang][bytecode] Implement comparsion operators for vector type (PR #107258)

2024-09-05 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/107258 >From ae9fd2653ef3f5d6323c8c8e857fbf45f394f0ce Mon Sep 17 00:00:00 2001 From: yronglin Date: Wed, 4 Sep 2024 23:31:16 +0800 Subject: [PATCH 1/3] [clang][bytecode] Implement comparsion operators for vector type

[clang] [analyzer] Prevent crash due to missing EventDispatch in corner case (PR #107294)

2024-09-05 Thread via cfe-commits
vabridgers wrote: Thanks @NagyDonat , in that case I'll just remove the assert. I don't think we need a backing LIT test case if we choose that solution. What do you think? https://github.com/llvm/llvm-project/pull/107294 ___ cfe-commits mailing list

[clang] [llvm] [NFC][SystemZ][z/OS] Rename autoconversion-related functions to be less generic (PR #107399)

2024-09-05 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree created https://github.com/llvm/llvm-project/pull/107399 This patch renames the functions in AutoConvert.h/cpp to have a less generic name because they are z/OS specific. >From 34e044dc5677b345570a202dd0542440a7eee8d9 Mon Sep 17 00:00:00 2001 From: Abhina Sreeska

[clang] [llvm] [NFC][SystemZ][z/OS] Rename autoconversion-related functions to be less generic (PR #107399)

2024-09-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support Author: Abhina Sree (abhina-sree) Changes This patch renames the functions in AutoConvert.h/cpp to have a less generic name because they are z/OS specific. --- Full diff: https://github.com/llvm/llvm-project/pull/107399.diff 10 Files Aff

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-09-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: I'm happy enough with it as is, I'd like @Sirraide to do 1 last pass, but if he approves, so do I. https://github.com/llvm/llvm-project/pull/99656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [Parser][NFC] Move the core parsing of an attribute into a separate method (PR #107300)

2024-09-05 Thread Erich Keane via cfe-commits
@@ -2943,6 +2943,9 @@ class Parser : public CodeCompletionHandler { return false; } + bool ParseGNUSingleAttribute(ParsedAttributes &Attrs, SourceLocation &EndLoc, erichkeane wrote: I don't have a preference for any of the 3 names, but a comment explai

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-09-05 Thread Abhina Sree via cfe-commits
@@ -52,6 +53,12 @@ std::error_code restoreStdHandleAutoConversion(int FD); /// \brief Set the tag information for a file descriptor. std::error_code setFileTag(int FD, int CCSID, bool Text); +// Get the the tag ccsid for a file name or a file descriptor. +ErrorOr<__ccsid_t> ge

[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

2024-09-05 Thread Xiang Li via cfe-commits
https://github.com/python3kgae approved this pull request. https://github.com/llvm/llvm-project/pull/106588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-09-05 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Oh cool, this is CWG2398 TTP-on-Class, this is fixed by https://github.com/llvm/llvm-project/pull/94981 :) On the SPEC source code side, this is probably similar to the xtensor breakage we got a while ago, there is probably a macro guard somewhere that should be expanded to co

[clang] [WIP][Driver] Enable ASan on Solaris/SPARC (PR #107403)

2024-09-05 Thread Rainer Orth via cfe-commits
https://github.com/rorth created https://github.com/llvm/llvm-project/pull/107403 Once PR #107223 lands, ASan can be enabled on Solaris/SPARC. This patch does just that. As on Solaris/x86, the dynamic ASan runtime lib needs to be linked with `-z now` to avoid an `AsanInitInternal` cycle. Te

[clang] [WIP][Driver] Enable ASan on Solaris/SPARC (PR #107403)

2024-09-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Rainer Orth (rorth) Changes Once PR #107223 lands, ASan can be enabled on Solaris/SPARC. This patch does just that. As on Solaris/x86, the dynamic ASan runtime lib needs to be linked with `-z now` to av

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-09-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. I think this LGTM now, thank you! https://github.com/llvm/llvm-project/pull/102044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-09-05 Thread via cfe-commits
Sirraide wrote: > I'd like @Sirraide to do 1 last pass Probably a good idea (I haven’t looked at *all of it* in a while...). I’ll do that once I’m better (still sick unfortunately...), which will be next week hopefully, and worst case sometime later this month. @dougsonos If I don’t get back

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-09-05 Thread via cfe-commits
Sirraide wrote: Oh, one thing I can point out even now though is that we still need a release note for this (probably under attribute-related changes?) https://github.com/llvm/llvm-project/pull/99656 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] [analyzer] Prevent crash due to missing EventDispatch in corner case (PR #107294)

2024-09-05 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/107294 >From b7ab0f7d0320de69eea1edf66574c10b88dc881d Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Wed, 4 Sep 2024 20:36:06 +0200 Subject: [PATCH] [analyzer] Remove assert from CheckerManager for registered

[clang] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-05 Thread Зишан Мирза via cfe-commits
https://github.com/zimirza updated https://github.com/llvm/llvm-project/pull/107285 From b982621407a1ab1746a023809aae5c6a2b983679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B8=D1=88=D0=B0=D0=BD=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0?= <149377404+zimi...@users.noreply.github.com>

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-09-05 Thread Louis Dionne via cfe-commits
https://github.com/ldionne requested changes to this pull request. Sorry for the delay. I have some questions and comments but this looks reasonable. https://github.com/llvm/llvm-project/pull/98712 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-09-05 Thread Louis Dionne via cfe-commits
https://github.com/ldionne edited https://github.com/llvm/llvm-project/pull/98712 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-09-05 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,25 @@ + +set(LLVM_DEFAULT_TARGET_TRIPLE hexagon-unknown-linux-musl CACHE STRING "") +set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "") +set(LLVM_ENABLE_RUNTIMES libcxx;libcxxabi;libunwind;compiler-rt CACHE STRING "") +set(LIBCXX_INCLUDE_BENCHMARKS OFF CACHE BOO

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-09-05 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,25 @@ + +set(LLVM_DEFAULT_TARGET_TRIPLE hexagon-unknown-linux-musl CACHE STRING "") +set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "") +set(LLVM_ENABLE_RUNTIMES libcxx;libcxxabi;libunwind;compiler-rt CACHE STRING "") +set(LIBCXX_INCLUDE_BENCHMARKS OFF CACHE BOO

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-09-05 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,25 @@ + +set(LLVM_DEFAULT_TARGET_TRIPLE hexagon-unknown-linux-musl CACHE STRING "") +set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "") +set(LLVM_ENABLE_RUNTIMES libcxx;libcxxabi;libunwind;compiler-rt CACHE STRING "") +set(LIBCXX_INCLUDE_BENCHMARKS OFF CACHE BOO

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-09-05 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,25 @@ + +set(LLVM_DEFAULT_TARGET_TRIPLE hexagon-unknown-linux-musl CACHE STRING "") ldionne wrote: Do you really need this setting here? Can't you instead set `CMAKE_CXX_COMPILER_TARGET`? https://github.com/llvm/llvm-project/pull/98712 __

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-09-05 Thread Luke Lau via cfe-commits
lukel97 wrote: I just checked and gcc-13 is able to build that SPEC benchmark fine, so I think you're right there's probably some macro somewhere. I'll go digging for around for it. https://github.com/llvm/llvm-project/pull/100692 ___ cfe-commits mai

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-09-05 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Yep, there is probably a macro somewhere guarding against GCC and possibly also c++ standards from C++17 up. That should be replaced by a macro guarding for `__cpp_template_template_args <= 201611L` instead. https://github.com/llvm/llvm-project/pull/100692 _

[clang] [llvm] [SPIR-V] Add SPIR-V structurizer (PR #107408)

2024-09-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-hlsl @llvm/pr-subscribers-clang Author: Nathan Gauër (Keenuts) Changes This commit adds an initial SPIR-V structurizer. It leverages the previously merged passes, and the convergence region analysis to determine the correct

[clang] clang-format: Add "AllowShortNamespacesOnASingleLine" option (PR #105597)

2024-09-05 Thread Galen Elias via cfe-commits
https://github.com/galenelias updated https://github.com/llvm/llvm-project/pull/105597 >From 4118b7dde9adbee7b6aaf5d094d34cb6b64f6c77 Mon Sep 17 00:00:00 2001 From: Galen Elias Date: Wed, 21 Aug 2024 16:33:42 -0700 Subject: [PATCH 1/4] clang-format: Add "AllowShortNamespacesOnASingleLine" opti

[clang] [flang] [flang][Driver] Preliminary support for -ftime-report (PR #107270)

2024-09-05 Thread Tarun Prabhu via cfe-commits
@@ -143,6 +144,14 @@ class CompilerInvocation : public CompilerInvocationBase { }, }; + /// Whether to time the invocation. Set when -ftime-report or -ftime-report= + /// is enabled. + bool enableTimers; + + /// Whether to report the timing of each run of an LLVM p

[clang] [flang] [flang][Driver] Preliminary support for -ftime-report (PR #107270)

2024-09-05 Thread Tarun Prabhu via cfe-commits
@@ -4,6 +4,7 @@ add_subdirectory(Decimal) add_subdirectory(Lower) add_subdirectory(Parser) add_subdirectory(Semantics) +add_subdirectory(Support) tarunprabhu wrote: Mainly to match the layout in both `llvm` and `mlir`. In principle, it could be used in other

[clang] [flang] [flang][Driver] Preliminary support for -ftime-report (PR #107270)

2024-09-05 Thread Tarun Prabhu via cfe-commits
@@ -254,6 +276,43 @@ class CompilerInstance { /// Produces the string which represents target feature std::string getTargetFeatures(); + /// { + /// @name Timing + /// @{ + bool isTimingEnabled() { return timingMgr.isEnabled(); } tarunprabhu wrote: Go

[clang] [flang] [flang][Driver] Preliminary support for -ftime-report (PR #107270)

2024-09-05 Thread Tarun Prabhu via cfe-commits
@@ -176,6 +205,26 @@ bool CompilerInstance::executeAction(FrontendAction &act) { act.endSourceFile(); } } + + if (timingMgr.isEnabled()) { +timingScopeRoot.stop(); + +// Write the timings to the associated output stream and clear all timers. +// We need

[clang-tools-extra] [clang-tidy] fix misc-unconventional-assign-operator false positive for deducing this (PR #107409)

2024-09-05 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/107409 Fixes: #107119 When meeting c++23 deducing this, we should skip the first parameter >From b845ad06929470d9b20ce9170c49939ebe8a901c Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Thu, 5 Sep 2024 22:21:57

[clang-tools-extra] [clang-tidy] fix misc-unconventional-assign-operator false positive for deducing this (PR #107409)

2024-09-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Congcong Cai (HerrCai0907) Changes Fixes: #107119 When meeting c++23 deducing this, we should skip the first parameter --- Full diff: https://github.com/llvm/llvm-project/pull/107409.diff 3 Files Affected: - (modified) cla

[clang-tools-extra] [clang-tidy] fix misc-unconventional-assign-operator false positive for deducing this (PR #107409)

2024-09-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) Changes Fixes: #107119 When meeting c++23 deducing this, we should skip the first parameter --- Full diff: https://github.com/llvm/llvm-project/pull/107409.diff 3 Files Affected: - (modified) clang-tool

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-05 Thread Зишан Мирза via cfe-commits
https://github.com/zimirza updated https://github.com/llvm/llvm-project/pull/107285 From b982621407a1ab1746a023809aae5c6a2b983679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B8=D1=88=D0=B0=D0=BD=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0?= <149377404+zimi...@users.noreply.github.com>

[clang] [PS4, PS5][Driver] Detangle --sysroot and -isysroot (PR #107410)

2024-09-05 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd created https://github.com/llvm/llvm-project/pull/107410 The following discrepancies concerning `-isysroot` and `--sysroot` motivated this change: - The SDK directory can be specified via `-isysroot`, but `--sysroot` has no influence over this. Yet, we check

[clang] [PS4, PS5][Driver] Detangle --sysroot and -isysroot (PR #107410)

2024-09-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Edd Dawson (playstation-edd) Changes The following discrepancies concerning `-isysroot` and `--sysroot` motivated this change: - The SDK directory can be specified via `-isysroot`, but `--sysroot` has no influence over this. Yet, we chec

[clang] [Clang] Fix crash with `source_location` in lambda declarators. (PR #107411)

2024-09-05 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/107411 Parsing lambdas require pushing a declaration context for the lambda, so that parameters can be attached to it, before its trailing type is parsed. DAt that point, partially-parsed lambda don't have a name tha

[clang] [Clang] Fix crash with `source_location` in lambda declarators. (PR #107411)

2024-09-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes Parsing lambdas require pushing a declaration context for the lambda, so that parameters can be attached to it, before its trailing type is parsed. DAt that point, partially-parsed lambda don't have a name that

[clang] [PS4, PS5][Driver] Detangle --sysroot and -isysroot (PR #107410)

2024-09-05 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd edited https://github.com/llvm/llvm-project/pull/107410 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [llvm] [mlir] [APInt] Assert correct values in APInt constructor (PR #80309)

2024-09-05 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/80309 >From f6002ad249359131be6d668036b4f17ff43e67c7 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 13 Aug 2024 15:11:18 +0200 Subject: [PATCH] apint only --- clang/lib/AST/ByteCode/IntegralAP.h | 6

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-09-05 Thread Brian Cain via cfe-commits
@@ -0,0 +1,25 @@ + +set(LLVM_DEFAULT_TARGET_TRIPLE hexagon-unknown-linux-musl CACHE STRING "") androm3da wrote: I'm willing to try that, it makes sense. https://github.com/llvm/llvm-project/pull/98712 ___ cfe-commits m

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-09-05 Thread Brian Cain via cfe-commits
@@ -0,0 +1,25 @@ + +set(LLVM_DEFAULT_TARGET_TRIPLE hexagon-unknown-linux-musl CACHE STRING "") +set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "") +set(LLVM_ENABLE_RUNTIMES libcxx;libcxxabi;libunwind;compiler-rt CACHE STRING "") +set(LIBCXX_INCLUDE_BENCHMARKS OFF CACHE BOO

[clang] [Clang] Fix crash with `source_location` in lambda declarators. (PR #107411)

2024-09-05 Thread Erich Keane via cfe-commits
@@ -2287,6 +2288,15 @@ APValue SourceLocExpr::EvaluateInContext(const ASTContext &Ctx, Context = getParentContext(); } + // If we are currently parsing a lambda declarator, we might not have a fully + // formed call operator declaration yet, and we could not form a fu

[clang] [flang] [flang][Driver] Preliminary support for -ftime-report (PR #107270)

2024-09-05 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu updated https://github.com/llvm/llvm-project/pull/107270 >From 2f4a8503c605f7401bf9312b59a72b6b3ccdbb7f Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Wed, 4 Sep 2024 10:24:31 -0600 Subject: [PATCH 1/3] [flang][Driver] Preliminary support for -ftime-report The

[clang] [flang] [flang][Driver] Preliminary support for -ftime-report (PR #107270)

2024-09-05 Thread Tarun Prabhu via cfe-commits
@@ -143,6 +144,14 @@ class CompilerInvocation : public CompilerInvocationBase { }, }; + /// Whether to time the invocation. Set when -ftime-report or -ftime-report= + /// is enabled. + bool enableTimers; + + /// Whether to report the timing of each run of an LLVM p

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-09-05 Thread Luke Lau via cfe-commits
lukel97 wrote: I did a bit of grepping but I couldn't find any obvious macro. But I realised that gcc actually does accept the reproducer, when compiled with `-std=gnu++98`: https://compiler-explorer.com/z/zsGY6xbh5 This flag is set when compiling SPEC, and seems to be where clang differs. h

[clang-tools-extra] [clang-tidy][NFC] remove autosar link in documents (PR #107412)

2024-09-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/107412.diff 3 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/checks/misc/const-correctness.rst (+1-2) - (modified

[clang-tools-extra] [clang-tidy][NFC] remove autosar link in documents (PR #107412)

2024-09-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/107412.diff 3 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/checks/misc/const-correctness.rst (+1-2) - (modified) clan

[clang-tools-extra] [clang-tidy][NFC] remove autosar link in documents (PR #107412)

2024-09-05 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/107412 None >From e88b1b916b5babf2a55ad3c14d2e4ba30d110014 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Thu, 5 Sep 2024 23:05:42 +0800 Subject: [PATCH] [clang-tidy][NFC] remove autosar link in documents ---

[clang-tools-extra] [clang-tidy][NFC] remove autosar link in documents (PR #107412)

2024-09-05 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/107412 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-09-05 Thread Brian Cain via cfe-commits
@@ -0,0 +1,25 @@ + +set(LLVM_DEFAULT_TARGET_TRIPLE hexagon-unknown-linux-musl CACHE STRING "") +set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL "") +set(LLVM_ENABLE_RUNTIMES libcxx;libcxxabi;libunwind;compiler-rt CACHE STRING "") +set(LIBCXX_INCLUDE_BENCHMARKS OFF CACHE BOO

[clang] Reland "[clang] Add nuw attribute to GEPs (#105496)" (PR #107257)

2024-09-05 Thread Hari Limaye via cfe-commits
https://github.com/hazzlim closed https://github.com/llvm/llvm-project/pull/107257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-09-05 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Yep, GCC gates __cpp_template_template_args on C++17 and above. We went with unrestricted enablement on clang, mainly because we thought we would have a full backwards compatibility solution by now. As I said, this is fixed by https://github.com/llvm/llvm-project/pull/94981, b

[clang] [Clang] Fix crash with `source_location` in lambda declarators. (PR #107411)

2024-09-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/107411 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix crash with `source_location` in lambda declarators. (PR #107411)

2024-09-05 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/107411 >From b559fc6d23f78f6ac4069d0fd29cab18e194a50b Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Thu, 5 Sep 2024 16:36:10 +0200 Subject: [PATCH 1/2] [Clang] Fix crash with `source_location` in lambda declara

[clang] [analyzer] Prevent crash due to missing EventDispatch in corner case (PR #107294)

2024-09-05 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: %clang_analyze_cc1 -w -analyzer-checker=nullability \ +// RUN: -analyzer-output=text -verify %s +// +// expected-no-diagnostics +// +// This case previously crashed because of an assert in CheckerManager.cpp, +// checking for registe

[clang] [analyzer] Prevent crash due to missing EventDispatch in corner case (PR #107294)

2024-09-05 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/107294 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Prevent crash due to missing EventDispatch in corner case (PR #107294)

2024-09-05 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat commented: Hmm, I see that this assertion was hidden behind an `#ifndef NDEBUG` so it is only active within debug builds of the analyzer. Nevertheless, I still think that it's better to remove it, because 1. it does not offer significant protection against introduci

[clang] [analyzer] Prevent crash due to missing EventDispatch in corner case (PR #107294)

2024-09-05 Thread Donát Nagy via cfe-commits
@@ -48,15 +48,7 @@ bool CheckerManager::hasPathSensitiveCheckers() const { EvalCallCheckers, EndOfTranslationUnitCheckers); } -void CheckerManager::finishedCheckerRegistration() { -#ifndef NDEBUG - // Make sure that for every event that has listeners, there is at least

[clang] [Clang] Fix crash with `source_location` in lambda declarators. (PR #107411)

2024-09-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/107411 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Remove overzealous "No dispatcher registered" assertion (PR #107294)

2024-09-05 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/107294 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix crash with `source_location` in lambda declarators. (PR #107411)

2024-09-05 Thread Erich Keane via cfe-commits
erichkeane wrote: Woops! Had the wrong tab open and typed in the wrong 'fixes', did not mean to close this. The patch was supposed to fix https://github.com/llvm/llvm-project/issues/107052 https://github.com/llvm/llvm-project/pull/107411 ___ cfe-com

[clang] 0c8d6df - Fix handling of FP-classify where the last arg fails to convert

2024-09-05 Thread via cfe-commits
Author: erichkeane Date: 2024-09-05T08:24:48-07:00 New Revision: 0c8d6df362fe5b4bce54776e2199623d0382293b URL: https://github.com/llvm/llvm-project/commit/0c8d6df362fe5b4bce54776e2199623d0382293b DIFF: https://github.com/llvm/llvm-project/commit/0c8d6df362fe5b4bce54776e2199623d0382293b.diff LO

[clang] [Clang] Fix crash with `source_location` in lambda declarators. (PR #107411)

2024-09-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane reopened https://github.com/llvm/llvm-project/pull/107411 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >