Enables performing the same filtering in the op doc definition as in the op definition generator. Differential Revision: https://reviews.llvm.org/D99793