[all-commits] [llvm/llvm-project] abd953: Reimplementing target description concept using DL...
Niranjan Hasabnis via All-commits
all-commits at lists.llvm.org
Wed Jun 19 11:40:30 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: abd95342f0b94e140b36ac954b8f8c29b1393861
https://github.com/llvm/llvm-project/commit/abd95342f0b94e140b36ac954b8f8c29b1393861
Author: Niranjan Hasabnis <niranjan.hasabnis at intel.com>
Date: 2024-06-19 (Wed, 19 Jun 2024)
Changed paths:
M mlir/include/mlir/Dialect/DLTI/CMakeLists.txt
M mlir/include/mlir/Dialect/DLTI/DLTI.h
A mlir/include/mlir/Dialect/DLTI/DLTIAttrs.td
M mlir/include/mlir/Dialect/DLTI/DLTIBase.td
M mlir/include/mlir/Dialect/DLTI/Traits.h
M mlir/include/mlir/IR/BuiltinOps.td
M mlir/include/mlir/Interfaces/DataLayoutInterfaces.h
M mlir/include/mlir/Interfaces/DataLayoutInterfaces.td
M mlir/lib/Dialect/DLTI/DLTI.cpp
M mlir/lib/Dialect/DLTI/Traits.cpp
M mlir/lib/IR/BuiltinDialect.cpp
M mlir/lib/Interfaces/DataLayoutInterfaces.cpp
M mlir/test/Dialect/DLTI/invalid.mlir
M mlir/test/Dialect/DLTI/roundtrip.mlir
A mlir/test/Dialect/DLTI/valid.mlir
M mlir/unittests/Interfaces/DataLayoutInterfacesTest.cpp
Log Message:
-----------
Reimplementing target description concept using DLTI attribute (#92138)
and Interfaces. This is a newer implementation of PR
https://github.com/llvm/llvm-project/pull/85141 and
[RFC](https://discourse.llvm.org/t/rfc-target-description-and-cost-model-in-mlir/76990)
by considering reviews and comments on the original PR.
As an example of attributes supported by this commit:
```
module attributes {
dlti.target_system_spec =
#dlti.target_device_spec<
#dlti.dl_entry<"dlti.device_id", 0: ui32>,
#dlti.dl_entry<"dlti.device_type", "CPU">,
#dlti.dl_entry<"dlti.L1_cache_size_in_bytes", 8192 : ui32>>,
#dlti.target_device_spec <
#dlti.dl_entry<"dlti.device_id", 1: ui32>,
#dlti.dl_entry<"dlti.device_type", "GPU">,
#dlti.dl_entry<"dlti.max_vector_op_width", 64 : ui32>>,
#dlti.target_device_spec <
#dlti.dl_entry<"dlti.device_id", 2: ui32>,
#dlti.dl_entry<"dlti.device_type", "XPU">>>
}
```
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