1、在中定义了循环关键字#pragma clang loop的类型
loop-hint-keyword:enable, disable, assume_safety
loop-hint-value:constant-expression
2、 使用#pragma clang loop unroll_count(x)指示循环展开,或者命令行-mllvm -unroll-count,参考discuss 76347
3、类似gcc, 可以使用 #pragma clang attribute push/pop, Compiler Explorer
详见 Clang Language Extensions — Clang 8 documentation
#pragma clang attribute push(__attribute__((optnone)), apply_to = function)
4、#pragma pop_macro 在commit c0a585d63c支持合入
5、使用__attribute__((optimize(0))) int main ()关闭优化
6、gcc pragma的介绍 https://gcc.gnu.org/onlinedocs/gcc/Loop-Specific-Pragmas.html