[Mlir-commits] [mlir] [mlir][x86vector] AVX Convert/Broadcast F16 to F32 instructions (PR #137917)

Adam Siemieniuk llvmlistbot at llvm.org
Wed Apr 30 09:29:46 PDT 2025


================
@@ -435,7 +438,13 @@ def CvtPackedEvenIndexedBF16ToF32Op : AVX_Op<"cvt.packed.even.indexed.bf16_to_f3
 
   let extraClassDefinition = [{
     std::string $cppClass::getIntrinsicName() {
-      std::string intr = "llvm.x86.vcvtneebf162ps";
+      auto elementType =
+        (cast<MemRefType>(getA().getType())).getElementType();
----------------
adam-smnk wrote:

nit: you don't need cast, `a` is already a typed value with a `memref` type

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


More information about the Mlir-commits mailing list