[all-commits] [llvm/llvm-project] 38eb55: [mlir][llvm] Return failure from type converter fo...
Cullen Rhodes via All-commits
all-commits at lists.llvm.org
Mon Sep 11 01:32:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 38eb55a130e8056b56796bcd5c937c862939940c
https://github.com/llvm/llvm-project/commit/38eb55a130e8056b56796bcd5c937c862939940c
Author: Cullen Rhodes <cullen.rhodes at arm.com>
Date: 2023-09-11 (Mon, 11 Sep 2023)
Changed paths:
M mlir/include/mlir/Conversion/LLVMCommon/TypeConverter.h
M mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
Log Message:
-----------
[mlir][llvm] Return failure from type converter for n-D scalable vectors (#65450)
This patch changes vector type conversion to return failure on n-D
scalable vector types instead of asserting.
This is an alternative approach to #65261 that aims to enable lowering
of Vector ops directly to ArmSME intrinsics where possible, and seems
more consistent with other type conversions. It's trivial to hit the
assert at the moment and it could be interpreted as n-D scalable vector
types being a bug, when they're valid types in the Vector dialect.
By returning failure it will generally fail more gracefully,
particularly for release builds or other builds where assertions are
disabled.
More information about the All-commits
mailing list