printPhi() — react Function Reference
Architecture documentation for the printPhi() function in PrintHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 8faf797b_f577_1d83_65a6_29b8dcb97348["printPhi()"] 6976a9ee_9d8e_4f16_3016_495f39aff2fd["PrintHIR.ts"] 8faf797b_f577_1d83_65a6_29b8dcb97348 -->|defined in| 6976a9ee_9d8e_4f16_3016_495f39aff2fd 3f9f0373_2e57_1356_bd68_e2eec897e2f5["printHIR()"] 3f9f0373_2e57_1356_bd68_e2eec897e2f5 -->|calls| 8faf797b_f577_1d83_65a6_29b8dcb97348 073c81a5_c389_d108_5b8f_4d6dc6eece83["push()"] 8faf797b_f577_1d83_65a6_29b8dcb97348 -->|calls| 073c81a5_c389_d108_5b8f_4d6dc6eece83 bf7f1cf7_fc0e_6bac_827c_8d36d98126da["printPlace()"] 8faf797b_f577_1d83_65a6_29b8dcb97348 -->|calls| bf7f1cf7_fc0e_6bac_827c_8d36d98126da 225c828e_a4a0_ec4a_56d6_d351085c81d4["printMutableRange()"] 8faf797b_f577_1d83_65a6_29b8dcb97348 -->|calls| 225c828e_a4a0_ec4a_56d6_d351085c81d4 98665ce3_667d_9b3b_7526_24c349380b2e["printType()"] 8faf797b_f577_1d83_65a6_29b8dcb97348 -->|calls| 98665ce3_667d_9b3b_7526_24c349380b2e style 8faf797b_f577_1d83_65a6_29b8dcb97348 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts lines 171–185
export function printPhi(phi: Phi): string {
const items = [];
items.push(printPlace(phi.place));
items.push(printMutableRange(phi.place.identifier));
items.push(printType(phi.place.identifier.type));
items.push(': phi(');
const phis = [];
for (const [blockId, place] of phi.operands) {
phis.push(`bb${blockId}: ${printPlace(place)}`);
}
items.push(phis.join(', '));
items.push(')');
return items.join('');
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does printPhi() do?
printPhi() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts.
Where is printPhi() defined?
printPhi() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts at line 171.
What does printPhi() call?
printPhi() calls 4 function(s): printMutableRange, printPlace, printType, push.
What calls printPhi()?
printPhi() is called by 1 function(s): printHIR.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free