Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine the LLVM version?

Hi I just downloaded LLVM using the command

svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm 

How can I determine the version of this LLVM (4.0, 3.9 or 3.8 etc)?

like image 700
wad Avatar asked Aug 12 '16 22:08

wad


People also ask

How do I check my LLVM?

The unit and regression tests are in the main “llvm”/ directory under the directories llvm/unittests and llvm/test (so you get these tests for free with the main LLVM tree). Use make check-all to run the unit and regression tests after building LLVM.

Where is LLVM installed to?

The binaries for LLVM tools are placed in ~/llvm/build/bin . These tools are used to run the LLVM passes. To make it easy to run the tools, it is a good idea to add the path to the binaries to the bash PATH variable so that you can invoke the tools from any directory.

How do I check my Clang version?

Open a terminal window. Enter the command (clang — version) to confirm if the Clang Compilers had already been installed.

What is LLVM in Linux?

LLVM is a set of compiler and toolchain technologies that can be used to develop a front end for any programming language and a back end for any instruction set architecture.


2 Answers

After installation

Try running :

llvm-config --version

like image 173
PreeJackie Avatar answered Oct 09 '22 23:10

PreeJackie


You are checking out the trunk.

If you want a particular version checkout the appropriate branch.

http://llvm.org/svn/llvm-project/llvm/branches/release_35

would be llvm-3.5

like image 24
Ian A. Mason Avatar answered Oct 09 '22 22:10

Ian A. Mason