@@ -539,9 +539,9 @@ class Attr {
539
539
// content. Eg) It parses 3 args, but semantically takes 4 args. Opts out of
540
540
// common attribute error checking.
541
541
bit HasCustomParsing = 0;
542
- // Set to true if the attribute is a type attribute that has custom
543
- // TreeTransform logic in order to handle template transformations .
544
- bit HasCustomTypeTransform = 0;
542
+ // Set to true if the statement attribute is instantiation dependent and uses
543
+ // custom TreeTransform logic for template instantiation .
544
+ bit IsStmtDependent = 0;
545
545
// Set to true if all of the attribute's arguments should be parsed in an
546
546
// unevaluated context.
547
547
bit ParseArgumentsAsUnevaluated = 0;
@@ -1415,7 +1415,7 @@ def LoopUnrollHint : StmtAttr {
1415
1415
ErrorDiag, "'for', 'while', and 'do' statements">;
1416
1416
let Args = [ExprArgument<"UnrollHintExpr", /*opt*/1>];
1417
1417
let LangOpts = [SYCLIsDevice, SYCLIsHost];
1418
- let HasCustomTypeTransform = 1;
1418
+ let IsStmtDependent = 1;
1419
1419
let AdditionalMembers = [{
1420
1420
std::string getDiagnosticName(const PrintingPolicy &Policy) const {
1421
1421
std::string ValueName;
@@ -1883,7 +1883,7 @@ def SYCLIntelFPGAIVDep : StmtAttr {
1883
1883
UnsignedArgument<"SafelenValue", /*opt*/1>
1884
1884
];
1885
1885
let LangOpts = [SYCLIsDevice, SilentlyIgnoreSYCLIsHost];
1886
- let HasCustomTypeTransform = 1;
1886
+ let IsStmtDependent = 1;
1887
1887
let AdditionalMembers = [{
1888
1888
bool isDependent() const {
1889
1889
return (getSafelenExpr() &&
@@ -1928,7 +1928,7 @@ def SYCLIntelFPGAInitiationInterval : DeclOrStmtAttr {
1928
1928
"'for', 'while', 'do' statements, and functions">;
1929
1929
let Args = [ExprArgument<"IntervalExpr">];
1930
1930
let LangOpts = [SYCLIsDevice, SilentlyIgnoreSYCLIsHost];
1931
- let HasCustomTypeTransform = 1;
1931
+ let IsStmtDependent = 1;
1932
1932
let Documentation = [SYCLIntelFPGAInitiationIntervalAttrDocs];
1933
1933
let SupportsNonconformingLambdaSyntax = 1;
1934
1934
}
@@ -1941,7 +1941,7 @@ def SYCLIntelFPGAMaxConcurrency : DeclOrStmtAttr {
1941
1941
"'for', 'while', 'do' statements, and functions">;
1942
1942
let Args = [ExprArgument<"NThreadsExpr">];
1943
1943
let LangOpts = [SYCLIsDevice, SilentlyIgnoreSYCLIsHost];
1944
- let HasCustomTypeTransform = 1;
1944
+ let IsStmtDependent = 1;
1945
1945
let Documentation = [SYCLIntelFPGAMaxConcurrencyAttrDocs];
1946
1946
let SupportsNonconformingLambdaSyntax = 1;
1947
1947
}
@@ -1953,7 +1953,7 @@ def SYCLIntelFPGALoopCoalesce : StmtAttr {
1953
1953
ErrorDiag, "'for', 'while', and 'do' statements">;
1954
1954
let Args = [ExprArgument<"NExpr", /*opt*/1>];
1955
1955
let LangOpts = [SYCLIsDevice, SilentlyIgnoreSYCLIsHost];
1956
- let HasCustomTypeTransform = 1;
1956
+ let IsStmtDependent = 1;
1957
1957
let Documentation = [SYCLIntelFPGALoopCoalesceAttrDocs];
1958
1958
}
1959
1959
@@ -1964,7 +1964,7 @@ def SYCLIntelFPGADisableLoopPipelining : DeclOrStmtAttr {
1964
1964
ErrorDiag,
1965
1965
"'for', 'while', 'do' statements, and functions">;
1966
1966
let LangOpts = [SYCLIsDevice, SilentlyIgnoreSYCLIsHost];
1967
- let HasCustomTypeTransform = 1;
1967
+ let IsStmtDependent = 1;
1968
1968
let Documentation = [SYCLIntelFPGADisableLoopPipeliningAttrDocs];
1969
1969
let SupportsNonconformingLambdaSyntax = 1;
1970
1970
}
@@ -1985,7 +1985,7 @@ def SYCLIntelFPGAMaxInterleaving : StmtAttr {
1985
1985
ErrorDiag, "'for', 'while', and 'do' statements">;
1986
1986
let Args = [ExprArgument<"NExpr">];
1987
1987
let LangOpts = [SYCLIsDevice, SilentlyIgnoreSYCLIsHost];
1988
- let HasCustomTypeTransform = 1;
1988
+ let IsStmtDependent = 1;
1989
1989
let Documentation = [SYCLIntelFPGAMaxInterleavingAttrDocs];
1990
1990
}
1991
1991
def : MutualExclusions<[SYCLIntelFPGADisableLoopPipelining,
@@ -1998,7 +1998,7 @@ def SYCLIntelFPGASpeculatedIterations : StmtAttr {
1998
1998
ErrorDiag, "'for', 'while', and 'do' statements">;
1999
1999
let Args = [ExprArgument<"NExpr">];
2000
2000
let LangOpts = [SYCLIsDevice, SilentlyIgnoreSYCLIsHost];
2001
- let HasCustomTypeTransform = 1;
2001
+ let IsStmtDependent = 1;
2002
2002
let Documentation = [SYCLIntelFPGASpeculatedIterationsAttrDocs];
2003
2003
}
2004
2004
def : MutualExclusions<[SYCLIntelFPGADisableLoopPipelining,
@@ -2009,7 +2009,7 @@ def SYCLIntelFPGANofusion : StmtAttr {
2009
2009
let Subjects = SubjectList<[ForStmt, CXXForRangeStmt, WhileStmt, DoStmt],
2010
2010
ErrorDiag, "'for', 'while', and 'do' statements">;
2011
2011
let LangOpts = [SYCLIsDevice, SilentlyIgnoreSYCLIsHost];
2012
- let HasCustomTypeTransform = 1;
2012
+ let IsStmtDependent = 1;
2013
2013
let Documentation = [SYCLIntelFPGANofusionAttrDocs];
2014
2014
}
2015
2015
0 commit comments