13#include "nanobind/nanobind.h"
22 auto amdgpuTDMBaseType =
26 amdgpuTDMBaseType.def_classmethod(
28 [](
const nb::object &cls, MlirType elementType, MlirContext ctx) {
31 "Gets an instance of TDMBaseType in the same context", nb::arg(
"cls"),
32 nb::arg(
"element_type"), nb::arg(
"ctx") = nb::none());
38 amdgpuTDMDescriptorType.def_classmethod(
40 [](
const nb::object &cls, MlirContext ctx) {
43 "Gets an instance of TDMDescriptorType in the same context",
44 nb::arg(
"cls"), nb::arg(
"ctx") = nb::none());
50 amdgpuTDMGatherBaseType.def_classmethod(
52 [](
const nb::object &cls, MlirType elementType, MlirType indexType,
56 "Gets an instance of TDMGatherBaseType in the same context",
57 nb::arg(
"cls"), nb::arg(
"element_type"), nb::arg(
"index_type"),
58 nb::arg(
"ctx") = nb::none());
62 m.doc() =
"MLIR AMDGPU dialect.";
MLIR_CAPI_EXPORTED bool mlirTypeIsAAMDGPUTDMGatherBaseType(MlirType type)
MLIR_CAPI_EXPORTED bool mlirTypeIsAAMDGPUTDMDescriptorType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirAMDGPUTDMGatherBaseTypeGet(MlirContext ctx, MlirType elementType, MlirType indexType)
MLIR_CAPI_EXPORTED MlirType mlirAMDGPUTDMDescriptorTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirTypeID mlirAMDGPUTDMDescriptorTypeGetTypeID()
MLIR_CAPI_EXPORTED bool mlirTypeIsAAMDGPUTDMBaseType(MlirType type)
MLIR_CAPI_EXPORTED MlirType mlirAMDGPUTDMBaseTypeGet(MlirContext ctx, MlirType elementType)
MLIR_CAPI_EXPORTED MlirTypeID mlirAMDGPUTDMBaseTypeGetTypeID()
MLIR_CAPI_EXPORTED MlirTypeID mlirAMDGPUTDMGatherBaseTypeGetTypeID()
static void populateDialectAMDGPUSubmodule(const nb::module_ &m)
NB_MODULE(_mlirDialectsAMDGPU, m)
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.