//===- TypeToLLVM.h - Translate types from MLIR to LLVM --*- 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 type translation function going from MLIR LLVM dialect // to LLVM IR and back. // //===----------------------------------------------------------------------===// #ifndef MLIR_TARGET_LLVMIR_TYPETOLLVM_H #define MLIR_TARGET_LLVMIR_TYPETOLLVM_H #include <memory> namespace llvm { class DataLayout; class LLVMContext; class Type; } // namespace llvm namespace mlir { class Type; class MLIRContext; namespace LLVM { namespace detail { class TypeToLLVMIRTranslatorImpl; } // namespace detail /// Utility class to translate MLIR LLVM dialect types to LLVM IR. Stores the /// translation state, in particular any identified structure types that can be /// reused in further translation. class TypeToLLVMIRTranslator { … }; } // namespace LLVM } // namespace mlir #endif // MLIR_TARGET_LLVMIR_TYPETOLLVM_H