Rename SemIR::Node to SemIR::Inst (#3355)

And generally replace "node" by "inst" in the code and "instruction" in
comments.

---------

Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
This commit is contained in:
josh11b
2023-11-02 17:58:30 +00:00
committed by GitHub
co-authored by Chandler Carruth
parent 35c2142392
commit 7edfd8e02a
63 changed files with 2136 additions and 2115 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ auto CheckParseTree(SharedValueStores& value_stores,
[&](llvm::raw_ostream& output) { context.PrintForStackDump(output); });
// Add a block for the Parse::Tree.
context.node_block_stack().Push();
context.inst_block_stack().Push();
context.PushScope();
// Loops over all nodes in the tree. On some errors, this may return early,
@@ -51,7 +51,7 @@ auto CheckParseTree(SharedValueStores& value_stores,
}
// Pop information for the file-level scope.
sem_ir.set_top_node_block_id(context.node_block_stack().Pop());
sem_ir.set_top_inst_block_id(context.inst_block_stack().Pop());
context.PopScope();
context.VerifyOnFinish();