brintos

brintos / llvm-project-archived public Read only

0
0
Text · 691 B · 56b4bd7 Raw
19 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9#include "mlir/Conversion/LLVMCommon/ConversionTarget.h"10#include "mlir/Dialect/LLVMIR/LLVMDialect.h"11 12using namespace mlir;13 14mlir::LLVMConversionTarget::LLVMConversionTarget(MLIRContext &ctx)15    : ConversionTarget(ctx) {16  this->addLegalDialect<LLVM::LLVMDialect>();17  this->addLegalOp<UnrealizedConversionCastOp>();18}19