<commit_before>Ideally, our LLVM plugin would work in a way similar to that of, say, the QJson plugin, i.e. the plugin itself would contain all of LLVM. However, this cannot easily be done, not least because LLVM is a big library. So, instead, we do something similar to the CellML plugin, i.e. build LLVM as a shared library and deploy it that way while use the plugin itself to get access to LLVM's classes, methods, etc.

To build a shared version of LLVM using CMake is not possible on Windows and is not recommended on other operating systems (see http://llvm.org/docs/CMake.html). We therefore had to rely on LLVM's other and prefered build system: Autotools. There should not be a need for you to build LLVM. Still, should you want to build it on Linux and/or Mac OS X, then you should be fine as long as you are all set to build OpenCOR on those systems (see doc/developer/preRequirements.html). However, on Windows, your Qt environment will not be sufficient. We would therefore recommend building LLVM using a virtual machine (so as not to mess up your Qt environment) which first involves installing the following:
 - MinGW/MSYS (see http://sourceforge.net/projects/mingw/): select C++ Compiler, MSYS Basic System and MinGW Developer ToolKit in the list of components to install;
 - Python (see http://www.python.org/download/; you want version 2.7.2 not 3.x): make sure that Python is accessible from a shell, e.g. export PATH=/c/Python27:$PATH.

From there, all you need to do is get LLVM's source code (see http://www.llvm.org/releases/), unpack it and:
    cd <LLVM-ROOT>
    mkdir ../LLVM-build
    cd ../LLVM-build
    ../<LLVM-ROOT>/configure --enable-shared --enable-targets=host
    make<commit_msg>Minor update to our LLVM readme file.<commit_after>Ideally, our LLVM plugin would work in a way similar to that of, say, the QJson plugin, i.e. the plugin itself would contain all of LLVM. However, this cannot easily be done, not least because LLVM is a big library. So, instead, we do something similar to the CellML plugin, i.e. build LLVM as a shared library and deploy it that way while use the plugin itself to get access to LLVM's classes, methods, etc.

To build a shared version of LLVM using CMake is not possible on Windows and is not recommended on other operating systems (see http://llvm.org/docs/CMake.html). We therefore had to rely on LLVM's other and prefered build system: Autotools. There should not be a need for you to build LLVM. Still, should you want to build it on Linux and/or Mac OS X, then you should be fine as long as you are all set to build OpenCOR on those systems (see doc/developer/preRequirements.html). However, on Windows, your Qt environment will not be sufficient. We would therefore recommend building LLVM using a virtual machine (so as not to mess up your Qt environment) which first involves installing the following:
 - MinGW/MSYS (see http://sourceforge.net/projects/mingw/): select C++ Compiler, MSYS Basic System and MinGW Developer ToolKit in the list of components to install;
 - Python (see http://www.python.org/download/; you want version 2.7.2 not 3.x): make sure that Python is accessible from a shell, e.g. export PATH=/c/Python27:$PATH.

From there, all you need to do is get LLVM's source code (see http://www.llvm.org/releases/), unpack it and:
    cd <LLVM-ROOT>
    mkdir ../LLVM-build
    cd ../LLVM-build
    ../<LLVM-ROOT>/configure --disable-docs --enable-shared --enable-targets=host
    make
{'fraction_non_alphanumeric': 0.07535231521426516, 'fraction_numerical': 0.003451251078515962, 'mean_word_length': 3.817174515235457, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3207173', 'n_tokens_mistral': 980, 'n_tokens_neox': 927, 'n_words': 526}