From: Geoffrey Martin-Noble Date: Fri, 16 Jul 2021 01:06:21 +0000 (-0700) Subject: [Bazel] Delete deprecated gentbl rule X-Git-Tag: llvmorg-14-init~1247 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=219c729f5ea8257c10755723162f2fb4a88b4466;p=platform%2Fupstream%2Fllvm.git [Bazel] Delete deprecated gentbl rule This has been deprecated for a while. There are no users in tree and I'm not aware of any out of tree users either. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D106114 --- diff --git a/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl b/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl index 7287180..88562ce 100644 --- a/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl +++ b/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl @@ -436,45 +436,3 @@ def gentbl_cc_library( textual_hdrs = [":" + filegroup_name], **kwargs ) - -def gentbl( - name, - tblgen, - td_file, - tbl_outs, - td_srcs = [], - td_includes = [], - includes = [], - td_relative_includes = [], - deps = [], - test = False, - **kwargs): - """Deprecated version of gentbl_cc_library. - - Accepts tbl_outs as list of pairs with the first element of the pair being - a whitespace-separated string of options rather than a list of options. - """ - - split_opts = [] - for (opts_string, out) in tbl_outs: - opts = opts_string.split(" ") if opts_string else [] - - # Filter out empty options - opts = [opt for opt in opts if opt] - - split_opts.append((opts, out)) - - gentbl_cc_library( - name = name, - tblgen = tblgen, - td_file = td_file, - tbl_outs = split_opts, - td_srcs = td_srcs, - td_includes = td_includes, - includes = includes, - td_relative_includes = td_relative_includes, - deps = deps, - test = test, - deprecation = "generated by gentbl; use gentbl_cc_library or gentbl_filegroup instead", - **kwargs - )