1//===-- mlir-c/Dialect/GPU.h - C API for GPU dialect -------------*- 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_GPU_H
11#define MLIR_C_DIALECT_GPU_H
12
13#include "mlir-c/IR.h"
14#include "mlir-c/Support.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(GPU, gpu);
21
22//===---------------------------------------------------------------------===//
23// ObjectAttr
24//===---------------------------------------------------------------------===//
25
26MLIR_CAPI_EXPORTED bool mlirAttributeIsAGPUObjectAttr(MlirAttribute attr);
27
28MLIR_CAPI_EXPORTED MlirAttribute
29mlirGPUObjectAttrGet(MlirContext mlirCtx, MlirAttribute target, uint32_t format,
30 MlirStringRef objectStrRef, MlirAttribute mlirObjectProps);
31
32MLIR_CAPI_EXPORTED MlirAttribute
33mlirGPUObjectAttrGetTarget(MlirAttribute mlirObjectAttr);
34
35MLIR_CAPI_EXPORTED uint32_t
36mlirGPUObjectAttrGetFormat(MlirAttribute mlirObjectAttr);
37
38MLIR_CAPI_EXPORTED MlirStringRef
39mlirGPUObjectAttrGetObject(MlirAttribute mlirObjectAttr);
40
41MLIR_CAPI_EXPORTED bool
42mlirGPUObjectAttrHasProperties(MlirAttribute mlirObjectAttr);
43
44MLIR_CAPI_EXPORTED MlirAttribute
45mlirGPUObjectAttrGetProperties(MlirAttribute mlirObjectAttr);
46
47#ifdef __cplusplus
48}
49#endif
50
51#include "mlir/Dialect/GPU/Transforms/Passes.capi.h.inc"
52
53#endif // MLIR_C_DIALECT_GPU_H
54

source code of mlir/include/mlir-c/Dialect/GPU.h