MLIR
20.0.0git
|
#include "mlir/Dialect/SPIRV/IR/SPIRVEnums.h"
#include "mlir/Transforms/DialectConversion.h"
#include <memory>
Go to the source code of this file.
Classes | |
class | mlir::spirv::MemorySpaceToStorageClassConverter |
Type converter for converting numeric MemRef memory spaces into SPIR-V symbolic ones. More... | |
Namespaces | |
mlir | |
Include the generated interface declarations. | |
mlir::spirv | |
Typedefs | |
using | mlir::spirv::MemorySpaceToStorageClassMap = std::function< std::optional< spirv::StorageClass >(Attribute)> |
Mapping from numeric MemRef memory spaces into SPIR-V symbolic ones. More... | |
Functions | |
std::optional< spirv::StorageClass > | mlir::spirv::mapMemorySpaceToVulkanStorageClass (Attribute) |
Maps MemRef memory spaces to storage classes for Vulkan-flavored SPIR-V using the default rule. More... | |
std::optional< unsigned > | mlir::spirv::mapVulkanStorageClassToMemorySpace (spirv::StorageClass) |
Maps storage classes for Vulkan-flavored SPIR-V to MemRef memory spaces using the default rule. More... | |
std::optional< spirv::StorageClass > | mlir::spirv::mapMemorySpaceToOpenCLStorageClass (Attribute) |
Maps MemRef memory spaces to storage classes for OpenCL-flavored SPIR-V using the default rule. More... | |
std::optional< unsigned > | mlir::spirv::mapOpenCLStorageClassToMemorySpace (spirv::StorageClass) |
Maps storage classes for OpenCL-flavored SPIR-V to MemRef memory spaces using the default rule. More... | |
std::unique_ptr< ConversionTarget > | mlir::spirv::getMemorySpaceToStorageClassTarget (MLIRContext &) |
Creates the target that populates legality of ops with MemRef types. More... | |
void | mlir::spirv::convertMemRefTypesAndAttrs (Operation *op, MemorySpaceToStorageClassConverter &typeConverter) |
Converts all MemRef types and attributes in the op, as decided by the typeConverter . More... | |
void | mlir::populateMemRefToSPIRVPatterns (const SPIRVTypeConverter &typeConverter, RewritePatternSet &patterns) |
Appends to a pattern list additional patterns for translating MemRef ops to SPIR-V ops. More... | |