20 return isa<nvgpu::TensorMapDescriptorType>(
unwrap(type));
24 MlirType tensorMemrefType,
25 int swizzle,
int l2promo,
26 int oobFill,
int interleave) {
27 return wrap(nvgpu::TensorMapDescriptorType::get(
29 TensorMapSwizzleKind(swizzle), TensorMapL2PromoKind(l2promo),
30 TensorMapOOBKind(oobFill), TensorMapInterleaveKind(interleave)));
MlirType mlirNVGPUTensorMapDescriptorTypeGet(MlirContext ctx, MlirType tensorMemrefType, int swizzle, int l2promo, int oobFill, int interleave)
MLIR_CAPI_EXPORTED bool mlirTypeIsANVGPUTensorMapDescriptorType(MlirType type)
#define MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(Name, Namespace, ClassName)
MlirDiagnostic wrap(mlir::Diagnostic &diagnostic)
mlir::Diagnostic & unwrap(MlirDiagnostic diagnostic)
Include the generated interface declarations.