[llvm-dev] Attempt to build MLIR.

Sourabh Singh Tomar via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 24 01:36:53 PST 2019


Hello everyone,

Since MLIR landed today. I'm trying to build it using
cmake ../llvm/ -DCMAKE_BUILD_TYPE=RELEASE -DLLVM_TARGETS_TO_BUILD=X86
-DLLVM_ALL_PROJECTS="clang;lld;lldb;mlir" -DBUILD_SHARED_LIBS=ON
-DCLANG_DEFAULT_LINKER:STRING=lld

and also by adding -DLLVM_ALL_PROJECTS.

It's giving this compilation error --

Building CXX object
tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRAnalysis.dir/AffineAnalysis.cpp.o
In file included from
/home/sourabh/mirror-upstream/mlir/include/mlir/Dialect/AffineOps/AffineOps.h:22:0,
                 from
/home/sourabh/mirror-upstream/mlir/lib/Analysis/AffineAnalysis.cpp:17:
/home/sourabh/mirror-upstream/mlir/include/mlir/Transforms/LoopLikeInterface.h:22:10:
fatal error: mlir/Transforms/LoopLikeInterface.h.inc: No such file or
directory
 #include "mlir/Transforms/LoopLikeInterface.h.inc"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Am I missing something? -- some pre-requisites ?

Thanks in anticipation!
Sourabh.
compilation terminated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191224/16866b23/attachment.html>


More information about the llvm-dev mailing list