This function aligns an affine map (and operands) with given dims and syms SSA values.
This is useful in conjunction with FlatAffineConstraints::addLowerOrUpperBound, which requires the boundMap to be aligned with the constraint set's dims and syms.
Depends On D107726
Nit: consider documenting the behavior of dims or syms contain duplicate entries or overlap (or specifying that it is undefined).