12 #include <pybind11/pybind11.h>
24 nvgpuTensorMapDescriptorType.def_classmethod(
26 [](py::object cls, MlirType tensorMemrefType,
int swizzle,
int l2promo,
27 int oobFill,
int interleave, MlirContext ctx) {
29 ctx, tensorMemrefType, swizzle, l2promo, oobFill, interleave));
31 "Gets an instance of TensorMapDescriptorType in the same context",
32 py::arg(
"cls"), py::arg(
"tensor_type"), py::arg(
"swizzle"),
33 py::arg(
"l2promo"), py::arg(
"oob_fill"), py::arg(
"interleave"),
34 py::arg(
"ctx") = py::none());
38 m.doc() =
"MLIR NVGPU dialect.";
PYBIND11_MODULE(_mlirDialectsNVGPU, m)
static void populateDialectNVGPUSubmodule(const pybind11::module &m)
MLIR_CAPI_EXPORTED bool mlirTypeIsANVGPUTensorMapDescriptorType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirNVGPUTensorMapDescriptorTypeGet(MlirContext ctx, MlirType tensorMemrefType, int swizzle, int l2promo, int oobFill, int interleave)
Creates a custom subclass of mlir.ir.Type, implementing a casting constructor and type checking metho...
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Include the generated interface declarations.