getBufferType computes the bufferized type of an SSA value without bufferizing any IR. This is useful for predicting the bufferized type of iter_args of a loop.
To avoid endless recursion (e.g., in the case of "scf.for", the type of the iter_arg depends on the type of init_arg and the type of the yielded value; the type of the yielded value depends on the type of the iter_arg again), fixedTypes was used to fall back to "fixed" type. A simpler way is to maintain an "invocation stack". getBufferType implementations can then inspect the invocation stack to detect repetitive computations (typically when computing the bufferized type of a block argument).
Nit: potentially a more generic type like SmallVectorImpl could be used?