HomePhabricator

[MLIR] [CMake] Support building MLIR standalone

Authored by mgorny on Feb 2 2021, 11:09 AM.

Description

[MLIR] [CMake] Support building MLIR standalone

Add the necessary bits to CMakeLists to make it possible to configure
MLIR against installed LLVM, and build it with minimal need for LLVM
source tree. The latter is only necessary to run unittests, and if it
is missing then unittests are skipped with a warning.

This change includes the necessary changes to tests, in particular
adding some missing substitutions and defining missing variables
for lit.site.cfg.py substitution.

Reviewed By: stephenneuendorffer

Differential Revision: https://reviews.llvm.org/D85464

Co-authored-by: Isuru Fernando <isuruf@gmail.com>

Details

Committed
isurufFeb 2 2021, 11:10 AM
Reviewer
stephenneuendorffer
Differential Revision
D85464: [MLIR] [CMake] Support building MLIR standalone
Parents
rG5b3881691f33: [mlir] Delay adding the __resume function
Branches
Unknown
Tags
Unknown