MLIR 22.0.0git
Utils.h File Reference

Go to the source code of this file.

Classes

class  mlir::ROCDL::SerializeGPUModuleBase
 Base class for all ROCDL serializations from GPU modules into binary strings. More...

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::ROCDL

Enumerations

enum class  mlir::ROCDL::AMDGCNLibraries : uint32_t {
  mlir::ROCDL::None = 0 , mlir::ROCDL::Ockl = 1 , mlir::ROCDL::Ocml = 2 , mlir::ROCDL::OpenCL = 4 ,
  mlir::ROCDL::Hip = 8 , mlir::ROCDL::LastLib = Hip , mlir::ROCDL::LLVM_MARK_AS_BITMASK_ENUM =(LastLib) , mlir::ROCDL::All = (LastLib << 1) - 1
}
 Helper enum for specifying the AMD GCN device libraries required for compilation. More...

Functions

StringRef mlir::ROCDL::getROCMPath ()
 Searches & returns the path ROCM toolkit path, the search order is:
std::optional< DenseMap< StringAttr, NamedAttrList > > mlir::ROCDL::getAMDHSAKernelsELFMetadata (Builder &builder, ArrayRef< char > elfData)
 Returns a map containing the amdhsa.kernels ELF metadata for each of the kernels in the binary, or std::nullopt if the metadata couldn't be retrieved.
gpu::KernelTableAttr mlir::ROCDL::getKernelMetadata (Operation *gpuModule, ArrayRef< char > elfData={})
 Returns a #gpu.kernel_table containing kernel metadata for each of the kernels in gpuModule.