//===- BuiltinToLLVMIRTranslation.cpp - Translate builtin to LLVM IR ------===// // // 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 implements a translation between the MLIR builtin dialect and LLVM // IR. // //===----------------------------------------------------------------------===// #include "mlir/Target/LLVMIR/Dialect/Builtin/BuiltinToLLVMIRTranslation.h" #include "mlir/IR/BuiltinDialect.h" #include "mlir/IR/BuiltinOps.h" #include "mlir/Target/LLVMIR/LLVMTranslationInterface.h" usingnamespacemlir; namespace { class BuiltinDialectLLVMIRTranslationInterface : public LLVMTranslationDialectInterface { … }; } // namespace void mlir::registerBuiltinDialectTranslation(DialectRegistry ®istry) { … } void mlir::registerBuiltinDialectTranslation(MLIRContext &context) { … }