[Mlir-commits] [mlir] [mlir][vector][nfc] Add tests + update docs for narrow-type emulation (PR #115460)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Nov 9 16:32:29 PST 2024


================
@@ -1,11 +1,19 @@
-//===- VectorEmulateNarrowType.cpp - Narrow type emulation ----*- C++
-//-*-===//
+//===- VectorEmulateNarrowType.cpp - Narrow type emulation ----------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 //
 //===----------------------------------------------------------------------===//
+//
+// This file implements target-independent rewrites and utilities to emulate
+// narrow types that are not supported by the target hardware, e.g. i4, using
+// wider types, e.g. i8.
+//
+/// Currently, only power-of-two integer types are supported. These are
----------------
MaheshRavishankar wrote:

Note that there is actually nothing fundamental about power of 2 here. It is an implementation detail  and just NYI. Maybe might be better to make that clear.

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


More information about the Mlir-commits mailing list