Bump OSS LLVM to 813f438baaa9638529023b2218875e01ea037735

PiperOrigin-RevId: 306215125
Change-Id: I81119461eee3958ef3013a4d984e38d178f311f0
This commit is contained in:
Benjamin Kramer 2020-04-13 05:04:05 -07:00 committed by TensorFlower Gardener
parent dc8475e8c9
commit b7c1d24656
5 changed files with 11 additions and 4 deletions

View File

@ -45,6 +45,7 @@ cc_library(
"//tensorflow/core/platform:logging",
"@llvm-project//llvm:support",
"@llvm-project//mlir:AllPassesAndDialects",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:MlirOptLib",
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:Support",

View File

@ -22,6 +22,7 @@ limitations under the License.
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/ToolOutputFile.h"
#include "mlir/IR/AsmState.h" // from @llvm-project
#include "mlir/IR/Diagnostics.h" // from @llvm-project
#include "mlir/IR/Function.h" // from @llvm-project
#include "mlir/IR/MLIRContext.h" // from @llvm-project
@ -128,6 +129,7 @@ int main(int argc, char **argv) {
// We need to disable duplicated ones to provide a cleaner command-line option
// interface. That also means we need to relay the value set in one option to
// all its aliases.
mlir::registerAsmPrinterCLOptions();
llvm::cl::ParseCommandLineOptions(
argc, argv, "TF GraphDef to TFLite FlatBuffer converter\n");

View File

@ -17,6 +17,7 @@ limitations under the License.
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/ToolOutputFile.h"
#include "mlir/IR/AsmState.h" // from @llvm-project
#include "mlir/Pass/Pass.h" // from @llvm-project
#include "mlir/Pass/PassManager.h" // from @llvm-project
#include "mlir/Support/FileUtilities.h" // from @llvm-project
@ -64,7 +65,9 @@ static llvm::cl::opt<bool> allowUnregisteredDialects(
int main(int argc, char **argv) {
tensorflow::InitMlir y(&argc, &argv);
// Register any pass manager command line options.
// Register various MLIR command line options.
mlir::registerAsmPrinterCLOptions();
mlir::registerMLIRContextCLOptions();
mlir::registerPassManagerCLOptions();
// Parse pass names in main to ensure static initialization completed.

View File

@ -21,6 +21,7 @@ limitations under the License.
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/ToolOutputFile.h"
#include "mlir/IR/AsmState.h" // from @llvm-project
#include "mlir/IR/MLIRContext.h" // from @llvm-project
#include "mlir/Support/FileUtilities.h" // from @llvm-project
#include "mlir/Support/LogicalResult.h" // from @llvm-project
@ -82,7 +83,7 @@ int main(int argc, char** argv) {
// Add flags for all the registered translations.
llvm::cl::opt<const mlir::TranslateFunction*, false, mlir::TranslationParser>
requested_translation("", llvm::cl::desc("Translation to perform"));
mlir::registerAsmPrinterCLOptions();
llvm::cl::ParseCommandLineOptions(argc, argv, "TF MLIR translation driver\n");
if (!import_saved_model_object_graph && !import_saved_model_signature_defs &&

View File

@ -611,8 +611,8 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
)
# Check out LLVM and MLIR from llvm-project.
LLVM_COMMIT = "015dee1ac8988ed5184ef649c72ea0692f2633b3"
LLVM_SHA256 = "5ddd2016c669e88d89e149f96a30402f208815b71119d53109b6840cb3b16f42"
LLVM_COMMIT = "813f438baaa9638529023b2218875e01ea037735"
LLVM_SHA256 = "d264734ecd31d6d3d16b6a0c10eeb2b43a9ba8ddc9a79db6256847b91c956aa9"
LLVM_URLS = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT),
"https://github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT),