Generalize m_ContantIndexOp by using the m_Constant matcher and checking the operation for an index type.
Unit tests: pass. 61914 tests passed, 0 failed and 783 were skipped.
Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
Please add explicit to avoid spurious implicit conversions
Add explicit keyword for the single-parameter constructor.
This is a lot of duplication for what should be one or two lines of code.
I would imagine that the constant_op_binder could optionally constrain the type(using isa<>) as well (via templates).
Drop the assert
nit: merge these on one line.