MLIR  20.0.0git
Functions
GPU.h File Reference
#include "mlir-c/IR.h"
#include "mlir-c/Support.h"
#include "mlir/Dialect/GPU/Transforms/Passes.capi.h.inc"

Go to the source code of this file.

Functions

 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION (GPU, gpu)
 
MLIR_CAPI_EXPORTED bool mlirTypeIsAGPUAsyncTokenType (MlirType type)
 
MLIR_CAPI_EXPORTED MlirType mlirGPUAsyncTokenTypeGet (MlirContext ctx)
 
MLIR_CAPI_EXPORTED bool mlirAttributeIsAGPUObjectAttr (MlirAttribute attr)
 
MLIR_CAPI_EXPORTED MlirAttribute mlirGPUObjectAttrGet (MlirContext mlirCtx, MlirAttribute target, uint32_t format, MlirStringRef objectStrRef, MlirAttribute mlirObjectProps)
 
MLIR_CAPI_EXPORTED MlirAttribute mlirGPUObjectAttrGetWithKernels (MlirContext mlirCtx, MlirAttribute target, uint32_t format, MlirStringRef objectStrRef, MlirAttribute mlirObjectProps, MlirAttribute mlirKernelsAttr)
 
MLIR_CAPI_EXPORTED MlirAttribute mlirGPUObjectAttrGetTarget (MlirAttribute mlirObjectAttr)
 
MLIR_CAPI_EXPORTED uint32_t mlirGPUObjectAttrGetFormat (MlirAttribute mlirObjectAttr)
 
MLIR_CAPI_EXPORTED MlirStringRef mlirGPUObjectAttrGetObject (MlirAttribute mlirObjectAttr)
 
MLIR_CAPI_EXPORTED bool mlirGPUObjectAttrHasProperties (MlirAttribute mlirObjectAttr)
 
MLIR_CAPI_EXPORTED MlirAttribute mlirGPUObjectAttrGetProperties (MlirAttribute mlirObjectAttr)
 
MLIR_CAPI_EXPORTED bool mlirGPUObjectAttrHasKernels (MlirAttribute mlirObjectAttr)
 
MLIR_CAPI_EXPORTED MlirAttribute mlirGPUObjectAttrGetKernels (MlirAttribute mlirObjectAttr)
 

Function Documentation

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( GPU  ,
gpu   
)

◆ mlirAttributeIsAGPUObjectAttr()

MLIR_CAPI_EXPORTED bool mlirAttributeIsAGPUObjectAttr ( MlirAttribute  attr)

Definition at line 34 of file GPU.cpp.

References unwrap().

◆ mlirGPUAsyncTokenTypeGet()

MLIR_CAPI_EXPORTED MlirType mlirGPUAsyncTokenTypeGet ( MlirContext  ctx)

◆ mlirGPUObjectAttrGet()

MLIR_CAPI_EXPORTED MlirAttribute mlirGPUObjectAttrGet ( MlirContext  mlirCtx,
MlirAttribute  target,
uint32_t  format,
MlirStringRef  objectStrRef,
MlirAttribute  mlirObjectProps 
)

Definition at line 38 of file GPU.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirGPUObjectAttrGetFormat()

MLIR_CAPI_EXPORTED uint32_t mlirGPUObjectAttrGetFormat ( MlirAttribute  mlirObjectAttr)

Definition at line 76 of file GPU.cpp.

References unwrap().

◆ mlirGPUObjectAttrGetKernels()

MLIR_CAPI_EXPORTED MlirAttribute mlirGPUObjectAttrGetKernels ( MlirAttribute  mlirObjectAttr)

Definition at line 107 of file GPU.cpp.

References unwrap(), and wrap().

◆ mlirGPUObjectAttrGetObject()

MLIR_CAPI_EXPORTED MlirStringRef mlirGPUObjectAttrGetObject ( MlirAttribute  mlirObjectAttr)

Definition at line 82 of file GPU.cpp.

References mlirStringRefCreate(), and unwrap().

◆ mlirGPUObjectAttrGetProperties()

MLIR_CAPI_EXPORTED MlirAttribute mlirGPUObjectAttrGetProperties ( MlirAttribute  mlirObjectAttr)

Definition at line 95 of file GPU.cpp.

References unwrap(), and wrap().

◆ mlirGPUObjectAttrGetTarget()

MLIR_CAPI_EXPORTED MlirAttribute mlirGPUObjectAttrGetTarget ( MlirAttribute  mlirObjectAttr)

Definition at line 70 of file GPU.cpp.

References unwrap(), and wrap().

◆ mlirGPUObjectAttrGetWithKernels()

MLIR_CAPI_EXPORTED MlirAttribute mlirGPUObjectAttrGetWithKernels ( MlirContext  mlirCtx,
MlirAttribute  target,
uint32_t  format,
MlirStringRef  objectStrRef,
MlirAttribute  mlirObjectProps,
MlirAttribute  mlirKernelsAttr 
)

Definition at line 51 of file GPU.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirGPUObjectAttrHasKernels()

MLIR_CAPI_EXPORTED bool mlirGPUObjectAttrHasKernels ( MlirAttribute  mlirObjectAttr)

Definition at line 101 of file GPU.cpp.

References unwrap().

◆ mlirGPUObjectAttrHasProperties()

MLIR_CAPI_EXPORTED bool mlirGPUObjectAttrHasProperties ( MlirAttribute  mlirObjectAttr)

Definition at line 89 of file GPU.cpp.

References unwrap().

◆ mlirTypeIsAGPUAsyncTokenType()

MLIR_CAPI_EXPORTED bool mlirTypeIsAGPUAsyncTokenType ( MlirType  type)

Definition at line 22 of file GPU.cpp.

References unwrap().