[spirv] Add SPV_StorageClassAttr and PointerType
authorLei Zhang <antiagainst@google.com>
Thu, 13 Jun 2019 00:39:33 +0000 (17:39 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 20 Jun 2019 06:00:33 +0000 (23:00 -0700)
commitd13f670311c2caa21a9aa6842e112d57a368723f
tree09d12eddb90c41d98d165ccb607dc41454f20199
parentb5a34406a8b8e73bb5b61bb881eddf94ef51c5e8
[spirv] Add SPV_StorageClassAttr and PointerType

Pointer types need to specify the storage class. We use the utility functions
generated from SPV_StorageClassAttr to parse and print the storage classes.

Also improved the case that no element type is provided for (runtime) array.

PiperOrigin-RevId: 252935599
mlir/include/mlir/SPIRV/SPIRVBase.td
mlir/include/mlir/SPIRV/SPIRVDialect.h
mlir/include/mlir/SPIRV/SPIRVTypes.h
mlir/lib/SPIRV/SPIRVDialect.cpp
mlir/lib/SPIRV/SPIRVTypes.cpp
mlir/test/SPIRV/types.mlir
mlir/utils/spirv/gen_spirv_dialect.py