1 /* Copyright 2020 The TensorFlow Authors. All Rights Reserved. 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14 ==============================================================================*/ 15 16 #ifndef TENSORFLOW_COMPILER_MLIR_TENSORFLOW_IR_TF_OPS_A_M_H_ 17 #define TENSORFLOW_COMPILER_MLIR_TENSORFLOW_IR_TF_OPS_A_M_H_ 18 19 #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project 20 #include "mlir/Dialect/Traits.h" // from @llvm-project 21 #include "mlir/IR/Attributes.h" // from @llvm-project 22 #include "mlir/IR/Builders.h" // from @llvm-project 23 #include "mlir/IR/BuiltinOps.h" // from @llvm-project 24 #include "mlir/IR/BuiltinTypes.h" // from @llvm-project 25 #include "mlir/IR/Dialect.h" // from @llvm-project 26 #include "mlir/IR/Matchers.h" // from @llvm-project 27 #include "mlir/IR/OpImplementation.h" // from @llvm-project 28 #include "mlir/IR/TypeUtilities.h" // from @llvm-project 29 #include "mlir/Interfaces/CallInterfaces.h" // from @llvm-project 30 #include "mlir/Interfaces/ControlFlowInterfaces.h" // from @llvm-project 31 #include "mlir/Interfaces/DerivedAttributeOpInterface.h" // from @llvm-project 32 #include "mlir/Interfaces/InferTypeOpInterface.h" // from @llvm-project 33 #include "mlir/Interfaces/LoopLikeInterface.h" // from @llvm-project 34 #include "mlir/Interfaces/SideEffectInterfaces.h" // from @llvm-project 35 #include "tensorflow/compiler/mlir/tensorflow/ir/tf_attributes.h" 36 #include "tensorflow/compiler/mlir/tensorflow/ir/tf_op_interfaces.h" 37 #include "tensorflow/compiler/mlir/tensorflow/ir/tf_structs.h" 38 #include "tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h" 39 #include "tensorflow/compiler/mlir/tensorflow/ir/tf_types.h" 40 #include "tensorflow/compiler/mlir/tensorflow/ir/tf_verifiers.h" 41 42 // IWYU pragma: private, include "third_party/tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h" 43 44 namespace mlir { 45 namespace TF { 46 47 class YieldOp; 48 49 } // namespace TF 50 } // namespace mlir 51 52 // TODO(b/131258166): TensorFlow's mutex.h defines a `mutex_lock` macro, whose 53 // purpose is to catch bug on `tensorflow::mutex_lock`. We don't use 54 // `tensorflow::mutex_lock` here but we have ops (`tf.MutexLock` and 55 // `tf.ConsumeMutexLock`) with getter methods named as `mutex_lock()`. Need to 56 // undefine here to avoid expanding the getter symbol as macro when including 57 // both mutex.h and this header file. 58 #undef mutex_lock 59 60 #define GET_OP_FWD_DEFINES 61 #include "tensorflow/compiler/mlir/tensorflow/ir/tf_all_ops.h.inc" 62 #define GET_OP_CLASSES 63 #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.h.inc" 64 65 #endif // TENSORFLOW_COMPILER_MLIR_TENSORFLOW_IR_TF_OPS_A_M_H_ 66