source: trunk/lib_ir/README.md @ 4032

Last change on this file since 4032 was 3970, checked in by linmengl, 5 years ago

auto gen test files for i2 ops

File size: 1005 bytes
Line 
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
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
17Check
18===================
19Run `make check` to execute self-check process.
20
21Perf xmlwf
22===================
23Run `make perf_xmlwf` to get the perf results of xmlwf.
24
25LLVM Config
26===================
27This program requires LLVM tools `llc` and `opt`. Check `CMakeLists.txt` for
28variables `LLVM_OPT` and `LLVM_LLC`.
29
30MISC
31===================
32+ Have a look at `compile_commands.json` for compiling detail.
33+ Using Jinja2 as template system. It helps by collecting all the small
34  templates in one file.
35+ To install Jinja2, sudo easy_install Jinja2.
Note: See TracBrowser for help on using the repository browser.