This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][SPIRV] Rename `spv.loop` to `spv.mlir.loop`.
ClosedPublic

Authored by ergawy on Mar 4 2021, 12:27 AM.

Details

Summary

To unify the naming scheme across all ops in the SPIR-V dialect, we are
moving from spv.camelCase to spv.CamelCase everywhere.

Diff Detail

Event Timeline

ergawy created this revision.Mar 4 2021, 12:27 AM
ergawy requested review of this revision.Mar 4 2021, 12:27 AM
antiagainst requested changes to this revision.Mar 4 2021, 1:10 PM

Coudl you change it to spv.mlir.loop actually? In general we use the spv.CamelCase for anything that has correspondence to an instruction in the SPIR-V spec. For other ops introduced for MLIR's requirement/purpose (like spv.mlir.merge, etc.), it should be spv.mlir.snake_case.

This revision now requires changes to proceed.Mar 4 2021, 1:10 PM
ergawy updated this revision to Diff 328399.Mar 4 2021, 11:31 PM

Rename to spv.mlir.loop.

ergawy updated this revision to Diff 328401.Mar 4 2021, 11:34 PM

Fix comments.

ergawy updated this revision to Diff 328405.Mar 4 2021, 11:38 PM

Fix doc string.

ergawy retitled this revision from [MLIR][SPIRV] Rename `spv.loop` to `spv.Loop`. to [MLIR][SPIRV] Rename `spv.loop` to `spv.mlir.loop`..Mar 5 2021, 12:31 AM
antiagainst accepted this revision.Mar 5 2021, 12:35 PM
This revision is now accepted and ready to land.Mar 5 2021, 12:35 PM
This revision was landed with ongoing or failed builds.Mar 5 2021, 12:44 PM
This revision was automatically updated to reflect the committed changes.