Bump OSS LLVM to 813f438baaa9638529023b2218875e01ea037735
PiperOrigin-RevId: 306215125 Change-Id: I81119461eee3958ef3013a4d984e38d178f311f0
This commit is contained in:
parent
dc8475e8c9
commit
b7c1d24656
@ -45,6 +45,7 @@ cc_library(
|
|||||||
"//tensorflow/core/platform:logging",
|
"//tensorflow/core/platform:logging",
|
||||||
"@llvm-project//llvm:support",
|
"@llvm-project//llvm:support",
|
||||||
"@llvm-project//mlir:AllPassesAndDialects",
|
"@llvm-project//mlir:AllPassesAndDialects",
|
||||||
|
"@llvm-project//mlir:IR",
|
||||||
"@llvm-project//mlir:MlirOptLib",
|
"@llvm-project//mlir:MlirOptLib",
|
||||||
"@llvm-project//mlir:Pass",
|
"@llvm-project//mlir:Pass",
|
||||||
"@llvm-project//mlir:Support",
|
"@llvm-project//mlir:Support",
|
||||||
|
@ -22,6 +22,7 @@ limitations under the License.
|
|||||||
#include "llvm/Support/InitLLVM.h"
|
#include "llvm/Support/InitLLVM.h"
|
||||||
#include "llvm/Support/SourceMgr.h"
|
#include "llvm/Support/SourceMgr.h"
|
||||||
#include "llvm/Support/ToolOutputFile.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/Diagnostics.h" // from @llvm-project
|
||||||
#include "mlir/IR/Function.h" // from @llvm-project
|
#include "mlir/IR/Function.h" // from @llvm-project
|
||||||
#include "mlir/IR/MLIRContext.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
|
// 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
|
// interface. That also means we need to relay the value set in one option to
|
||||||
// all its aliases.
|
// all its aliases.
|
||||||
|
mlir::registerAsmPrinterCLOptions();
|
||||||
llvm::cl::ParseCommandLineOptions(
|
llvm::cl::ParseCommandLineOptions(
|
||||||
argc, argv, "TF GraphDef to TFLite FlatBuffer converter\n");
|
argc, argv, "TF GraphDef to TFLite FlatBuffer converter\n");
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ limitations under the License.
|
|||||||
#include "llvm/Support/InitLLVM.h"
|
#include "llvm/Support/InitLLVM.h"
|
||||||
#include "llvm/Support/SourceMgr.h"
|
#include "llvm/Support/SourceMgr.h"
|
||||||
#include "llvm/Support/ToolOutputFile.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/Pass.h" // from @llvm-project
|
||||||
#include "mlir/Pass/PassManager.h" // from @llvm-project
|
#include "mlir/Pass/PassManager.h" // from @llvm-project
|
||||||
#include "mlir/Support/FileUtilities.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) {
|
int main(int argc, char **argv) {
|
||||||
tensorflow::InitMlir y(&argc, &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();
|
mlir::registerPassManagerCLOptions();
|
||||||
|
|
||||||
// Parse pass names in main to ensure static initialization completed.
|
// Parse pass names in main to ensure static initialization completed.
|
||||||
|
@ -21,6 +21,7 @@ limitations under the License.
|
|||||||
#include "llvm/Support/SMLoc.h"
|
#include "llvm/Support/SMLoc.h"
|
||||||
#include "llvm/Support/SourceMgr.h"
|
#include "llvm/Support/SourceMgr.h"
|
||||||
#include "llvm/Support/ToolOutputFile.h"
|
#include "llvm/Support/ToolOutputFile.h"
|
||||||
|
#include "mlir/IR/AsmState.h" // from @llvm-project
|
||||||
#include "mlir/IR/MLIRContext.h" // from @llvm-project
|
#include "mlir/IR/MLIRContext.h" // from @llvm-project
|
||||||
#include "mlir/Support/FileUtilities.h" // from @llvm-project
|
#include "mlir/Support/FileUtilities.h" // from @llvm-project
|
||||||
#include "mlir/Support/LogicalResult.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.
|
// Add flags for all the registered translations.
|
||||||
llvm::cl::opt<const mlir::TranslateFunction*, false, mlir::TranslationParser>
|
llvm::cl::opt<const mlir::TranslateFunction*, false, mlir::TranslationParser>
|
||||||
requested_translation("", llvm::cl::desc("Translation to perform"));
|
requested_translation("", llvm::cl::desc("Translation to perform"));
|
||||||
|
mlir::registerAsmPrinterCLOptions();
|
||||||
llvm::cl::ParseCommandLineOptions(argc, argv, "TF MLIR translation driver\n");
|
llvm::cl::ParseCommandLineOptions(argc, argv, "TF MLIR translation driver\n");
|
||||||
|
|
||||||
if (!import_saved_model_object_graph && !import_saved_model_signature_defs &&
|
if (!import_saved_model_object_graph && !import_saved_model_signature_defs &&
|
||||||
|
@ -611,8 +611,8 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Check out LLVM and MLIR from llvm-project.
|
# Check out LLVM and MLIR from llvm-project.
|
||||||
LLVM_COMMIT = "015dee1ac8988ed5184ef649c72ea0692f2633b3"
|
LLVM_COMMIT = "813f438baaa9638529023b2218875e01ea037735"
|
||||||
LLVM_SHA256 = "5ddd2016c669e88d89e149f96a30402f208815b71119d53109b6840cb3b16f42"
|
LLVM_SHA256 = "d264734ecd31d6d3d16b6a0c10eeb2b43a9ba8ddc9a79db6256847b91c956aa9"
|
||||||
LLVM_URLS = [
|
LLVM_URLS = [
|
||||||
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT),
|
"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),
|
"https://github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT),
|
||||||
|
Loading…
Reference in New Issue
Block a user