MLIR 23.0.0git
SPIRVOpUtils.h File Reference

Go to the source code of this file.

Namespaces

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

Functions

unsigned mlir::spirv::getBitWidth (Type type)
 Returns the bit width of the type.
void mlir::spirv::printVariableDecorations (Operation *op, OpAsmPrinter &printer, SmallVectorImpl< StringRef > &elidedAttrs)
LogicalResult mlir::spirv::extractValueFromConstOp (Operation *op, int32_t &value)
LogicalResult mlir::spirv::verifyMemorySemantics (Operation *op, spirv::MemorySemantics memorySemantics)
LogicalResult mlir::spirv::verifyPhysicalStorageBufferDecorations (Operation *op, Type pointeeType)
 Verifies the SPV_KHR_physical_storage_buffer rule that a variable whose pointee is a pointer (or array of pointers) in the PhysicalStorageBuffer storage class must be decorated with exactly one of AliasedPointer or RestrictPointer.