-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
110 lines (104 loc) · 2.72 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "td_library")
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"],
)
td_library(
name = "SclOpsTdFiles",
srcs = [
"include/sclang/SclDialect/SclBase.td",
"include/sclang/SclDialect/SclOps.td",
],
includes = ["include"],
deps = [
"@llvm-project//mlir:CallInterfacesTdFiles",
"@llvm-project//mlir:CastInterfacesTdFiles",
"@llvm-project//mlir:InferTypeOpInterfaceTdFiles",
"@llvm-project//mlir:OpBaseTdFiles",
"@llvm-project//mlir:SideEffectInterfacesTdFiles",
],
)
gentbl_cc_library(
name = "SclOpsIncGen",
strip_include_prefix = "include",
tbl_outs = [
(
["-gen-dialect-decls"],
"include/sclang/SclDialect/Dialect.h.inc",
),
(
["-gen-dialect-defs"],
"include/sclang/SclDialect/Dialect.cpp.inc",
),
(
["-gen-op-decls"],
"include/sclang/SclDialect/SclOps.h.inc",
),
(
["-gen-op-defs"],
"include/sclang/SclDialect/SclOps.cpp.inc",
),
],
tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "include/sclang/SclDialect/SclOps.td",
deps = [
":SclOpsTdFiles",
],
)
cc_library(
name = "SclDialect",
srcs = glob([
"lib/SclDialect/*.cpp",
]),
hdrs = glob([
"include/sclang/SclDialect/*.h",
]),
includes = ["include"],
deps = [
":SclOpsIncGen",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Dialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:InferTypeOpInterface",
"@llvm-project//mlir:SideEffectInterfaces",
],
)
cc_library(
name = "SclGen",
srcs = glob([
"lib/SclGen/*.cpp",
]),
hdrs = glob([
"include/sclang/SclGen/*.h",
]),
includes = ["include"],
deps = [
":SclDialect",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:Dialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:StandardOps",
],
)
cc_library(
name = "SclTransforms",
srcs = glob([
"lib/SclTransforms/*.cpp",
]),
hdrs = glob([
"include/sclang/SclTransforms/*.h",
]),
includes = ["include"],
deps = [
":SclDialect",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithmeticDialect",
"@llvm-project//mlir:Dialect",
"@llvm-project//mlir:MemRefDialect",
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:SCFDialect",
"@llvm-project//mlir:StandardOps",
"@llvm-project//mlir:Transforms",
],
)