[llvm-branch-commits] [llvm] [CodeGen][NewPM] Port RegisterCoalescer to NPM (PR #124698)

2025-01-28 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan edited https://github.com/llvm/llvm-project/pull/124698 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [mlir] [MLIR][OpenMP] Add OMP Mapper field to MapInfoOp (PR #120994)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
https://github.com/TIFitis updated https://github.com/llvm/llvm-project/pull/120994 >From 002d7153f4029c02722b6a4f45bbde8fad83ba95 Mon Sep 17 00:00:00 2001 From: Akash Banerjee Date: Mon, 23 Dec 2024 20:53:47 + Subject: [PATCH 1/2] Add mapper field to mapInfoOp. --- flang/lib/Lower/OpenMP

[llvm-branch-commits] [flang] [MLIR][OpenMP] Add Lowering support for OpenMP custom mappers in map clause (PR #121001)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
@@ -970,6 +972,20 @@ void ClauseProcessor::processMapObjects( } } +if (!mapperIdName.empty()) { + if (mapperIdName == "default") { +auto &typeSpec = object.sym()->owner().IsDerivedType() + ? *object.sym()->owner().derivedT

[llvm-branch-commits] [flang] [MLIR][OpenMP] Add Lowering support for OpenMP custom mappers in map clause (PR #121001)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
@@ -1057,13 +1075,17 @@ bool ClauseProcessor::processMap( "Support for iterator modifiers is not implemented yet"); } if (mappers) { - TODO(currentLocation, - "Support for mapper modifiers is not implemented yet"); + assert(mappers->size()

[llvm-branch-commits] [llvm] [DXContainer] Obj2yaml support for root constants (PR #124813)

2025-01-28 Thread via llvm-branch-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/124813 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [DXContainer] Obj2yaml support for root constants (PR #124813)

2025-01-28 Thread via llvm-branch-commits
https://github.com/joaosaffran created https://github.com/llvm/llvm-project/pull/124813 This PR adds: - Support for future parts of DXContainer - `RootSignatureConstans` extraction from DXContainer using obj2yaml >From 708e92db2eb23b1ba955ed11672979fb19e7e0d0 Mon Sep 17 00:00:00 2001 From: joa

[llvm-branch-commits] [llvm] [DXIL] Add support for root signature flag element in DXContainer (PR #123147)

2025-01-28 Thread via llvm-branch-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/123147 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [CodeGen][NewPM] Port RegisterCoalescer to NPM (PR #124698)

2025-01-28 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/124698 >From 39b2841431cc5ca70ddb89438e629806a89f63da Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Tue, 28 Jan 2025 05:16:57 + Subject: [PATCH 1/2] [CodeGen][NewPM] Port RegisterCoalescer to NPM --- .../llvm

[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Implement Parsing of Descriptor Tables (PR #122982)

2025-01-28 Thread Finn Plummer via llvm-branch-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/122982 >From 5ed5fcfebb395cdfe45dc41094e07716d2003d66 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Tue, 28 Jan 2025 17:49:21 + Subject: [PATCH 01/13] [HLSL][RootSignature] Handle an empty root signature - Def

[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Implement Parsing of Descriptor Tables (PR #122982)

2025-01-28 Thread Finn Plummer via llvm-branch-commits
inbelic wrote: Updated to include diagnostics output and the relevant testing. I have rebased to split the pr into smaller incremental changes, to help with review. And I have taken care to address all previous comments. Unfortunately the rebase causes these comments to get lost :/ I have imp

[llvm-branch-commits] [llvm] [CodeGen][NewPM] Port RegisterCoalescer to NPM (PR #124698)

2025-01-28 Thread Akshat Oke via llvm-branch-commits
@@ -4241,7 +4259,33 @@ void RegisterCoalescer::releaseMemory() { LargeLIVisitCounter.clear(); } -bool RegisterCoalescer::runOnMachineFunction(MachineFunction &fn) { +PreservedAnalyses +RegisterCoalescerPass::run(MachineFunction &MF, + MachineFunctio

[llvm-branch-commits] [llvm] [CodeGen][NewPM] Port RegisterCoalescer to NPM (PR #124698)

2025-01-28 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan edited https://github.com/llvm/llvm-project/pull/124698 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [PassBuilder][CodeGen] Add callback style pass buider (PR #116913)

2025-01-28 Thread via llvm-branch-commits
@@ -0,0 +1,950 @@ +//===- Construction of code generation pass pipelines -===// +// +// 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

[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Implement Parsing of Descriptor Tables (PR #122982)

2025-01-28 Thread Finn Plummer via llvm-branch-commits
https://github.com/inbelic ready_for_review https://github.com/llvm/llvm-project/pull/122982 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [HLSL] Define the HLSLRootSignature Attr (PR #123985)

2025-01-28 Thread Finn Plummer via llvm-branch-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/123985 >From 9efdfc1ca3d6c02e441715061ed04b52504bc179 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Wed, 22 Jan 2025 17:53:59 + Subject: [PATCH 1/3] [HLSL] Define the HLSLRootSignature Attr - Defines HLSLRootS

[llvm-branch-commits] [clang] [llvm] [mlir] [MLIR][OpenMP] Add LLVM translation support for OpenMP UserDefinedMappers (PR #124746)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
https://github.com/TIFitis updated https://github.com/llvm/llvm-project/pull/124746 >From 6bba19e7df6da05f77e5e1ac5fb06c4fb2a1bda0 Mon Sep 17 00:00:00 2001 From: Akash Banerjee Date: Tue, 28 Jan 2025 13:38:13 + Subject: [PATCH 1/2] [MLIR][OpenMP] Add LLVM translation support for OpenMP Use

[llvm-branch-commits] [flang] [mlir] [MLIR][OpenMP] Add conversion support from FIR to LLVM Dialect for OMP DeclareMapper (PR #121005)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
@@ -186,6 +186,32 @@ struct MapInfoOpConversion : public ConvertOpToLLVMPattern { } }; +struct DeclMapperOpConversion TIFitis wrote: Hi, sorry for the late reply, I've just returned from my vacation. Can we use a specialised `forwardOpAttrs` to convert th

[llvm-branch-commits] [flang] [MLIR][OpenMP] Add Lowering support for OpenMP custom mappers in map clause (PR #121001)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
https://github.com/TIFitis edited https://github.com/llvm/llvm-project/pull/121001 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [mlir] 45c9ce8 - Revert "[mlir][python] allow DenseIntElementsAttr for index type (#118947)"

2025-01-28 Thread via llvm-branch-commits
Author: Matthias Gehre Date: 2025-01-28T18:34:38+01:00 New Revision: 45c9ce83e7b91efc06f94cdf20fe9439e46e769e URL: https://github.com/llvm/llvm-project/commit/45c9ce83e7b91efc06f94cdf20fe9439e46e769e DIFF: https://github.com/llvm/llvm-project/commit/45c9ce83e7b91efc06f94cdf20fe9439e46e769e.diff

[llvm-branch-commits] [flang] [MLIR][OpenMP] Add Lowering support for OpenMP custom mappers in map clause (PR #121001)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
@@ -0,0 +1,23 @@ +! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=50 %s -o - | FileCheck %s +program p + integer, parameter :: n = 256 + type t1 + integer :: x(256) + end type t1 + + !$omp declare mapper(xx : t1 :: nn) map(to: nn, nn%x) + !$omp declare mapp

[llvm-branch-commits] [flang] [MLIR][OpenMP] Add Lowering support for OpenMP custom mappers in map clause (PR #121001)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
https://github.com/TIFitis updated https://github.com/llvm/llvm-project/pull/121001 >From 30611f81421028ccc8fceed006e06f8afc6848b9 Mon Sep 17 00:00:00 2001 From: Akash Banerjee Date: Mon, 23 Dec 2024 19:05:30 + Subject: [PATCH 1/3] Add mapper field to mapInfoOp. --- flang/test/Lower/OpenM

[llvm-branch-commits] [clang] [clang] NFC: cleanup check template argument (PR #124668)

2025-01-28 Thread Erich Keane via llvm-branch-commits
https://github.com/erichkeane approved this pull request. It still doesn't completely solve my concerns, but it is a strict improvement, so LGTM. https://github.com/llvm/llvm-project/pull/124668 ___ llvm-branch-commits mailing list llvm-branch-commits

[llvm-branch-commits] [clang] [clang] NFC: cleanup check template argument (PR #124668)

2025-01-28 Thread Erich Keane via llvm-branch-commits
@@ -11650,6 +11650,33 @@ class Sema final : public SemaBase { CTAK_DeducedFromArrayBound }; + struct CheckTemplateArgumentInfo { +explicit CheckTemplateArgumentInfo(bool PartialOrdering = false, erichkeane wrote: This constructor doesn't make it co

[llvm-branch-commits] [clang] [clang] NFC: cleanup check template argument (PR #124668)

2025-01-28 Thread Erich Keane via llvm-branch-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/124668 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [mlir] [MLIR][OpenMP] Add conversion support from FIR to LLVM Dialect for OMP DeclareMapper (PR #121005)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
https://github.com/TIFitis edited https://github.com/llvm/llvm-project/pull/121005 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [Flang] Promote FortranEvaluateTesting library (PR #124417)

2025-01-28 Thread via llvm-branch-commits
https://github.com/jeanPerier approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/124417 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [llvm] [mlir] [MLIR][OpenMP] Add LLVM translation support for OpenMP UserDefinedMappers (PR #124746)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
https://github.com/TIFitis edited https://github.com/llvm/llvm-project/pull/124746 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [mlir] [MLIR][OpenMP] Add OMP Mapper field to MapInfoOp (PR #120994)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
@@ -1000,6 +1000,7 @@ def MapInfoOp : OpenMP_Op<"map.info", [AttrSizedOperandSegments]> { OptionalAttr:$members_index, Variadic:$bounds, /* rank-0 to rank-{n-1} */ OptionalAttr:$map_type, +

[llvm-branch-commits] [flang] [MLIR][OpenMP] Add Lowering support for OpenMP Declare Mapper directive (PR #117046)

2025-01-28 Thread Akash Banerjee via llvm-branch-commits
TIFitis wrote: @kiranchandramohan @skatrak @agozillon Hi everyone! I was on vacation these last couple of weeks, apologies for the delay. I have added PR #124746 with which we have all the implementation in place for declare mappers. It would be great to resume the review process for this PR

[llvm-branch-commits] [clang] [clang] NFC: cleanup check template argument (PR #124668)

2025-01-28 Thread Matheus Izvekov via llvm-branch-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/124668 >From db745bb131582139f29d471636cebeb78f25fb1c Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Mon, 27 Jan 2025 19:18:27 -0300 Subject: [PATCH] [clang] NFC: cleanup check template argument --- clang/incl

[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Implement Parsing of Descriptor Tables (PR #122982)

2025-01-28 Thread Finn Plummer via llvm-branch-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/122982 >From 44d3086a5a8b53a734bbabe32d7c34195def2d65 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Fri, 24 Jan 2025 22:28:05 + Subject: [PATCH 01/17] [HLSL][RootSignature] Add lexing of integer literals - Int

[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Implement Parsing of Descriptor Tables (PR #122982)

2025-01-28 Thread Finn Plummer via llvm-branch-commits
@@ -0,0 +1,140 @@ +//===- HLSLRootSignature.h - HLSL Root Signature helper objects ---===// +// +// 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

[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Implement Parsing of Descriptor Tables (PR #122982)

2025-01-28 Thread Finn Plummer via llvm-branch-commits
@@ -148,6 +148,347 @@ bool RootSignatureLexer::LexToken(RootSignatureToken &Result) { return false; } +// Parser Definitions + +RootSignatureParser::RootSignatureParser( +SmallVector &Elements, +const SmallVector &Tokens) +: Elements(Elements) { + CurTok = Toke

[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Implement Parsing of Descriptor Tables (PR #122982)

2025-01-28 Thread Finn Plummer via llvm-branch-commits
@@ -0,0 +1,140 @@ +//===- HLSLRootSignature.h - HLSL Root Signature helper objects ---===// +// +// 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

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: Temporal divergence lowering (non i1) (PR #124298)

2025-01-28 Thread Sameer Sahasrabuddhe via llvm-branch-commits
@@ -395,6 +399,14 @@ template class GenericUniformityAnalysisImpl { } void print(raw_ostream &out) const; + SmallVector UsesOutsideCycleWithDivergentExit; + void recordUseOutsideCycleWithDivergentExit(const InstructionT *, ssahasra wrote: Everywhere i

[llvm-branch-commits] [clang] [HLSL] Constant buffers codegen (PR #124886)

2025-01-28 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-directx Author: Helena Kotas (hekota) Changes Translates `cbuffer` declaration blocks to `target("dx.CBuffer")` type. Creates global variables in `hlsl_constant` address space for all `cbuffer` constant and adds metadata describing which global

[llvm-branch-commits] [clang] [HLSL] Constant buffers codegen (PR #124886)

2025-01-28 Thread Helena Kotas via llvm-branch-commits
https://github.com/hekota ready_for_review https://github.com/llvm/llvm-project/pull/124886 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [HLSL] Constant buffers codegen (PR #124886)

2025-01-28 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Helena Kotas (hekota) Changes Translates `cbuffer` declaration blocks to `target("dx.CBuffer")` type. Creates global variables in `hlsl_constant` address space for all `cbuffer` constant and adds metadata describing which global constant b

[llvm-branch-commits] [clang] [HLSL] Constant buffers codegen (PR #124886)

2025-01-28 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Helena Kotas (hekota) Changes Translates `cbuffer` declaration blocks to `target("dx.CBuffer")` type. Creates global variables in `hlsl_constant` address space for all `cbuffer` constant and adds metadata describing which global c