We are trying to make a wrapper of MLIR for Julia in https://github.com/JuliaLabs/MLIR.jl, but some dialects are missing in `libMLIR-C`. This PR adds them.
17 lines
693 B
C++
17 lines
693 B
C++
//===- Bufferization.cpp - C Interface for Bufferization dialect ----------===//
|
|
//
|
|
// 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "mlir-c/Dialect/Bufferization.h"
|
|
#include "mlir/CAPI/Registration.h"
|
|
#include "mlir/Dialect/Bufferization/IR/Bufferization.h"
|
|
|
|
using namespace mlir::bufferization;
|
|
|
|
MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(Bufferization, bufferization,
|
|
mlir::bufferization::BufferizationDialect)
|