#include "mlir/Target/LLVMIR/TypeToLLVM.h"
#include "mlir/Dialect/LLVMIR/LLVMTypes.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/MLIRContext.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Type.h"
usingnamespacemlir;
namespace mlir {
namespace LLVM {
namespace detail {
class TypeToLLVMIRTranslatorImpl { … };
}
}
}
LLVM::TypeToLLVMIRTranslator::TypeToLLVMIRTranslator(llvm::LLVMContext &context)
: … { … }
LLVM::TypeToLLVMIRTranslator::~TypeToLLVMIRTranslator() = default;
llvm::Type *LLVM::TypeToLLVMIRTranslator::translateType(Type type) { … }
unsigned LLVM::TypeToLLVMIRTranslator::getPreferredAlignment(
Type type, const llvm::DataLayout &layout) { … }