[clang] [flang] Enable `-m32`, `-maix32` and `-maix64` for Flang on AIX. (PR #136202)

2025-04-18 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu edited https://github.com/llvm/llvm-project/pull/136202 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Rework `hasBooleanRepresentation`. (PR #136038)

2025-04-18 Thread Michele Scandale via cfe-commits
@@ -2088,13 +2085,22 @@ llvm::Value *CodeGenFunction::EmitToMemory(llvm::Value *Value, QualType Ty) { Value = Builder.CreateBitCast(Value, StoreTy); } + if (Ty->hasBooleanRepresentation() || Ty->isBitIntType()) { michele-scandale wrote: I'll double ch

[clang] [clang][Dependency Scanning] Adding an API to Diagnose Invalid Negative Stat Cache Entries (PR #135703)

2025-04-18 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: Thanks @jansvoboda11 ! The API is updated so that the end result is a vector of paths (strings), so the caller can create the diagnostics. I will add the C-API to https://github.com/swiftlang/llvm-project after this PR lands. https://github.com/llvm/llvm-project/pull/135703

[clang] Revert "[Fuchsia] Not building llvm-mt when LIBXML2 is not enabled." (PR #136216)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Paul Kirth (ilovepi) Changes Reverts llvm/llvm-project#135877 This is causing some problems on Fuchsia's windows CI. We'll need a different solution to triage other builders. https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/cla

[clang] [llvm] [SYCL] Add clang-linker-wrapper changes to call clang-sycl-linker for SYCL offloads (PR #135683)

2025-04-18 Thread Arvind Sudarsanam via cfe-commits
https://github.com/asudarsa converted_to_draft https://github.com/llvm/llvm-project/pull/135683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Generate empty .clang-format-ignore before running tests (PR #136154)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Devon Loehr (DKLoehr) Changes Followup to #136022, this ensures formatting tests are run with an empty `.clang-format-ignore` in their root directory, to prevent failures if the file also exists higher in the tree. --- Full diff:

[clang] [SYCL] Basic code generation for SYCL kernel caller offload entry point functions. (PR #133030)

2025-04-18 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann closed https://github.com/llvm/llvm-project/pull/133030 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lldb] Reland [clang] Unify `SourceLocation` and `IdentifierInfo*` pair-like data structures to `IdentifierLoc` (PR #136077)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. https://github.com/llvm/llvm-project/pull/136077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [sanitizer] Apply AlwaysIn/Out in parseSanitizeArgs (PR #129405)

2025-04-18 Thread Thurston Dang via cfe-commits
https://github.com/thurstond closed https://github.com/llvm/llvm-project/pull/129405 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-04-18 Thread via cfe-commits
https://github.com/liliumShade updated https://github.com/llvm/llvm-project/pull/123193 >From 08f81150949fb97411d6cc6e58c2b9f293cc1bf5 Mon Sep 17 00:00:00 2001 From: Chyaka Date: Thu, 16 Jan 2025 19:02:54 +0800 Subject: [PATCH 1/6] [RISCV] Add processor definition for XiangShan-KunMingHu-V2R2

[clang] [Clang] enhance loop analysis to handle variable changes inside lambdas (PR #135573)

2025-04-18 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/135573 >From 93c8fc7faba6ab9537039b8745e62f5d79785cd0 Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Thu, 17 Apr 2025 23:58:35 +0300 Subject: [PATCH] [Clang] enhance loop analysis to handle variable changes

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-18 Thread Farzon Lotfi via cfe-commits
farzonl wrote: > This doesn't seem right. Are we just misusing `DiagnosticInfoUnsupported` > here? The `Function` argument for `DiagnosticInfoWithLocationBase` is clearly > meant to be part of the location (as evidenced by the "in function XYZ" part > of the message). I suspect that we should

[clang] Make the `-disable-free` flag more full featured (PR #136213)

2025-04-18 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc created https://github.com/llvm/llvm-project/pull/136213 This lets us pass `-no-disable-free` to re-enable freeing memory for example. This is especially helpful for library users of Clang where it is important to not slowly leak memory. >From 4e4ca5ab0f49252ea5a5

[clang] [clang-tools-extra] [lldb] Reland [clang] Unify `SourceLocation` and `IdentifierInfo*` pair-like data structures to `IdentifierLoc` (PR #136077)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: None (yronglin) Changes This PR reland https://github.com/llvm/llvm-project/pull/135808, fixed some missed changes in LLDB. I found this issue when I working on https://github.com/llvm/llvm-project/pull/107168. Currently we h

[clang] [clang][ExprConst] Diagnose ptr subs with non-zero offset (PR #135938)

2025-04-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/135938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] IncludeCleaner include not found error now contains path (PR #136237)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Tongsheng Wu (tongshengw) Changes IncludeCleaner header not found messages now show file path. [https://github.com/clangd/clangd/issues/2334](https://github.com/clangd/clangd/issues/2334) New error messages: ``` E[03:32:43.219] IncludeCl

[clang] [llvm] [SYCL] Add clang-linker-wrapper changes to call clang-sycl-linker for SYCL offloads (PR #135683)

2025-04-18 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/135683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Analyzer] Fix error path of builtin overflow (PR #136345)

2025-04-18 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp,c -- clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionCh

[clang] [clang][Analyzer] Fix error path of builtin overflow (PR #136345)

2025-04-18 Thread Pavel Skripkin via cfe-commits
https://github.com/pskrgag updated https://github.com/llvm/llvm-project/pull/136345 >From bcc3a8d0654d7a92183fb5b010892740c593e012 Mon Sep 17 00:00:00 2001 From: Pavel Skripkin Date: Fri, 18 Apr 2025 22:01:02 +0300 Subject: [PATCH 1/2] [clang][Analyzer] Fix error path of builtin overflow ---

[clang-tools-extra] [clangd] Add container field to remote index Refs grpc method (PR #71605)

2025-04-18 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: @tdupes @kadircet it looks like this PR was approved but has not been merged -- could we merge it? https://github.com/llvm/llvm-project/pull/71605 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [Clang] Fix crash when -header-include-filtering is not specified (PR #136232)

2025-04-18 Thread Bob Wilson via cfe-commits
bob-wilson wrote: I guess we could. Do you think it's worth it? These are only internal cc1 flags. I don't mind to change it, but it will add some minor complexity. https://github.com/llvm/llvm-project/pull/136232 ___ cfe-commits mailing list cfe-comm

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- clang/test/Analysis/pragma-diag-control.cpp clang/

[clang] [clang] Handle instantiated members to determine visibility (PR #136128)

2025-04-18 Thread Devon Loehr via cfe-commits
DKLoehr wrote: Here's what cvise gave me; unfortunately, I'm in a rush so I don't have time to clean it up any further. It crashes when run with `clang++ repro.cc -std=c++20 -Wno-everyt hing -fsyntax-only -ferror-limit=0` repro.cc: ``` template using conditional_t = _IfRes; template void for

[clang] daf3c98 - [CIR] Upstream support for typedef and type aliases (#136335)

2025-04-18 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-04-18T12:52:51-07:00 New Revision: daf3c985f75bae2f4f01594be2fbc02f953e7b06 URL: https://github.com/llvm/llvm-project/commit/daf3c985f75bae2f4f01594be2fbc02f953e7b06 DIFF: https://github.com/llvm/llvm-project/commit/daf3c985f75bae2f4f01594be2fbc02f953e7b06.diff L

[clang] [CIR] Upstream support for typedef and type aliases (PR #136335)

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

[clang] [clang] Fix UEFI Target info (PR #127290)

2025-04-18 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/127290 >From 3e6122744f355954edb6a5450ae4220ba39bc9c1 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Fri, 14 Feb 2025 16:53:33 -0800 Subject: [PATCH 01/13] [clang] Fix UEFI Target info For X64 UEFI targets, making the

[clang] LowerGlobalDtors: Use use_empty instead of getNumUses == 0 (#136337) (PR #136361)

2025-04-18 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko created https://github.com/llvm/llvm-project/pull/136361 LowerGlobalDtors: Use use_empty instead of getNumUses == 0 (#136337) [flang] Improve runtime SAME_TYPE_AS() (#135670) The present implementation of the intrinsic function SAME_TYPE_AS() yields false positive .TR

[clang] LowerGlobalDtors: Use use_empty instead of getNumUses == 0 (#136337) (PR #136361)

2025-04-18 Thread Henrich Lauko via cfe-commits
xlauko wrote: * **#136361** https://app.graphite.dev/github/pr/llvm/llvm-project/136361?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/13636

[clang] [llvm] Minimal support of floating-point operand bundles (PR #135658)

2025-04-18 Thread Joshua Cranmer via cfe-commits
https://github.com/jcranmer-intel commented: Tests for FP operand bundles on a non-intrinsic function would be helpful. https://github.com/llvm/llvm-project/pull/135658 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] LowerGlobalDtors: Use use_empty instead of getNumUses == 0 (#136337) (PR #136361)

2025-04-18 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/136361 >From 2c711e7f5365c1fe6a34254f69c6480a469aebe7 Mon Sep 17 00:00:00 2001 From: xlauko Date: Fri, 18 Apr 2025 21:59:30 +0200 Subject: [PATCH] [CIR] Infer MLIR context in type builders when possible --- clang/incl

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/136323 >From 3beecb29772e13c6a1a41877e5e8cbbfb17a88f2 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 18 Apr 2025 12:26:36 -0400 Subject: [PATCH 1/2] Control analysis-based diagnostics with #pragma Previo

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-18 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/136234 >From 562084ce64581b1cffe30024082f9eb84393875c Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Thu, 17 Apr 2025 17:42:34 -0700 Subject: [PATCH 1/2] [DirectX] add Function name to DiagnosticInfoUnsupported Msg

[clang] [Clang] Fix crash when -header-include-filtering is not specified (PR #136232)

2025-04-18 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 commented: The diagnostic is confusing - it tells the user they used an invalid combination of flags, but shows flags they did not use at all. I think we can improve on this and report when a flag is deduced/assumed/defaulted. https://github.com/llvm/llvm-projec

[clang] [CIR] Upstream support for record packing and padding (PR #136036)

2025-04-18 Thread Bruno Cardoso Lopes via cfe-commits
@@ -225,17 +235,108 @@ void RecordType::complete(ArrayRef members, bool packed, bool padded) { //===--===// llvm::TypeSize -RecordType::getTypeSizeInBits(const ::mlir::DataLayout &dataLayout, -

[clang] [CIR] Upstream support for record packing and padding (PR #136036)

2025-04-18 Thread Bruno Cardoso Lopes via cfe-commits
@@ -502,6 +502,15 @@ def CIR_RecordType : CIR_Type<"Record", "record", void complete(llvm::ArrayRef members, bool packed, bool isPadded); + + // Utilities for lazily computing and cacheing data layout info. + // FIXME: currently opaque because there's a

[clang] e298f16 - [CIR] Upstream support for record packing and padding (#136036)

2025-04-18 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-04-18T10:30:36-07:00 New Revision: e298f16e895f1c3e5571ec1adb84f29646b84637 URL: https://github.com/llvm/llvm-project/commit/e298f16e895f1c3e5571ec1adb84f29646b84637 DIFF: https://github.com/llvm/llvm-project/commit/e298f16e895f1c3e5571ec1adb84f29646b84637.diff L

[clang] [CIR] Upstream support for record packing and padding (PR #136036)

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

[clang] Make the `-disable-free` flag more full featured (PR #136213)

2025-04-18 Thread Chandler Carruth via cfe-commits
chandlerc wrote: > You might want to change the `DisableFree` default for library uses so that > users don't need to specify `-no-disable-free`. > > ``` > // Clang calls BuryPointer on the internal AST and CodeGen-related elements > like TargetMachine. > // This will cause memory leaks if

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread via cfe-commits
@@ -2493,35 +2493,44 @@ class sema::AnalysisBasedWarnings::InterProceduralData { CalledOnceInterProceduralData CalledOnceData; }; -static unsigned isEnabled(DiagnosticsEngine &D, unsigned diag) { - return (unsigned)!D.isIgnored(diag, SourceLocation()); +static bool isEnable

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread via cfe-commits
@@ -2493,35 +2493,44 @@ class sema::AnalysisBasedWarnings::InterProceduralData { CalledOnceInterProceduralData CalledOnceData; }; -static unsigned isEnabled(DiagnosticsEngine &D, unsigned diag) { - return (unsigned)!D.isIgnored(diag, SourceLocation()); +static bool isEnable

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread via cfe-commits
@@ -1202,6 +1202,30 @@ Clang also allows you to push and pop the current warning state. This is particularly useful when writing a header file that will be compiled by other people, because you don't know what warning flags they build with. +Note that the following diagnostic

[clang] [clang][Driver] Support passing arbitrary args to -cc1as with -Xclangas. (PR #100714)

2025-04-18 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/100714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Support passing arbitrary args to -cc1as with -Xclangas. (PR #100714)

2025-04-18 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,6 @@ +// Check that -Xclangas passes args to -cc1as. +// RUN: %clang -### -Xclangas -target-feature -Xclangas +v5t %s 2>&1 | \ MaskRay wrote: change one arg to use `-Xclangas=` https://github.com/llvm/llvm-project/pull/100714 _

[clang] [clang][Driver] Support passing arbitrary args to -cc1as with -Xclangas. (PR #100714)

2025-04-18 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. (I will have limited internet access between April 20th and May 4th, and my response time may be delayed..) https://github.com/llvm/llvm-project/pull/100714 ___ cfe-commits mailing list cfe-commi

[clang] [clang][Driver] Support passing arbitrary args to -cc1as with -Xclangas. (PR #100714)

2025-04-18 Thread Fangrui Song via cfe-commits
MaskRay wrote: > This is one of the ideas I gave in > https://github.com/llvm/llvm-project/issues/97517. I opted to propose this > one first as introducing a new -Xclangas option comes with no concerns about > GCC compatibility as with -Xassembler. Please update the description/commit messag

[clang] [clang][Driver] Support passing arbitrary args to -cc1as with -Xclangas. (PR #100714)

2025-04-18 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,6 @@ +// Check that -Xclangas passes args to -cc1as. MaskRay wrote: `/// ` for non-RUN non-CHECK comments to make them stand out https://github.com/llvm/llvm-project/pull/100714 ___ cfe-commits mailing list

[clang] [llvm] Minimal support of floating-point operand bundles (PR #135658)

2025-04-18 Thread Nikita Popov via cfe-commits
nikic wrote: > I don't see the necessity of using operand bundles. All of the possible > arguments are metadata strings, not SSA values. Can't we just use metadata > instead? Metadata always has to be droppable. Some of this could in theory be handled with metadata if we say the behavior (wit

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread Aaron Ballman via cfe-commits
@@ -2493,35 +2493,44 @@ class sema::AnalysisBasedWarnings::InterProceduralData { CalledOnceInterProceduralData CalledOnceData; }; -static unsigned isEnabled(DiagnosticsEngine &D, unsigned diag) { - return (unsigned)!D.isIgnored(diag, SourceLocation()); +static bool isEnable

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

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

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread Aaron Ballman via cfe-commits
@@ -2493,35 +2493,44 @@ class sema::AnalysisBasedWarnings::InterProceduralData { CalledOnceInterProceduralData CalledOnceData; }; -static unsigned isEnabled(DiagnosticsEngine &D, unsigned diag) { - return (unsigned)!D.isIgnored(diag, SourceLocation()); +static bool isEnable

[clang] [CIR] Upstream limited support for nested structures (PR #136331)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes Previously when we checked to see if it was safe to create CIR for a structure type, we were conservatively saying no if any structure was in the process of being converted. That prevented handling nested

[clang] [CIR] Upstream limited support for nested structures (PR #136331)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes Previously when we checked to see if it was safe to create CIR for a structure type, we were conservatively saying no if any structure was in the process of being converted. That prevented handling neste

[clang] [CIR] Upstream limited support for nested structures (PR #136331)

2025-04-18 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/136331 Previously when we checked to see if it was safe to create CIR for a structure type, we were conservatively saying no if any structure was in the process of being converted. That prevented handling nested st

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

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

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-18 Thread Erich Keane via cfe-commits
erichkeane wrote: @clementval @razvanlupusoru This should now be ready, though it probably has to be merged with the flang changes after `num_gangs`/`num_workers`/`vector_length` changes are made. MOST of this ended up being test changes as we went along, But the tablegen/ACC.td changes/etc

[clang] [CIR] Upstream scalar support for ParenExpr (PR #136332)

2025-04-18 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/136332 This change adds support for handling ParenExpr in scalar expressions. A few more places will need to be updated after structure assignment and complex type support is in place. >From 15a892df17d7d2fcd32322

[clang] [CIR] Upstream scalar support for ParenExpr (PR #136332)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes This change adds support for handling ParenExpr in scalar expressions. A few more places will need to be updated after structure assignment and complex type support is in place. --- Full diff: https://g

[clang] [CIR] Upstream scalar support for ParenExpr (PR #136332)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This change adds support for handling ParenExpr in scalar expressions. A few more places will need to be updated after structure assignment and complex type support is in place. --- Full diff: https://git

[clang] 9ef9167 - [clang][Dependency Scanning] Adding an API to Diagnose Invalid Negative Stat Cache Entries (#135703)

2025-04-18 Thread via cfe-commits
Author: Qiongsi Wu Date: 2025-04-18T10:52:39-07:00 New Revision: 9ef91677a4a2d4b017d2b96b8c89c2a9b648d6c3 URL: https://github.com/llvm/llvm-project/commit/9ef91677a4a2d4b017d2b96b8c89c2a9b648d6c3 DIFF: https://github.com/llvm/llvm-project/commit/9ef91677a4a2d4b017d2b96b8c89c2a9b648d6c3.diff LO

[clang] [clang][Dependency Scanning] Adding an API to Diagnose Invalid Negative Stat Cache Entries (PR #135703)

2025-04-18 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu closed https://github.com/llvm/llvm-project/pull/135703 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][driver] Suppress gnu-line-marker when saving temps (PR #134621)

2025-04-18 Thread via cfe-commits
https://github.com/macurtis-amd updated https://github.com/llvm/llvm-project/pull/134621 >From 9d38a08bc91273d961fa1bd855d212b09249d826 Mon Sep 17 00:00:00 2001 From: Matthew Curtis Date: Fri, 18 Apr 2025 12:46:23 -0500 Subject: [PATCH] [clang] Suppress gnu-line-marker when saving temps When p

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-18 Thread Justin Bogner via cfe-commits
@@ -139,7 +139,7 @@ class DiagnosticInfo { using DiagnosticHandlerFunction = std::function; class DiagnosticInfoGeneric : public DiagnosticInfo { - const Twine &MsgStr; + const Twine MsgStr; bogner wrote: All of the Twine usage in Diagnostic info is super s

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-18 Thread Justin Bogner via cfe-commits
@@ -756,9 +756,10 @@ class OpLowerer { case Intrinsic::not_intrinsic: continue; default: { -DiagnosticInfoUnsupported Diag( -F, "Unsupported intrinsic for DXIL lowering"); -M.getContext().diagnose(Diag); +std::string Msg =

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-18 Thread Justin Bogner via cfe-commits
@@ -0,0 +1,7 @@ +// RUN: %if clang-dxc %{not %clang_dxc -T lib_6_3 %s 2>&1 | FileCheck %s %} bogner wrote: I don't think there's a `clang-dxc` feature, so I suspect this just never runs at all. This will fail if the DirectX backend isn't available, so I don't th

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-18 Thread Farzon Lotfi via cfe-commits
@@ -0,0 +1,7 @@ +// RUN: %if clang-dxc %{not %clang_dxc -T lib_6_3 %s 2>&1 | FileCheck %s %} farzonl wrote: I tried REQUIRES: directx-registered-target and it just makes it so the test gets skipped as unsupported even on my local machine with the directx target

[clang] [llvm] [HLSL] Implement the `faceforward` intrinsic (PR #135878)

2025-04-18 Thread Kaitlin Peng via cfe-commits
https://github.com/kmpeng updated https://github.com/llvm/llvm-project/pull/135878 >From 69aee464d31dcf585c355808053b0c4d1c7d7f3c Mon Sep 17 00:00:00 2001 From: kmpeng Date: Mon, 7 Apr 2025 14:46:07 -0700 Subject: [PATCH 1/4] create int_spv_faceforward intrinsic, create faceforward lowering &

[clang] [llvm] [HLSL] Implement the `faceforward` intrinsic (PR #135878)

2025-04-18 Thread Kaitlin Peng via cfe-commits
https://github.com/kmpeng updated https://github.com/llvm/llvm-project/pull/135878 >From d953d95867574dd575cf098668554dfa8e7ffad5 Mon Sep 17 00:00:00 2001 From: kmpeng Date: Mon, 7 Apr 2025 14:46:07 -0700 Subject: [PATCH 1/4] create int_spv_faceforward intrinsic, create faceforward lowering &

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread Artem Dergachev via cfe-commits
https://github.com/haoNoQ edited https://github.com/llvm/llvm-project/pull/136323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread Artem Dergachev via cfe-commits
https://github.com/haoNoQ commented: So from the user's perspective we're checking the flag twice: once at the `}` to see if we need to ramp up the analysis, then again at the diagnostic location to see if the diagnostic should be discarded. The warning will only be emitted if it's enabled at

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread Artem Dergachev via cfe-commits
@@ -202,6 +202,43 @@ class SemaPPCallbacks : public PPCallbacks { break; } } + void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, +diag::Severity Mapping, StringRef Str) override { +// If one of the analysis-based diagnostics

[clang] [llvm] [HLSL] Implement the `faceforward` intrinsic (PR #135878)

2025-04-18 Thread Kaitlin Peng via cfe-commits
@@ -0,0 +1,35 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 + +// RUN: %clang_cc1 -O1 -triple spirv-pc-vulkan-compute %s -emit-llvm -o - | FileCheck %s + +typedef float float2 __attribute__((ext_vector_type(2))); +typedef

[clang] [llvm] [HLSL] Implement the `faceforward` intrinsic (PR #135878)

2025-04-18 Thread Kaitlin Peng via cfe-commits
@@ -105,35 +136,27 @@ bool SemaSPIRV::CheckSPIRVBuiltinFunctionCall(unsigned BuiltinID, if (SemaRef.checkArgCount(TheCall, 3)) return true; -// check if the all arguments have floating representation -for (unsigned i = 0; i < TheCall->getNumArgs(); ++i) { -

[clang] [llvm] [HLSL] Implement the `faceforward` intrinsic (PR #135878)

2025-04-18 Thread Kaitlin Peng via cfe-commits
@@ -126,6 +126,24 @@ template constexpr vector lit_impl(T NDotL, T NDotH, T M) { return Result; } +template constexpr T faceforward_impl(T N, T I, T Ng) { kmpeng wrote: You're right. Removed vector implementation https://github.com/llvm/llvm-project/pul

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread Erich Keane via cfe-commits
erichkeane wrote: > So from the user's perspective we're checking the flag twice: once at the `}` > to see if we need to ramp up the analysis, then again at the diagnostic > location to see if the diagnostic should be discarded. The warning will only > be emitted if it's enabled at both source

<    1   2   3   4   5   6