[clang] reland conditional operator (PR #89596)

2024-04-22 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/89596 - **Reapply "[clang][dataflow] Model conditional operator correctly." (#89577)** - **Fix failing tests for `TransferVisitor::VisitConditionalOperator().`** >From db32339492774cad8a6ceeb86ca8e13e6fef8c2a Mon

[clang] [Clang] Fix template alias default DWARF version (PR #89594)

2024-04-22 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/89594 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 093171b - [Clang] Fix template alias default DWARF version (#89594)

2024-04-22 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2024-04-22T12:01:21+01:00 New Revision: 093171b053838020a30c7710015c56c88d51c7ef URL: https://github.com/llvm/llvm-project/commit/093171b053838020a30c7710015c56c88d51c7ef DIFF: https://github.com/llvm/llvm-project/commit/093171b053838020a30c7710015c56c88d51c7

[clang] [clang][modules] Stop eagerly reading files with diagnostic pragmas (PR #87442)

2024-04-22 Thread via cfe-commits
alexfh wrote: Hi Jan, we started seeing a compilation error in a (quite unusual, frankly speaking) code: ``` pigweed/pw_rpc/public/pw_rpc/internal/channel_list.h:24:10: fatal error: 'vector' file not found 24 | #include PW_RPC_DYNAMIC_CONTAINER_INCLUDE | ^~

[clang] [Clang] Fix template alias default DWARF version (PR #89594)

2024-04-22 Thread Michael Buch via cfe-commits
https://github.com/Michael137 approved this pull request. https://github.com/llvm/llvm-project/pull/89594 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Avoid overflow when dumping unsigned integer values (PR #85060)

2024-04-22 Thread via cfe-commits
https://github.com/ealcdan updated https://github.com/llvm/llvm-project/pull/85060 >From 07248879092c0e752811b4c33b98c50d42230d14 Mon Sep 17 00:00:00 2001 From: Daniel Alcaide Nombela Date: Wed, 13 Mar 2024 11:28:34 +0100 Subject: [PATCH] [clang-tidy] Avoid overflow when dumping unsigned intege

[clang] [Clang] Fix template alias default DWARF version (PR #89594)

2024-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Orlando Cazalet-Hyams (OCHyams) Changes DW_TAG_template_alias DIEs were added in DWARFv4, not DWARFv5 --- Full diff: https://github.com/llvm/llvm-project/pull/89594.diff 2 Files Affected: - (modified) clang/lib/Driver/ToolChains/

[clang] [Clang] Fix template alias default DWARF version (PR #89594)

2024-04-22 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams created https://github.com/llvm/llvm-project/pull/89594 DW_TAG_template_alias DIEs were added in DWARFv4, not DWARFv5 >From 95c86b499e1eebb15dbd61f839f5fefa83dc910d Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Mon, 22 Apr 2024 11:48:19 +0100 Subject: [P

[clang] [clang] CTAD: implement the missing IsDeducible constraint for alias templates (PR #89358)

2024-04-22 Thread Haojian Wu via cfe-commits
hokein wrote: > Needs a release note, and I think we actually DO have to do those diagnostics > here. Added a release note for the new builtin. https://github.com/llvm/llvm-project/pull/89358 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [clang] CTAD: implement the missing IsDeducible constraint for alias templates (PR #89358)

2024-04-22 Thread Haojian Wu via cfe-commits
@@ -6100,6 +6100,17 @@ static bool EvaluateBinaryTypeTrait(Sema &Self, TypeTrait BTT, const TypeSourceI tok::kw___is_pointer_interconvertible_base_of); return Self.IsPointerInterconvertibleBaseOf(Lhs, Rhs); + } + case BTT_IsDeducible: { +

[clang] [clang] CTAD: implement the missing IsDeducible constraint for alias templates (PR #89358)

2024-04-22 Thread Haojian Wu via cfe-commits
@@ -3207,6 +3241,59 @@ Sema::DeduceTemplateArguments(VarTemplatePartialSpecializationDecl *Partial, return ::DeduceTemplateArguments(*this, Partial, TemplateArgs, Info); } +TemplateDeductionResult +Sema::DeduceTemplateArgumentsFromType(TemplateDecl *TD, QualType FromType, +

[clang] [clang] CTAD: implement the missing IsDeducible constraint for alias templates (PR #89358)

2024-04-22 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/89358 >From 9583811bfa66ff058f5e33012cd77501ce3e5e23 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Fri, 19 Apr 2024 10:54:12 +0200 Subject: [PATCH 1/2] [clang] CTAD: implement the missing IsDeducible constraint for a

[clang-tools-extra] [clang-tidy] Avoid overflow when dumping unsigned integer values (PR #85060)

2024-04-22 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. https://github.com/llvm/llvm-project/pull/85060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Avoid overflow when dumping unsigned integer values (PR #85060)

2024-04-22 Thread Piotr Zegar via cfe-commits
@@ -251,6 +251,9 @@ Miscellaneous option is specified. Now ``clang-apply-replacements`` applies formatting only with the option. +- Fixed bug where big values for unsigned check options overflowed into negative values + when being printed with ``--dump-config``. ---

[clang] [clang][dataflow] Model conditional operator correctly. (PR #89213)

2024-04-22 Thread via cfe-commits
martinboehme wrote: Needed to revert this because it turns out that, embarrassingly, I was locally running my tests in `Release` mode, i.e. with `assert()` disabled. I'm working on a PR to re-land this that fixes the assertion failures that were occurring. https://github.com/llvm/llvm-project/

[clang-tools-extra] [tidy] add new check bugprone-return-const-ref-from-parameter (PR #89497)

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

[clang-tools-extra] [tidy] add new check bugprone-return-const-ref-from-parameter (PR #89497)

2024-04-22 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,34 @@ +//===--- ReturnConstRefFromParameterCheck.cpp - clang-tidy ===// +// +// 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: Apa

[clang-tools-extra] [tidy] add new check bugprone-return-const-ref-from-parameter (PR #89497)

2024-04-22 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/89497 >From 91915f68902ade86c0bf8eba643428017ae8bb3c Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sat, 20 Apr 2024 17:58:19 +0800 Subject: [PATCH 1/5] [tidy] add new check bugprone-return-const-ref-from-param

[clang-tools-extra] [tidy] add new check bugprone-return-const-ref-from-parameter (PR #89497)

2024-04-22 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,34 @@ +//===--- ReturnConstRefFromParameterCheck.cpp - clang-tidy ===// +// +// 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: Apa

[clang] [flang] [flang] Default -g to full debug info. (PR #89418)

2024-04-22 Thread via cfe-commits
https://github.com/abidh closed https://github.com/llvm/llvm-project/pull/89418 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 087b33b - [flang] Default -g to full debug info. (#89418)

2024-04-22 Thread via cfe-commits
Author: abidh Date: 2024-04-22T11:19:05+01:00 New Revision: 087b33bbff1ab966656a81f9dd8e136fbd966f58 URL: https://github.com/llvm/llvm-project/commit/087b33bbff1ab966656a81f9dd8e136fbd966f58 DIFF: https://github.com/llvm/llvm-project/commit/087b33bbff1ab966656a81f9dd8e136fbd966f58.diff LOG: [f

[clang] [flang] [flang] Default -g to full debug info. (PR #89418)

2024-04-22 Thread via cfe-commits
abidh wrote: I am going to merge this. There is bot failure (trailing whitespace in clang/lib/Serialization/ASTWriter.cpp) which seems unrelated to this PR. https://github.com/llvm/llvm-project/pull/89418 ___ cfe-commits mailing list cfe-commits@list

[clang] [Clang] Diagnose apply AST consume actions on LLVM IR (PR #88602)

2024-04-22 Thread via cfe-commits
yronglin wrote: Friendly ping~ https://github.com/llvm/llvm-project/pull/88602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer (PR #87933)

2024-04-22 Thread via cfe-commits
yronglin wrote: Friendly ping! @zygoloid @hubert-reinterpretcast https://github.com/llvm/llvm-project/pull/87933 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix __is_trivially_equaltiy_comparable documentation (PR #88528)

2024-04-22 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/88528 >From 0c9372749f4b2d52deddea82be4e77524a66a348 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Fri, 12 Apr 2024 17:36:53 +0200 Subject: [PATCH] [Clang] Fix __is_trivially_equaltiy_comparable documentation

[clang] [Clang] Allow the value of unroll count to be zero in `#pragma GCC unroll` and `#pragma unroll` (PR #88666)

2024-04-22 Thread via cfe-commits
alexfh wrote: Thanks for the prompt fix! https://github.com/llvm/llvm-project/pull/88666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a crash introduced in PR#88666 (PR #89567)

2024-04-22 Thread via cfe-commits
https://github.com/yronglin approved this pull request. https://github.com/llvm/llvm-project/pull/89567 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Avoid overflow when dumping unsigned integer values (PR #85060)

2024-04-22 Thread via cfe-commits
ealcdan wrote: Great, both points have been addressed in the new patches, hope the release notes entry is clear enough. https://github.com/llvm/llvm-project/pull/85060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang-tools-extra] [clang-tidy] Avoid overflow when dumping unsigned integer values (PR #85060)

2024-04-22 Thread via cfe-commits
https://github.com/ealcdan updated https://github.com/llvm/llvm-project/pull/85060 >From afe6658e869646730a18c52e18f5cb4675d67a6b Mon Sep 17 00:00:00 2001 From: Daniel Alcaide Nombela Date: Wed, 13 Mar 2024 11:28:34 +0100 Subject: [PATCH] [clang-tidy] Avoid overflow when dumping unsigned intege

[clang-tools-extra] [clang-tidy] Avoid overflow when dumping unsigned integer values (PR #85060)

2024-04-22 Thread via cfe-commits
https://github.com/ealcdan updated https://github.com/llvm/llvm-project/pull/85060 >From 20f7b3172c6735e8dbdda24ffde7ee8ecd7c7404 Mon Sep 17 00:00:00 2001 From: Daniel Alcaide Nombela Date: Wed, 13 Mar 2024 11:28:34 +0100 Subject: [PATCH] [clang-tidy] Avoid overflow when dumping unsigned intege

[clang-tools-extra] [clang-tidy] check `std::string_view` and custom string-like classes in `readability-string-compare` (PR #88636)

2024-04-22 Thread Piotr Zegar via cfe-commits
@@ -7,42 +7,70 @@ //===--===// #include "StringCompareCheck.h" -#include "../utils/FixItHintUtils.h" +#include "../utils/OptionsUtils.h" #include "clang/AST/ASTContext.h" #include "clang/ASTMatchers/ASTMatc

[clang-tools-extra] [clang-tidy] check `std::string_view` and custom string-like classes in `readability-string-compare` (PR #88636)

2024-04-22 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. Looks fine for me. https://github.com/llvm/llvm-project/pull/88636 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Avoid overflow when dumping unsigned integer values (PR #85060)

2024-04-22 Thread Piotr Zegar via cfe-commits
@@ -422,7 +425,10 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback { store(ClangTidyOptions::OptionMap &Options, StringRef LocalName, std::optional Value) const { if (Value) -storeInt(Options, LocalName, *Value); +if

[clang-tools-extra] [clang-tidy] Avoid overflow when dumping unsigned integer values (PR #85060)

2024-04-22 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/85060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Avoid overflow when dumping unsigned integer values (PR #85060)

2024-04-22 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. - One code duplication that could be avoided. - Add entry in release notes, about fixing issue with big unsigned config option values printed as negative numbers in --dump-config Overall, fine. As for misc-throw-by-value-catch-by-reference

[clang] [flang] [flang][driver] Avoid mentions of Clang in Flang's command line reference. (PR #88932)

2024-04-22 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur closed https://github.com/llvm/llvm-project/pull/88932 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fdc8c54 - [flang][driver] Avoid mentions of Clang in Flang's command line reference. (#88932)

2024-04-22 Thread via cfe-commits
Author: Michael Kruse Date: 2024-04-22T11:56:19+02:00 New Revision: fdc8c5440041ac53726d0b3587762ceeb8cbbb4f URL: https://github.com/llvm/llvm-project/commit/fdc8c5440041ac53726d0b3587762ceeb8cbbb4f DIFF: https://github.com/llvm/llvm-project/commit/fdc8c5440041ac53726d0b3587762ceeb8cbbb4f.diff

[clang] [flang] [flang][driver] Avoid mentions of Clang in Flang's command line reference. (PR #88932)

2024-04-22 Thread Michael Kruse via cfe-commits
Meinersbur wrote: > IIRC it was unnecessary for the documentation because it gets built multiple > times, for the driver it's built once so it has to include all possible > variants the first time. > > I have no preference for how it's done, if the `%Program` thing works then > fine. We only

[clang] bd84f5d - clang: Remove unnecessary pointer bitcast

2024-04-22 Thread Matt Arsenault via cfe-commits
Author: Matt Arsenault Date: 2024-04-22T11:35:09+02:00 New Revision: bd84f5d5d71ee26d9552a9cd96ef058cfb8a39fc URL: https://github.com/llvm/llvm-project/commit/bd84f5d5d71ee26d9552a9cd96ef058cfb8a39fc DIFF: https://github.com/llvm/llvm-project/commit/bd84f5d5d71ee26d9552a9cd96ef058cfb8a39fc.diff

[clang] [driver] Do not warn about unused plugin flags. (PR #88948)

2024-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Kruse (Meinersbur) Changes Plugins are not loaded without the -cc1 phase. Do not report them when running on an assembly file or when linking. Many build tools add these options to all driver invocations, including LLVM's build sy

[clang] [driver] Do not warn about unused plugin flags. (PR #88948)

2024-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Michael Kruse (Meinersbur) Changes Plugins are not loaded without the -cc1 phase. Do not report them when running on an assembly file or when linking. Many build tools add these options to all driver invocations, including LLVM's b

[clang] [driver] Do not warn about unused plugin flags. (PR #88948)

2024-04-22 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur ready_for_review https://github.com/llvm/llvm-project/pull/88948 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c2d665b - [clang][Interp] Support ImplicitArrayInitExpr for vectors

2024-04-22 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-04-22T10:58:55+02:00 New Revision: c2d665b7aeb68f3e8e643ee9dfe5bb7dd31137e5 URL: https://github.com/llvm/llvm-project/commit/c2d665b7aeb68f3e8e643ee9dfe5bb7dd31137e5 DIFF: https://github.com/llvm/llvm-project/commit/c2d665b7aeb68f3e8e643ee9dfe5bb7dd31137e5.diff LO

[clang] [clang] fix half && bfloat16 convert node expr codegen (PR #89051)

2024-04-22 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,194 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 4 +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-feature +fullbf16 -S -emit-llvm %s -o - | FileCheck %s +// CHECK-LABEL: define dso_local half @test

[clang] [clang] fix half && bfloat16 convert node expr codegen (PR #89051)

2024-04-22 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,194 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 4 +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-feature +fullbf16 -S -emit-llvm %s -o - | FileCheck %s +// CHECK-LABEL: define dso_local half @test

[clang] [clang] fix half && bfloat16 convert node expr codegen (PR #89051)

2024-04-22 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,194 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 4 +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-feature +fullbf16 -S -emit-llvm %s -o - | FileCheck %s +// CHECK-LABEL: define dso_local half @test

[libclc] [libclc] Fix build with Unix Makefiles (PR #89147)

2024-04-22 Thread Fraser Cormack via cfe-commits
@@ -39,6 +39,10 @@ function(compile_to_bc) set( TARGET_ARG "-target" ${ARG_TRIPLE} ) endif() + # Ensure the directory we are told to output to exists + get_filename_component( ARG_OUTPUT_DIR ${ARG_OUTPUT} DIRECTORY ) frasercrmck wrote: Yeah, there ver

[libclc] [libclc] Fix build with Unix Makefiles (PR #89147)

2024-04-22 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/89147 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] e614e03 - [libclc] Fix build with Unix Makefiles (#89147)

2024-04-22 Thread via cfe-commits
Author: Fraser Cormack Date: 2024-04-22T09:50:39+01:00 New Revision: e614e037f371e92499e19ada730f61e77d640780 URL: https://github.com/llvm/llvm-project/commit/e614e037f371e92499e19ada730f61e77d640780 DIFF: https://github.com/llvm/llvm-project/commit/e614e037f371e92499e19ada730f61e77d640780.diff

[clang-tools-extra] [clang-tidy] check `std::string_view` and custom string-like classes in `readability-string-compare` (PR #88636)

2024-04-22 Thread Vadim D. via cfe-commits
vvd170501 wrote: Ping. @PiotrZSL, I've added the changes you requested (except `matchesAnyListedName`), waiting for your feedback https://github.com/llvm/llvm-project/pull/88636 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] Don't wrap immediate invocations in ConstantExprs within constexpr initializers (PR #89565)

2024-04-22 Thread via cfe-commits
cor3ntin wrote: I think the change makes sense. Can you add a release note? https://github.com/llvm/llvm-project/pull/89565 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6b6c7e4 - [clang][Interp][NFC] Test out-of-bounds access on vectors

2024-04-22 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-04-22T10:35:45+02:00 New Revision: 6b6c7e46cc1e97b678e969bad78825dd02c11ff9 URL: https://github.com/llvm/llvm-project/commit/6b6c7e46cc1e97b678e969bad78825dd02c11ff9 DIFF: https://github.com/llvm/llvm-project/commit/6b6c7e46cc1e97b678e969bad78825dd02c11ff9.diff LO

[clang] [llvm] [RISCV] Add processor definition for XiangShan-KunMingHu (PR #89359)

2024-04-22 Thread Yingwei Zheng via cfe-commits
@@ -378,3 +378,30 @@ def XIANGSHAN_NANHU : RISCVProcessorModel<"xiangshan-nanhu", TuneZExtHFusion, TuneZExtWFusion, TuneShiftedZExtWFusion]>; +de

[clang] 0ff992e - [clang][Interp][NFC] Get ComplexType directly

2024-04-22 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-04-22T10:34:43+02:00 New Revision: 0ff992e5f210fdcbfdd1dcc3687c9aeabde318c3 URL: https://github.com/llvm/llvm-project/commit/0ff992e5f210fdcbfdd1dcc3687c9aeabde318c3 DIFF: https://github.com/llvm/llvm-project/commit/0ff992e5f210fdcbfdd1dcc3687c9aeabde318c3.diff LO

[clang] 6195e22 - Revert "[clang][Interp] Create full type info for dummy pointers"

2024-04-22 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-04-22T10:32:31+02:00 New Revision: 6195e228eb2a7085fac53603f534d2401ab1ac39 URL: https://github.com/llvm/llvm-project/commit/6195e228eb2a7085fac53603f534d2401ab1ac39 DIFF: https://github.com/llvm/llvm-project/commit/6195e228eb2a7085fac53603f534d2401ab1ac39.diff LO

[clang] [llvm] [RISCV] Add processor definition for XiangShan-KunMingHu (PR #89359)

2024-04-22 Thread via cfe-commits
Khao7342 wrote: > Has the target architecture been finalized? (As in what it should be, not > necessarily the rtl) > > Just yesterday, there was a significant change in vector execution units: > > [before](https://github.com/OpenXiangShan/XiangShan/blob/e25e4d90505c592524b410b127fe611ac49a3adf

[clang] [llvm] [RISCV] Add processor definition for XiangShan-KunMingHu (PR #89359)

2024-04-22 Thread via cfe-commits
Khao7342 wrote: > Has KunMingHu's RTL been finalized (IIRC, we have vector unit under > development)? And can we have different doc for different generations of > XiangShan? Thanks for your attention to Xiangshan. KunMingHu's RTL has not been finalized yet. The development work on vectors is

[clang] [libclang] Compute the right spelling location (PR #72400)

2024-04-22 Thread Sebastian Poeplau via cfe-commits
@@ -1292,6 +1292,31 @@ void func() {} EXPECT_EQ(attrCount, 1); } +TEST_F(LibclangParseTest, clang_getSpellingLocation) { + std::string fileName = "main.c"; + WriteFile(fileName, "#define X(value) int x = value;\nX(42)\n"); + + ClangTU = clang_parseTranslationUnit(Index, f

[clang] [libclang] Compute the right spelling location (PR #72400)

2024-04-22 Thread Sebastian Poeplau via cfe-commits
https://github.com/sebastianpoeplau updated https://github.com/llvm/llvm-project/pull/72400 >From cc15f9bb8b37fb1b68bd33241ab37e98d57d274c Mon Sep 17 00:00:00 2001 From: Matthieu Eyraud Date: Mon, 11 Apr 2022 16:53:24 +0200 Subject: [PATCH] [libclang] Compute the right spelling location Locati

[clang] Revert "[clang][dataflow] Model conditional operator correctly." (PR #89577)

2024-04-22 Thread via cfe-commits
martinboehme wrote: Postmortem reveals that I inadvertently had my build configured with `-DCMAKE_BUILD_TYPE=Release`. https://github.com/llvm/llvm-project/pull/89577 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] [clang][analyzer] Move StreamChecker out of the alpha package. (PR #89247)

2024-04-22 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/89247 From 7138f026e845ebb4f1a3e6a86bdeb534d666ae7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Thu, 18 Apr 2024 16:40:03 +0200 Subject: [PATCH 1/4] [clang][analyzer] Move StreamChecker ou

[clang] [clang-repl] Set up executor implicitly to account for init PTUs (PR #84758)

2024-04-22 Thread Stefan Gränitz via cfe-commits
https://github.com/weliveindetail updated https://github.com/llvm/llvm-project/pull/84758 From 7ee5d29f69daf626a4fdc2fced802fe7e881f31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gr=C3=A4nitz?= Date: Sun, 10 Mar 2024 18:17:48 +0100 Subject: [PATCH 1/2] [clang-repl] Set up executor implic

[clang] 57c24eb - Reland "[clang] CTAD: Fix require-clause is not transformed." (#89476)

2024-04-22 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2024-04-22T10:04:55+02:00 New Revision: 57c24eb0a7482ca7f661a2a9cb45249f1553d6d2 URL: https://github.com/llvm/llvm-project/commit/57c24eb0a7482ca7f661a2a9cb45249f1553d6d2 DIFF: https://github.com/llvm/llvm-project/commit/57c24eb0a7482ca7f661a2a9cb45249f1553d6d2.diff LO

[clang] eef5798 - [clang][Interp] Create full type info for dummy pointers

2024-04-22 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-04-22T10:04:09+02:00 New Revision: eef5798844a6ed489c28b37113f3bcaafd1d6e68 URL: https://github.com/llvm/llvm-project/commit/eef5798844a6ed489c28b37113f3bcaafd1d6e68 DIFF: https://github.com/llvm/llvm-project/commit/eef5798844a6ed489c28b37113f3bcaafd1d6e68.diff LO

[clang] [C++17] Support __GCC_[CON|DE]STRUCTIVE_SIZE (PR #89446)

2024-04-22 Thread Matt Arsenault via cfe-commits
arsenm wrote: For AMDGPU 64 is probably right https://github.com/llvm/llvm-project/pull/89446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Avoid overflow when dumping unsigned integer values (PR #85060)

2024-04-22 Thread via cfe-commits
ealcdan wrote: ping :) https://github.com/llvm/llvm-project/pull/85060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Default -g to full debug info. (PR #89418)

2024-04-22 Thread via cfe-commits
https://github.com/jeanPerier approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/89418 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] CTAD: Fix require-clause is not transformed. (PR #89378)

2024-04-22 Thread Haojian Wu via cfe-commits
hokein wrote: > This seems to have broken the bot: #89476 (you should have had an email?) > > I reverted in #89476 sorry, and thanks for the revert. I will take a further look. https://github.com/llvm/llvm-project/pull/89378 ___ cfe-commits mailing

[clang] Revert "[clang][dataflow] Model conditional operator correctly." (PR #89577)

2024-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes Reverts llvm/llvm-project#89213 This is causing buildbot failures. --- Full diff: https://github.com/llvm/llvm-project/pull/89577.diff 7 Files Affected: - (modified) clang/include/clang/Analysis/FlowSensitiv

[clang] 8ff6434 - Revert "[clang][dataflow] Model conditional operator correctly." (#89577)

2024-04-22 Thread via cfe-commits
Author: martinboehme Date: 2024-04-22T09:35:29+02:00 New Revision: 8ff6434546bcb4602bd079f4161f746956905c60 URL: https://github.com/llvm/llvm-project/commit/8ff6434546bcb4602bd079f4161f746956905c60 DIFF: https://github.com/llvm/llvm-project/commit/8ff6434546bcb4602bd079f4161f746956905c60.diff

[clang] Revert "[clang][dataflow] Model conditional operator correctly." (PR #89577)

2024-04-22 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/89577 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[clang][dataflow] Model conditional operator correctly." (PR #89577)

2024-04-22 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/89577 Reverts llvm/llvm-project#89213 This is causing buildbot failures. >From b0456501b10a3a83e6e6818a050f3fd691972d79 Mon Sep 17 00:00:00 2001 From: martinboehme Date: Mon, 22 Apr 2024 09:35:06 +0200 Subject:

[clang] [clang][dataflow] Model conditional operator correctly. (PR #89213)

2024-04-22 Thread via cfe-commits
martinboehme wrote: This is causing buildbot failures. Reverting. https://github.com/llvm/llvm-project/pull/89213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] abb958f - [clang][dataflow] Model conditional operator correctly. (#89213)

2024-04-22 Thread via cfe-commits
Author: martinboehme Date: 2024-04-22T09:23:13+02:00 New Revision: abb958f1610becc0a753ad8f4308a90f85e1338f URL: https://github.com/llvm/llvm-project/commit/abb958f1610becc0a753ad8f4308a90f85e1338f DIFF: https://github.com/llvm/llvm-project/commit/abb958f1610becc0a753ad8f4308a90f85e1338f.diff

[clang] [clang][dataflow] Model conditional operator correctly. (PR #89213)

2024-04-22 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/89213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Support RVV bfloat16 C intrinsics (PR #89354)

2024-04-22 Thread Kito Cheng via cfe-commits
kito-cheng wrote: > Oh, I forgot to remove them. Or do you think they should be moved to bfloat > folder to make them consistent? Remove files from this PR, that should be a separated NFC PR for moving those files, but I am fine to keep those file in same place :) https://github.com/llvm/llvm

[clang] [clang][dataflow] Model conditional operator correctly. (PR #89213)

2024-04-22 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/89213 >From e6f729dff29cb74ca0599ba486561d04963c1ac5 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Thu, 18 Apr 2024 10:50:40 + Subject: [PATCH 1/4] [clang][dataflow] Model conditional operator correctly.

[clang] [clang][dataflow] Model conditional operator correctly. (PR #89213)

2024-04-22 Thread via cfe-commits
@@ -657,17 +658,22 @@ class TransferVisitor : public ConstStmtVisitor { } void VisitConditionalOperator(const ConditionalOperator *S) { -// FIXME: Revisit this once flow conditions are added to the framework. For -// `a = b ? c : d` we can add `b => a == c && !b =

<    1   2   3   4   5