[Mlir-commits] [mlir] [MLIR] Add index bitwidth to the DataLayout (PR #85927)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Wed Mar 20 07:59:01 PDT 2024
================
@@ -57,6 +57,13 @@ uint64_t
getDefaultPreferredAlignment(Type type, const DataLayout &dataLayout,
ArrayRef<DataLayoutEntryInterface> params);
+/// Default handler for the index bitwidth request. Computes the result for
+/// the built-in index type and dispatches to the DataLayoutTypeInterface for
+/// other types.
+std::optional<uint64_t>
+getDefaultIndexBitwidth(Type type, const DataLayout &dataLayout,
----------------
ftynse wrote:
Wouldn't that just push the burden of checking on the user?
https://github.com/llvm/llvm-project/pull/85927
More information about the Mlir-commits
mailing list