1 //===- ShapedOpInterfaces.h - Interfaces for Shaped Ops ---------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // This file contains a set of interfaces for ops that operate on shaped values. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #ifndef MLIR_INTERFACES_SHAPEDOPINTERFACES_H_ 14 #define MLIR_INTERFACES_SHAPEDOPINTERFACES_H_ 15 16 #include "mlir/IR/OpDefinition.h" 17 18 namespace mlir { 19 namespace detail { 20 21 /// Verify invariants of ops that implement the ShapedDimOpInterface. 22 LogicalResult verifyShapedDimOpInterface(Operation *op); 23 24 } // namespace detail 25 } // namespace mlir 26 27 /// Include the generated interface declarations. 28 #include "mlir/Interfaces/ShapedOpInterfaces.h.inc" 29 30 #endif // MLIR_INTERFACES_SHAPEDOPINTERFACES_H_ 31