Skip to content

Commit

Permalink
add comments for insertBefore
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzun66 committed Dec 8, 2024
1 parent d415b64 commit 1f585e6
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1066,11 +1066,16 @@ public void validateBlocks() {
}

/*
* Note: if there is a stmt branching to the beforeStmt this is not updated to the new stmt
* Insert a list of FallsThroughStmts before an existing Stmt in this StmtGraph.
* After insertion, all predecessors of the existing Stmt are the predecessors of the first inserted Stmt.
*
* @param existingStmt: the Stmt which succeeds the inserted Stmts (its NOT preceeding as this
* Note: if there is a stmt branching to the beforeStmt this is not updated to the new stmt
* @param existingStmt: the Stmt which succeeds the inserted Stmts (it is NOT preceeding as this
* simplifies the handling of BranchingStmts)
* @param stmts: a list of FallsThroughStmts except for IfStmt
* @param exceptionMap: trap map of the inserted stmts.
*
* @return a block containing the inserted Stmts.
*/
@Nonnull
public BasicBlock<?> insertBefore(
Expand Down

0 comments on commit 1f585e6

Please sign in to comment.