diff options
author | Jacques Pienaar <jpienaar@google.com> | 2019-03-29 22:10:12 -0700 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2019-03-30 11:23:22 -0700 |
commit | 1273af232cd103faad15890687d506eae0d9f014 (patch) | |
tree | 540ba5dc899f26e2726afccb0b083650b4e4d2eb /mlir/README.md | |
parent | 6f24bf82f971d679cf209e4c1538ca69ded62ba5 (diff) | |
download | llvm-1273af232cd103faad15890687d506eae0d9f014.zip llvm-1273af232cd103faad15890687d506eae0d9f014.tar.gz llvm-1273af232cd103faad15890687d506eae0d9f014.tar.bz2 |
Add build files and update README.
* Add initial version of build files;
* Update README with instructions to download and build MLIR from github;
--
PiperOrigin-RevId: 241102092
Diffstat (limited to 'mlir/README.md')
-rw-r--r-- | mlir/README.md | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/mlir/README.md b/mlir/README.md index 5ffcec9..c74c5a5 100644 --- a/mlir/README.md +++ b/mlir/README.md @@ -25,9 +25,7 @@ For more information on MLIR, please see: decisions, * previous external [talks](#talks), -or join the [MLIR mailing list](TODO). - -TODO: Replace with actual mailing list. +or join the [MLIR mailing list](https://groups.google.com/a/tensorflow.org/forum/#!forum/mlir). ## What is MLIR for? @@ -80,6 +78,19 @@ multithreaded compiler from working on multiple functions in an LLVM module at the same time. MLIR solves these problems by having per-function constant pools and by making references explicit with function_ref. +# Getting started with MLIR + +``` +git clone https://github.com/llvm/llvm-project.git +cd llvm/projects/ +git clone https://github.com/tensorflow/mlir +cd ../../ +mkdir build +cd build +env CC=clang CXX=clang++ cmake -G Ninja -DLLVM_ENABLE_RTTI=1 ../llvm/ +ninja check-mlir +``` + # MLIR talks {#talks} * "[MLIR Primer: A Compiler Infrastructure for the End of Moore’s Law](https://drive.google.com/file/d/1hUeAJXcAXwz82RXA5VtO5ZoH8cVQhrOK/view?usp=sharing)", |