Skip to content

Commit

Permalink
FramePointerAnalysis can run inline on expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Aug 13, 2024
1 parent cc211f9 commit db92068
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,22 @@ case object FramePointerAnalysis extends IRPass {
getAliasAnalysisMeta(ir).map(_.graph)
}

/** Not implemented for this pass.
/** @inheritdoc
*/
override def runExpression(
ir: Expression,
exprIr: Expression,
inlineContext: InlineContext
): Expression = {
ir
inlineContext.localScope match {
case None =>
throw new CompilerError(
"Local scope must be provided for frame pointer analysis"
)
case Some(localScope) =>
val graph = localScope.aliasingGraph
processExpression(exprIr, graph)
exprIr
}
}

// === Pass Configuration ===================================================
Expand Down

0 comments on commit db92068

Please sign in to comment.