//===- ModuleToObject.h - Module to object base class -----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file declares the base class for transforming operations into binary // objects. // //===----------------------------------------------------------------------===// #ifndef MLIR_TARGET_LLVM_MODULETOOBJECT_H #define MLIR_TARGET_LLVM_MODULETOOBJECT_H #include "mlir/IR/Operation.h" #include "llvm/IR/Module.h" namespace llvm { class TargetMachine; } // namespace llvm namespace mlir { namespace LLVM { class ModuleTranslation; /// Utility base class for transforming operations into binary objects, by /// default it returns the serialized LLVM bitcode for the module. The /// operations being transformed must be translatable into LLVM IR. class ModuleToObject { … }; } // namespace LLVM } // namespace mlir #endif // MLIR_TARGET_LLVM_MODULETOOBJECT_H