Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: Soren Lassen <[email protected]>
  • Loading branch information
sorenlassen committed Sep 19, 2023
1 parent b0c5a54 commit 7aca52f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Compiler/CompilerPasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ namespace onnx_mlir {
void configurePasses() {
// Set global vector machine support.
VectorMachineSupport::setGlobalVectorMachineSupport(march, mcpu, "");
configureConstPropONNXToONNXPass(
onnxConstPropExpansionBound, onnxConstPropDisablePatterns,
configureConstPropONNXToONNXPass(onnxConstPropExpansionBound,
onnxConstPropDisablePatterns,
OptimizationLevel >= 3 || enableConstantProp);
configureOnnxToKrnlLoweringPass(optReport == OptReport::Parallel,
enableParallel, optReport == OptReport::Simd, !disableSimdOption);
Expand Down
5 changes: 2 additions & 3 deletions src/Pass/Passes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ std::unique_ptr<mlir::Pass> createConvOptONNXToONNXPass(
std::unique_ptr<mlir::Pass> createShapeInferencePass();

// To configure ConstPropONNXToONNXPass at program start.
void configureConstPropONNXToONNXPass(
int expansionBound, llvm::ArrayRef<std::string> disabledPatterns,
bool constantPropIsEnabled);
void configureConstPropONNXToONNXPass(int expansionBound,
llvm::ArrayRef<std::string> disabledPatterns, bool constantPropIsEnabled);

std::unique_ptr<mlir::Pass> createConstPropONNXToONNXPass();

Expand Down
4 changes: 2 additions & 2 deletions src/Transform/ONNX/ConstProp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,8 @@ void onnx_mlir::getConstPropONNXToONNXPatterns(RewritePatternSet &patterns) {
patterns.insert<SplitOfConst>(patterns.getContext());
}

void onnx_mlir::configureConstPropONNXToONNXPass(
int expansionBound, ArrayRef<std::string> disabledPatterns, bool constantPropIsEnabled) {
void onnx_mlir::configureConstPropONNXToONNXPass(int expansionBound,
ArrayRef<std::string> disabledPatterns, bool constantPropIsEnabled) {
ConstPropONNXToONNXPassConfiguration::expansionBound = expansionBound;
ConstPropONNXToONNXPassConfiguration::disabledPatterns.insert(
disabledPatterns.begin(), disabledPatterns.end());
Expand Down

0 comments on commit 7aca52f

Please sign in to comment.