Skip to content

Commit

Permalink
Add scf-to-affine pass
Browse files Browse the repository at this point in the history
  • Loading branch information
hanchenye committed Jan 14, 2024
1 parent 6e9453a commit 496c4c0
Show file tree
Hide file tree
Showing 4 changed files with 1,037 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/scalehls/Transforms/Passes.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace scalehls {

std::unique_ptr<Pass> createConvertLinalgToDataflowPass();
std::unique_ptr<Pass> createConvertDataflowToFuncPass();
std::unique_ptr<Pass> createRaiseSCFToAffinePass();

//===----------------------------------------------------------------------===//
// Transform Passes
Expand Down
5 changes: 5 additions & 0 deletions include/scalehls/Transforms/Passes.td
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ def ConvertDataflowToFunc :
let constructor = "mlir::scalehls::createConvertDataflowToFuncPass()";
}

def RaiseSCFToAffine : Pass<"scalehls-raise-scf-to-affine"> {
let summary = "Raise SCF to affine";
let constructor = "mlir::scalehls::createRaiseSCFToAffinePass()";
}

//===----------------------------------------------------------------------===//
// Transform Passes
//===----------------------------------------------------------------------===//
Expand Down
1 change: 1 addition & 0 deletions lib/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ add_mlir_library(MLIRScaleHLSTransforms
GenerateRuntimeFunc.cpp
LowerCopyToAffineLoops.cpp
Pipelines.cpp
RaiseSCFToAffine.cpp

DEPENDS
MLIRScaleHLSTransformsIncGen
Expand Down
Loading

0 comments on commit 496c4c0

Please sign in to comment.