[AutoDiff] Requestify `@differentiable` attribute parameter indices. (#28017)
Requestify `@differentiable` attribute parameter indices resolution:
`DifferentiableAttributeParameterIndicesRequest`.
This is necessary for type-checking `@differentiable` attributes in
non-primary files. The previous workaround
(`TypeChecker::checkDeclDifferentiableAttributes`) no longer works
because `TypeChecker::validateDecl` has been replaced with
`InterfaceTypeRequest::evaluate`.
Currently, all `@differentiable` attribute type-checking
(`AttributeChecker::visitDifferentiableAttr`) has been moved into
`DifferentiableAttributeParameterIndicesRequest::evaluate`.
In the future, consider splitting
`DifferentiableAttributeParameterIndicesRequest` into multiple requests
for the following functionality:
- `DifferentiableAttr::getJVPFunction`
- `DifferentiableAttr::getVJPFunction`
- `DifferentiableAttr::getDerivativeGenericSignature`