[clang] [llvm] [RISCV] Add Qualcomm uC Xqcibi (Branch Immediate) extension (PR #130779)

2025-03-18 Thread Simon Pilgrim via cfe-commits
@@ -825,6 +825,17 @@ struct RISCVOperand final : public MCParsedAsmOperand { VK == RISCVMCExpr::VK_RISCV_None; } + bool isSImm5NonZero() const { +if (!isImm()) + return false; +RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; ---

[clang] [clang-tools-extra] [CudaSPIRV] Allow using integral non-type template parameters as attribute args (PR #131546)

2025-03-18 Thread Yaxun Liu via cfe-commits
@@ -0,0 +1,34 @@ +// RUN: %clang_cc1 -triple spirv64 -aux-triple x86_64-unknown-linux-gnu \ +// RUN: -fcuda-is-device -verify -fsyntax-only %s + yxsamliu wrote: need tests for non-contstant int variable, zero, negative integer https://github.com/llvm/llvm-pro

[clang] [clang][analyzer] Add support for C++23 container methods releated to iterator in ContainerModeling (PR #129719)

2025-03-18 Thread via cfe-commits
@@ -635,6 +668,66 @@ void deque_emplace_back(std::deque &D, int n) { clang_analyzer_eval(clang_analyzer_iterator_validity(i2)); //expected-warning{{FALSE}} } +/// append_range() +/// +/// - Design decision: extends containers to the ->RIGHT-> (i.e. the +/// past-the-end p

[libclc] [libclc] Reduce bithacking in CLC frexp (PR #129871)

2025-03-18 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: This is failing with `fp32`. The failing value is very close to zero (it's a denormal), I think something is going wrong with `x == __CLC_FP_LIT(0.0)` when computing `is_inf_nan_or_zero`. Maybe a bug inside Swiftshader with denormal comparison to zero? https://github.com/llvm/

[clang] Reland [clang][dataflow] Fix unsupported types always being equal (PR #131575)

2025-03-18 Thread Jan Voung via cfe-commits
https://github.com/jvoung approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/131575 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add support for C++23 container methods releated to iterator in ContainerModeling (PR #129719)

2025-03-18 Thread via cfe-commits
@@ -1139,6 +1289,271 @@ void deque_insert_end(std::deque &D, int n) { // clang_analyzer_express(clang_analyzer_iterator_position(i3)); FIXME: expect warning $D.end() - 1 } +/// insert_range() +/// +/// - Design decision: shifts positions to the <-LEFT<- (i.e. all iterator +

[clang] 467e5a1 - [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint) extension (#128833)

2025-03-18 Thread via cfe-commits
Author: Sudharsan Veeravalli Date: 2025-03-18T09:05:22-07:00 New Revision: 467e5a1d41d63fd1c80fee14a8d99d32515c26d6 URL: https://github.com/llvm/llvm-project/commit/467e5a1d41d63fd1c80fee14a8d99d32515c26d6 DIFF: https://github.com/llvm/llvm-project/commit/467e5a1d41d63fd1c80fee14a8d99d32515c26d

[clang] [llvm] [Clang][OpenMP] Support for dispatch construct (Sema & Codegen) support (PR #131838)

2025-03-18 Thread via cfe-commits
SunilKuravinakop wrote: This PR is a continuation of the work in https://github.com/llvm/llvm-project/pull/117904. https://github.com/llvm/llvm-project/pull/131838 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint) extension (PR #128833)

2025-03-18 Thread Sam Elliott via cfe-commits
https://github.com/lenary approved this pull request. https://github.com/llvm/llvm-project/pull/128833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Introduce "binary" StringLiteral for #embed data (PR #127629)

2025-03-18 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon edited https://github.com/llvm/llvm-project/pull/127629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-03-18 Thread Richard Smith via cfe-commits
@@ -627,8 +627,6 @@ buildPreamble(PathRef FileName, CompilerInvocation CI, return DiagnosticsEngine::Ignored; switch (Info.getID()) { case diag::warn_no_newline_eof: -case diag::warn_cxx98_compat_no_newline_eof: -case diag::ext_no_newline_eof: // If

[clang] [clang] Introduce "binary" StringLiteral for #embed data (PR #127629)

2025-03-18 Thread Mariya Podchishchaeva via cfe-commits
@@ -1752,7 +1752,8 @@ enum class StringLiteralKind { UTF8, UTF16, UTF32, - Unevaluated + Unevaluated, + Binary Fznamznon wrote: I added some comment. Do you think it turned out helpful? https://github.com/llvm/llvm-project/pull/127629 ___

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint) extension (PR #128833)

2025-03-18 Thread Sam Elliott via cfe-commits
https://github.com/lenary closed https://github.com/llvm/llvm-project/pull/128833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Skip opt command if opt_flags is empty (PR #130882)

2025-03-18 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/130882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-03-18 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Yeah, I agree, renaming the other one to what you proposed sounds good to me. https://github.com/llvm/llvm-project/pull/122754 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [Headers] Implement spirvamdgcnintrin.h (PR #131164)

2025-03-18 Thread Jon Chesterfield via cfe-commits
JonChesterfield wrote: @sarnex I'm deeply sorry about this sequence of events. The single spirv64 header that lowered to intrinsics that amdgpu or intel map onto their own world would have removed a swathe of spurious variation. What we're going to have to do in the interim is have spirvamdgcn

[clang] [clang] Introduce "binary" StringLiteral for #embed data (PR #127629)

2025-03-18 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon updated https://github.com/llvm/llvm-project/pull/127629 >From 700ec6f78c0a24729801bea381bafbcafb06826b Mon Sep 17 00:00:00 2001 From: "Podchishchaeva, Mariya" Date: Tue, 18 Feb 2025 05:12:07 -0800 Subject: [PATCH 1/3] [clang] Introduce "binary" StringLiteral for #e

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-03-18 Thread Richard Smith via cfe-commits
https://github.com/zygoloid commented: LG https://github.com/llvm/llvm-project/pull/131794 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-03-18 Thread Richard Smith via cfe-commits
https://github.com/zygoloid edited https://github.com/llvm/llvm-project/pull/131794 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OffloadBundler] Rework the ctor of `OffloadTargetInfo` to support AMDGPU's generic target (PR #122629)

2025-03-18 Thread Shilei Tian via cfe-commits
shiltian wrote: It seems like for some targets the compiler doesn't accept a 4-field triple. Why is that? ``` clang: error: version 'elf-unknown' in target triple 'hexagon-unknown-unknown-elf-unknown' is invalid clang: error: version '-unknown' in target triple 'riscv64-unknown-linux-gnu-unkn

[clang] [llvm] [Clang][OpenMP] Support for dispatch construct (Sema & Codegen) support (PR #131838)

2025-03-18 Thread via cfe-commits
SunilKuravinakop wrote: > #if dispatch transformed to > #pragma omp taskwait depend(out:x) > #pragma omp dispatch nocontext(c2) > foo(); --> with traits call to foo_variant_dispatch(i,j) > you should have 2 captured regions - one for tas

[clang] [Headers] Implement spirvamdgcnintrin.h (PR #131164)

2025-03-18 Thread Jon Chesterfield via cfe-commits
https://github.com/JonChesterfield edited https://github.com/llvm/llvm-project/pull/131164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Update C++ DR status page (PR #131812)

2025-03-18 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov approved this pull request. https://github.com/llvm/llvm-project/pull/131812 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers] Implement spirvamdgcnintrin.h (PR #131164)

2025-03-18 Thread Nick Sarnie via cfe-commits
sarnex wrote: No problem, as long as we have a somewhat reasonable way to eventually get the DeviceRTL working I'm happy, thanks for working on this. https://github.com/llvm/llvm-project/pull/131164 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang] [llvm] [RISCV] Add Zilsd and Zclsd Extensions (PR #131094)

2025-03-18 Thread Sam Elliott via cfe-commits
@@ -780,6 +780,14 @@ Error RISCVISAInfo::checkDependency() { return getIncompatibleError("xwchc", "zcb"); } + if (Exts.count("zclsd") != 0) { +if (XLen != 32) + return getError("'zclsd' is only supported for 'rv32'"); + +if (Exts.count("zcf") != 0) +

[clang] [llvm] [OffloadBundler] Rework the ctor of `OffloadTargetInfo` to support AMDGPU's generic target (PR #122629)

2025-03-18 Thread Shilei Tian via cfe-commits
shiltian wrote: It seems like some targets add "-unknown" in the compiler driver. ``` + /local/mnt/workspace/bots/hexagon-build-02/clang-hexagon-elf/stage1/bin/clang --target=hexagon-unknown-elf-unknown -fverbose-asm -g -S /local/mnt/workspace/bots/hexagon-build-02/clang-hexagon-elf/llvm/clan

[clang] [clang] Improve checking of operator functions (PR #131777)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (offsetof) Changes * Move validation of operator function parameters into a new routine, `Sema::CheckOverloadedOperatorParams`. * Treat operator function template specializations failing these checks as a substitution failure. * Allo

[clang-tools-extra] origin pr (PR #131804)

2025-03-18 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/131804 origin pr Revert "origin pr" This reverts commit a686695e6691fcb824b2055c3dfa8f0fd3727355. impl option impl extend func wip test doc >From a686695e6691fcb824b2055c3dfa8f0fd3727355 Mon Sep 17 00:00:00

[clang] [libc] [llvm] Reapply "[AMDGPU] Use COV6 by default (#118515)" (PR #130963)

2025-03-18 Thread Shilei Tian via cfe-commits
shiltian wrote: > > The OpenMP runtime doesn't know how to handle `generic` ISAs right? > > I don't understand why that is tied to the version It is probably no longer tied to the version since we no longer build one device runtime per target. https://github.com/llvm/llvm-project/pull/130963

[clang-tools-extra] origin pr (PR #131804)

2025-03-18 Thread Congcong Cai via cfe-commits
HerrCai0907 wrote: * **#131804** https://app.graphite.dev/github/pr/llvm/llvm-project/131804?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/

[clang-tools-extra] origin pr (PR #131804)

2025-03-18 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/131804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] origin pr (PR #131804)

2025-03-18 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 ready_for_review https://github.com/llvm/llvm-project/pull/131804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-03-18 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/131804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][RFC] Introduce a trait to determine the structure binding size (PR #131515)

2025-03-18 Thread via cfe-commits
@@ -12102,7 +12102,12 @@ class IntExprEvaluator } bool VisitTypeTraitExpr(const TypeTraitExpr *E) { -return Success(E->getValue(), E); +if (E->isStoredAsBoolean()) + return Success(E->getBoolValue(), E); +if (E->getAPValue().isAbsent()) + return false

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-03-18 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/131804 >From a686695e6691fcb824b2055c3dfa8f0fd3727355 Mon Sep 17 00:00:00 2001 From: DeNiCoN Date: Mon, 17 Mar 2025 08:04:32 + Subject: [PATCH 1/9] origin pr --- clang-tools-extra/clang-tidy/CMakeLists.txt

[clang] [Clang][RFC] Introduce a trait to determine the structure binding size (PR #131515)

2025-03-18 Thread Erich Keane via cfe-commits
@@ -1854,47 +1854,34 @@ bool MaterializeTemporaryExpr::isUsableInConstantExpressions( TypeTraitExpr::TypeTraitExpr(QualType T, SourceLocation Loc, TypeTrait Kind, ArrayRef Args, - SourceLocation RParenLoc, bool Value) +

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-03-18 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/131804 >From a686695e6691fcb824b2055c3dfa8f0fd3727355 Mon Sep 17 00:00:00 2001 From: DeNiCoN Date: Mon, 17 Mar 2025 08:04:32 + Subject: [PATCH 1/9] origin pr --- clang-tools-extra/clang-tidy/CMakeLists.txt

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-03-18 Thread Congcong Cai via cfe-commits
HerrCai0907 wrote: --dump-config will create incorrect YAML due to #131694. https://github.com/llvm/llvm-project/pull/131804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OffloadBundler] Rework the ctor of `OffloadTargetInfo` to support AMDGPU's generic target (PR #122629)

2025-03-18 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu approved this pull request. LGTM. Thanks https://github.com/llvm/llvm-project/pull/122629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 44e4b27 - [clang] Fix darwin-related tests' REQUIRES annotation (#130138)

2025-03-18 Thread via cfe-commits
Author: Lucas Duarte Prates Date: 2025-03-18T09:11:43Z New Revision: 44e4b27aec8639823030dd90eb04afa6545c8352 URL: https://github.com/llvm/llvm-project/commit/44e4b27aec8639823030dd90eb04afa6545c8352 DIFF: https://github.com/llvm/llvm-project/commit/44e4b27aec8639823030dd90eb04afa6545c8352.diff

[clang] [clang] Fix darwin-related tests' REQUIRES annotation (PR #130138)

2025-03-18 Thread Lucas Duarte Prates via cfe-commits
https://github.com/pratlucas closed https://github.com/llvm/llvm-project/pull/130138 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Cleanup UnaryExprOrTypeTraitExpr itanium mangling code (PR #131764)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes Just removing some code duplication. Extracted from #131515 --- Full diff: https://github.com/llvm/llvm-project/pull/131764.diff 1 Files Affected: - (modified) clang/lib/AST/ItaniumMangle.cpp (+21-41) ```

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcibi (Branch Immediate) extension (PR #130779)

2025-03-18 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/130779 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][RFC] Introduce a trait to determine the structure binding size (PR #131515)

2025-03-18 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/131515 >From ae66e1cc48c721badc234ff5bc5a89aeb6cd2ea3 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Sun, 16 Mar 2025 14:04:15 +0100 Subject: [PATCH 01/12] [Clang][RFC] Intrododuce a builtin to determine the num

[libclc] [libclc] Skip opt command if opt_flags is empty (PR #130882)

2025-03-18 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/130882 >From 1727cb49ebbee324ecad0a766ec341eb1aed082b Mon Sep 17 00:00:00 2001 From: Wenju He Date: Tue, 11 Mar 2025 19:05:25 -0700 Subject: [PATCH 1/4] [libclc] Skip opt command if opt_flags is empty When the flag i

[clang] [clang] Improve checking of operator functions (PR #131777)

2025-03-18 Thread via cfe-commits
https://github.com/offsetof updated https://github.com/llvm/llvm-project/pull/131777 >From ff54ffd5ac3f761c877eebce52ef81d096d98f16 Mon Sep 17 00:00:00 2001 From: offsetof Date: Tue, 18 Mar 2025 10:08:56 + Subject: [PATCH] [clang] Improve checking of operator functions * Move validation of

[clang] [clang] Mark some language options as benign. (PR #131569)

2025-03-18 Thread via cfe-commits
cor3ntin wrote: The issue is that if we allow the preprocessor's state to differ across modules, then the resulting compiled units can be arbitrary (and subtly incompatible). I wonder if a possible solution is to record which macros are used (ie, are expanded or appear in `#ifdef` / `defined`

[libclc] [libclc] Skip opt command if opt_flags is empty (PR #130882)

2025-03-18 Thread Fraser Cormack via cfe-commits
@@ -342,21 +342,32 @@ function(add_libclc_builtin_set) set( builtins_opt_lib_tgt builtins.opt.${ARG_ARCH_SUFFIX} ) - # Add opt target - add_custom_command( OUTPUT ${builtins_opt_lib_tgt}.bc -COMMAND ${opt_exe} ${ARG_OPT_FLAGS} -o ${builtins_opt_lib_tgt}.bc - ${bu

[clang] 9cf46fb - [C2y] Add octal prefixes, deprecate unprefixed octals (#131626)

2025-03-18 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-03-18T07:28:59-04:00 New Revision: 9cf46fb2303627fd2c74ed88dcd9f3f8cbfe0c93 URL: https://github.com/llvm/llvm-project/commit/9cf46fb2303627fd2c74ed88dcd9f3f8cbfe0c93 DIFF: https://github.com/llvm/llvm-project/commit/9cf46fb2303627fd2c74ed88dcd9f3f8cbfe0c93.diff

[clang] [C2y] Add octal prefixes, deprecate unprefixed octals (PR #131626)

2025-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/131626 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Cleanup UnaryExprOrTypeTraitExpr itanium mangling code (PR #131764)

2025-03-18 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/131764 Just removing some code duplication. Extracted from #131515 >From 6b62d1028d338d4ec0b67f9ee6ecfb7d29dbc67e Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 18 Mar 2025 09:56:43 +0100 Subject: [PATCH]

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcibi (Branch Immediate) extension (PR #130779)

2025-03-18 Thread via cfe-commits
@@ -825,6 +825,17 @@ struct RISCVOperand final : public MCParsedAsmOperand { VK == RISCVMCExpr::VK_RISCV_None; } + bool isSImm5NonZero() const { +if (!isImm()) + return false; +RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; ---

[clang] Reapply "[analyzer] Delay the checker constructions after parsing" (PR #128369)

2025-03-18 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/128369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Refine handling of C++20 aggregate initialization (PR #131320)

2025-03-18 Thread via cfe-commits
offsetof wrote: Seems to be working now, I think. https://github.com/llvm/llvm-project/pull/131320 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Extend cmplx range tests for #131129 (PR #131447)

2025-03-18 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > This is a lot of tests... do we really need every combination of > type/operator/flag? I guess it makes sure we don't have gaps, but thousands > of lines of tests seems excessive. It does seem like a lot of testing, but I'd rather we be excessive than take our historical

[clang] [llvm] [flang-rt] Pass the whole path of libflang_rt.runtime.a to linker on AIX (PR #131041)

2025-03-18 Thread Daniel Chen via cfe-commits
https://github.com/DanielCChen updated https://github.com/llvm/llvm-project/pull/131041 >From c394e25b3af722d76338bf7ab02d87de2a23074b Mon Sep 17 00:00:00 2001 From: Daniel Chen Date: Wed, 12 Mar 2025 18:23:14 -0400 Subject: [PATCH 01/11] [flang-rt] Pass the whole path of libflang_rt.runtime.a

[clang] [clang] Introduce "binary" StringLiteral for #embed data (PR #127629)

2025-03-18 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > No changelog because we want to backport? > > No changelog because I forgot. Should we backport though? This seems simple enough to warrant backporting. https://github.com/llvm/llvm-project/pull/127629 ___ cfe-commits mailing

[clang] [llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)

2025-03-18 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa created https://github.com/llvm/llvm-project/pull/131781 Support auto-vectorize for fminimum_num and fmaximum_num. For ARM64 with SVE, scalable vector cannot support yet, and For RISCV Vector, scalable vector works well now. >From e367aaa410dcbb6f3d1c5803eac49dde6dae

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-03-18 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. https://github.com/llvm/llvm-project/pull/131794 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1ae307a - [CIR] Add cir-translate and cir-lsp-server tools (#131181)

2025-03-18 Thread via cfe-commits
Author: Morris Hafner Date: 2025-03-18T09:51:13-07:00 New Revision: 1ae307a709f81e57356cd135f6a30c3c6174cd70 URL: https://github.com/llvm/llvm-project/commit/1ae307a709f81e57356cd135f6a30c3c6174cd70 DIFF: https://github.com/llvm/llvm-project/commit/1ae307a709f81e57356cd135f6a30c3c6174cd70.diff

[clang] [CIR] Add cir-translate and cir-lsp-server tools (PR #131181)

2025-03-18 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/131181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [Clang] [Sema] Make -Wreturn-type an error by default (PR #131207)

2025-03-18 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/131207 >From bff3db4f6a7fdff572b662048f395c280a11d94b Mon Sep 17 00:00:00 2001 From: Sirraide Date: Thu, 13 Mar 2025 21:18:14 +0100 Subject: [PATCH 1/2] [Clang] [Sema] Make -Wreturn-type an error by default --- clan

[clang] [clang] Improve checking of operator functions (PR #131777)

2025-03-18 Thread via cfe-commits
https://github.com/offsetof created https://github.com/llvm/llvm-project/pull/131777 * Move validation of operator function parameters into a new routine, `Sema::CheckOverloadedOperatorParams`. * Treat operator function template specializations failing these checks as a substitution failure. *

[libclc] [libclc] Fix commands in compile_to_bc are executed sequentially (PR #130755)

2025-03-18 Thread Wenju He via cfe-commits
wenju-he wrote: > Am I right in thinking that CMake 3.27's `DEPENDS_EXPLICIT_ONLY` would also > fix this? If so it might be worth documenting this explicitly, both in the > PR/commit and in the code? We might be able to refactor this in the future, > when LLVM updates its minimum version to 3.

[libclc] [libclc] Reduce bithacking for INF/NAN values (PR #129738)

2025-03-18 Thread Fraser Cormack via cfe-commits
@@ -46,9 +46,7 @@ _CLC_DEF _CLC_OVERLOAD __CLC_GENTYPE __clc_hypot(__CLC_GENTYPE x, __CLC_GENTYPE retval = __clc_sqrt(__clc_mad(fx, fx, fy * fy)) * fx_exp; retval = (ux > PINFBITPATT_SP32 || uy == 0) ? __CLC_AS_GENTYPE(ux) : retval; - retval = (ux == PINFBITPATT_SP32 ||

[clang] [clang] Improve diagnostics for vector builtins (PR #125673)

2025-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/125673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Skip opt command if opt_flags is empty (PR #130882)

2025-03-18 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/130882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Demote mixed enumeration arithmetic error to a warning (PR #131811)

2025-03-18 Thread via cfe-commits
llvmbot wrote: Failed to cherry-pick: e4d910e https://github.com/llvm/llvm-project/actions/runs/13927528748 Please manually backport the fix and push it to your github fork. Once this is done, please create a [pull request](https://github.com/llvm/llvm-project/compare) https://github.com/l

[clang] [analyzer] Remove deprecated option VirtualCall:PureOnly (PR #131823)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Donát Nagy (NagyDonat) Changes VirtualCallChecker.cpp implements two related checkers: - `optin.cplusplus.VirtualCall` which reports situations when constructors or destructors call virtual methods (which is bugprone bec

[clang] [llvm] [AArch64] Add an option to get the TLS pointer from software (PR #130932)

2025-03-18 Thread Peter Smith via cfe-commits
smithp35 wrote: The AArch64 ABI doesn't currently document an equivalent of `__aeabi_read_tp` largely because in the 32-bit world not all targets have a dedicated thread-pointer register. I've very recently made a pull request to document the AArch64 TLS ABI https://github.com/ARM-software/ab

[clang] [Clang] Demote mixed enumeration arithmetic error to a warning (PR #131811)

2025-03-18 Thread via cfe-commits
https://github.com/cor3ntin demilestoned https://github.com/llvm/llvm-project/pull/131811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Allow devirtualization involving array subscripts with constant indices when the pointee type is known (PR #130528)

2025-03-18 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/130528 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] [clangd][WIP] Add doxygen parsing using standalone doxygen parser (PR #128591)

2025-03-18 Thread Aaron Liu via cfe-commits
aaronliu0130 wrote: Is this still WIP? https://github.com/llvm/llvm-project/pull/128591 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Demote mixed enumeration arithmetic error to a warning (PR #131811)

2025-03-18 Thread via cfe-commits
cor3ntin wrote: /cherry-pick e4d910e https://github.com/llvm/llvm-project/pull/131811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-03-18 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/131804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-03-18 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,50 @@ +#include "../ClangTidy.h" +#include "../ClangTidyModule.h" +#include "../ClangTidyModuleRegistry.h" +#include "../ClangTidyOptions.h" +#include "QueryCheck.h" +#include "llvm/ADT/SmallSet.h" +#include "llvm/ADT/SmallString.h" +#include "llvm/ADT/StringRef.h" +#in

[clang] [Clang] Demote mixed enumeration arithmetic error to a warning (PR #131811)

2025-03-18 Thread via cfe-commits
https://github.com/cor3ntin milestoned https://github.com/llvm/llvm-project/pull/131811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers] Implement spirvamdgcnintrin.h (PR #131164)

2025-03-18 Thread Jon Chesterfield via cfe-commits
https://github.com/JonChesterfield edited https://github.com/llvm/llvm-project/pull/131164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-03-18 Thread via cfe-commits
@@ -1,11 +1,16 @@ -// RUN: %clang_cc1 -fsyntax-only -Wnewline-eof -verify %s -// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s -// RUN: %clang_cc1 -fsyntax-only -x c++ -std=c++03 -pedantic -verify %s -// RUN: %clang_cc1 -fsyntax-only -Wnewline-eof %s 2>&1 | FileCheck %s +// A

[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)

2025-03-18 Thread Eugene Shalygin via cfe-commits
https://github.com/zeule updated https://github.com/llvm/llvm-project/pull/131605 >From b0b755a562e80ef712e5c0ddaaaf6c94e2c8ef72 Mon Sep 17 00:00:00 2001 From: Eugene Shalygin Date: Mon, 17 Mar 2025 11:23:35 +0100 Subject: [PATCH] [clang-format] option to control bin-packing keyworded paramete

[clang] [clang] Improve diagnostics for vector builtins (PR #125673)

2025-03-18 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: ping. This PR is blocking the addition of some new elementwise builtins we want for libclc. https://github.com/llvm/llvm-project/pull/125673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-03-18 Thread Erich Keane via cfe-commits
@@ -3194,18 +3194,12 @@ bool Lexer::LexEndOfFile(Token &Result, const char *CurPtr) { SourceLocation EndLoc = getSourceLocation(BufferEnd); unsigned DiagID = diag::warn_no_newline_eof; -if (LangOpts.CPlusPlus11) { - // C++11 [lex.phases] 2.2 p2 - // Pref

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-03-18 Thread Erich Keane via cfe-commits
@@ -128,7 +128,10 @@ C2y Feature Support also removes UB with code like ``(void)(void)1;``. - Implemented `WG14 N3411 `_ which allows a source file to not end with a newline character. This is still - reported as

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/131794 >From 22c4b9d7808df33d3e6a31b3456cd8b2e8a95bfa Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 18 Mar 2025 08:34:18 -0400 Subject: [PATCH 1/2] Suppress pedantic diagnostic for a file not ending in E

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-03-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/131794 >From 22c4b9d7808df33d3e6a31b3456cd8b2e8a95bfa Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 18 Mar 2025 08:34:18 -0400 Subject: [PATCH 1/3] Suppress pedantic diagnostic for a file not ending in E

[clang] [clang][analyzer] Add support for C++23 container methods releated to iterator in ContainerModeling (PR #129719)

2025-03-18 Thread via cfe-commits
https://github.com/flovent edited https://github.com/llvm/llvm-project/pull/129719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Allow devirtualization involving array subscripts with constant indices when the pointee type is known (PR #130528)

2025-03-18 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: This patch is very lacking on details, please elaborate in the commit message (that is, the github summary). Also, this needs a release note. https://github.com/llvm/llvm-project/pull/130528 ___ cfe-commits ma

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-03-18 Thread Aaron Ballman via cfe-commits
@@ -3194,18 +3194,12 @@ bool Lexer::LexEndOfFile(Token &Result, const char *CurPtr) { SourceLocation EndLoc = getSourceLocation(BufferEnd); unsigned DiagID = diag::warn_no_newline_eof; -if (LangOpts.CPlusPlus11) { - // C++11 [lex.phases] 2.2 p2 - // Pref

[clang] [Clang] Allow devirtualization involving array subscripts with constant indices when the pointee type is known (PR #130528)

2025-03-18 Thread Erich Keane via cfe-commits
@@ -1689,7 +1689,7 @@ static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { // auto L = [](T) { }; // But A's call operator would want A's here. // } // - // Walk the call operator’s redecl chain to find the one that belongs + // Walk the call

[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)

2025-03-18 Thread Eugene Shalygin via cfe-commits
https://github.com/zeule updated https://github.com/llvm/llvm-project/pull/131605 >From f5caba3d2b793ad0591a7bba2d26fdbd5de11f1b Mon Sep 17 00:00:00 2001 From: Eugene Shalygin Date: Mon, 17 Mar 2025 11:23:35 +0100 Subject: [PATCH] [clang-format] option to control bin-packing keyworded paramete

[clang] [clang][dataflow] Fix unsupported types always being equal (PR #129502)

2025-03-18 Thread Jan Voung via cfe-commits
jvoung wrote: Thanks, Martin, for the checking over the `nullptr`/`nullptr_t` modeling, and the suggestion for a `Value &getNullptrValue() const`! We can try that out and test it that as a followup cleanup for this special-casing. https://github.com/llvm/llvm-project/pull/129502 __

[clang] [Clang] Do not create dependent CallExpr having UnresolvedLookupExpr inside non-dependent context (PR #124609)

2025-03-18 Thread via cfe-commits
https://github.com/TilakChad updated https://github.com/llvm/llvm-project/pull/124609 >From c865ba50fd3c1a5d427069e29e035c1d6e3d21d3 Mon Sep 17 00:00:00 2001 From: Tilak Chad Date: Fri, 14 Mar 2025 00:44:10 +0545 Subject: [PATCH 1/2] [Clang] Dependent CallExpr having UnresolvedLookupExpr are n

[clang] [Clang] Do not create dependent CallExpr having UnresolvedLookupExpr inside non-dependent context (PR #124609)

2025-03-18 Thread via cfe-commits
TilakChad wrote: > This is still missing a release note, but I can merge it for you once you add > one. @Sirraide I've updated the release notes. Please merge it on my behalf. And thanks. https://github.com/llvm/llvm-project/pull/124609 ___ cfe-co

[clang] [Clang] Do not create dependent CallExpr having UnresolvedLookupExpr inside non-dependent context (PR #124609)

2025-03-18 Thread via cfe-commits
https://github.com/TilakChad updated https://github.com/llvm/llvm-project/pull/124609 >From c865ba50fd3c1a5d427069e29e035c1d6e3d21d3 Mon Sep 17 00:00:00 2001 From: Tilak Chad Date: Fri, 14 Mar 2025 00:44:10 +0545 Subject: [PATCH 1/2] [Clang] Dependent CallExpr having UnresolvedLookupExpr are n

[clang] [Clang][RFC] Introduce a trait to determine the structure binding size (PR #131515)

2025-03-18 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/131515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Zilsd and Zclsd Extensions (PR #131094)

2025-03-18 Thread Sam Elliott via cfe-commits
@@ -401,6 +408,14 @@ def FeatureStdExtZcf "Compressed Single-Precision Floating-Point Instructions", [FeatureStdExtF, FeatureStdExtZca]>; +def FeatureStdExtZclsd +: RISCVExtension<1, 0, + "Compressed Load/Store

[clang] [Clang] Do not create dependent CallExpr having UnresolvedLookupExpr inside non-dependent context (PR #124609)

2025-03-18 Thread via cfe-commits
Sirraide wrote: I’ll do that once CI is done https://github.com/llvm/llvm-project/pull/124609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Do not create dependent CallExpr having UnresolvedLookupExpr inside non-dependent context (PR #124609)

2025-03-18 Thread via cfe-commits
@@ -337,6 +337,7 @@ Bug Fixes to C++ Support - Fixed an assertion failure affecting code that uses C++23 "deducing this". (#GH130272) - Clang now properly instantiates destructors for initialized members within non-delegating constructors. (#GH93251) - Correctly diagnoses if

[clang] [Clang] Do not create dependent CallExpr having UnresolvedLookupExpr inside non-dependent context (PR #124609)

2025-03-18 Thread via cfe-commits
https://github.com/Sirraide commented: Just some minor fixes https://github.com/llvm/llvm-project/pull/124609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Do not create dependent CallExpr having UnresolvedLookupExpr inside non-dependent context (PR #124609)

2025-03-18 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/124609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >