[llvm-branch-commits] [mlir] [clang] [llvm] Refactor ModuleToObject to offer more flexibility to subclass (NFC) (PR #71165)

2023-11-03 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg commented: Overall LGTM, see the only comment. https://github.com/llvm/llvm-project/pull/71165 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bra

[llvm-branch-commits] [llvm] [mlir] [clang] Refactor ModuleToObject to offer more flexibility to subclass (NFC) (PR #71165)

2023-11-03 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg edited https://github.com/llvm/llvm-project/pull/71165 ___ 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] [mlir] [clang] Refactor ModuleToObject to offer more flexibility to subclass (NFC) (PR #71165)

2023-11-03 Thread Fabian Mora via llvm-branch-commits
@@ -39,32 +39,32 @@ ModuleToObject::ModuleToObject(Operation &module, StringRef triple, : module(module), triple(triple), chip(chip), features(features), optLevel(optLevel) {} +ModuleToObject::~ModuleToObject() = default; + Operation &ModuleToObject::getOperation()

[llvm-branch-commits] [libcxxabi] [flang] [libcxx] [llvm] [clang] [mlir] [clang-tools-extra] [lldb] [lld] [compiler-rt] Refactor ModuleToObject to offer more flexibility to subclass (NFC) (PR #71165)

2023-11-03 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg approved this pull request. https://github.com/llvm/llvm-project/pull/71165 ___ 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] [mlir][ptr] Add translations to LLVMIR for ptr ops. (PR #156355)

2025-09-01 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg created https://github.com/llvm/llvm-project/pull/156355 Implements translation from ptr dialect to LLVM IR for core pointer operations: - `ptr.ptr_add` -> `getelementptr` - `ptr.load` -> `load` with atomic ordering, volatility, and metadata support - `ptr.store` ->

[llvm-branch-commits] [mlir] [mlir][ptr] Extend `ptr_add` operation to support shaped operands (PR #156374)

2025-09-03 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg created https://github.com/llvm/llvm-project/pull/156374 This patch extends `ptr_add` to work with shaped types with value semantics, both for the offsets and base. Concretely this patch makes the following changes: - Supports scalar-to-scalar, scalar-to-shaped, sh

[llvm-branch-commits] [mlir] [mlir][ptr] Add `gather`, `masked_load`, `masked_store`, and `scatter` ops (PR #156368)

2025-09-03 Thread Fabian Mora via llvm-branch-commits
@@ -17,6 +17,46 @@ include "mlir/Interfaces/SideEffectInterfaces.td" include "mlir/Interfaces/ViewLikeInterface.td" include "mlir/IR/OpAsmInterface.td" +//===--===// +// Common props +//===

[llvm-branch-commits] [mlir] [mlir][ptr] Add `ptr.ptr_diff` operation (PR #157354)

2025-09-07 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg updated https://github.com/llvm/llvm-project/pull/157354 >From 5e4b9843521939d926c7fcc4007d38a8f4c320a6 Mon Sep 17 00:00:00 2001 From: Fabian Mora <6982088+fabian...@users.noreply.github.com> Date: Sun, 7 Sep 2025 17:33:04 + Subject: [PATCH] [mlir][ptr] Add `ptr.

[llvm-branch-commits] [mlir] [mlir][ptr] Add `ptr.ptr_diff` operation (PR #157354)

2025-09-07 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg edited https://github.com/llvm/llvm-project/pull/157354 ___ 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] [mlir][ptr] Add `ptr.ptr_diff` operation (PR #157354)

2025-09-07 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg created https://github.com/llvm/llvm-project/pull/157354 Thi patch introduces the `ptr.ptr_diff` operation for computing pointer differences. The semantics of the operation are given by: ``` The `ptr_diff` operation computes the difference between two pointers, retu

[llvm-branch-commits] [mlir] [mlir][ptr] Add `ptr.ptr_diff` operation (PR #157354)

2025-09-14 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg updated https://github.com/llvm/llvm-project/pull/157354 >From 4015e6f30fb89b5c0a4bb60ffdc8b3db51b2edc1 Mon Sep 17 00:00:00 2001 From: Fabian Mora <6982088+fabian...@users.noreply.github.com> Date: Sun, 7 Sep 2025 17:33:04 + Subject: [PATCH 1/2] [mlir][ptr] Add `

[llvm-branch-commits] [mlir] [NFC][mlir][ptr] Clarify pointer dialect semantics (PR #158484)

2025-09-14 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg created https://github.com/llvm/llvm-project/pull/158484 This patch adds the following description to the pointer dialect: ``` The pointer dialect provides types and operations for representing and interacting with pointer values in MLIR, such as loading and

[llvm-branch-commits] [mlir] [mlir][ptr] Add translations to LLVMIR for ptr ops. (PR #156355)

2025-09-01 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg updated https://github.com/llvm/llvm-project/pull/156355 >From d4befc04b5565fd13cc53694031bf8296fd22312 Mon Sep 17 00:00:00 2001 From: Fabian Mora <6982088+fabian...@users.noreply.github.com> Date: Mon, 1 Sep 2025 16:32:01 + Subject: [PATCH 1/2] add translations

[llvm-branch-commits] [mlir] [mlir][ptr] Add `gather`, `masked_load`, `masked_store`, and `scatter` ops (PR #156368)

2025-09-01 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg created https://github.com/llvm/llvm-project/pull/156368 This patch adds the `gather`, `masked_load`, `masked_store`, and `scatter` operations to the `ptr` dialect. It also implements translation from these operations to LLVM intrinsics: - ptr.gather -> llvm.masked

[llvm-branch-commits] [mlir] [mlir][ptr] Add `gather`, `masked_load`, `masked_store`, and `scatter` ops (PR #156368)

2025-09-01 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg updated https://github.com/llvm/llvm-project/pull/156368 >From 1898a4301ca6f9ecd2d125217e28cce2abd20e52 Mon Sep 17 00:00:00 2001 From: Fabian Mora <6982088+fabian...@users.noreply.github.com> Date: Sun, 31 Aug 2025 12:01:19 + Subject: [PATCH 1/2] Add load, store

[llvm-branch-commits] [mlir] [mlir][ptr] Add `gather`, `masked_load`, `masked_store`, and `scatter` ops (PR #156368)

2025-09-02 Thread Fabian Mora via llvm-branch-commits
@@ -56,6 +96,58 @@ def Ptr_FromPtrOp : Pointer_Op<"from_ptr", [ let hasVerifier = 1; } +//===--===// +// GatherOp +//===--===// + +def Ptr_

[llvm-branch-commits] [mlir] [mlir][ptr] Add `gather`, `masked_load`, `masked_store`, and `scatter` ops (PR #156368)

2025-09-02 Thread Fabian Mora via llvm-branch-commits
@@ -56,6 +96,58 @@ def Ptr_FromPtrOp : Pointer_Op<"from_ptr", [ let hasVerifier = 1; } +//===--===// +// GatherOp +//===--===// + +def Ptr_

[llvm-branch-commits] [mlir] [mlir][ptr] Extend `ptr_add` operation to support shaped operands (PR #156374)

2025-09-03 Thread Fabian Mora via llvm-branch-commits
@@ -23,6 +24,41 @@ class LLVM_Attrhttps://github.com/llvm/llvm-project/pull/156374 ___ 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] [mlir][ptr] Extend `ptr_add` operation to support shaped operands (PR #156374)

2025-09-03 Thread Fabian Mora via llvm-branch-commits
https://github.com/fabianmcg updated https://github.com/llvm/llvm-project/pull/156374 >From af522ed2b48cee2fe81901f2396025d58341997b Mon Sep 17 00:00:00 2001 From: Fabian Mora <6982088+fabian...@users.noreply.github.com> Date: Mon, 1 Sep 2025 21:05:55 + Subject: [PATCH] extend ptr_add op --