llvm-capstone/mlir
Stella Stamenova ed98676fa4 Support multi-configuration generators correctly in several config files
Multi-configuration generators (such as Visual Studio and Xcode) allow the specification of a build flavor at build time instead of config time, so the lit configuration files need to support that - and they do for the most part. There are several places that had one of two issues (or both!):

1) Paths had %(build_mode)s set up, but then not configured, resulting in values that would not work correctly e.g. D:/llvm-build/%(build_mode)s/bin/dsymutil.exe
2) Paths did not have %(build_mode)s set up, but instead contained $(Configuration) (which is the value for Visual Studio at configuration time, for Xcode they would have had the equivalent) e.g. "D:/llvm-build/$(Configuration)/lib".

This seems to indicate that we still have a lot of fragility in the configurations, but also that a number of these paths are never used (at least on Windows) since the errors appear to have been there a while.

This patch fixes the configurations and it has been tested with Ninja and Visual Studio to generate the correct paths. We should consider removing some of these settings altogether.

Reviewed By: JDevlieghere, mehdi_amini

Differential Revision: https://reviews.llvm.org/D96427
2021-02-11 09:32:20 -08:00
..
cmake/modules [MLIR] [CMake] Support building MLIR standalone 2021-02-02 13:10:21 -06:00
docs Enable Pass::initialize() to fail by returning a LogicalResult 2021-02-11 01:51:53 +00:00
examples Support multi-configuration generators correctly in several config files 2021-02-11 09:32:20 -08:00
include [mlir][LLVM] NFC - Refactor a lookupOrCreateFn to reuse common function creation. 2021-02-11 15:52:33 +00:00
integration_test Support multi-configuration generators correctly in several config files 2021-02-11 09:32:20 -08:00
lib [mlir][LLVM] NFC - Refactor a lookupOrCreateFn to reuse common function creation. 2021-02-11 15:52:33 +00:00
test Support multi-configuration generators correctly in several config files 2021-02-11 09:32:20 -08:00
tools [mlir] make ModuleTranslation mapping fields private 2021-02-11 14:50:49 +01:00
unittests Fix CMake configuration for MLIR unittests 2021-02-11 01:17:49 +00:00
utils [mlir][spirv] Fix script for availability autogen and refresh ops 2021-01-22 13:07:36 -05:00
.clang-format
.clang-tidy Fix MLIR clang-tidy: when tweaking it does not inherit from the parent 2020-03-07 17:44:21 +00:00
CMakeLists.txt Fix CMake configuration for MLIR unittests 2021-02-11 01:17:49 +00:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.