[analyzer] Avoid out-of-order node traversal on void return (#117863)
[llvm-project.git] / mlir / lib / Conversion / LLVMCommon / ConversionTarget.cpp
blob56b4bd7d30a1044d732c24675567a1f09f7eb0e8
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 //===----------------------------------------------------------------------===//
9 #include "mlir/Conversion/LLVMCommon/ConversionTarget.h"
10 #include "mlir/Dialect/LLVMIR/LLVMDialect.h"
12 using namespace mlir;
14 mlir::LLVMConversionTarget::LLVMConversionTarget(MLIRContext &ctx)
15 : ConversionTarget(ctx) {
16 this->addLegalDialect<LLVM::LLVMDialect>();
17 this->addLegalOp<UnrealizedConversionCastOp>();