This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][bufferize] Add RTTI to BufferizationState
AbandonedPublic

Authored by springerm on Nov 23 2021, 4:55 AM.

Details

Reviewers
nicolasvasilache
Summary

The main purpose of this change is to add an assertion for quickly detecting incorrect usage of ComprehensiveBufferize. (I.e., registering the CallOp external model, without using ModuleBufferization.)

Note: ExtensibleRTTI ("RTTI for open class hierarchies") was chosen on purpose here to avoid refering to "ModuleBufferization" in BufferizableOpInterface.

Depends On D114226

Diff Detail

Event Timeline

springerm created this revision.Nov 23 2021, 4:55 AM
springerm requested review of this revision.Nov 23 2021, 4:55 AM
springerm abandoned this revision.Nov 23 2021, 11:56 PM