#include "mlir/Dialect/Traits.h"
#include "llvm/ADT/SmallVector.h"
#include "gmock/gmock.h"
usingnamespacemlir::OpTrait::util;
SmallVector;
ElementsAre;
TEST(BroadcastShapeTest, CompatibleScalarAndScalar) { … }
TEST(BroadcastShapeTest, Compatible0DAnd1DTensor) { … }
TEST(BroadcastShapeTest, Compatible0DAnd3DTensor) { … }
TEST(BroadcastShapeTest, CompatibleTensorAndTensor) { … }
TEST(BroadcastShapeTest, InterleavingOnes) { … }
TEST(BroadcastShapeTest, InterleavingUnknowns) { … }
TEST(BroadcastShapeTest, IncompatibleLowDim) { … }
TEST(BroadcastShapeTest, IncompatibleMiddleDim) { … }
TEST(BroadcastShapeTest, IncompatibleHighDim) { … }