">

MLIR: lib/Dialect/Traits.cpp File Reference (original) (raw)

#include "[mlir/Dialect/Traits.h](Traits%5F8h%5Fsource.html)"
#include "[mlir/IR/BuiltinTypes.h](mlir%5F2IR%5F2BuiltinTypes%5F8h%5Fsource.html)"
#include "[mlir/IR/TypeUtilities.h](TypeUtilities%5F8h%5Fsource.html)"
#include "llvm/Support/FormatVariadic.h"
#include <optional>

Go to the source code of this file.

Functions
static ArrayRef< int64_t > getShape (Type type)
Returns the shape of the given type. More...
template<typename iterator_range >
static std::tuple< bool, bool > hasTensorOrVectorType (iterator_range types)
Returns a tuple corresponding to whether range has tensor or vector type. More...
static bool isCompatibleInferredReturnShape (ArrayRef< int64_t > inferred, ArrayRef< int64_t > existing)
static std::string getShapeString (ArrayRef< int64_t > shape)

getShape()

getShapeString()

static std::string getShapeString ( ArrayRef< int64_t > shape) static

hasTensorOrVectorType()

template<typename iterator_range >

static std::tuple<bool, bool> hasTensorOrVectorType ( iterator_range types) static

isCompatibleInferredReturnShape()

static bool isCompatibleInferredReturnShape ( ArrayRef< int64_t > inferred, ArrayRef< int64_t > existing ) static