diff options
| author | Yong He <yonghe@outlook.com> | 2023-03-21 21:29:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-21 21:29:13 -0700 |
| commit | d8a40abba5223fbcb56c52b04ccb88c02bbaf79f (patch) | |
| tree | 3207babbce41957fbd01c3c791fe9957c81f6a09 /source/slang/slang-ast-modifier.h | |
| parent | 83876733d69582eec6bad26af64a651d40fa43aa (diff) | |
[TreatAsDifferentiable] functions. (#2720)
Diffstat (limited to 'source/slang/slang-ast-modifier.h')
| -rw-r--r-- | source/slang/slang-ast-modifier.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/slang/slang-ast-modifier.h b/source/slang/slang-ast-modifier.h index 26303d6ad..0d2e27e5f 100644 --- a/source/slang/slang-ast-modifier.h +++ b/source/slang/slang-ast-modifier.h @@ -998,14 +998,6 @@ class ForceInlineAttribute : public Attribute }; -// A `[TreatAsDifferentiableAttribute]` attribute indicates that a function or an interface -// should be treated as differentiable in IR validation step. -// -class TreatAsDifferentiableAttribute : public Attribute -{ - SLANG_AST_CLASS(TreatAsDifferentiableAttribute) -}; - /// An attribute that marks a type declaration as either allowing or /// disallowing the type to be inherited from in other modules. class InheritanceControlAttribute : public Attribute { SLANG_AST_CLASS(InheritanceControlAttribute) }; @@ -1108,6 +1100,14 @@ class AlwaysFoldIntoUseSiteAttribute :public Attribute SLANG_AST_CLASS(AlwaysFoldIntoUseSiteAttribute) }; +// A `[TreatAsDifferentiableAttribute]` attribute indicates that a function or an interface +// should be treated as differentiable in IR validation step. +// +class TreatAsDifferentiableAttribute : public DifferentiableAttribute +{ + SLANG_AST_CLASS(TreatAsDifferentiableAttribute) +}; + /// The `[ForwardDifferentiable]` attribute indicates that a function can be forward-differentiated. class ForwardDifferentiableAttribute : public DifferentiableAttribute { |
