My Project
|
#include <GPUDialect.h>
Public Member Functions | |
GPUDialect (MLIRContext *context) | |
Create the dialect in the given context . More... | |
LogicalResult | verifyOperationAttribute (Operation *op, NamedAttribute attr) override |
![]() | |
virtual | ~Dialect () |
MLIRContext * | getContext () const |
StringRef | getNamespace () const |
bool | allowsUnknownOperations () const |
bool | allowsUnknownTypes () const |
virtual Operation * | materializeConstant (OpBuilder &builder, Attribute value, Type type, Location loc) |
virtual Attribute | parseAttribute (DialectAsmParser &parser, Type type) const |
Parse an attribute registered to this dialect. More... | |
virtual void | printAttribute (Attribute, DialectAsmPrinter &) const |
virtual Type | parseType (DialectAsmParser &parser) const |
Parse a type registered to this dialect. More... | |
virtual void | printType (Type, DialectAsmPrinter &) const |
Print a type registered to this dialect. More... | |
virtual LogicalResult | verifyRegionArgAttribute (Operation *, unsigned regionIndex, unsigned argIndex, NamedAttribute) |
virtual LogicalResult | verifyRegionResultAttribute (Operation *, unsigned regionIndex, unsigned resultIndex, NamedAttribute) |
const DialectInterface * | getRegisteredInterface (ClassID *interfaceID) |
template<typename InterfaceT > | |
const InterfaceT * | getRegisteredInterface () |
Static Public Member Functions | |
static StringRef | getDialectNamespace () |
Get dialect namespace. More... | |
static StringRef | getContainerModuleAttrName () |
static StringRef | getDialectName () |
Get the canonical string name of the dialect. More... | |
static StringRef | getKernelFuncAttrName () |
Get the name of the attribute used to annotate external kernel functions. More... | |
static StringRef | getKernelModuleAttrName () |
Get the name of the attribute used to annotate kernel modules. More... | |
static bool | isKernel (Operation *op) |
static unsigned | getNumWorkgroupDimensions () |
static unsigned | getWorkgroupAddressSpace () |
static unsigned | getPrivateAddressSpace () |
![]() | |
static bool | isValidNamespace (StringRef str) |
Additional Inherited Members | |
![]() | |
DialectConstantFoldHook | constantFoldHook |
DialectConstantDecodeHook | decodeHook |
DialectExtractElementHook | extractElementHook |
![]() | |
Dialect (StringRef name, MLIRContext *context) | |
template<typename... Args> | |
void | addOperations () |
void | addOperation (AbstractOperation opInfo) |
template<typename... Args> | |
void | addTypes () |
This method is used by derived classes to add their types to the set. More... | |
template<typename... Args> | |
void | addAttributes () |
This method is used by derived classes to add their attributes to the set. More... | |
void | allowUnknownOperations (bool allow=true) |
Enable support for unregistered operations. More... | |
void | allowUnknownTypes (bool allow=true) |
Enable support for unregistered types. More... | |
void | addInterface (std::unique_ptr< DialectInterface > interface) |
Register a dialect interface with this dialect instance. More... | |
template<typename T , typename T2 , typename... Tys> | |
void | addInterfaces () |
Register a set of dialect interfaces with this dialect instance. More... | |
template<typename T > | |
void | addInterfaces () |
The dialect containing GPU kernel launching operations and related facilities.
|
explicit |
Create the dialect in the given context
.
|
inlinestatic |
Get the name of the attribute used to annotate the modules that contain kernel modules.
|
static |
Get the canonical string name of the dialect.
|
inlinestatic |
Get dialect namespace.
|
inlinestatic |
Get the name of the attribute used to annotate external kernel functions.
|
inlinestatic |
Get the name of the attribute used to annotate kernel modules.
|
inlinestatic |
Returns the number of workgroup (thread, block) dimensions supported in the GPU dialect.
|
inlinestatic |
Returns the numeric value used to identify the private memory address space.
|
inlinestatic |
Returns the numeric value used to identify the workgroup memory address space.
|
static |
Returns whether the given function is a kernel function, i.e., has the 'gpu.kernel' attribute.
|
overridevirtual |
Verify an attribute from this dialect on the given operation. Returns failure if the verification failed, success otherwise.
Reimplemented from mlir::Dialect.