s/SSAify/Enter SSA/

Rename this existing pass to make more sense with the next PR
This commit is contained in:
Lauren Tan
2022-11-07 18:34:45 -05:00
parent 5bd3a39d86
commit f8f4dc4b8b
2 changed files with 3 additions and 3 deletions
@@ -169,7 +169,7 @@ class SSABuilder {
}
}
export default function buildSSA(func: HIRFunction, env: Environment) {
export default function enterSSA(func: HIRFunction, env: Environment) {
const visitedBlocks: Set<BasicBlock> = new Set();
const builder = new SSABuilder(env);
for (const [blockId, block] of func.body.blocks) {
+2 -2
View File
@@ -17,12 +17,12 @@ import prettier from "prettier";
import { lower } from "../HIR/BuildHIR";
import codegen from "../HIR/Codegen";
import { eliminateRedundantPhi } from "../HIR/EliminateRedundantPhi";
import enterSSA from "../HIR/EnterSSA";
import { HIRFunction } from "../HIR/HIR";
import { Environment } from "../HIR/HIRBuilder";
import { inferMutableRanges } from "../HIR/InferMutableLifetimes";
import inferReferenceEffects from "../HIR/InferReferenceEffects";
import printHIR from "../HIR/PrintHIR";
import buildSSA from "../HIR/SSAify";
import generateTestsFromFixtures from "./test-utils/generateTestsFromFixtures";
function wrapWithTripleBackticks(s: string, ext?: string) {
@@ -64,7 +64,7 @@ describe("React Forget (HIR version)", () => {
enter(nodePath) {
const env: Environment = new Environment();
const ir: HIRFunction = lower(nodePath, env);
buildSSA(ir, env);
enterSSA(ir, env);
eliminateRedundantPhi(ir);
inferReferenceEffects(ir);
inferMutableRanges(ir);