MLIR
21.0.0git
|
#include "mlir/Dialect/UB/IR/UBOps.h"
#include "mlir/Dialect/Vector/IR/VectorOps.h"
#include "mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h"
#include "mlir/IR/Attributes.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/Operation.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/IR/TypeUtilities.h"
#include "mlir/Transforms/DialectConversion.h"
#include "llvm/ADT/ArrayRef.h"
#include <cstdint>
#include <numeric>
#include <optional>
Go to the source code of this file.
Functions | |
static FailureOr< Attribute > | linearizeConstAttr (Location loc, ConversionPatternRewriter &rewriter, VectorType resType, Attribute value) |
static bool | isNotLinearizableBecauseScalable (Operation *op) |
Return true if the operation op does not support scalable vectors and has at least 1 scalable vector result. More... | |
static bool | isNotLinearizable (Operation *op) |
|
static |
Definition at line 472 of file VectorLinearize.cpp.
References mlir::Operation::getDialect(), mlir::Dialect::getNamespace(), mlir::Operation::hasTrait(), and isNotLinearizableBecauseScalable().
|
static |
Return true if the operation op
does not support scalable vectors and has at least 1 scalable vector result.
These ops should all eventually support scalable vectors, and this function should be removed.
Definition at line 453 of file VectorLinearize.cpp.
References mlir::Operation::getResultTypes().
Referenced by isNotLinearizable().
|
static |
Definition at line 30 of file VectorLinearize.cpp.
References mlir::RewriterBase::notifyMatchFailure().