This is an archive of the discontinued LLVM Phabricator instance.

[spirv] Move device info from resource limit into target env
ClosedPublic

Authored by antiagainst on Sep 18 2020, 8:59 AM.

Details

Summary

Vendor/device information are not resource limits. Moving to
target environment directly for better organization.

Diff Detail

Event Timeline

antiagainst created this revision.Sep 18 2020, 8:59 AM
antiagainst requested review of this revision.Sep 18 2020, 9:00 AM
mravishankar accepted this revision.Sep 18 2020, 2:24 PM

Nice. Just a few nits.

mlir/docs/Dialects/SPIR-V.md
810

Whats the definition for spirv-device-id? Is it just an integer.

mlir/include/mlir/Dialect/SPIRV/SPIRVAttributes.h
135

Make deviceId uint64_t?

This revision is now accepted and ready to land.Sep 18 2020, 2:24 PM
antiagainst marked an inline comment as done.Sep 18 2020, 2:41 PM
antiagainst added inline comments.
mlir/docs/Dialects/SPIR-V.md
810

Yup. Thanks for catching that! Added.

mlir/include/mlir/Dialect/SPIRV/SPIRVAttributes.h
135
This revision was automatically updated to reflect the committed changes.
antiagainst marked an inline comment as done.