Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No llvm opt command in Mavericks

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 ?

like image 488
user3047221 Avatar asked Nov 28 '13 20:11

user3047221


People also ask

What is the function of opt in LLVM?

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.

What is opt command in Linux?

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.

How do I install LLVM on Ubuntu?

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...

What are the ‘L’ and ‘D’ options in the command line?

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.


1 Answers

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.

like image 169
Anton Korobeynikov Avatar answered Sep 28 '22 12:09

Anton Korobeynikov