summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-modifier.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-02-13 10:38:14 -0800
committerGitHub <noreply@github.com>2023-02-13 10:38:14 -0800
commit4dbc74a953ae1b34ce64a4eaef3aa7feb73663b9 (patch)
tree82b099c1074a0361b0db6a72e96f71d3b8e3b574 /source/slang/slang-ast-modifier.h
parent57af2c1c2fccb221fa54fd92415f424b1d7e5beb (diff)
Add Loop Unrolling Pass. (#2644)
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.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/slang/slang-ast-modifier.h b/source/slang/slang-ast-modifier.h
index 42b79ca4a..4ab295da6 100644
--- a/source/slang/slang-ast-modifier.h
+++ b/source/slang/slang-ast-modifier.h
@@ -616,8 +616,15 @@ class AttributeUsageAttribute : public Attribute
class UnrollAttribute : public Attribute
{
SLANG_AST_CLASS(UnrollAttribute)
-
- IntegerLiteralValue getCount();
+
+};
+
+// An `[unroll]` or `[unroll(count)]` attribute
+class ForceUnrollAttribute : public Attribute
+{
+ SLANG_AST_CLASS(ForceUnrollAttribute)
+
+ int32_t maxIterations = 0;
};
// An `[maxiters(count)]`