@@ -1552,7 +1552,7 @@ class DifferentiableAttr final
1552
1552
// / specified.
1553
1553
FuncDecl *VJPFunction = nullptr ;
1554
1554
// / The differentiation parameters' indices, resolved by the type checker.
1555
- AutoDiffIndexSubset *ParameterIndices = nullptr ;
1555
+ IndexSubset *ParameterIndices = nullptr ;
1556
1556
// / The trailing where clause (optional).
1557
1557
TrailingWhereClause *WhereClause = nullptr ;
1558
1558
// / The generic signature for autodiff derivative functions. Resolved by the
@@ -1571,7 +1571,7 @@ class DifferentiableAttr final
1571
1571
1572
1572
explicit DifferentiableAttr (ASTContext &context, bool implicit,
1573
1573
SourceLoc atLoc, SourceRange baseRange,
1574
- bool linear, AutoDiffIndexSubset *indices,
1574
+ bool linear, IndexSubset *indices,
1575
1575
Optional<DeclNameWithLoc> jvp,
1576
1576
Optional<DeclNameWithLoc> vjp,
1577
1577
GenericSignature *derivativeGenericSignature);
@@ -1587,7 +1587,7 @@ class DifferentiableAttr final
1587
1587
1588
1588
static DifferentiableAttr *create (ASTContext &context, bool implicit,
1589
1589
SourceLoc atLoc, SourceRange baseRange,
1590
- bool linear, AutoDiffIndexSubset *indices,
1590
+ bool linear, IndexSubset *indices,
1591
1591
Optional<DeclNameWithLoc> jvp,
1592
1592
Optional<DeclNameWithLoc> vjp,
1593
1593
GenericSignature *derivativeGenSig);
@@ -1602,10 +1602,10 @@ class DifferentiableAttr final
1602
1602
// / registered VJP.
1603
1603
Optional<DeclNameWithLoc> getVJP () const { return VJP; }
1604
1604
1605
- AutoDiffIndexSubset *getParameterIndices () const {
1605
+ IndexSubset *getParameterIndices () const {
1606
1606
return ParameterIndices;
1607
1607
}
1608
- void setParameterIndices (AutoDiffIndexSubset *pi) {
1608
+ void setParameterIndices (IndexSubset *pi) {
1609
1609
ParameterIndices = pi;
1610
1610
}
1611
1611
@@ -1681,7 +1681,7 @@ class DifferentiatingAttr final
1681
1681
// / The number of parsed parameters specified in 'wrt:'.
1682
1682
unsigned NumParsedParameters = 0 ;
1683
1683
// / The differentiation parameters' indices, resolved by the type checker.
1684
- AutoDiffIndexSubset *ParameterIndices = nullptr ;
1684
+ IndexSubset *ParameterIndices = nullptr ;
1685
1685
1686
1686
explicit DifferentiatingAttr (ASTContext &context, bool implicit,
1687
1687
SourceLoc atLoc, SourceRange baseRange,
@@ -1691,7 +1691,7 @@ class DifferentiatingAttr final
1691
1691
explicit DifferentiatingAttr (ASTContext &context, bool implicit,
1692
1692
SourceLoc atLoc, SourceRange baseRange,
1693
1693
DeclNameWithLoc original, bool linear,
1694
- AutoDiffIndexSubset *indices);
1694
+ IndexSubset *indices);
1695
1695
1696
1696
public:
1697
1697
static DifferentiatingAttr *create (ASTContext &context, bool implicit,
@@ -1702,7 +1702,7 @@ class DifferentiatingAttr final
1702
1702
static DifferentiatingAttr *create (ASTContext &context, bool implicit,
1703
1703
SourceLoc atLoc, SourceRange baseRange,
1704
1704
DeclNameWithLoc original, bool linear,
1705
- AutoDiffIndexSubset *indices);
1705
+ IndexSubset *indices);
1706
1706
1707
1707
DeclNameWithLoc getOriginal () const { return Original; }
1708
1708
@@ -1723,10 +1723,10 @@ class DifferentiatingAttr final
1723
1723
return NumParsedParameters;
1724
1724
}
1725
1725
1726
- AutoDiffIndexSubset *getParameterIndices () const {
1726
+ IndexSubset *getParameterIndices () const {
1727
1727
return ParameterIndices;
1728
1728
}
1729
- void setParameterIndices (AutoDiffIndexSubset *pi) {
1729
+ void setParameterIndices (IndexSubset *pi) {
1730
1730
ParameterIndices = pi;
1731
1731
}
1732
1732
@@ -1757,7 +1757,7 @@ class TransposingAttr final
1757
1757
// / The number of parsed parameters specified in 'wrt:'.
1758
1758
unsigned NumParsedParameters = 0 ;
1759
1759
// / The differentiation parameters' indices, resolved by the type checker.
1760
- AutoDiffIndexSubset *ParameterIndexSubset = nullptr ;
1760
+ IndexSubset *ParameterIndexSubset = nullptr ;
1761
1761
1762
1762
explicit TransposingAttr (ASTContext &context, bool implicit,
1763
1763
SourceLoc atLoc, SourceRange baseRange,
@@ -1767,7 +1767,7 @@ class TransposingAttr final
1767
1767
explicit TransposingAttr (ASTContext &context, bool implicit,
1768
1768
SourceLoc atLoc, SourceRange baseRange,
1769
1769
TypeRepr *baseType, DeclNameWithLoc original,
1770
- AutoDiffIndexSubset *indices);
1770
+ IndexSubset *indices);
1771
1771
1772
1772
public:
1773
1773
static TransposingAttr *create (ASTContext &context, bool implicit,
@@ -1778,7 +1778,7 @@ class TransposingAttr final
1778
1778
static TransposingAttr *create (ASTContext &context, bool implicit,
1779
1779
SourceLoc atLoc, SourceRange baseRange,
1780
1780
TypeRepr *baseType, DeclNameWithLoc original,
1781
- AutoDiffIndexSubset *indices);
1781
+ IndexSubset *indices);
1782
1782
1783
1783
TypeRepr *getBaseType () const { return BaseType; }
1784
1784
DeclNameWithLoc getOriginal () const { return Original; }
@@ -1798,10 +1798,10 @@ class TransposingAttr final
1798
1798
return NumParsedParameters;
1799
1799
}
1800
1800
1801
- AutoDiffIndexSubset *getParameterIndexSubset () const {
1801
+ IndexSubset *getParameterIndexSubset () const {
1802
1802
return ParameterIndexSubset;
1803
1803
}
1804
- void setParameterIndices (AutoDiffIndexSubset *pi) {
1804
+ void setParameterIndices (IndexSubset *pi) {
1805
1805
ParameterIndexSubset = pi;
1806
1806
}
1807
1807
0 commit comments