This is a NFC.
Fairly straightforward patch to fill in some of the holes in the attributes API with respect to accessing parameter/argument attributes. The patch aims to step further towards encapsulating the idx+FirstArgIndex pattern to access these attributes to within the AttributeList.
I'd like to remove this overload now that it is dead within LLVM. You may need to replace it with one that takes a single Index.