Rename the ImportRefs block to Imports (#5618)

I've been mulling the name of this, changing it and updating comments to
try and better reflect the current semantic. "Imports" reflects how
we're currently printing this in SemIR.
This commit is contained in:
Jon Ross-Perkins
2025-06-05 21:24:58 +00:00
committed by GitHub
parent 9b1a0729a1
commit 1e9e148c3b
18 changed files with 46 additions and 47 deletions
+3 -3
View File
@@ -53,7 +53,7 @@ Formatter::Formatter(const File* sem_ir,
// Create empty placeholder chunks for instructions that we output lazily.
for (auto inst_id : llvm::concat<const InstId>(
sem_ir_->constants().array_ref(),
sem_ir_->inst_blocks().Get(InstBlockId::ImportRefs))) {
sem_ir_->inst_blocks().Get(InstBlockId::Imports))) {
tentative_inst_chunks_[inst_id.index] = AddChunkNoFlush(false);
}
@@ -67,8 +67,8 @@ auto Formatter::Format() -> void {
FormatTopLevelScopeIfUsed(InstNamer::ScopeId::Constants,
sem_ir_->constants().array_ref(),
/*use_tentative_output_scopes=*/true);
FormatTopLevelScopeIfUsed(InstNamer::ScopeId::ImportRefs,
sem_ir_->inst_blocks().Get(InstBlockId::ImportRefs),
FormatTopLevelScopeIfUsed(InstNamer::ScopeId::Imports,
sem_ir_->inst_blocks().Get(InstBlockId::Imports),
/*use_tentative_output_scopes=*/true);
FormatTopLevelScopeIfUsed(
InstNamer::ScopeId::File,