Complete list of Clang flags

I don’t know if this is exactly what you want. Maybe more options are described elsewhere, but I think you are interested in the Clang frontend options. By default, the options displayed seem to describe the “GCC-compatible driver”. clang -cc1 –help should give you what you want.

brew install clang-omp not working

You can install llvm using brew since it now includes openmp. brew install llvm You can make a symlink if you want ln -s /usr/local/opt/llvm/bin/clang /usr/local/bin/clang-omp My makefile looks like this CPP = /usr/local/opt/llvm/bin/clang CPPFLAGS = -I/usr/local/opt/llvm/include -fopenmp LDFLAGS = -L/usr/local/opt/llvm/lib example: example.c $(CPP) $(CPPFLAGS) $^ -o $@ $(LDFLAGS)

Clang optimization levels

I found this related question. To sum it up, to find out about compiler optimization passes: llvm-as < /dev/null | opt -O3 -disable-output -debug-pass=Arguments As pointed out in Geoff Nixon‘s answer (+1), clang additionally runs some higher level optimizations, which we can retrieve with: echo ‘int;’ | clang -xc -O3 – -o /dev/null -\#\#\# Documentation … Read more