[llvm-dev] Help with building MLIR

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 24 12:04:33 PST 2020


Re-replying to llvm-dev...

--
Krzysztof Parzyszek  kparzysz at quicinc.com   AI tools development

-----Original Message-----
From: Krzysztof Parzyszek
Sent: Tuesday, November 24, 2020 2:00 PM
To: Paul C. Anagnostopoulos <paul at windfall.com>
Subject: RE: [EXT] [llvm-dev] Help with building MLIR

I'm using make, and "make -C /my/build/dir mlir-tblgen" works for me.

Cmake-generated makefiles have target "help" that lists all available targets for make.  I don’t know about ninja.

--
Krzysztof Parzyszek  kparzysz at quicinc.com   AI tools development

-----Original Message-----
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Paul C. Anagnostopoulos via llvm-dev
Sent: Tuesday, November 24, 2020 1:45 PM
To: llvm-dev at lists.llvm.org
Subject: [EXT] [llvm-dev] Help with building MLIR

I am building MLIR with LLVM, using the

LLVM_TOOL_MLIR_BUILD:BOOL=ON

option in CMakeCache. Indeed, the MLIR files are in my build tree.

Can someone tell me how to build just MLIR, or, better yet, just mlir-tblgen? I'm building llvm-tblgen with

ninja -j 6 bin/llvm-tblgen.exe

And so, silly me, I assumed I could just add

ninja -j 6 bin/mlir-tblgen.exe

But no joy. I haven't yet gotten the hang of specifying what to build.

_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list