llvm/mlir/lib/CAPI/Dialect/GPU.cpp

//===- GPU.cpp - C Interface for GPU 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/GPU.h"
#include "mlir/CAPI/Registration.h"
#include "mlir/Dialect/GPU/IR/GPUDialect.h"
#include "llvm/Support/Casting.h"

usingnamespacemlir;

MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(GPU, gpu, gpu::GPUDialect)

//===-------------------------------------------------------------------===//
// AsyncTokenType
//===-------------------------------------------------------------------===//

bool mlirTypeIsAGPUAsyncTokenType(MlirType type) {}

MlirType mlirGPUAsyncTokenTypeGet(MlirContext ctx) {}

//===---------------------------------------------------------------------===//
// ObjectAttr
//===---------------------------------------------------------------------===//

bool mlirAttributeIsAGPUObjectAttr(MlirAttribute attr) {}

MlirAttribute mlirGPUObjectAttrGet(MlirContext mlirCtx, MlirAttribute target,
                                   uint32_t format, MlirStringRef objectStrRef,
                                   MlirAttribute mlirObjectProps) {}

MlirAttribute mlirGPUObjectAttrGetWithKernels(MlirContext mlirCtx,
                                              MlirAttribute target,
                                              uint32_t format,
                                              MlirStringRef objectStrRef,
                                              MlirAttribute mlirObjectProps,
                                              MlirAttribute mlirKernelsAttr) {}

MlirAttribute mlirGPUObjectAttrGetTarget(MlirAttribute mlirObjectAttr) {}

uint32_t mlirGPUObjectAttrGetFormat(MlirAttribute mlirObjectAttr) {}

MlirStringRef mlirGPUObjectAttrGetObject(MlirAttribute mlirObjectAttr) {}

bool mlirGPUObjectAttrHasProperties(MlirAttribute mlirObjectAttr) {}

MlirAttribute mlirGPUObjectAttrGetProperties(MlirAttribute mlirObjectAttr) {}

bool mlirGPUObjectAttrHasKernels(MlirAttribute mlirObjectAttr) {}

MlirAttribute mlirGPUObjectAttrGetKernels(MlirAttribute mlirObjectAttr) {}