MLIR
20.0.0git
lib
Conversion
LLVMCommon
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
9
#include "
mlir/Conversion/LLVMCommon/ConversionTarget.h
"
10
#include "
mlir/Dialect/LLVMIR/LLVMDialect.h
"
11
12
using namespace
mlir
;
13
14
mlir::LLVMConversionTarget::LLVMConversionTarget
(
MLIRContext
&ctx)
15
:
ConversionTarget
(ctx) {
16
this->addLegalDialect<LLVM::LLVMDialect>();
17
this->addLegalOp<UnrealizedConversionCastOp>();
18
}
ConversionTarget.h
LLVMDialect.h
mlir::ConversionTarget
This class describes a specific conversion target.
Definition:
DialectConversion.h:874
mlir::LLVMConversionTarget::LLVMConversionTarget
LLVMConversionTarget(MLIRContext &ctx)
Definition:
ConversionTarget.cpp:14
mlir::MLIRContext
MLIRContext is the top-level object for a collection of MLIR operations.
Definition:
MLIRContext.h:60
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
Generated on Tue Nov 19 2024 08:32:26 for MLIR by
1.9.1