[mlir][spirv] Expose more query APIs directly on TargetEnv
authorLei Zhang <antiagainst@google.com>
Mon, 9 Nov 2020 22:57:20 +0000 (17:57 -0500)
committerLei Zhang <antiagainst@google.com>
Mon, 9 Nov 2020 23:02:53 +0000 (18:02 -0500)
commit21eb8127f41214c03934e9c7c6115ab70174d213
tree0103b929eb2fefe2ae9d6d32535e2a5ccd0a4a5b
parentdbfa69c5024cfe58b8029a3766ec46c857cddb1e
[mlir][spirv] Expose more query APIs directly on TargetEnv

This allows us to omit one level of indirection when querying
the information from the underlying attribute.

Reviewed By: hanchung, ThomasRaoux

Differential Revision: https://reviews.llvm.org/D91080
mlir/include/mlir/Dialect/SPIRV/SPIRVAttributes.h
mlir/include/mlir/Dialect/SPIRV/TargetAndABI.h
mlir/lib/Dialect/SPIRV/SPIRVAttributes.cpp
mlir/lib/Dialect/SPIRV/TargetAndABI.cpp