[SAoC] MLIR Support for LDC
Roberto Rosmaninho
Robertogrosmaninho at gmail.com
Thu Oct 3 12:58:38 UTC 2019
On Thursday, 3 October 2019 at 06:22:35 UTC, Johan Engelen wrote:
> This doesn't look quite right.
> You should `ninja install` LLVM (set an install path using
> -DCMAKE_INSTALL_PREFIX="..." when running cmake to generate the
> ninja build file), such that you get a local LLVM installation
> that contains also the MLIR stuff. Are you sure that MLIR is
> built when building LLVM? Perhaps cmake argument
> -DLLVM_ENABLE_PROJECTS="mlir;compiler-rt;lld" is needed.
>
> -Johan
Actually, this is a complex question. Today, to get MLIR, you
must clone LLVM and MLIR from different repositories by cloning
MLIR into the LLVM projects[1]. The expectation is to have MLIR
into LLVM 11 and then you will be able to get the project using
the -DLLVM_ENABLE_PROJECTS, which will download the project on
the same projects directory used today and referred on my CMake.
I believe your point is that if users don't get this project on
they LLVM, then they won't be able to use LDC, please correct me
if I get it wrong. Well, the thing is I have to use some header
files to implement MLIR to LDC, maybe I can put some Macros to
not compile those files or codes that use MLIR if that's the main
issue.
Regards,
Roberto Rosmaninho
[1] https://github.com/tensorflow/mlir#getting-started-with-mlir
More information about the Digitalmars-d
mailing list