This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Calling `SparseTensorType::get{Pos,Crd}Type` directly
ClosedPublic

Authored by wrengr on May 17 2023, 1:45 PM.

Details

Summary

The SparseTensorType versions of these methods have some special handling to ensure that they work for unannotated tensors; whereas, the stt.getEncoding().get{Pos,Crd}Type() idiom can cause segfaults.

Diff Detail

Event Timeline

wrengr created this revision.May 17 2023, 1:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2023, 1:45 PM
wrengr requested review of this revision.May 17 2023, 1:45 PM
Peiming accepted this revision.May 17 2023, 2:23 PM
This revision is now accepted and ready to land.May 17 2023, 2:23 PM