[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 1 10:01:30 PDT 2023
================
@@ -10026,6 +10026,10 @@ def err_duplicate_case_differing_expr : Error<
def warn_case_empty_range : Warning<"empty case range specified">;
def warn_missing_case_for_condition :
Warning<"no case matching constant switch condition '%0'">;
+def err_loop_attr_duplication : Error<
+ "duplicate loop attribute %0">;
+def err_attribute_argument_not_power_of_two : Error<
+ "%0 attribute argument must be a constant power of two greater than zero">;
----------------
AaronBallman wrote:
Should also tell the user the upper-bound, otherwise someone with a power of 2 greater than 4096 will be confused
https://github.com/llvm/llvm-project/pull/70762
More information about the cfe-commits
mailing list