* Registers a small set of sample dialects. * NFC with respect to existing C-API symbols but some headers have been moved down a level to the Dialect/ sub-directory. * Adds an additional entry point per dialect that is needed for dynamic discovery/loading. * See discussion: https://llvm.discourse.group/t/dialects-and-the-c-api/2306/16 Differential Revision: https://reviews.llvm.org/D94370
15 lines
610 B
C++
15 lines
610 B
C++
//===- Linalg.cpp - C Interface for Linalg 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/Linalg.h"
|
|
#include "mlir/CAPI/Registration.h"
|
|
#include "mlir/Dialect/Linalg/IR/LinalgOps.h"
|
|
|
|
MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(Linalg, linalg,
|
|
mlir::linalg::LinalgDialect);
|