This is an archive of the discontinued LLVM Phabricator instance.

[mlir][NVGPU] Verifier for nvgpu.ldmatrix
ClosedPublic

Authored by manishucsd on Jul 13 2022, 11:14 AM.

Details

Summary
  • Adds verifiers for nvgpu.ldmatrix op
  • Adds tests to mlir/test/Dialect/NVGPU/invalid.mlir

Diff Detail

Event Timeline

manishucsd created this revision.Jul 13 2022, 11:14 AM
manishucsd requested review of this revision.Jul 13 2022, 11:14 AM

Looks good, couple nit comments

mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td
55–60

nit: can you improve the formatting? (clang-format doesn't work on tablegen files :( )

mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp
228

nit: skip else after return

228

forgot to add the coding standard associated link:
https://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return

  • Addressing review comments
manishucsd marked 3 inline comments as done.Jul 13 2022, 3:02 PM
ThomasRaoux accepted this revision.Jul 13 2022, 3:30 PM
ThomasRaoux added inline comments.
mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp
198

one more nit: comments should be a full sentence meaning they should end with a period.
https://llvm.org/docs/CodingStandards.html#commenting

This revision is now accepted and ready to land.Jul 13 2022, 3:30 PM

cleaning comments

manishucsd marked an inline comment as done.Jul 13 2022, 6:09 PM
manishucsd added inline comments.
mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp
198

addressed llvm-style commenting guideline while maintaining comment-style consistency with the rest of the file

This revision was automatically updated to reflect the committed changes.