For GCC, you are able to look up what options are enabled for different optimization levels. There is even a webpage for that: https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html . I can't find anything similar for for armclang (or clang in general).
I found these two pages, but they don't answer my question: https://llvm.org/docs/Passes.html#introduction , https://developer.arm.com/documentation/100067/0611/armclang-Command-line-Options
Thanks for any help!
Thanks for the answer! However, I need to pass the individual optimization options to the compiler. If there is no documentation for the different levels, is there at least a list of all possible optimization options one can pass to armclang (or clang in general)?