This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] (re)introducing getRankedTensorType/getMemrefType
ClosedPublic

Authored by wrengr on Jan 24 2023, 1:24 PM.

Details

Summary

The bulk of D142074 seems to have gotten overwritten due to some sort of merge conflict (afaict there's no record of it having been reverted intentionally). So this commit redoes those changes. In addition to the original changes, this commit also:

  • moves the definition of getRankedTensorType (from Transforms/CodegenUtils.h to IR/SparseTensor.h), so that it can be used by IR/SparseTensorDialect.cpp.
  • adds getMemRefType as another abbreviation.

Diff Detail

Event Timeline

wrengr created this revision.Jan 24 2023, 1:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 24 2023, 1:24 PM
wrengr requested review of this revision.Jan 24 2023, 1:24 PM
wrengr updated this revision to Diff 491896.Jan 24 2023, 1:27 PM

git-clang-format

aartbik accepted this revision.Jan 24 2023, 1:30 PM
This revision is now accepted and ready to land.Jan 24 2023, 1:30 PM