diff options
| author | Yong He <yonghe@outlook.com> | 2022-10-13 20:31:30 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-13 20:31:30 -0700 |
| commit | 09408e32d7c0ccebf38fe31b5d2ddf4b1cd128e4 (patch) | |
| tree | 65e0f711de39f2d095aed8f15798668975375e08 /source/slang/slang-ast-modifier.h | |
| parent | 27d7961db15ed5890d2ad0eff1218e26dcdaf82c (diff) | |
Allow multi-level breaks to break out of `switch` statements. (#2451)
* Allow multi-level breaks to break out of `switch` statements.
* Rename loop->region.
* Add `[ForceInline]` attribute.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ast-modifier.h')
| -rw-r--r-- | source/slang/slang-ast-modifier.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-ast-modifier.h b/source/slang/slang-ast-modifier.h index 2d967445a..8868b7a1d 100644 --- a/source/slang/slang-ast-modifier.h +++ b/source/slang/slang-ast-modifier.h @@ -910,6 +910,14 @@ class UnsafeForceInlineEarlyAttribute : public Attribute SLANG_AST_CLASS(UnsafeForceInlineEarlyAttribute) }; +// A `[ForceInline]` attribute indicates that the callee should be inlined +// by the Slang compiler. +// +class ForceInlineAttribute : public Attribute +{ + SLANG_AST_CLASS(ForceInlineAttribute) +}; + /// 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) }; |
