[llvm-dev] Naming clash: -DCLS=n and CLS in code

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Tue Jun 19 11:54:50 PDT 2018


> > Why are you passing that argument in the first place? The compiler
> > completely ignores it.
>
> CLS stands for cacheline size. It is an important parameter
> for optimization of the generated code, at least with gcc/g++.
> -DCLS=n should have the same importance like for example -DNDEBUG.

The GCC source doesn't appear to mention it, and neither does any
documentation I can find. NDEBUG on the other hand is in both the C
and C++ standards.

I still think there's some weird library out there that interprets it
the way you're suggesting, and Clang is not that weird library.

Cheers.

Tim.


More information about the llvm-dev mailing list