14 #ifndef MLIR_DIALECT_TRAITS 15 #define MLIR_DIALECT_TRAITS 68 template <
typename ConcreteType>
70 :
public TraitBase<ConcreteType, BroadcastableTwoOperandsOneResult> {
80 #endif // MLIR_DIALECT_TRAITS Definition: InferTypeOpInterface.cpp:20
Definition: Operation.h:27
Definition: LogicalResult.h:18
Type getBroadcastedType(Type type1, Type type2)
Definition: Traits.cpp:83
LogicalResult verifyCompatibleOperandBroadcast(Operation *op)
Definition: Traits.cpp:160
static LogicalResult verifyTrait(Operation *op)
Definition: Traits.h:72
Definition: OpDefinition.h:386
bool getBroadcastedShape(ArrayRef< int64_t > shape1, ArrayRef< int64_t > shape2, SmallVectorImpl< int64_t > &resultShape)
Definition: Traits.cpp:15