File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
utils/bazel/llvm-project-overlay/mlir Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 5
5
# Description:
6
6
# The MLIR "Multi-Level Intermediate Representation" Compiler Infrastructure
7
7
8
+ load ("@bazel_skylib//rules:expand_template.bzl" , "expand_template" )
8
9
load ("@bazel_skylib//rules:write_file.bzl" , "write_file" )
9
10
load (":tblgen.bzl" , "gentbl_cc_library" , "td_library" )
10
11
load (":linalggen.bzl" , "genlinalg" )
@@ -28,6 +29,23 @@ exports_files([
28
29
"utils/textmate/mlir.json" ,
29
30
])
30
31
32
+ expand_template (
33
+ name = "mlir_config_h_gen" ,
34
+ out = "include/mlir/Config/mlir-config.h" ,
35
+ substitutions = {
36
+ "#cmakedefine01 MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS" : "#define MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS 1"
37
+ },
38
+ template = "include/mlir/Config/mlir-config.h.cmake" ,
39
+ visibility = ["//visibility:private" ],
40
+ )
41
+
42
+ cc_library (
43
+ name = "config" ,
44
+ hdrs = [
45
+ "include/mlir/Config/mlir-config.h" ,
46
+ ],
47
+ )
48
+
31
49
filegroup (
32
50
name = "c_headers" ,
33
51
srcs = glob (["include/mlir-c/**/*" ]), # <== i.e. match the entire tree
@@ -5992,6 +6010,7 @@ cc_library(
5992
6010
),
5993
6011
includes = ["include" ],
5994
6012
deps = [
6013
+ ":config" ,
5995
6014
":ControlFlowInterfaces" ,
5996
6015
":IR" ,
5997
6016
":LoopLikeInterface" ,
You can’t perform that action at this time.
0 commit comments