Treating the RegParmAttr as a TypeAttr because that is what it is.

Patch reviewed by Rafael Espindola.