[all-commits] [llvm/llvm-project] e035ef: [mlir][Ptr] Init the Ptr dialect with the `!ptr.pt...
Fabian Mora via All-commits
all-commits at lists.llvm.org
Thu Jun 27 05:14:55 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e035ef0e7423c1a4c78e922508da817dbd5b6a02
https://github.com/llvm/llvm-project/commit/e035ef0e7423c1a4c78e922508da817dbd5b6a02
Author: Fabian Mora <fmora.dev at gmail.com>
Date: 2024-06-27 (Thu, 27 Jun 2024)
Changed paths:
M mlir/include/mlir/Dialect/CMakeLists.txt
A mlir/include/mlir/Dialect/Ptr/CMakeLists.txt
A mlir/include/mlir/Dialect/Ptr/IR/CMakeLists.txt
A mlir/include/mlir/Dialect/Ptr/IR/PtrAttrDefs.td
A mlir/include/mlir/Dialect/Ptr/IR/PtrAttrs.h
A mlir/include/mlir/Dialect/Ptr/IR/PtrDialect.h
A mlir/include/mlir/Dialect/Ptr/IR/PtrDialect.td
A mlir/include/mlir/Dialect/Ptr/IR/PtrOps.h
A mlir/include/mlir/Dialect/Ptr/IR/PtrOps.td
A mlir/include/mlir/Dialect/Ptr/IR/PtrTypes.h
M mlir/include/mlir/InitAllDialects.h
M mlir/lib/Dialect/CMakeLists.txt
A mlir/lib/Dialect/Ptr/CMakeLists.txt
A mlir/lib/Dialect/Ptr/IR/CMakeLists.txt
A mlir/lib/Dialect/Ptr/IR/PtrAttrs.cpp
A mlir/lib/Dialect/Ptr/IR/PtrDialect.cpp
A mlir/lib/Dialect/Ptr/IR/PtrTypes.cpp
A mlir/test/Dialect/Ptr/layout.mlir
A mlir/test/Dialect/Ptr/types.mlir
Log Message:
-----------
[mlir][Ptr] Init the Ptr dialect with the `!ptr.ptr` type. (#86860)
This patch initializes the `ptr` dialect directories and base files,
adding the `!ptr.ptr` type and the `#ptr.spec<...>` data layout spec
attribute.
The `!ptr.ptr` type is an opaque pointer type optionally parameterized
by a memory space. This type typically represents a handle to an object
in memory or target-dependent values like `nullptr`.
The implementation of the `DataLayoutTypeInterface` interface for
`!ptr.ptr` was adapted from `!llvm.ptr`'s implementation. This
implementation uses the `#ptr.spec<...>` attribute for defining the data
layout specification.
See [[RFC] `ptr` dialect & modularizing ptr ops in the LLVM
dialect](https://discourse.llvm.org/t/rfc-ptr-dialect-modularizing-ptr-ops-in-the-llvm-dialect/75142)
for rationale and roadmap.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list