xref: /llvm-project/mlir/include/mlir-c/Dialect/Arith.h (revision fbfff1caff18eee5841c3946e58fa2d7964a1286)
1*fbfff1caSAdam Paszke //===-- mlir-c/Dialect/Arith.h - C API for Arith dialect ----------*- C -*-===//
2*fbfff1caSAdam Paszke //
3*fbfff1caSAdam Paszke // Part of the LLVM Project, under the Apache License v2.0 with LLVM
4*fbfff1caSAdam Paszke // Exceptions.
5*fbfff1caSAdam Paszke // See https://llvm.org/LICENSE.txt for license information.
6*fbfff1caSAdam Paszke // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7*fbfff1caSAdam Paszke //
8*fbfff1caSAdam Paszke //===----------------------------------------------------------------------===//
9*fbfff1caSAdam Paszke //
10*fbfff1caSAdam Paszke // This header declares the C interface for registering and accessing the
11*fbfff1caSAdam Paszke // Arith dialect. A dialect should be registered with a context to make it
12*fbfff1caSAdam Paszke // available to users of the context. These users must load the dialect
13*fbfff1caSAdam Paszke // before using any of its attributes, operations or types. Parser and pass
14*fbfff1caSAdam Paszke // manager can load registered dialects automatically.
15*fbfff1caSAdam Paszke //
16*fbfff1caSAdam Paszke //===----------------------------------------------------------------------===//
17*fbfff1caSAdam Paszke 
18*fbfff1caSAdam Paszke #ifndef MLIR_C_DIALECT_ARITH_H
19*fbfff1caSAdam Paszke #define MLIR_C_DIALECT_ARITH_H
20*fbfff1caSAdam Paszke 
21*fbfff1caSAdam Paszke #include "mlir-c/IR.h"
22*fbfff1caSAdam Paszke 
23*fbfff1caSAdam Paszke #ifdef __cplusplus
24*fbfff1caSAdam Paszke extern "C" {
25*fbfff1caSAdam Paszke #endif
26*fbfff1caSAdam Paszke 
27*fbfff1caSAdam Paszke MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Arith, arith);
28*fbfff1caSAdam Paszke 
29*fbfff1caSAdam Paszke #ifdef __cplusplus
30*fbfff1caSAdam Paszke }
31*fbfff1caSAdam Paszke #endif
32*fbfff1caSAdam Paszke 
33*fbfff1caSAdam Paszke #endif // MLIR_C_DIALECT_ARITH_H
34