[flang-commits] [compiler-rt] [clang-tools-extra] [flang] [llvm] [clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)
via flang-commits
flang-commits at lists.llvm.org
Mon Nov 13 11:43:52 PST 2023
================
@@ -4297,3 +4297,19 @@ def PreferredType: InheritableAttr {
let Args = [TypeArgument<"Type", 1>];
let Documentation = [PreferredTypeDocumentation];
}
+
+def CodeAlign: StmtAttr {
+ let Spellings = [Clang<"code_align">];
+ let Subjects = SubjectList<[ForStmt, CXXForRangeStmt, WhileStmt, DoStmt],
+ ErrorDiag, "'for', 'while', and 'do' statements">;
+ let Args = [ExprArgument<"Alignment">];
+ let Documentation = [CodeAlignAttrDocs];
+ let AdditionalMembers = [{
----------------
smanna12 wrote:
Fixed now with https://github.com/llvm/llvm-project/pull/70762/commits/aa85ed1ede892c7da3d5c2dee5886dd0e2ad0cb7
https://github.com/llvm/llvm-project/pull/70762
More information about the flang-commits
mailing list