I installed Xcode 5.0.1 on Macosx 10.9 Mavericks and the command line tools (I can use gcc/clang on the command line for instance) but the command opt
seems to have disappeared.
Was it replaced by something else ?
It takes LLVM source files as input, runs the specified optimizations or analyses on it, and then outputs the optimized file or the analysis results. The function of opt depends on whether the -analyze option is given. When -analyze is specified, opt performs various analyses of the input source.
The opt command is the modular LLVM optimizer and analyzer. It takes LLVM source files as input, runs the specified optimizations or analyses on it, and then outputs the optimized file or the analysis results.
You can install it by typing: apt-get install llvm and apt-get install llvm-3.6 shows that: $ apt-get install llvm-3.6 Reading package lists... Done Building dependency tree Reading state information...
Here, the ‘l’, ‘D’ and ‘L’ options are normal string (or list) options, that have the cl::Prefixmodifier added to allow the CommandLine library to recognize them. Note that cl::Prefixoptions must not have the cl::ValueDisallowedmodifier specified.
Apple never shipped 'base' LLVM tools with its within XCode command line tools, only clang. You need to compile the desired revision / release of LLVM by yourself. You can download the pre-built binaries at http://llvm.org/releases/download.html as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With