Add some utility builder functions for SPIR-V operations.
authorMahesh Ravishankar <ravishankarm@google.com>
Fri, 4 Oct 2019 21:02:14 +0000 (14:02 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 4 Oct 2019 21:02:48 +0000 (14:02 -0700)
commit77a809d7a12bf83096a670dc3c611d9c1f95eb0d
treefaf4f1cd0031ef4df07db77831bc8813f5432afa
parent754ea72794c819dceeab1f4cc15933971d228aed
Add some utility builder functions for SPIR-V operations.

Add builder functions for spv._address_of, spv.EntryPoint,
spv.ExecutionMode and spv.Load to make it easier to create these
operations.
Fix a minor bug in printing of spv.EntryPoint
Add a utility function to get the attribute name associated with a
decoration.

PiperOrigin-RevId: 272952846
mlir/include/mlir/Dialect/SPIRV/SPIRVDialect.h
mlir/include/mlir/Dialect/SPIRV/SPIRVOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVStructureOps.td
mlir/lib/Dialect/SPIRV/SPIRVDialect.cpp
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp