20 return isa<nvgpu::TensorMapDescriptorType>(
unwrap(type));
24 MlirType tensorMemrefType,
25 int swizzle,
int l2promo,
26 int oobFill,
int interleave) {
29 TensorMapSwizzleKind(swizzle), TensorMapL2PromoKind(l2promo),
30 TensorMapOOBKind(oobFill), TensorMapInterleaveKind(interleave)));
bool mlirTypeIsANVGPUTensorMapDescriptorType(MlirType type)
MlirType mlirNVGPUTensorMapDescriptorTypeGet(MlirContext ctx, MlirType tensorMemrefType, int swizzle, int l2promo, int oobFill, int interleave)
#define MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(Name, Namespace, ClassName)
mlir::Diagnostic & unwrap(MlirDiagnostic diagnostic)
MlirDiagnostic wrap(mlir::Diagnostic &diagnostic)
Include the generated interface declarations.
auto get(MLIRContext *context, Ts &&...params)
Helper method that injects context only if needed, this helps unify some of the attribute constructio...