This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Cleanup: Fix warnings in MLIR
ClosedPublic

Authored by springerm on Aug 4 2021, 7:44 PM.

Details

Summary

Tested with gcc-10. Other compilers may generate additional warnings. This does not fix all warnings. There are a few extra ones in LLVMCore and MLIR.

  • OpEmitter::getAttrNameIndex: -Wunused-function (function is private and not used anywhere)
  • PrintOpPass copy constructor: -Wextra ("Base class should be explicitly initialized in the copy constructor")
  • LegalizeForLLVMExport.cpp: -Woverflow (overflow is expected, silence warning by making the cast explicit)

Depends On D107520

Diff Detail

Event Timeline

springerm created this revision.Aug 4 2021, 7:44 PM
springerm requested review of this revision.Aug 4 2021, 7:44 PM
ftynse accepted this revision.Aug 5 2021, 12:32 AM
This revision is now accepted and ready to land.Aug 5 2021, 12:32 AM
rriddle accepted this revision.Aug 5 2021, 9:06 AM
rriddle added inline comments.
mlir/lib/Transforms/ViewOpGraph.cpp
75
aartbik accepted this revision.Aug 5 2021, 10:39 AM
This revision was landed with ongoing or failed builds.Aug 5 2021, 6:37 PM
This revision was automatically updated to reflect the committed changes.
springerm marked an inline comment as done.