This change to reflect MLIR's recent addition to LLVM's monorepo. Instead of stripping llvm from the http archive, use build file map to refer to both MLIR and LLVM within llvm-project and remove read-only copy that was temporarily there. Also bump the commit version until after the integration of MLIR into LLVM monorepo. PiperOrigin-RevId: 287547194 Change-Id: I4459b96702dc5eb19b58c7ceaa6cabb16f530a43
38 lines
1.5 KiB
C++
38 lines
1.5 KiB
C++
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
==============================================================================*/
|
|
|
|
#ifndef TENSORFLOW_COMPILER_MLIR_LITE_TF_TFL_PASSES_H_
|
|
#define TENSORFLOW_COMPILER_MLIR_LITE_TF_TFL_PASSES_H_
|
|
|
|
#include "mlir/IR/Module.h" // TF:llvm-project
|
|
#include "mlir/Pass/PassManager.h" // TF:llvm-project
|
|
#include "tensorflow/compiler/mlir/lite/common/tfl_pass_config.h"
|
|
|
|
namespace tensorflow {
|
|
|
|
// Add the TF to TFLite passes, specified in the pass_config, into a
|
|
// pass_manager.
|
|
void AddTFToTFLConversionPasses(const mlir::TFL::PassConfig& pass_config,
|
|
mlir::OpPassManager* pass_manager);
|
|
|
|
// Add the Quantization passes, specified in the quant_specs, into a pass
|
|
// manager.
|
|
void AddQuantizationPasses(const mlir::TFL::QuantizationSpecs& quant_specs,
|
|
mlir::OpPassManager* pass_manager);
|
|
|
|
} // namespace tensorflow
|
|
|
|
#endif // TENSORFLOW_COMPILER_MLIR_LITE_TF_TFL_PASSES_H_
|