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 // This file defines the operations used in the LHLO dialect. 17 18 #ifndef MLIR_HLO_DIALECT_LHLO_GPU_IR_LHLO_GPU_OPS_H 19 #define MLIR_HLO_DIALECT_LHLO_GPU_IR_LHLO_GPU_OPS_H 20 21 #include "llvm/ADT/StringRef.h" 22 #include "mlir-hlo/Dialect/mhlo/IR/hlo_ops.h" 23 #include "mlir/IR/Attributes.h" 24 #include "mlir/IR/BuiltinTypes.h" 25 #include "mlir/IR/Dialect.h" 26 #include "mlir/IR/Location.h" 27 #include "mlir/IR/MLIRContext.h" 28 #include "mlir/IR/OpDefinition.h" 29 #include "mlir/IR/Operation.h" 30 #include "mlir/IR/Types.h" 31 #include "mlir/Interfaces/SideEffectInterfaces.h" 32 33 namespace mlir { 34 class OpBuilder; 35 } // namespace mlir 36 37 // Include order below matters. 38 #include "mlir-hlo/Dialect/lhlo_gpu/IR/lhlo_gpu_ops_dialect.h.inc" 39 #include "mlir-hlo/Dialect/lhlo_gpu/IR/lhlo_gpu_ops_enums.h.inc" 40 #define GET_ATTRDEF_CLASSES 41 #include "mlir-hlo/Dialect/lhlo_gpu/IR/lhlo_gpu_ops_attrdefs.h.inc" 42 #define GET_OP_CLASSES 43 #include "mlir-hlo/Dialect/lhlo_gpu/IR/lhlo_gpu_ops.h.inc" 44 45 #endif // MLIR_HLO_DIALECT_LHLO_GPU_IR_LHLO_GPU_OPS_H 46