aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorNiranjan Hasabnis <niranjan.hasabnis@intel.com>2024-06-19 11:40:08 -0700
committerGitHub <noreply@github.com>2024-06-19 19:40:08 +0100
commitabd95342f0b94e140b36ac954b8f8c29b1393861 (patch)
tree6764ba6f0fb35ca580a4411aa47d65fae9ed63cb /llvm/lib/IR/Module.cpp
parent24335e4108e194a1ff00be5e68171c369172f948 (diff)
downloadllvm-abd95342f0b94e140b36ac954b8f8c29b1393861.zip
llvm-abd95342f0b94e140b36ac954b8f8c29b1393861.tar.gz
llvm-abd95342f0b94e140b36ac954b8f8c29b1393861.tar.bz2
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">>> } ```
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions