[DAG] Add helper for creating constant vector index with correct type.NFC.
[Concepts] Requires ExpressionsImplement support for C++2a requires-expressions.Differential Revision: https://reviews.llvm.org/D50360