[AutoDiff] Update SIL derivative function type calculation. (#30538)
[AutoDiff] Update SIL derivative function type calculation. (#30538)

Update SIL derivative function type calculation for substituted function types.
`SILFunctionType::getAutoDiff{Derivative,Transpose}FunctionType` now handle
substituted original function types.

The derivative type of a (un)substituted original function type is also
(un)substituted.
gregomni/swift,allevato/swift,hooman/swift,CodaFi/swift,allevato/swift,JGiola/swift,jckarter/swift,xwu/swift,jckarter/swift,ahoppen/swift,benlangmuir/swift,tkremenek/swift,apple/swift,nathawes/swift,jmgc/swift,airspeedswift/swift,roambotics/swift,jckarter/swift,xwu/swift,rudkx/swift,roambotics/swift,CodaFi/swift,tkremenek/swift,jckarter/swift,aschwaighofer/swift,airspeedswift/swift,aschwaighofer/swift,rudkx/swift,allevato/swift,aschwaighofer/swift,jmgc/swift,glessard/swift,aschwaighofer/swift,benlangmuir/swift,allevato/swift,parkera/swift,airspeedswift/swift,gregomni/swift,CodaFi/swift,apple/swift,rudkx/swift,ahoppen/swift,atrick/swift,hooman/swift,benlangmuir/swift,jmgc/swift,JGiola/swift,CodaFi/swift,hooman/swift,CodaFi/swift,parkera/swift,gregomni/swift,stephentyrone/swift,CodaFi/swift,harlanhaskins/swift,hooman/swift,apple/swift,tkremenek/swift,JGiola/swift,nathawes/swift,airspeedswift/swift,gregomni/swift,atrick/swift,stephentyrone/swift,parkera/swift,stephentyrone/swift,nathawes/swift,hooman/swift,glessard/swift,stephentyrone/swift,JGiola/swift,tkremenek/swift,atrick/swift,xwu/swift,parkera/swift,apple/swift,harlanhaskins/swift,parkera/swift,jckarter/swift,ahoppen/swift,JGiola/swift,nathawes/swift,harlanhaskins/swift,roambotics/swift,rudkx/swift,jckarter/swift,jmgc/swift,gregomni/swift,tkremenek/swift,roambotics/swift,harlanhaskins/swift,jmgc/swift,airspeedswift/swift,benlangmuir/swift,xwu/swift,tkremenek/swift,stephentyrone/swift,benlangmuir/swift,nathawes/swift,airspeedswift/swift,tkremenek/swift,hooman/swift,allevato/swift,glessard/swift,parkera/swift,xwu/swift,ahoppen/swift,harlanhaskins/swift,allevato/swift,glessard/swift,allevato/swift,glessard/swift,hooman/swift,stephentyrone/swift,jmgc/swift,stephentyrone/swift,gregomni/swift,CodaFi/swift,atrick/swift,atrick/swift,xwu/swift,apple/swift,jmgc/swift,airspeedswift/swift,nathawes/swift,apple/swift,atrick/swift,JGiola/swift,xwu/swift,aschwaighofer/swift,aschwaighofer/swift,harlanhaskins/swift,ahoppen/swift,jckarter/swift,glessard/swift,harlanhaskins/swift,ahoppen/swift,rudkx/swift,roambotics/swift,benlangmuir/swift,parkera/swift,parkera/swift,aschwaighofer/swift,nathawes/swift,roambotics/swift,rudkx/swift