This is an archive of the discontinued LLVM Phabricator instance.

Support retrieving the splat value from DenseElementsAttrs in Python
ClosedPublic

Authored by apaszke on Mar 21 2023, 3:56 AM.

Details

Summary

This is especially convenient when trying to resize the splat.

Diff Detail

Event Timeline

apaszke created this revision.Mar 21 2023, 3:56 AM
apaszke requested review of this revision.Mar 21 2023, 3:56 AM
jpienaar accepted this revision.Mar 21 2023, 5:33 AM

Looks good thanks

This revision is now accepted and ready to land.Mar 21 2023, 5:33 AM
rkayaith added inline comments.
mlir/lib/Bindings/Python/IRAttributes.cpp
782–786

nit: