source: trunk/lib_ir/README.md @ 4044

Last change on this file since 4044 was 4042, checked in by linmengl, 5 years ago

checkin u8u16 project, add cmake target and auto test.

File size: 1.3 KB
RevLine 
[3925]1Compile
2===================
3Compile with the following command (may need to change your path to clang)
4
5"""
6cd build
7
8cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_COMPILER=/usr/local/bin/clang++ -DCMAKE_C_COMPILER=/usr/local/bin/clang ..
9
10make
11"""
12
[3939]13Compile on Haswell arch with AVX2 and BMI2
14===================
15For Intel Haswell target, append `-DUSE_AVX2=on` in `cmake` flags. A new test is added and `s2p_ideal` is enabled.
16
[3925]17Check
18===================
19Run `make check` to execute self-check process.
[4042]20+ xmlwf tests driver is "xmlwf/run_all.py". It requires "../../../trunk/QA/" folder.
21  ".." starts from where the `run_all.py` locates.
22+ u8u16 tests driver is "u8u16/run_all". It requires to clone "http://u8u16.costar.sfu.ca/browser/QA" into
23  "${PROJECT_SOURCE_DIR}/../../proto/u8u16/QA"
[3925]24
25Perf xmlwf
26===================
27Run `make perf_xmlwf` to get the perf results of xmlwf.
28
29LLVM Config
30===================
31This program requires LLVM tools `llc` and `opt`. Check `CMakeLists.txt` for
32variables `LLVM_OPT` and `LLVM_LLC`.
33
34MISC
35===================
36+ Have a look at `compile_commands.json` for compiling detail.
[3970]37+ Using Jinja2 as template system. It helps by collecting all the small
38  templates in one file.
39+ To install Jinja2, sudo easy_install Jinja2.
Note: See TracBrowser for help on using the repository browser.