MLIR 22.0.0git
IRDL.h
Go to the documentation of this file.
1//===-- mlir-c/Dialect/IRDL.h - C API for IRDL --------------------*- C -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM
4// Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef MLIR_C_DIALECT_IRDL_H
11#define MLIR_C_DIALECT_IRDL_H
12
13#include "mlir-c/IR.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
20
21/// Loads all IRDL dialects in the provided module, registering the dialects in
22/// the module's associated context.
24
25//===----------------------------------------------------------------------===//
26// VariadicityAttr
27//===----------------------------------------------------------------------===//
28
29MLIR_CAPI_EXPORTED MlirAttribute
30mlirIRDLVariadicityAttrGet(MlirContext ctx, MlirStringRef value);
31
32//===----------------------------------------------------------------------===//
33// VariadicityArrayAttr
34//===----------------------------------------------------------------------===//
35
37 MlirContext ctx, intptr_t nValues, MlirAttribute const *values);
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif // MLIR_C_DIALECT_IRDL_H
MLIR_CAPI_EXPORTED MlirAttribute mlirIRDLVariadicityArrayAttrGet(MlirContext ctx, intptr_t nValues, MlirAttribute const *values)
Definition IRDL.cpp:33
MLIR_CAPI_EXPORTED MlirAttribute mlirIRDLVariadicityAttrGet(MlirContext ctx, MlirStringRef value)
Definition IRDL.cpp:24
MLIR_CAPI_EXPORTED MlirLogicalResult mlirLoadIRDLDialects(MlirModule module)
Loads all IRDL dialects in the provided module, registering the dialects in the module's associated c...
Definition IRDL.cpp:16
#define MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Name, Namespace)
Definition IR.h:215
#define MLIR_CAPI_EXPORTED
Definition Support.h:46
A logical result value, essentially a boolean with named states.
Definition Support.h:116
A pointer to a sized fragment of a string, not necessarily null-terminated.
Definition Support.h:73