[easy] rename InferReference{Capability=>Effects}

Forgot to rename the function/file when changing from capability to effect. 

#accept2ship
This commit is contained in:
Joseph Savona
2022-10-18 08:49:31 -07:00
parent 4712017744
commit 704d936009
2 changed files with 3 additions and 3 deletions
@@ -64,7 +64,7 @@ import { printMixedHIR } from "./PrintHIR";
* When control flow paths converge the types of values are merged together, with the value
* types forming a lattice to ensure convergence.
*/
export default function inferReferenceCapability(fn: HIRFunction) {
export default function inferReferenceEffects(fn: HIRFunction) {
// Initial environment contains function params
// TODO: include module declarations here as well
const initialEnvironment = Environment.empty();
+2 -2
View File
@@ -17,7 +17,7 @@ import prettier from "prettier";
import { lower } from "../HIR/BuildHIR";
import codegen from "../HIR/Codegen";
import { HIRFunction } from "../HIR/HIR";
import inferReferenceCapability from "../HIR/InferReferenceCapability";
import inferReferenceEffects from "../HIR/InferReferenceEffects";
import printHIR from "../HIR/PrintHIR";
import generateTestsFromFixtures from "./test-utils/generateTestsFromFixtures";
@@ -44,7 +44,7 @@ describe("React Forget (HIR version)", () => {
FunctionDeclaration: {
enter(nodePath) {
const ir: HIRFunction = lower(nodePath);
inferReferenceCapability(ir);
inferReferenceEffects(ir);
// const lifetimeGraph = buildDefUseGraph(ir);
const textHIR = printHIR(ir.body);
// const textLifetimeGraph = printGraph(lifetimeGraph);