[clang] [llvm] [NVPTX] Add conversion intrinsics from/to fp8 types (e4m3, e5m2) (PR #102969)

2024-08-18 Thread Sergey Kozub via cfe-commits
sergey-kozub wrote: > Looks like that it was clang-format check github was waiting on an approaval > for. I've just clicked that button. Now it's all green, thank you. How do I actually upstream it? I don't see any buttons on this PR page that'd allow me to submit it. https://github.com/llvm

[clang] [analyzer] Do not reason about locations passed as inline asm input (PR #103714)

2024-08-18 Thread Mikael Holmén via cfe-commits
mikaelholmen wrote: Hi @pskrgag The following starts crashing with this patch: ``` clang -cc1 -analyze -analyzer-checker=core bbi-98183.c ``` It crashes like: ``` clang: ../../clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1212: clang::ento::ElementRegion::ElementRegion(cla

[clang] [RISCV] Simplify reserse fixed regs (PR #104736)

2024-08-18 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/104736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Fix potential null dereference in encodeTypeForFunctionPointerAuth (PR #104737)

2024-08-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 requested changes to this pull request. It looks like T is assumed to be non-null for this function. Please do ensure the reasonableness of the patch if it's made by a static analyzer https://github.com/llvm/llvm-project/pull/104737 ___

[clang] [RISCV] Simplify reserse fixed regs (PR #104736)

2024-08-18 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp updated https://github.com/llvm/llvm-project/pull/104736 >From d45743a893a44dbb5da75d3dbe40dfbd34c14e71 Mon Sep 17 00:00:00 2001 From: Wang Pengcheng Date: Mon, 19 Aug 2024 12:07:00 +0800 Subject: [PATCH 1/2] [RISCV] Simplify reserse fixed regs Add a macro to simpl

[clang] [clang] fix divide by zero in ComplexExprEvaluator (PR #104666)

2024-08-18 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Opened #104738 as a followup. https://github.com/llvm/llvm-project/pull/104666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [clang][AST] fix ast-print of extern with >=2 declarators, fixed, fixed (PR #98795)

2024-08-18 Thread via cfe-commits
temyurchenko wrote: > Ping @JDevlieghere for lldb test suite assistance. > > As for ORC JIT, [the compiler-rt project](https://compiler-rt.llvm.org/) does > not claim to support Windows to begin with, so it's unclear whether the bot > should not be testing on Windows or whether compiler-rt nee

[clang] [flang] [flang][driver] Add pre-processing type to `.i` (pre-processed) files (PR #104664)

2024-08-18 Thread Kareem Ergawy via cfe-commits
ergawy wrote: Thanks for taking a look! 🙏 > Is there any reference that would document .i files? These are pre-processed Fortran source files. I do not know if these are standard or flang-new specific tbh. However, I updated the PR title and description with more info about these files and wh

[clang] [flang] [flang][driver] Add pre-processing type to `.i` (pre-processed) files (PR #104664)

2024-08-18 Thread Kareem Ergawy via cfe-commits
https://github.com/ergawy edited https://github.com/llvm/llvm-project/pull/104664 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][driver] Add pre-processing type to `.i` (pre-processed) files (PR #104664)

2024-08-18 Thread Kareem Ergawy via cfe-commits
https://github.com/ergawy edited https://github.com/llvm/llvm-project/pull/104664 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

2024-08-18 Thread via cfe-commits
earnol wrote: As i see the fedora build is fine: https://github.com/fedora-llvm-team/llvm-snapshots/issues/649. https://github.com/llvm/llvm-project/pull/96240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang] [Clang][NFC] Fix potential null dereference in encodeTypeForFunctionPointerAuth (PR #104737)

2024-08-18 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/104737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Fix potential null dereference in encodeTypeForFunctionPointerAuth (PR #104737)

2024-08-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (smanna12) Changes This patch replaces getAs with castAs to prevent dereferencing a potential null pointer, ensuring type safety as per static analysis report. --- Full diff: https://github.com/llvm/llvm-project/pull/104737.diff 1

[clang] [RISCV] Simplify reserse fixed regs (PR #104736)

2024-08-18 Thread Craig Topper via cfe-commits
@@ -95,69 +95,41 @@ void riscv::getRISCVTargetFeatures(const Driver &D, const llvm::Triple &Triple, CPUFastVectorUnaligned = true; } - // Handle features corresponding to "-ffixed-X" options - if (Args.hasArg(options::OPT_ffixed_x1)) -Features.push_back("+reserv

[clang] [Clang][NFC] Fix potential null dereference in encodeTypeForFunctionPointerAuth (PR #104737)

2024-08-18 Thread via cfe-commits
https://github.com/smanna12 ready_for_review https://github.com/llvm/llvm-project/pull/104737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Fix potential null dereference in encodeTypeForFunctionPointerAuth (PR #104737)

2024-08-18 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/104737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Fix potential null dereference in encodeTypeForFunctionPointerAuth (PR #104737)

2024-08-18 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/104737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Fix potential null dereference in encodeTypeForFunctionP… (PR #104737)

2024-08-18 Thread via cfe-commits
https://github.com/smanna12 created https://github.com/llvm/llvm-project/pull/104737 …ointerAuth >From 3de26382c5915e77d7912ed2a78988360a92a338 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Sun, 18 Aug 2024 21:16:47 -0700 Subject: [PATCH] [Clang][NFC] Fix potential null dereference in e

[clang] [RISCV] Simplify reserse fixed regs (PR #104736)

2024-08-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Pengcheng Wang (wangpc-pp) Changes Add a macro to simplify some codes. --- Full diff: https://github.com/llvm/llvm-project/pull/104736.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/Ar

[clang] [RISCV] Simplify reserse fixed regs (PR #104736)

2024-08-18 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp created https://github.com/llvm/llvm-project/pull/104736 Add a macro to simplify some codes. >From d45743a893a44dbb5da75d3dbe40dfbd34c14e71 Mon Sep 17 00:00:00 2001 From: Wang Pengcheng Date: Mon, 19 Aug 2024 12:07:00 +0800 Subject: [PATCH] [RISCV] Simplify resers

[clang] [flang] [flang][driver] Add pre-processing type to `.i` files (PR #104664)

2024-08-18 Thread Kareem Ergawy via cfe-commits
https://github.com/ergawy updated https://github.com/llvm/llvm-project/pull/104664 >From 56b6eaf8d060f870f64e8d63771a2241cd534320 Mon Sep 17 00:00:00 2001 From: ergawy Date: Sat, 17 Aug 2024 00:20:11 -0500 Subject: [PATCH] [flang][driver] Add pre-processing type to `.i` files This diff allows

[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-18 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp closed https://github.com/llvm/llvm-project/pull/103709 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a80a90e - [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (#103709)

2024-08-18 Thread via cfe-commits
Author: Pengcheng Wang Date: 2024-08-19T11:50:32+08:00 New Revision: a80a90e34b1f26422ebf56e922abe2c193607c81 URL: https://github.com/llvm/llvm-project/commit/a80a90e34b1f26422ebf56e922abe2c193607c81 DIFF: https://github.com/llvm/llvm-project/commit/a80a90e34b1f26422ebf56e922abe2c193607c81.diff

[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-18 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp updated https://github.com/llvm/llvm-project/pull/103709 >From 0330ffdcd0ff0230ef8ba7fac5eff5874ba2e544 Mon Sep 17 00:00:00 2001 From: Wang Pengcheng Date: Wed, 14 Aug 2024 15:14:36 +0800 Subject: [PATCH 1/2] [RISCV][MC] Support experimental extensions Zvbc32e and

[clang] [clang][rtsan] Introduce realtime sanitizer codegen and driver (PR #102622)

2024-08-18 Thread Chris Apple via cfe-commits
https://github.com/cjappl edited https://github.com/llvm/llvm-project/pull/102622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][rtsan] Introduce realtime sanitizer codegen and driver (PR #102622)

2024-08-18 Thread Chris Apple via cfe-commits
https://github.com/cjappl updated https://github.com/llvm/llvm-project/pull/102622 >From 9d3d49fa755c28b21c3b4771faae65cf418dec5a Mon Sep 17 00:00:00 2001 From: Chris Apple Date: Wed, 24 Jul 2024 14:25:44 -0700 Subject: [PATCH 1/5] [clang][rtsan] Introduce realtime sanitizer codegen and driver

[clang] [clang][rtsan] Introduce realtime sanitizer codegen and driver (PR #102622)

2024-08-18 Thread Chris Apple via cfe-commits
@@ -995,6 +996,13 @@ void EmitAssemblyHelper::RunOptimizationPipeline( FPM.addPass(BoundsCheckingPass()); }); +if (LangOpts.Sanitize.has(SanitizerKind::Realtime)) + PB.registerScalarOptimizerLateEPCallback( cjappl wrote: Thanks

[clang] [clang][rtsan] Introduce realtime sanitizer codegen and driver (PR #102622)

2024-08-18 Thread Chris Apple via cfe-commits
@@ -0,0 +1,14 @@ +// RUN: %clang -target x86_64-unknown-linux -fsanitize=realtime %s -S -emit-llvm -o - | FileCheck %s cjappl wrote: The basis of this test file were very similar ones for asan and tsan: https://github.com/llvm/llvm-project/blob/main/clang/te

[clang] [clang-tools-extra] [clang-tidy] Add support for bsl::optional (PR #101450)

2024-08-18 Thread Chris Cotter via cfe-commits
ccotter wrote: bump @ymand @PiotrZSL? https://github.com/llvm/llvm-project/pull/101450 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Add support for bsl::optional (PR #101450)

2024-08-18 Thread Chris Cotter via cfe-commits
https://github.com/ccotter updated https://github.com/llvm/llvm-project/pull/101450 >From f7e7681db6ad83878fd00cf250047c98b1b4f051 Mon Sep 17 00:00:00 2001 From: Chris Cotter Date: Tue, 23 Jul 2024 10:30:54 -0400 Subject: [PATCH 1/3] [clang-tidy] Add support for bsl::optional --- clang-tools-

[clang] [clang][rtsan] Introduce realtime sanitizer codegen and driver (PR #102622)

2024-08-18 Thread Fangrui Song via cfe-commits
@@ -845,6 +845,15 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, if (SanOpts.has(SanitizerKind::ShadowCallStack)) Fn->addFnAttr(llvm::Attribute::ShadowCallStack); + if (SanOpts.has(SanitizerKind::Realtime)) { MaskRay wrote: remo

[clang] [clang][rtsan] Introduce realtime sanitizer codegen and driver (PR #102622)

2024-08-18 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/102622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][rtsan] Introduce realtime sanitizer codegen and driver (PR #102622)

2024-08-18 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,14 @@ +// RUN: %clang -target x86_64-unknown-linux -fsanitize=realtime %s -S -emit-llvm -o - | FileCheck %s MaskRay wrote: Driver tests should only use `-###` to test CC1 options. We don't test different `-O` combinations. It's not useful to test

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-18 Thread Freddy Ye via cfe-commits
@@ -617,7 +617,7 @@ constexpr FeatureBitset ImpliedFeaturesAVX10_1 = FeatureAVX512CD | FeatureAVX512VBMI | FeatureAVX512IFMA | FeatureAVX512VNNI | FeatureAVX512BF16 | FeatureAVX512VPOPCNTDQ | FeatureAVX512VBMI2 | FeatureAVX512BITALG | FeatureVAES | FeatureVPCLMULQDQ

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-18 Thread Freddy Ye via cfe-commits
@@ -847,6 +847,91 @@ def X86vcvttp2iubs : SDNode<"X86ISD::CVTTP2IUBS", SDTFloatToInt>; def X86vcvttp2ibsSAE : SDNode<"X86ISD::CVTTP2IBS_SAE", SDTFloatToInt>; def X86vcvttp2iubsSAE : SDNode<"X86ISD::CVTTP2IUBS_SAE", SDTFloatToInt>; +def SDTAVX10CONVERT_I82F16 : SDTypeProfile<

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-18 Thread Freddy Ye via cfe-commits
@@ -847,6 +847,91 @@ def X86vcvttp2iubs : SDNode<"X86ISD::CVTTP2IUBS", SDTFloatToInt>; def X86vcvttp2ibsSAE : SDNode<"X86ISD::CVTTP2IBS_SAE", SDTFloatToInt>; def X86vcvttp2iubsSAE : SDNode<"X86ISD::CVTTP2IUBS_SAE", SDTFloatToInt>; +def SDTAVX10CONVERT_I82F16 : SDTypeProfile<

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-18 Thread Freddy Ye via cfe-commits
@@ -847,6 +847,91 @@ def X86vcvttp2iubs : SDNode<"X86ISD::CVTTP2IUBS", SDTFloatToInt>; def X86vcvttp2ibsSAE : SDNode<"X86ISD::CVTTP2IBS_SAE", SDTFloatToInt>; def X86vcvttp2iubsSAE : SDNode<"X86ISD::CVTTP2IUBS_SAE", SDTFloatToInt>; +def SDTAVX10CONVERT_I82F16 : SDTypeProfile<

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-18 Thread Freddy Ye via cfe-commits
@@ -624,3 +624,328 @@ defm VCVTTPS2IUBS : avx10_sat_cvt_base<0x6a, "vcvttps2iubs", SchedWriteVecIMul, avx512vl_i32_info, avx512vl_f32_info, X86vcvttp2iubsSAE>, AVX512PDIi8Base, T_MA

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-18 Thread Freddy Ye via cfe-commits
@@ -847,6 +847,91 @@ def X86vcvttp2iubs : SDNode<"X86ISD::CVTTP2IUBS", SDTFloatToInt>; def X86vcvttp2ibsSAE : SDNode<"X86ISD::CVTTP2IBS_SAE", SDTFloatToInt>; def X86vcvttp2iubsSAE : SDNode<"X86ISD::CVTTP2IUBS_SAE", SDTFloatToInt>; +def SDTAVX10CONVERT_I82F16 : SDTypeProfile<

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-18 Thread Freddy Ye via cfe-commits
@@ -7089,3 +7089,133 @@ def int_x86_avx10_mask_vcvttps2iubs512 : ClangBuiltin<"__builtin_ia32_vcvttps2iu DefaultAttrsIntrinsic<[llvm_v16i32_ty], [llvm_v16f32_ty, llvm_v16i32_ty, llvm_i16_ty, llvm_i32_ty], [IntrNoMem, ImmArg>]>; } + +//===

[clang] [clang][rtsan] Introduce realtime sanitizer codegen and driver (PR #102622)

2024-08-18 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. LGTM, but please get approvals from other responded reviewers https://github.com/llvm/llvm-project/pull/102622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [libcxx] [Clang] Implement CWG2369 "Ordering between constraints and substitution" (PR #102857)

2024-08-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/102857 >From 1119f0a8d180e482bff45c999d488827ac5ae49e Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Mon, 12 Aug 2024 23:32:34 +0800 Subject: [PATCH 01/12] [Clang][NFCI] Slightly refactor getTemplateInstantiationAr

[clang] [libcxx] [Clang] Implement CWG2369 "Ordering between constraints and substitution" (PR #102857)

2024-08-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/102857 >From 1119f0a8d180e482bff45c999d488827ac5ae49e Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Mon, 12 Aug 2024 23:32:34 +0800 Subject: [PATCH 01/11] [Clang][NFCI] Slightly refactor getTemplateInstantiationAr

[clang] [clang][ASTImporter] Import C++20 concepts related nodes (PR #104731)

2024-08-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ding Fei (danix800) Changes Related nodes including: - ConceptDecl - RequiresExprBodyDecl - ImplicitConceptSpecializationDecl - RequiresExpr - ConceptSpecializationExpr - concepts::Requirement - concepts::ExprRequirement - concepts::Nested

[clang] [clang][ASTImporter] Import C++20 concepts related nodes (PR #104731)

2024-08-18 Thread Ding Fei via cfe-commits
https://github.com/danix800 created https://github.com/llvm/llvm-project/pull/104731 Related nodes including: - ConceptDecl - RequiresExprBodyDecl - ImplicitConceptSpecializationDecl - RequiresExpr - ConceptSpecializationExpr - concepts::Requirement - concepts::ExprRequirement - concepts::Neste

[clang] [clang][rtsan] Introduce realtime sanitizer codegen and driver (PR #102622)

2024-08-18 Thread Vitaly Buka via cfe-commits
@@ -995,6 +996,13 @@ void EmitAssemblyHelper::RunOptimizationPipeline( FPM.addPass(BoundsCheckingPass()); }); +if (LangOpts.Sanitize.has(SanitizerKind::Realtime)) + PB.registerScalarOptimizerLateEPCallback( vitalybuka wrote: Thi

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-18 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert approved this pull request. MC and foldtable change LGTM https://github.com/llvm/llvm-project/pull/101600 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Detect cycles of length 1 (PR #103476)

2024-08-18 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay requested changes to this pull request. . https://github.com/llvm/llvm-project/pull/103476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Detect cycles of length 1 (PR #103476)

2024-08-18 Thread Fangrui Song via cfe-commits
MaskRay wrote: > This happens with musl libc in __clone(), which has incorrect DWARF unwind > information. Can you elaborate this? How is it incorrect? (tools/add-cfi.x86_64.awk on `musl/src/thread/x86_64/clone.s`, I assume) I guess this workaround does address your issue, but for the upstrea

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-18 Thread via cfe-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/102831 >From 8a4f6af9fc1f44c2f8b5fd3693ca14eaf776fd02 Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Sun, 11 Aug 2024 21:39:35 +0100 Subject: [PATCH 01/13] [clang-tidy] use upper cace letters for bool conversion su

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-18 Thread via cfe-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/102831 >From 8a4f6af9fc1f44c2f8b5fd3693ca14eaf776fd02 Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Sun, 11 Aug 2024 21:39:35 +0100 Subject: [PATCH 01/12] [clang-tidy] use upper cace letters for bool conversion su

[clang] 0224d83 - Update Clang version from 19 to 20 in scan-build.1.

2024-08-18 Thread Frederic Cambus via cfe-commits
Author: Frederic Cambus Date: 2024-08-18T23:34:15+02:00 New Revision: 0224d8355d84b3eee2390cd13bb0b749ba40b0db URL: https://github.com/llvm/llvm-project/commit/0224d8355d84b3eee2390cd13bb0b749ba40b0db DIFF: https://github.com/llvm/llvm-project/commit/0224d8355d84b3eee2390cd13bb0b749ba40b0db.dif

[clang] [clang-cl] [AST] Reapply #102848 Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #104722)

2024-08-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Max Winkler (MaxEW707) Changes Reapply https://github.com/llvm/llvm-project/pull/102848. The description in this PR will detail the changes from the reverted original PR above. For `auto&&` return types that can partake in reference coll

[clang] [clang-cl] [AST] Reapply #102848 Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #104722)

2024-08-18 Thread Max Winkler via cfe-commits
https://github.com/MaxEW707 created https://github.com/llvm/llvm-project/pull/104722 Reapply https://github.com/llvm/llvm-project/pull/102848. The description in this PR will detail the changes from the reverted original PR above. For `auto&&` return types that can partake in reference collap

[clang] [clang] Increase the default expression nesting limit (PR #104717)

2024-08-18 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: @AaronBallman https://github.com/llvm/llvm-project/pull/104717 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-18 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp commented: LGTM, very minor nits! https://github.com/llvm/llvm-project/pull/102831 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-18 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp edited https://github.com/llvm/llvm-project/pull/102831 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-18 Thread Carlos Galvez via cfe-commits
@@ -133,3 +133,17 @@ Options When `true`, the check will allow conditional pointer conversions. Default is `false`. + +.. option:: UseUpperCaseLiteralSuffix + + When `true`, the replacements will use an uppercase literal suffix in the + provided fixes. Default a low

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-18 Thread Carlos Galvez via cfe-commits
@@ -133,3 +133,17 @@ Options When `true`, the check will allow conditional pointer conversions. Default is `false`. + +.. option:: UseUpperCaseLiteralSuffix + + When `true`, the replacements will use an uppercase literal suffix in the + provided fixes. Default a low

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-18 Thread Carlos Galvez via cfe-commits
@@ -108,6 +108,11 @@ Changes in existing checks ` check to remove `->`, when reduntant `get()` is removed. +- Improved :doc:`readablility-implicit-bool-conversion + ` check + Added option `UseUpperCaseLiteralSuffix` to to select the carlosgalvezp wrote:

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-18 Thread Carlos Galvez via cfe-commits
@@ -108,6 +108,11 @@ Changes in existing checks ` check to remove `->`, when reduntant `get()` is removed. +- Improved :doc:`readablility-implicit-bool-conversion + ` check carlosgalvezp wrote: Improved... by adding the option `UseUpperCaseLiteralSuffix`

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-18 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > An inconsistency is that readability-uppercase-literal-suffix only handles l > and u by default whereas the check here also handles f Actually `readability-uppercase-literal-suffix` does handle `f` as well so I'm not sure I understand this comment. https://github.com/ll

[clang] [clang] Increase the default expression nesting limit (PR #104717)

2024-08-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/104717 >From 6635b518d0413273831dc730b89b27780c6f2419 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 18 Aug 2024 20:05:38 +0200 Subject: [PATCH] [clang] Increase the default expression nesting limit Incre

[clang] [clang] Increase the default expression nesting limit (PR #104717)

2024-08-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/104717 >From 8add317c1997297980a5cda12ee750f4bc24e31f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 18 Aug 2024 20:05:38 +0200 Subject: [PATCH] [clang] Increase the default expression nesting limit Incre

[clang] [clang-tools-extra] [clangd] show lambda name instead of operator() in signature help (PR #101857)

2024-08-18 Thread Timothy Akintilo via cfe-commits
tilobyte wrote: Ping https://github.com/llvm/llvm-project/pull/101857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Change GNU style language standard to LS_Latest (PR #104669)

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

[clang] 3496245 - [clang-format] Change GNU style language standard to LS_Latest (#104669)

2024-08-18 Thread via cfe-commits
Author: Owen Pan Date: 2024-08-18T12:02:15-07:00 New Revision: 3496245ed3d0b4d2260da77dcdb93512fb5a URL: https://github.com/llvm/llvm-project/commit/3496245ed3d0b4d2260da77dcdb93512fb5a DIFF: https://github.com/llvm/llvm-project/commit/3496245ed3d0b4d2260da77dcdb93512fb5a.diff LOG:

[clang] [clang-format] Change GNU style language standard to LS_Latest (PR #104669)

2024-08-18 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/104669 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Increase the default expression nesting limit (PR #104717)

2024-08-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Increase the default expression nesting limit from 256 to 1024 Fixes: #94728 Compile time with different Bracket depth Clang version 20.0.0git (https://github.com/AmrDeveloper/llvm-project.git 673b9e08d

[clang] [clang] Increase the default expression nesting limit (PR #104717)

2024-08-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/104717 Increase the default expression nesting limit from 256 to 1024 Fixes: #94728 Compile time with different Bracket depth Clang version 20.0.0git (https://github.com/AmrDeveloper/llvm-project.git 673b9e08de

[clang] [flang] [flang][driver] Add pre-processing type to `.i` files (PR #104664)

2024-08-18 Thread Kareem Ergawy via cfe-commits
https://github.com/ergawy updated https://github.com/llvm/llvm-project/pull/104664 >From 5b76a29aca1e74b740cbb9b9297673fd532734b7 Mon Sep 17 00:00:00 2001 From: ergawy Date: Sat, 17 Aug 2024 00:20:11 -0500 Subject: [PATCH] [flang][driver] Add pre-processing type to `.i` files This diff allows

[clang] [llvm] [llvm][clang] Move RewriterBuffer to ADT. (PR #99770)

2024-08-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lld-x86_64-win` running on `as-worker-93` while building `clang,llvm` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/146/builds/477 Here is the relevant

[clang] [HIP] search fatbin symbols for libs passed by -l (PR #104638)

2024-08-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/3382 Here is the relevant piece of the bu

[clang] [HIP] search fatbin symbols for libs passed by -l (PR #104638)

2024-08-18 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu closed https://github.com/llvm/llvm-project/pull/104638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] caa1070 - [HIP] search fatbin symbols for libs passed by -l (#104638)

2024-08-18 Thread via cfe-commits
Author: Yaxun (Sam) Liu Date: 2024-08-18T13:29:30-04:00 New Revision: caa1070b1c880627b223dc3884860a64e4b510c7 URL: https://github.com/llvm/llvm-project/commit/caa1070b1c880627b223dc3884860a64e4b510c7 DIFF: https://github.com/llvm/llvm-project/commit/caa1070b1c880627b223dc3884860a64e4b510c7.dif

[clang] [clang][bytecode] Fix 'if consteval' in non-constant contexts (PR #104707)

2024-08-18 Thread Timm Baeder via cfe-commits
@@ -4368,8 +4363,19 @@ template bool Compiler::visitIfStmt(const IfStmt *IS) { if (!visitDeclStmt(CondDecl)) return false; - if (!this->visitBool(IS->getCond())) -return false; + // Compile condition. + if (IS->isNonNegatedConsteval()) { +if (!this->emit

[clang] 0d150db - [llvm][clang] Move RewriterBuffer to ADT. (#99770)

2024-08-18 Thread via cfe-commits
Author: Jacques Pienaar Date: 2024-08-18T09:46:51-07:00 New Revision: 0d150db214e2aa13a825b563c7238e1243d61db1 URL: https://github.com/llvm/llvm-project/commit/0d150db214e2aa13a825b563c7238e1243d61db1 DIFF: https://github.com/llvm/llvm-project/commit/0d150db214e2aa13a825b563c7238e1243d61db1.dif

[clang] [llvm] [llvm][clang] Move RewriterBuffer to ADT. (PR #99770)

2024-08-18 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar closed https://github.com/llvm/llvm-project/pull/99770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Do not allow `[[clang::lifetimebound]]` on explicit object member functions (PR #96113)

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

[clang] bcbe9d6 - [Clang] Do not allow `[[clang::lifetimebound]]` on explicit object member functions (#96113)

2024-08-18 Thread via cfe-commits
Author: Mital Ashok Date: 2024-08-18T18:07:47+02:00 New Revision: bcbe9d6c776bc02bfe8f911607240af0d1775d79 URL: https://github.com/llvm/llvm-project/commit/bcbe9d6c776bc02bfe8f911607240af0d1775d79 DIFF: https://github.com/llvm/llvm-project/commit/bcbe9d6c776bc02bfe8f911607240af0d1775d79.diff L

[clang] Fix typo in SanitizerCoverage.rst (PR #104715)

2024-08-18 Thread Marco Vanotti via cfe-commits
https://github.com/mvanotti updated https://github.com/llvm/llvm-project/pull/104715 >From 43acabf1cbdd21d008c905f5842681fcdfd2cabd Mon Sep 17 00:00:00 2001 From: Marco Vanotti Date: Sun, 18 Aug 2024 11:59:07 -0400 Subject: [PATCH 1/2] Fix typo in SanitizerCoverage.rst The callback for indirec

[clang] [clang-tools-extra] [clang][NFC] Un-constify `MultiLevelTemplateArgumentList` (PR #104687)

2024-08-18 Thread via cfe-commits
cor3ntin wrote: > I'm not sure I understand, because MLTAL doesn't seem to own the arguments in > the first place, so copying it doesn't seem of any help. Well, yes, we would have to create a copy of the argument list corresponding to the depth of the pack we are trying to deduce. There may be

[clang] Fix typo in SanitizerCoverage.rst (PR #104715)

2024-08-18 Thread via cfe-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Discourse](https://discourse.llvm.org/t/hidden-email

[clang] Fix typo in SanitizerCoverage.rst (PR #104715)

2024-08-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Marco Vanotti (mvanotti) Changes The callback for indirect calls is `__sanitizer_cov_trace_pc_indir`, not `__sanitizer_cov_trace_pc_indirect`. See: https://github.com/llvm/llvm-project/blob/de5ea2d122c31e1551654ff506c33df299f351b8/compil

[clang] Fix typo in SanitizerCoverage.rst (PR #104715)

2024-08-18 Thread Marco Vanotti via cfe-commits
https://github.com/mvanotti created https://github.com/llvm/llvm-project/pull/104715 The callback for indirect calls is `__sanitizer_cov_trace_pc_indir`, not `__sanitizer_cov_trace_pc_indirect`. See: https://github.com/llvm/llvm-project/blob/de5ea2d122c31e1551654ff506c33df299f351b8/compiler-r

[clang] [Clang] Do not allow `[[clang::lifetimebound]]` on explicit object member functions (PR #96113)

2024-08-18 Thread Mital Ashok via cfe-commits
MitalAshok wrote: @cor3ntin Yes, thanks https://github.com/llvm/llvm-project/pull/96113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm][clang] Move RewriterBuffer to ADT. (PR #99770)

2024-08-18 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar updated https://github.com/llvm/llvm-project/pull/99770 >From ee91900dd42321ce1344a70df5f1baddf36bde9f Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Sat, 20 Jul 2024 16:25:14 + Subject: [PATCH] [llvm][clang] Move RewriterBuffer to ADT. These classes are n

[clang] de5ea2d - [clang][OpenMP] Change /* ParamName */ to /*ParamName=*/, NFC

2024-08-18 Thread Krzysztof Parzyszek via cfe-commits
Author: Krzysztof Parzyszek Date: 2024-08-18T10:48:49-05:00 New Revision: de5ea2d122c31e1551654ff506c33df299f351b8 URL: https://github.com/llvm/llvm-project/commit/de5ea2d122c31e1551654ff506c33df299f351b8 DIFF: https://github.com/llvm/llvm-project/commit/de5ea2d122c31e1551654ff506c33df299f351b8

[clang-tools-extra] [clang-tidy] Support member functions with modernize-use-std-print/format (PR #104675)

2024-08-18 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL closed https://github.com/llvm/llvm-project/pull/104675 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] bbcb625 - [clang-tidy] Support member functions with modernize-use-std-print/format (#104675)

2024-08-18 Thread via cfe-commits
Author: Mike Crowe Date: 2024-08-18T17:46:19+02:00 New Revision: bbcb625798514f1cd6ef04818381d38ea26b23e5 URL: https://github.com/llvm/llvm-project/commit/bbcb625798514f1cd6ef04818381d38ea26b23e5 DIFF: https://github.com/llvm/llvm-project/commit/bbcb625798514f1cd6ef04818381d38ea26b23e5.diff LO

[clang] [clang][bytecode] Fix 'if consteval' in non-constant contexts (PR #104707)

2024-08-18 Thread Timm Baeder via cfe-commits
@@ -4368,8 +4363,19 @@ template bool Compiler::visitIfStmt(const IfStmt *IS) { if (!visitDeclStmt(CondDecl)) return false; - if (!this->visitBool(IS->getCond())) -return false; + // Compile condition. + if (IS->isNonNegatedConsteval()) { +if (!this->emit

[clang] [Clang] Do not allow `[[clang::lifetimebound]]` on explicit object member functions (PR #96113)

2024-08-18 Thread via cfe-commits
cor3ntin wrote: @MitalAshok should i merge? https://github.com/llvm/llvm-project/pull/96113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Do not allow `[[clang::lifetimebound]]` on explicit object member functions (PR #96113)

2024-08-18 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/96113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix divide by zero in ComplexExprEvaluator (PR #104666)

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

[clang] dd40632 - [clang] fix divide by zero in ComplexExprEvaluator (#104666)

2024-08-18 Thread via cfe-commits
Author: c8ef Date: 2024-08-18T17:32:44+02:00 New Revision: dd40632b52d8da2146a12254afc900315ac3c2e4 URL: https://github.com/llvm/llvm-project/commit/dd40632b52d8da2146a12254afc900315ac3c2e4 DIFF: https://github.com/llvm/llvm-project/commit/dd40632b52d8da2146a12254afc900315ac3c2e4.diff LOG: [cl

[clang] e05307f - [clang][OpenMP] Avoid multiple calls to getCurrentDirective in DSAChecker, NFC

2024-08-18 Thread Krzysztof Parzyszek via cfe-commits
Author: Krzysztof Parzyszek Date: 2024-08-18T10:25:52-05:00 New Revision: e05307f6633ca405834a4fd24d858ffb676c9170 URL: https://github.com/llvm/llvm-project/commit/e05307f6633ca405834a4fd24d858ffb676c9170 DIFF: https://github.com/llvm/llvm-project/commit/e05307f6633ca405834a4fd24d858ffb676c9170

[clang] [clang][bytecode] Fix 'if consteval' in non-constant contexts (PR #104707)

2024-08-18 Thread via cfe-commits
@@ -4368,8 +4363,19 @@ template bool Compiler::visitIfStmt(const IfStmt *IS) { if (!visitDeclStmt(CondDecl)) return false; - if (!this->visitBool(IS->getCond())) -return false; + // Compile condition. + if (IS->isNonNegatedConsteval()) { +if (!this->emit

[clang] [HIP] search fatbin symbols for libs passed by -l (PR #104638)

2024-08-18 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu updated https://github.com/llvm/llvm-project/pull/104638 >From 6e6bb355f2cf79f30d01c97b580d4354cbb7e727 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Fri, 16 Aug 2024 14:24:08 -0400 Subject: [PATCH] [HIP] search fatbin symbols for libs passed by -l For -fgp

[clang] [clang][bytecode] Fix 'if consteval' in non-constant contexts (PR #104707)

2024-08-18 Thread Timm Baeder via cfe-commits
@@ -4368,8 +4363,19 @@ template bool Compiler::visitIfStmt(const IfStmt *IS) { if (!visitDeclStmt(CondDecl)) return false; - if (!this->visitBool(IS->getCond())) -return false; + // Compile condition. + if (IS->isNonNegatedConsteval()) { +if (!this->emit

[clang] [Clang] CWG722: nullptr to ellipses (PR #104704)

2024-08-18 Thread Vlad Serebrennikov via cfe-commits
@@ -0,0 +1,56 @@ +// RUN: %clang_cc1 -std=c++98 %s -verify -pedantic-errors +// RUN: %clang_cc1 -std=c++11 %s -verify -pedantic-errors -ast-dump | FileCheck %s +// RUN: %clang_cc1 -std=c++14 %s -verify -pedantic-errors -ast-dump | FileCheck %s +// RUN: %clang_cc1 -std=c++17 %s -

  1   2   >