MLIR  16.0.0git
ConversionTarget.cpp
Go to the documentation of this file.
1 //===- ConversionTarget.cpp - Target for converting to the LLVM dialect ---===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
11 
12 using namespace mlir;
13 
15  : ConversionTarget(ctx) {
16  this->addLegalDialect<LLVM::LLVMDialect>();
17  this->addLegalOp<UnrealizedConversionCastOp>();
18 }
Include the generated interface declarations.
LLVMConversionTarget(MLIRContext &ctx)
MLIRContext is the top-level object for a collection of MLIR operations.
Definition: MLIRContext.h:56
This class describes a specific conversion target.