@@ -29,6 +29,9 @@ python scripts/build_imex.py \
29
29
30
30
To reuse a previously built LLVM, use the following steps:
31
31
32
+ Make sure your LLVM install is built from the git commit sha as stated in
33
+ 'build_tools/llvm_version.txt'.
34
+
32
35
``` sh
33
36
external_lit=` which lit`
34
37
python scripts/build_imex.py \
@@ -38,14 +41,24 @@ python scripts/build_imex.py \
38
41
```
39
42
40
43
#### Building Bare Metal With Existing LLVM/MLIR
44
+ Make sure your LLVM install is built from the git commit sha as stated in
45
+ 'build_tools/llvm_version.txt'.
41
46
``` sh
42
47
mkdir build
43
48
cd build
44
- CC=gcc-9 CXX=g++-9 MLIR_DIR=$ llvm -c38ef550de81631641cb1485e0641d1d2227dce4 cmake ..
49
+ CC=gcc-9 CXX=g++-9 MLIR_DIR=< llvm-install-directory > cmake ..
45
50
make -j 12
46
51
```
47
52
48
- #### Building code docu
53
+ #### Building docs
54
+ To build user documentation do
55
+ ``` sh
56
+ cd build
57
+ cmake --build . --target mlir-doc
58
+ ```
59
+ It will render docs to the 'doc' directory.
60
+
61
+ To build code documentation use '-DIMEX_INCLUDE_DOCS' when configuring with cmake and do
49
62
``` sh
50
63
cd build
51
64
cmake --build . --target doc_doxygen
@@ -104,8 +117,9 @@ To run the FileCheck based tests, follow the following steps:
104
117
105
118
``` sh
106
119
cd < to your IMEX build directory>
107
- cmake --build . --target check-imex-opt
120
+ cmake --build . --target check-imex
108
121
```
122
+ Add '-v' to the above command-line to get verbose output.
109
123
110
124
## License
111
125
This code is made available under the Apache License 2.0 with LLVM Exceptions.
0 commit comments