MLIR  15.0.0git
Classes | Namespaces | Functions
Traits.h File Reference
#include "mlir/IR/OpDefinition.h"
+ Include dependency graph for Traits.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  mlir::OpTrait::ResultsBroadcastableShape< ConcreteType >
 Trait for ops that are known to have broadcast compatible operands and result types. More...


 Include the generated interface declarations.


LogicalResult mlir::OpTrait::impl::verifyCompatibleOperandBroadcast (Operation *op)
bool mlir::OpTrait::util::getBroadcastedShape (ArrayRef< int64_t > shape1, ArrayRef< int64_t > shape2, SmallVectorImpl< int64_t > &resultShape)
 Returns true and sets resultShape to the broadcasted shape from the two given shapes if they are broadcast compatible. More...
bool mlir::OpTrait::util::staticallyKnownBroadcastable (ArrayRef< SmallVector< int64_t, 6 >> shapes)
 Returns true if a broadcast between n shapes is guaranteed to be successful and not result in an error. More...
bool mlir::OpTrait::util::staticallyKnownBroadcastable (ArrayRef< int64_t > shape1, ArrayRef< int64_t > shape2)
Type mlir::OpTrait::util::getBroadcastedType (Type type1, Type type2, Type elementType=nullptr)
 Returns the result broadcast composition type from the two given types by following NumPy broadcast semantics. More...