This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fix some of the warnings in MLIR code.
ClosedPublic

Authored by pifon2a on Jun 11 2020, 10:27 AM.

Details

Summary
  • extra ';' in the following files: mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp mlir/lib/Dialect/Shape/IR/Shape.cpp
  • base class ‘mlir::ConvertVectorToSCFBase<ConvertVectorToSCFPass>’ should be explicitly initialized in the copy constructor [-Wextra] in mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
  • warning: ‘bool Expression::operator==(const Expression&) const’ defined but not used [-Wunused-function] in mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp

Diff Detail

Event Timeline

pifon2a created this revision.Jun 11 2020, 10:27 AM
pifon2a edited reviewers, added: rriddle, mehdi_amini, herhut; removed: aartbik, silvas.Jun 11 2020, 10:28 AM
rriddle accepted this revision.Jun 11 2020, 10:29 AM
rriddle added inline comments.
mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
653–654

You shouldn't need this at all.

This revision is now accepted and ready to land.Jun 11 2020, 10:29 AM
pifon2a marked an inline comment as done.Jun 11 2020, 1:17 PM
pifon2a updated this revision to Diff 270217.Jun 11 2020, 1:17 PM

Address the comment.

This revision was automatically updated to reflect the committed changes.