[Bazel] Add target for llvm-tli-checker

Reviewed By: vettoreldaniele, GMNGeoffrey

Differential Revision: https://reviews.llvm.org/D116222
This commit is contained in:
Jakub Kuderski 2021-12-23 13:13:25 -05:00
parent 4374824ccf
commit 5410152827
1 changed files with 39 additions and 0 deletions

View File

@ -4207,6 +4207,45 @@ cc_binary(
], ],
) )
gentbl(
name = "TLICheckerOptsTableGen",
strip_include_prefix = "tools/llvm-tli-checker",
tbl_outs = [(
"-gen-opt-parser-defs",
"tools/llvm-tli-checker/Opts.inc",
)],
tblgen = ":llvm-tblgen",
td_file = "tools/llvm-tli-checker/Opts.td",
td_srcs = ["include/llvm/Option/OptParser.td"],
)
cc_binary(
name = "llvm-tli-checker",
testonly = True,
srcs = glob([
"tools/llvm-tli-checker/*.cpp",
"tools/llvm-tli-checker/*.h",
]),
copts = llvm_copts,
stamp = 0,
deps = [
":Analysis",
":BinaryFormat",
":BitReader",
":BitstreamReader",
":Core",
":Demangle",
":MC",
":MCParser",
":Object",
":Option",
":Remarks",
":Support",
":TextAPI",
":TLICheckerOptsTableGen",
],
)
cc_binary( cc_binary(
name = "obj2yaml", name = "obj2yaml",
testonly = True, testonly = True,