1 //===-- mlir-c/Dialect/NVGPU.h - C API for NVGPU dialect --*- C -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 #ifndef MLIR_C_DIALECT_NVGPU_H
11 #define MLIR_C_DIALECT_NVGPU_H
13 #include "mlir-c/IR.h"
14 #include "mlir-c/Support.h"
20 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(NVGPU
, nvgpu
);
22 //===---------------------------------------------------------------------===//
23 // TensorMapDescriptorType
24 //===---------------------------------------------------------------------===//
26 MLIR_CAPI_EXPORTED
bool mlirTypeIsANVGPUTensorMapDescriptorType(MlirType type
);
28 MLIR_CAPI_EXPORTED MlirType
mlirNVGPUTensorMapDescriptorTypeGet(
29 MlirContext ctx
, MlirType tensorMemrefType
, int swizzle
, int l2promo
,
30 int oobFill
, int interleave
);
36 #endif // MLIR_C_DIALECT_NVGPU_H