From 013b829185fee6d8eaa515a7e36ec468a2a02600 Mon Sep 17 00:00:00 2001 From: not-jenni <59985653+not-jenni@users.noreply.github.com> Date: Fri, 19 Mar 2021 09:55:10 -0700 Subject: [PATCH] Integrate LLVM at llvm/llvm-project@cd442157cff4 (#176) Update BUILD files and submodule for [cd442157cff4](https://github.com/llvm/llvm-project/commit/cd442157cff4) --- llvm-bazel/llvm-project-overlay/mlir/BUILD | 53 ++++++++++++++++++++-- third_party/llvm-project | 2 +- 2 files changed, 50 insertions(+), 5 deletions(-) diff --git a/llvm-bazel/llvm-project-overlay/mlir/BUILD b/llvm-bazel/llvm-project-overlay/mlir/BUILD index d850a05557..a686a6a033 100644 --- a/llvm-bazel/llvm-project-overlay/mlir/BUILD +++ b/llvm-bazel/llvm-project-overlay/mlir/BUILD @@ -441,6 +441,13 @@ td_library( deps = [":OpBaseTdFiles"], ) +td_library( + name = "ReducerTdFiles", + srcs = ["include/mlir/Reducer/Passes.td"], + includes = ["include"], + deps = [":OpBaseTdFiles"], +) + ##---------------------------------------------------------------------------## # Affine dialect. ##---------------------------------------------------------------------------## @@ -1964,9 +1971,7 @@ cc_library( "lib/Dialect/GPU/IR/*.h", ], ), - hdrs = glob([ - "include/mlir/Dialect/GPU/GPUDialect.h", - ]), + hdrs = ["include/mlir/Dialect/GPU/GPUDialect.h"], includes = ["include"], deps = [ ":GPUBaseIncGen", @@ -2228,7 +2233,6 @@ cc_library( cc_library( name = "GPUToGPURuntimeTransforms", srcs = [ - "lib/Conversion/GPUCommon/ConvertKernelFuncToBlob.cpp", "lib/Conversion/GPUCommon/ConvertLaunchFuncToRuntimeCalls.cpp", "lib/Conversion/PassDetail.h", ], @@ -2246,6 +2250,7 @@ cc_library( ":Pass", ":StandardToLLVM", ":Support", + ":VectorToLLVM", "//llvm:Support", ], ) @@ -5304,6 +5309,7 @@ cc_library( ":IR", ":LinalgOps", ":MathDialect", + ":MemRefDialect", ":Pass", ":StandardOps", ":TosaDialect", @@ -5699,3 +5705,42 @@ cc_library( "//llvm:Support", ], ) + +gentbl( + name = "ReducerIncGen", + strip_include_prefix = "include", + tbl_outs = [ + ( + "-gen-pass-decls", + "include/mlir/Reducer/Passes.h.inc", + ), + ], + tblgen = ":mlir-tblgen", + td_file = "include/mlir/Reducer/Passes.td", + deps = [ + ":PassBaseTdFiles", + ":ReducerTdFiles", + ], +) + +cc_binary( + name = "mlir-reduce", + srcs = glob([ + "include/mlir/Reducer/*.h", + "include/mlir/Reducer/Passes/*.h", + "tools/mlir-reduce/*.cpp", + "tools/mlir-reduce/Passes/*.cpp", + ]) + ["lib/Reducer/Tester.cpp"], + includes = ["include"], + stamp = 0, + deps = [ + ":AllPassesAndDialectsNoRegistration", + ":IR", + ":Parser", + ":Pass", + ":ReducerIncGen", + ":Support", + ":Transforms", + "//llvm:Support", + ], +) diff --git a/third_party/llvm-project b/third_party/llvm-project index 678241795c..cd442157cf 160000 --- a/third_party/llvm-project +++ b/third_party/llvm-project @@ -1 +1 @@ -Subproject commit 678241795c957b18bc473045e48abe3f2a61ff5c +Subproject commit cd442157cff4aad209ae532cbf031abbe10bc1df