[clang] [Clang][TableGen] Use const pointers for various Init objects in NeonEmitter (PR #112317)

2024-10-14 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul edited https://github.com/llvm/llvm-project/pull/112317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][TableGen] NeonEmitter (PR #112317)

2024-10-14 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul edited https://github.com/llvm/llvm-project/pull/112317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add ifunc support for Windows on AArch64. (PR #111962)

2024-10-14 Thread Daniel Kiss via cfe-commits
@@ -0,0 +1,65 @@ +// RUN: %clang_cc1 -triple aarch64-pc-windows-msvc -emit-llvm -o - %s | FileCheck %s DanielKristofKiss wrote: So far, but other targets could be added here later without too much change to the test. https://github.com/llvm/llvm-project/pull/1

[clang] [Clang][TableGen] Use const pointer for various `Init` pointers. (PR #112318)

2024-10-14 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/112318 None >From a9ded784183d3df06434814af9e0ca32d9ef907f Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Mon, 14 Oct 2024 22:56:07 -0700 Subject: [PATCH] [Clang][TableGen] Use const pointer for various `Init` poin

[clang] [Clang][TableGen] NeonEmitter (PR #112317)

2024-10-14 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/112317 None >From 6dfa15a4c498855bc8bfe363671b7ee17d55d980 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Mon, 14 Oct 2024 23:12:24 -0700 Subject: [PATCH] [Clang][TableGen] NeonEmitter --- clang/utils/TableGen/Neo

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread Boaz Brickner via cfe-commits
@@ -107,6 +107,39 @@ namespace std { using std::operator""s; using std::operator""sv; +namespace default_args { + using IntArray = int[]; + const int *defaultparam1(const int &def1 [[clang::lifetimebound]] = 0); // #def1 + const int &defaultparam_array([[clang::lifetimebou

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread Boaz Brickner via cfe-commits
@@ -107,6 +107,39 @@ namespace std { using std::operator""s; using std::operator""sv; +namespace default_args { + using IntArray = int[]; + const int *defaultparam1(const int &def1 [[clang::lifetimebound]] = 0); // #def1 + const int &defaultparam_array([[clang::lifetimebou

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread Boaz Brickner via cfe-commits
@@ -107,6 +107,39 @@ namespace std { using std::operator""s; using std::operator""sv; +namespace default_args { + using IntArray = int[]; bricknerb wrote: Is this helpful if this is only used once? https://github.com/llvm/llvm-project/pull/112047 __

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread Boaz Brickner via cfe-commits
@@ -1383,6 +1394,15 @@ static void checkExprLifetimeImpl(Sema &SemaRef, << nextPathEntryRange(Path, I + 1, L); break; } + + case IndirectLocalPathEntry::DefaultArg: { +const auto *DAE = cast(Elem.E); +SemaRef.Diag(DAE->getParam()->

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread Boaz Brickner via cfe-commits
@@ -1370,7 +1381,7 @@ static void checkExprLifetimeImpl(Sema &SemaRef, break; } - case IndirectLocalPathEntry::LambdaCaptureInit: + case IndirectLocalPathEntry::LambdaCaptureInit: { bricknerb wrote: Revert this change as it is unrelate

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread Boaz Brickner via cfe-commits
https://github.com/bricknerb deleted https://github.com/llvm/llvm-project/pull/112047 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

2024-10-14 Thread Boaz Brickner via cfe-commits
@@ -1370,7 +1381,7 @@ static void checkExprLifetimeImpl(Sema &SemaRef, break; } - case IndirectLocalPathEntry::LambdaCaptureInit: + case IndirectLocalPathEntry::LambdaCaptureInit: { bricknerb wrote: Revert this change as it seems unrel

[clang] [lldb] [llvm] [APInt] Fix APInt constructions where value does not fit bitwidth (NFCI) (PR #80309)

2024-10-14 Thread David Green via cfe-commits
@@ -1159,7 +1159,9 @@ class ARMOperand : public MCParsedAsmOperand { if (!isImm()) return false; const MCConstantExpr *CE = dyn_cast(getImm()); if (!CE) return false; davemgreen wrote: Can this check that CE->getActiveBits() > 32? https://github.c

[clang] Fieldregion descript name (PR #112313)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: None (T-Gruber) Changes The current implementation of MemRegion::getDescriptiveName fails for FieldRegions whose SuperRegion is an ElementRegion. As outlined below: ```Cpp struct val_struct { int val; }; extern struct val

[clang] Fieldregion descript name (PR #112313)

2024-10-14 Thread via cfe-commits
https://github.com/T-Gruber created https://github.com/llvm/llvm-project/pull/112313 The current implementation of MemRegion::getDescriptiveName fails for FieldRegions whose SuperRegion is an ElementRegion. As outlined below: ```Cpp struct val_struct { int val; }; extern struct val_struct val_s

[clang-tools-extra] [clang-tidy] Fix a typo (PR #112283)

2024-10-14 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Thank you for the contribution! I've added [NFC] (non functional change) to the commit message title. https://github.com/llvm/llvm-project/pull/112283 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang-tools-extra] [clang-tidy] Fix a typo (PR #112283)

2024-10-14 Thread via cfe-commits
github-actions[bot] wrote: @thevar1able Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a bu

[clang-tools-extra] [clang-tidy] Fix a typo (PR #112283)

2024-10-14 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/112283 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 57d109c - [clang-tidy][NFC] Fix a typo (#112283)

2024-10-14 Thread via cfe-commits
Author: Konstantin Bogdanov Date: 2024-10-15T07:53:08+02:00 New Revision: 57d109c4c93c8cf2d7ff9e5877a48152ed7a617a URL: https://github.com/llvm/llvm-project/commit/57d109c4c93c8cf2d7ff9e5877a48152ed7a617a DIFF: https://github.com/llvm/llvm-project/commit/57d109c4c93c8cf2d7ff9e5877a48152ed7a617a

[clang] [clang] When checking for covariant return types, make sure the pointers or references are to *classes* (PR #111856)

2024-10-14 Thread Boaz Brickner via cfe-commits
https://github.com/bricknerb updated https://github.com/llvm/llvm-project/pull/111856 >From 786d31e2657964e578cd1fdf2006b0fb3b19fab6 Mon Sep 17 00:00:00 2001 From: Boaz Brickner Date: Thu, 10 Oct 2024 15:15:23 + Subject: [PATCH 1/5] [clang] When checking for covariant return types, make su

[clang] [Clang][Sema] Fix templated array size calculation. (PR #96464)

2024-10-14 Thread via cfe-commits
github-actions[bot] wrote: @awson Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build, y

[clang] 37bd788 - [Clang][Sema] Fix templated array size calculation. (#96464)

2024-10-14 Thread via cfe-commits
Author: awson Date: 2024-10-15T07:52:02+02:00 New Revision: 37bd788138e1f18d5e327de28a6940da57cdcde8 URL: https://github.com/llvm/llvm-project/commit/37bd788138e1f18d5e327de28a6940da57cdcde8 DIFF: https://github.com/llvm/llvm-project/commit/37bd788138e1f18d5e327de28a6940da57cdcde8.diff LOG: [C

[clang] [Clang][Sema] Fix templated array size calculation. (PR #96464)

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

[clang] [flang] [flang] Link to libatomic with openmp and rtlib=libgcc (PR #112202)

2024-10-14 Thread via cfe-commits
https://github.com/NimishMishra approved this pull request. LGTM! Thanks for this. The Windows CI failure seems to be in `Driver/atomic.f90`. Do we disable this test on Windows (if there is a way to do so)? https://github.com/llvm/llvm-project/pull/112202 __

[clang] [clang][bytecode] Fix __builtin_convertvector with float-cast (PR #112238)

2024-10-14 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/112238 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 51d0e40 - [clang][bytecode] Fix __builtin_convertvector with float-cast (#112238)

2024-10-14 Thread via cfe-commits
Author: Timm Baeder Date: 2024-10-15T07:49:55+02:00 New Revision: 51d0e40c2ee1ab25f408f22e82ef4e16d6fb3103 URL: https://github.com/llvm/llvm-project/commit/51d0e40c2ee1ab25f408f22e82ef4e16d6fb3103 DIFF: https://github.com/llvm/llvm-project/commit/51d0e40c2ee1ab25f408f22e82ef4e16d6fb3103.diff L

[clang] clang/AMDGPU: Set noalias.addrspace metadata on atomicrmw (PR #102462)

2024-10-14 Thread Matt Arsenault via cfe-commits
arsenm wrote: ping https://github.com/llvm/llvm-project/pull/102462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang: Remove requires system-linux from some driver tests (PR #111976)

2024-10-14 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/111976 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang: Fix hipstdpar test relying on default target (PR #111975)

2024-10-14 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/111975 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5b330a7 - clang: Fix hipstdpar test relying on default target (#111975)

2024-10-14 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-10-15T09:45:53+04:00 New Revision: 5b330a72a027fb557704a543010fa9656d547023 URL: https://github.com/llvm/llvm-project/commit/5b330a72a027fb557704a543010fa9656d547023 DIFF: https://github.com/llvm/llvm-project/commit/5b330a72a027fb557704a543010fa9656d547023.diff

[clang] [Clang][Sema] Fix templated array size calculation. (PR #96464)

2024-10-14 Thread via cfe-commits
awson wrote: > If you have approvals you don't have to wait for other reviewers unless they > have made a comment that required a change and you them to confirm the fix or > they explicitly blocked the review. I believe I have no write access to the repo. Could you, please, merge this? @cor3

[clang] [clang] LazyOffsetPtr: Use native pointer width (PR #111995)

2024-10-14 Thread Sam James via cfe-commits
thesamesam wrote: cc @glaubitz (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113341) https://github.com/llvm/llvm-project/pull/111995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Fix templated array size calculation. (PR #96464)

2024-10-14 Thread via cfe-commits
https://github.com/awson updated https://github.com/llvm/llvm-project/pull/96464 >From 096b999120cc28844d780acbc16f8308b3a54160 Mon Sep 17 00:00:00 2001 From: awson Date: Mon, 24 Jun 2024 10:34:51 +0300 Subject: [PATCH 1/3] [Clang][Sema] don't handle ArraySize/AllocType early. --- clang/lib/Se

[clang] 3733b0c - [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (#112177)

2024-10-14 Thread via cfe-commits
Author: Younan Zhang Date: 2024-10-15T12:52:31+08:00 New Revision: 3733b0cff314e1427b1a905e6e7438b536f9a96d URL: https://github.com/llvm/llvm-project/commit/3733b0cff314e1427b1a905e6e7438b536f9a96d DIFF: https://github.com/llvm/llvm-project/commit/3733b0cff314e1427b1a905e6e7438b536f9a96d.diff

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/112177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Allow all address spaces to be converted to the default (PR #112248)

2024-10-14 Thread Matt Arsenault via cfe-commits
arsenm wrote: > I'm thinking we could have a language option like > `-fimplicit-default-addrspace-cast` that allows all conversions to default. > Then if we want users to be aware that this even exists we could suggest it > in the error message if it would fix it. > > I do understand that the

[clang] [clang-tools-extra] [clangd] Update clangDaemonTweaks to set symbol visibility macros (PR #112304)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Thomas Fransham (fsfod) Changes Update clangDaemonTweaks cmake target to set explicit symbol visibility macros to correct mode for windows. This will fix linker duplicate symbols errors from clangDaemonTweaks exporting clang symbols inste

[clang] [clang-tools-extra] [clangd] Update clangDaemonTweaks to set symbol visibility macros (PR #112304)

2024-10-14 Thread Thomas Fransham via cfe-commits
https://github.com/fsfod created https://github.com/llvm/llvm-project/pull/112304 Update clangDaemonTweaks cmake target to set explicit symbol visibility macros to correct mode for windows. This will fix linker duplicate symbols errors from clangDaemonTweaks exporting clang symbols instead of

[clang] [Clang] Allow all address spaces to be converted to the default (PR #112248)

2024-10-14 Thread Alexey Bader via cfe-commits
@@ -721,7 +721,9 @@ class Qualifiers { // to implicitly cast into the default address space. (A == LangAS::Default && (B == LangAS::cuda_constant || B == LangAS::cuda_device || - B == LangAS::cuda_shared)); + B == LangAS

[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)

2024-10-14 Thread Chuanqi Xu via cfe-commits
@@ -10057,15 +10057,18 @@ void ASTReader::finishPendingActions() { // For a function defined inline within a class template, force the // canonical definition to be the one inside the canonical definition of // the template. This ensures that we instantiate fr

[clang] ee64684 - Revert "[clang-format] Correctly annotate */& in if condition with braced init (#109505)"

2024-10-14 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2024-10-14T19:29:44-07:00 New Revision: ee6468494e08651ec7f534781693408f34a74753 URL: https://github.com/llvm/llvm-project/commit/ee6468494e08651ec7f534781693408f34a74753 DIFF: https://github.com/llvm/llvm-project/commit/ee6468494e08651ec7f534781693408f34a74753.diff LOG:

[clang] [ASTWriter] Detect more non-affecting FileIDs to reduce source location duplication (PR #112015)

2024-10-14 Thread Chuanqi Xu via cfe-commits
@@ -192,13 +201,13 @@ GetAffectingModuleMaps(const Preprocessor &PP, Module *RootModule) { // The containing module map is affecting, because it's being pointed // into by Module::DefinitionLoc. - if (auto FE = MM.getContainingModuleMapFile(Mod)) -Mod

[clang-tools-extra] Add option to exclude headers from clang-tidy analysis (PR #91400)

2024-10-14 Thread SwanBai Lei27 via cfe-commits
Baiyi27 wrote: > This feature works as intended, it is only for filtering out diagnosed > issues, not for skipping the analysis in those files. See #52959 for the > feature you are looking for. TLDR: clang-tidy currently does not skip the > analysis in (system) header files, `exclude-header-fi

[clang] [Clang] Instantiate Typedefs referenced by type alias deduction guides (PR #111804)

2024-10-14 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#112293 https://github.com/llvm/llvm-project/pull/111804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Instantiate Typedefs referenced by type alias deduction guides (PR #111804)

2024-10-14 Thread Younan Zhang via cfe-commits
zyn0217 wrote: I'll go ahead and backport it - this bug was first introduced by sugar preservation on CTAD guides included in the 19.x cycle. /backport 0bc02b999a https://github.com/llvm/llvm-project/pull/111804 ___ cfe-commits mailing list cfe-commi

[clang] [Clang] Instantiate Typedefs referenced by type alias deduction guides (PR #111804)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 milestoned https://github.com/llvm/llvm-project/pull/111804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a DeclContext mismatch when parsing nested lambda parameters (PR #112177)

2024-10-14 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/112177 >From 78657277495bbd1f82faef655c49320a4315272f Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Mon, 14 Oct 2024 17:42:17 +0800 Subject: [PATCH 1/4] [Clang] Fix a DeclContext mismatch when parsing nested lambd

[clang-tools-extra] [clang-tidy] Fix a typo (PR #112283)

2024-10-14 Thread Konstantin Bogdanov via cfe-commits
https://github.com/thevar1able updated https://github.com/llvm/llvm-project/pull/112283 >From c9db5830f95727601900aa9a87c0970ecfbf5c76 Mon Sep 17 00:00:00 2001 From: Konstantin Bogdanov Date: Tue, 15 Oct 2024 03:06:46 +0200 Subject: [PATCH] Fix a typo --- .../CrtpConstructorAccessibilityCheck

[clang] [lld] [Driver] Default enable LoongArch linker relaxation (PR #111488)

2024-10-14 Thread via cfe-commits
https://github.com/ywgrit edited https://github.com/llvm/llvm-project/pull/111488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Generate note on declaration for nodiscard-related attributes (PR #112289)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yihe Li (Mick235711) Changes Currently, the following program ```cpp [[nodiscard]] int fun() { return 1; } [[deprecated]] int fun2() { return 2; } int main() { fun(); fun2(); } ``` generates the following diagnostics on Clang trunk: ([

[clang] [clang] Generate note on declaration for nodiscard-related attributes (PR #112289)

2024-10-14 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [clang] Generate note on declaration for nodiscard-related attributes (PR #112289)

2024-10-14 Thread Yihe Li via cfe-commits
https://github.com/Mick235711 created https://github.com/llvm/llvm-project/pull/112289 Currently, the following program ```cpp [[nodiscard]] int fun() { return 1; } [[deprecated]] int fun2() { return 2; } int main() { fun(); fun2(); } ``` generates the following diagnostics on Clang trunk:

[clang] [llvm] [MTE] Apply alignment / size in AsmPrinter rather than IR (PR #111918)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-backend-aarch64 Author: Florian Mayer (fmayer) Changes This greatly simplifies the code, and makes sure no optimizations are applied that assume the bigger alignment or size, which could be incorrect if we link together

[clang] [llvm] [MTE] Apply alignment / size in AsmPrinter rather than IR (PR #111918)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Florian Mayer (fmayer) Changes This greatly simplifies the code, and makes sure no optimizations are applied that assume the bigger alignment or size, which could be incorrect if we link together with non-instrumented code. --- Full diff:

[clang] [llvm] [MTE] Apply alignment / size in AsmPrinter rather than IR (PR #111918)

2024-10-14 Thread Florian Mayer via cfe-commits
https://github.com/fmayer ready_for_review https://github.com/llvm/llvm-project/pull/111918 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm] Support llvm::Any across shared libraries on windows (PR #108051)

2024-10-14 Thread Yitzhak Mandelbaum via cfe-commits
@@ -28,12 +28,24 @@ #include "clang/Analysis/FlowSensitive/MatchSwitch.h" #include "clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h" #include "clang/Analysis/FlowSensitive/WatchedLiteralsSolver.h" +#include "clang/Support/Compiler.h" #include "llvm/ADT/STLExtras.h"

[clang] [llvm] [llvm] Support llvm::Any across shared libraries on windows (PR #108051)

2024-10-14 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand requested changes to this pull request. https://github.com/llvm/llvm-project/pull/108051 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][Driver] Add support for -f[no-]wrapv and -f[no]-strict-overflow in the frontend (PR #110061)

2024-10-14 Thread Yusuke MINATO via cfe-commits
yus3710-fj wrote: Gentle ping @MaskRay. https://github.com/llvm/llvm-project/pull/110061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reapply "[clang][CodeGen] Zero init unspecified fields in initializers in C" (#109898) (PR #110051)

2024-10-14 Thread via cfe-commits
https://github.com/yabinc closed https://github.com/llvm/llvm-project/pull/110051 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6277465 - Reapply "[clang][CodeGen] Zero init unspecified fields in initializers in C" (#109898) (#110051)

2024-10-14 Thread via cfe-commits
Author: yabinc Date: 2024-10-14T16:32:24-07:00 New Revision: 627746581b8fde4143533937130f420bbbdf9ddf URL: https://github.com/llvm/llvm-project/commit/627746581b8fde4143533937130f420bbbdf9ddf DIFF: https://github.com/llvm/llvm-project/commit/627746581b8fde4143533937130f420bbbdf9ddf.diff LOG: R

[clang] [Wunsafe-buffer-usage] False positives for & expression indexing constant size array (arr[anything & 0]) (PR #112284)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Malavika Samak (malavikasamak) Changes Do not warn when a constant sized array is indexed with an expression that contains bitwise and operation involving constants and it always results in a bound safe access. (rdar://136684050)

[clang] [Wunsafe-buffer-usage] False positives for & expression indexing constant size array (arr[anything & 0]) (PR #112284)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Malavika Samak (malavikasamak) Changes Do not warn when a constant sized array is indexed with an expression that contains bitwise and operation involving constants and it always results in a bound safe access. (rdar://136684050) --- Ful

[clang] [Wunsafe-buffer-usage] False positives for & expression indexing constant size array (arr[anything & 0]) (PR #112284)

2024-10-14 Thread Malavika Samak via cfe-commits
https://github.com/malavikasamak created https://github.com/llvm/llvm-project/pull/112284 Do not warn when a constant sized array is indexed with an expression that contains bitwise and operation involving constants and it always results in a bound safe access. (rdar://136684050) >From b557d1

[clang-tools-extra] [clangd] Add inlay hints for default function arguments (PR #95712)

2024-10-14 Thread Tor Shepherd via cfe-commits
https://github.com/torshepherd updated https://github.com/llvm/llvm-project/pull/95712 >From 2c9e7c16524b7ce3bf818e451279722dc45d3efc Mon Sep 17 00:00:00 2001 From: Tor Shepherd Date: Mon, 23 Sep 2024 23:12:23 -0400 Subject: [PATCH 1/5] just defaults --- clang-tools-extra/clangd/Config.h

[clang-tools-extra] [clangd] Add inlay hints for default function arguments (PR #95712)

2024-10-14 Thread Tor Shepherd via cfe-commits
torshepherd wrote: Ok I found a couple of nontrivial issues that I took care of in the latest commit. 1. Using `DefaultArguments` required having parameter names set to true as well. I separated them so that both have a modality that works with or without the other. See screenshot for default

[clang] [llvm] [llvm] Support llvm::Any across shared libraries on windows (PR #108051)

2024-10-14 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 39ac8b25cdca230509078d575d46c538bdf90e18 d336c456a93b36b1a15fd1cbf1a80275b2704525 --e

[clang-tools-extra] [clang-tidy] Fix a typo (PR #112283)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Konstantin Bogdanov (thevar1able) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/112283.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/bugprone/CrtpConstructorAccessibilityCheck.cpp (+1

[clang-tools-extra] [clang-tidy] Fix a typo (PR #112283)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Konstantin Bogdanov (thevar1able) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/112283.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/bugprone/CrtpConstructorAccessibilityCheck.cpp (+1-1) -

[clang-tools-extra] [clang-tidy] Fix a typo (PR #112283)

2024-10-14 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang-tools-extra] [clang-tidy] Fix a typo (PR #112283)

2024-10-14 Thread Konstantin Bogdanov via cfe-commits
https://github.com/thevar1able created https://github.com/llvm/llvm-project/pull/112283 None >From 31e4d362b6466b101cdf896003c6c264786b3f2a Mon Sep 17 00:00:00 2001 From: Konstantin Bogdanov Date: Tue, 15 Oct 2024 01:21:21 +0200 Subject: [PATCH] Fix a typo --- .../CrtpConstructorAccessibilit

[clang] [llvm] [llvm] Support llvm::Any across shared libraries on windows (PR #108051)

2024-10-14 Thread Thomas Fransham via cfe-commits
https://github.com/fsfod updated https://github.com/llvm/llvm-project/pull/108051 >From e39aee57ce8a98723f40f67ae33808bc6213c61d Mon Sep 17 00:00:00 2001 From: Thomas Fransham Date: Sat, 7 Sep 2024 15:53:09 +0100 Subject: [PATCH 1/4] [llvm] Support llvm::Any across shared libraries on windows

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-10-14 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,713 @@ +//===-- Mustache.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-10-14 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,713 @@ +//===-- Mustache.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-10-14 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,567 @@ +//===-- Mustache.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-10-14 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,567 @@ +//===-- Mustache.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [Clang] Allow all address spaces to be converted to the default (PR #112248)

2024-10-14 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > So overall I'm leaning against doing it as is; guarding it under some flavour > of `allow-relaxed-address-space-handling` or something that sounds better but > is still noisy enough to make it clear there's danger seems preferable, at > least to me. A language option is reaso

[clang-tools-extra] [clang-tidy] [docs] Replace _not_ in reserved-identifier.rst with *not* (PR #112162)

2024-10-14 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Rebase past 3484ed9325f30b56717a1b939af4c58dd07848e0 for green CI. https://github.com/llvm/llvm-project/pull/112162 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 3484ed9 - [docs][clang-tools-extra] Fix broken document link in ReleaseNotes.rst

2024-10-14 Thread via cfe-commits
Author: Nicolas van Kempen Date: 2024-10-14T18:43:33-04:00 New Revision: 3484ed9325f30b56717a1b939af4c58dd07848e0 URL: https://github.com/llvm/llvm-project/commit/3484ed9325f30b56717a1b939af4c58dd07848e0 DIFF: https://github.com/llvm/llvm-project/commit/3484ed9325f30b56717a1b939af4c58dd07848e0.

[clang] [lld] [llvm] [WebAssembly] Enable nontrapping-fptoint and bulk-memory by default. (PR #112049)

2024-10-14 Thread Sam Clegg via cfe-commits
@@ -2,7 +2,7 @@ ; RUN: llvm-as -o %t.o %s ; RUN: llvm-as -o %t2.o %S/Inputs/libcall-archive.ll ; RUN: llvm-ar rcs %t.a %t2.o -; RUN: wasm-ld -o %t %t.o %t.a +; RUN: wasm-ld -mllvm -mattr=-bulk-memory -o %t %t.o %t.a sbc100 wrote: Why is this needed? Should th

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 Thread via cfe-commits
dpalermo wrote: > Sorry, I opened a build fix PR here #112275 Thanks for the fix! Closing revert. https://github.com/llvm/llvm-project/pull/112274 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 Thread via cfe-commits
https://github.com/dpalermo closed https://github.com/llvm/llvm-project/pull/112274 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] fix range calculation for conditionals with throw expressions (PR #112081)

2024-10-14 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/112081 >From 67c41612085489a2a17eec49f98dbfa0e5bb97cf Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sat, 12 Oct 2024 08:27:51 +0300 Subject: [PATCH] [Clang] fix range calculation for conditionals with throw expr

[clang] [Clang] Allow all address spaces to be converted to the default (PR #112248)

2024-10-14 Thread Alex Voicu via cfe-commits
AlexVlx wrote: > > Running into an observable situation where this is a concern means that > > either you've messed around with (non C/C++) attributes, or are linking in > > something exciting. Neither of which constitutes valid C/C++, and I'm > > leaning towards saying shouldn't be allowed to

[clang] [Clang] Allow all address spaces to be converted to the default (PR #112248)

2024-10-14 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > Running into an observable situation where this is a concern means that > either you've messed around with (non C/C++) attributes, or are linking in > something exciting. Neither of which constitutes valid C/C++, and I'm leaning > towards saying shouldn't be allowed to silentl

[clang] [Clang] Allow all address spaces to be converted to the default (PR #112248)

2024-10-14 Thread Alex Voicu via cfe-commits
AlexVlx wrote: > I think the default AS is expected to be losslessly converted to other AS but > not the other way around, though I understand it is not clearly stated in > LangRef or other places and a lot of code just assumes it can. I don't think this expectation is thoroughly encoded anywh

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 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 c4131cb56c9de616442525b1f02162eb470df1f8 f173e127c135f88ea37aef26010583078063c202 --e

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 Thread Yuta Saito via cfe-commits
kateinoigakukun wrote: Sorry, I opened a build fix PR here https://github.com/llvm/llvm-project/pull/112275 https://github.com/llvm/llvm-project/pull/112274 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 Thread via cfe-commits
https://github.com/ronlieb approved this pull request. https://github.com/llvm/llvm-project/pull/112274 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mc Author: None (dpalermo) Changes Reverts llvm/llvm-project#111332 Unable to build clang/flang with OpenMP this patch. Results in: https://lab.llvm.org/staging/#/builders/105/builds/6816 38.873 [112/2/7464] Linking CXX shared library lib/liblldWasm.s

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-pgo Author: None (dpalermo) Changes Reverts llvm/llvm-project#111332 Unable to build clang/flang with OpenMP this patch. Results in: https://lab.llvm.org/staging/#/builders/105/builds/6816 38.873 [112/2/7464] Linking CXX shared library lib/liblldWasm.

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lld Author: None (dpalermo) Changes Reverts llvm/llvm-project#111332 Unable to build clang/flang with OpenMP this patch. Results in: https://lab.llvm.org/staging/#/builders/105/builds/6816 38.873 [112/2/7464] Linking CXX shared library lib/liblldWasm.

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (dpalermo) Changes Reverts llvm/llvm-project#111332 Unable to build clang/flang with OpenMP this patch. Results in: https://lab.llvm.org/staging/#/builders/105/builds/6816 38.873 [112/2/7464] Linking CXX shared library lib/liblldWas

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-webassembly Author: None (dpalermo) Changes Reverts llvm/llvm-project#111332 Unable to build clang/flang with OpenMP this patch. Results in: https://lab.llvm.org/staging/#/builders/105/builds/6816 38.873 [112/2/7464] Linking CXX shared library

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lld-wasm @llvm/pr-subscribers-clang-driver Author: None (dpalermo) Changes Reverts llvm/llvm-project#111332 Unable to build clang/flang with OpenMP this patch. Results in: https://lab.llvm.org/staging/#/builders/105/builds/6816 38.873 [112/2/7464] Lin

[clang] [compiler-rt] [lld] [llvm] Revert "[Coverage][WebAssembly] Add initial support for WebAssembly/WASI" (PR #112274)

2024-10-14 Thread via cfe-commits
https://github.com/dpalermo created https://github.com/llvm/llvm-project/pull/112274 Reverts llvm/llvm-project#111332 Unable to build clang/flang with OpenMP this patch. Results in: https://lab.llvm.org/staging/#/builders/105/builds/6816 38.873 [112/2/7464] Linking CXX shared library lib/libl

[clang] [clang] Check null TypeSourceInfo in CreateUnaryExprOrTypeTraitExpr (PR #112111)

2024-10-14 Thread Andrew Sukach via cfe-commits
https://github.com/sookach updated https://github.com/llvm/llvm-project/pull/112111 >From d7a37cb7805d5ba982b8073c2485f16dec8a1eac Mon Sep 17 00:00:00 2001 From: Andrew Sukach Date: Sat, 12 Oct 2024 19:47:30 -0400 Subject: [PATCH] [clang] Check for null TypeSourceInfo in Sema::CreateUnaryExprO

[clang] [llvm] [HLSL] Add handle initialization for simple resource declarations (PR #111207)

2024-10-14 Thread Damyan Pepper via cfe-commits
@@ -5622,6 +5622,9 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D, getCUDARuntime().handleVarRegistration(D, *GV); } + if (LangOpts.HLSL) +getHLSLRuntime().handleGlobalVarDefinition(D, GV); damyanp wrote: Just checking you know th

[clang] [llvm] [HLSL] Add handle initialization for simple resource declarations (PR #111207)

2024-10-14 Thread Damyan Pepper via cfe-commits
@@ -489,3 +494,100 @@ void CGHLSLRuntime::generateGlobalCtorDtorCalls() { GV->eraseFromParent(); } } + +// Returns handle type of a resource, if the type is a resource +// or an array of resources +static const HLSLAttributedResourceType *findHandleTypeOnResource(QualTy

[clang] [llvm] [HLSL] Add handle initialization for simple resource declarations (PR #111207)

2024-10-14 Thread Damyan Pepper via cfe-commits
@@ -489,3 +494,100 @@ void CGHLSLRuntime::generateGlobalCtorDtorCalls() { GV->eraseFromParent(); } } + +// Returns handle type of a resource, if the type is a resource +// or an array of resources +static const HLSLAttributedResourceType *findHandleTypeOnResource(QualTy

[clang] [llvm] [HLSL] Add handle initialization for simple resource declarations (PR #111207)

2024-10-14 Thread Damyan Pepper via cfe-commits
@@ -1121,6 +1121,11 @@ CodeGenFunction::GenerateCXXGlobalInitFunc(llvm::Function *Fn, if (Decls[i]) EmitRuntimeCall(Decls[i]); +if (getLangOpts().HLSL) + if (llvm::Function *ResInitFn = + CGM.getHLSLRuntime().createResourceBindingInitFn())

  1   2   3   4   5   6   >