Add SegregateStackAccesses to pypeline

This commit is contained in:
Giacomo Vercesi
2025-12-01 12:11:55 +01:00
parent 3cd011c146
commit ee1fdebc4e
3 changed files with 28 additions and 0 deletions
+1
View File
@@ -88,6 +88,7 @@ static RegisterFunctionPipeRun<PromoteStackPointer> P21;
static RegisterFunctionPipeRun<SimplifySwitch> P22;
static RegisterFunctionPipeRun<LegacySegregateStackAccesses> P23;
static RegisterFunctionPipeRun<MakeSegmentRef> P24;
static RegisterFunctionPipeRun<SegregateStackAccesses> P25;
//
// Analyses
@@ -1631,4 +1631,12 @@ void LegacySegregateStackAccesses::runOnLLVMFunction(const model::Function
Impl.epilogue();
}
void SegregateStackAccesses::runOnLLVMFunction(const model::Function &Function,
llvm::Function &LLVMFunction) {
::SegregateStackAccesses<false> Impl(Binary, *LLVMFunction.getParent());
Impl.prologue();
Impl.runOnFunction(Function, LLVMFunction);
Impl.epilogue();
}
} // namespace revng::pypeline::piperuns