Skip to content

Commit

Permalink
Fix another LLVM integrate breaking TF via MLIR.
Browse files Browse the repository at this point in the history
Inspired by google/llvm-bazel@5d24413

PiperOrigin-RevId: 351490653
Change-Id: I44d599f21b935983ddd564896b51c95605d05d24
  • Loading branch information
mihaimaruseac authored and tensorflower-gardener committed Jan 13, 2021
1 parent 103ff00 commit faf1e4e
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions third_party/llvm/llvm.autogenerated.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2205,6 +2205,57 @@ cc_library(
],
)

filegroup(
name = "acc_td_files",
srcs = glob([
"include/llvm/Frontend/OpenACC/*.td",
"include/llvm/Frontend/Directive/*.td",
]),
)

gentbl(
name = "acc_gen",
library = False,
tbl_outs = [
("--gen-directive-decl", "include/llvm/Frontend/OpenACC/ACC.h.inc"),
],
tblgen = ":llvm-tblgen",
td_file = "include/llvm/Frontend/OpenACC/ACC.td",
td_srcs = [":acc_td_files"],
)

gentbl(
name = "acc_gen_impl",
library = False,
tbl_outs = [
("--gen-directive-gen", "include/llvm/Frontend/OpenACC/ACC.cpp.inc"),
("--gen-directive-impl", "lib/Frontend/OpenACC/ACC.cpp"),
],
tblgen = ":llvm-tblgen",
td_file = "include/llvm/Frontend/OpenACC/ACC.td",
td_srcs = [":acc_td_files"],
)

cc_library(
name = "FrontendOpenACC",
srcs = glob([
"lib/Frontend/OpenACC/*.cpp",
]) + [
"include/llvm/Frontend/OpenACC/ACC.cpp.inc",
"lib/Frontend/OpenACC/ACC.cpp",
],
hdrs = glob([
"include/llvm/Frontend/OpenACC/*.h",
]) + ["include/llvm/Frontend/OpenACC/ACC.h.inc"],
copts = llvm_copts,
deps = [
":Analysis",
":Core",
":Support",
":TransformUtils",
],
)

cc_library(
name = "FuzzMutate",
srcs = glob([
Expand Down

0 comments on commit faf1e4e

Please sign in to comment.