Skip to content

Commit cf8a7ce

Browse files
MaskRayzahiraam
authored andcommitted
[bazel] Port 8677aaa (RISCV pre-legalizer combiners)
1 parent c5eff25 commit cf8a7ce

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

utils/bazel/llvm-project-overlay/llvm/BUILD.bazel

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,6 +2058,9 @@ llvm_target_lib_list = [lib for lib in [
20582058
("-gen-subtarget", "lib/Target/RISCV/RISCVGenSubtargetInfo.inc"),
20592059
("-gen-searchable-tables", "lib/Target/RISCV/RISCVGenSearchableTables.inc"),
20602060
],
2061+
"tbl_deps": [
2062+
":riscv_isel_target_gen",
2063+
],
20612064
},
20622065
{
20632066
"name": "VE",
@@ -2183,6 +2186,22 @@ gentbl(
21832186
]),
21842187
)
21852188

2189+
gentbl(
2190+
name = "riscv_isel_target_gen",
2191+
strip_include_prefix = "lib/Target/RISCV",
2192+
tbl_outs = [
2193+
("-gen-global-isel-combiner -combiners=RISCVO0PreLegalizerCombiner", "lib/Target/RISCV/RISCVGenO0PreLegalizeGICombiner.inc"),
2194+
("-gen-global-isel-combiner -combiners=RISCVPreLegalizerCombiner", "lib/Target/RISCV/RISCVGenPreLegalizeGICombiner.inc"),
2195+
],
2196+
tblgen = ":llvm-tblgen",
2197+
td_file = "lib/Target/RISCV/RISCVGISel.td",
2198+
td_srcs = [
2199+
":common_target_td_sources",
2200+
] + glob([
2201+
"lib/Target/RISCV/**/*.td",
2202+
]),
2203+
)
2204+
21862205
[[
21872206
[gentbl(
21882207
name = target["name"] + "CommonTableGen",

0 commit comments

Comments
 (0)