enhance(compiler): Use named constant for the default pattern rewriting benefit

This introduces a new header file `zamalang/Support/Constants.h` for
constants, currently only populated with a constant for the default
pattern rewriting benefit of 1.
This commit is contained in:
Andi Drebes
2021-12-17 15:25:45 +01:00
parent 2e5bff93fd
commit 27ca5122bc
5 changed files with 67 additions and 39 deletions

View File

@@ -0,0 +1,10 @@
#ifndef ZAMALANG_SUPPORT_CONSTANTS_H_
#define ZAMALANG_SUPPORT_CONSTANTS_H_
namespace mlir {
namespace zamalang {
constexpr unsigned DEFAULT_PATTERN_BENEFIT = 1;
} // namespace zamalang
} // namespace mlir
#endif