mlir icon indicating copy to clipboard operation
mlir copied to clipboard

Import MLIR to an external project

Open skotti opened this issue 6 years ago • 1 comments

Hi! How do you generally suggest to add MLIR to a project using cmake? There is not any config cmake file, as it is for LLVM - LLVMConfig.cmake. And also MLIR libraries are not visible when adding only llvm dependencies in cmakelists. Also, I am not sure how to correctly import MLIR, so that I am able to inherit from the MLIR classes. For llvm I should enable rtti, does the same option work here?

skotti avatar May 27 '19 14:05 skotti

I think we haven't looked into this yet unfortunately (but we should). We don't use CMake internally so we just wrote the CMake files for building this repository alone but we don't have ourselves any external project using CMake.

joker-eph avatar May 28 '19 16:05 joker-eph