This is an archive of the discontinued LLVM Phabricator instance.

[mlir-tblgen] Minor Refactor for StaticVerifierFunctionEmitter.
ClosedPublic

Authored by Chia-hungDuan on Jul 22 2021, 11:47 PM.

Details

Summary

Move StaticVerifierFunctionEmitter to CodeGenHelper.h so that it can be
used for both ODS and DRR.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Jul 22 2021, 11:47 PM
Chia-hungDuan requested review of this revision.Jul 22 2021, 11:47 PM
jpienaar added inline comments.Jul 23 2021, 9:05 AM
mlir/include/mlir/TableGen/CodeGenHelpers.h
116

Could we use an array of Operations instead? Seeing the raw, underlying type feels to open.

jpienaar accepted this revision.Aug 11 2021, 5:18 PM
This revision is now accepted and ready to land.Aug 11 2021, 5:18 PM

Fix minor code moving bug which generated wrong namespace scope