[Mlir-commits] [mlir] Reimplementing target description concept using DLTI attribute (PR #92138)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Mon Jun 17 02:50:02 PDT 2024


================
@@ -640,6 +677,46 @@ uint64_t mlir::DataLayout::getStackAlignment() const {
   return *stackAlignment;
 }
 
+std::optional<int64_t> mlir::DataLayout::getMaxVectorOpWidth(
+    TargetSystemSpecInterface::DeviceID deviceID) const {
+  checkValid();
+  DataLayoutEntryInterface entry;
+  if (originalTargetSystemDesc) {
+    if (auto device =
----------------
ftynse wrote:

Nit: expand auto unless the type is obvious.

https://github.com/llvm/llvm-project/pull/92138


More information about the Mlir-commits mailing list