[all-commits] [llvm/llvm-project] 5e10a8: [mlir][Transforms] Fix mlir-config flag check
Matthias Springer via All-commits
all-commits at lists.llvm.org
Wed May 24 07:33:29 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5e10a8c436eb7edd3cb8a865218a3b271a458634
https://github.com/llvm/llvm-project/commit/5e10a8c436eb7edd3cb8a865218a3b271a458634
Author: Matthias Springer <me at m-sp.org>
Date: 2023-05-24 (Wed, 24 May 2023)
Changed paths:
M mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
Log Message:
-----------
[mlir][Transforms] Fix mlir-config flag check
Boolean compiler flags (such as `DMLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS`) show up in `mlir-config.h` as preprocessor defines that are either 0 or 1. Use `#if` instead of `#ifdef`.
This should have been part of D144552.
More information about the All-commits
mailing list