MLIR  21.0.0git
Functions
VectorLinearize.cpp File Reference
#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< AttributelinearizeConstAttr (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)
 

Function Documentation

◆ isNotLinearizable()

static bool isNotLinearizable ( Operation op)
static

◆ isNotLinearizableBecauseScalable()

static bool isNotLinearizableBecauseScalable ( Operation op)
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().

◆ linearizeConstAttr()

static FailureOr<Attribute> linearizeConstAttr ( Location  loc,
ConversionPatternRewriter rewriter,
VectorType  resType,
Attribute  value 
)
static

Definition at line 30 of file VectorLinearize.cpp.

References mlir::RewriterBase::notifyMatchFailure().