From 96b5b34a2a408a368bc987f8cf374fe64c48bc96 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 3 Dec 2024 15:47:58 -0500 Subject: [PATCH] Add comments on the constants for BlockValueStore (#4605) This allows the reader to understand their purpose without having to find and understand BlockValueStore beforehand. --- toolchain/sem_ir/ids.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toolchain/sem_ir/ids.h b/toolchain/sem_ir/ids.h index 6a47e931ee0d..599d1a8c1503 100644 --- a/toolchain/sem_ir/ids.h +++ b/toolchain/sem_ir/ids.h @@ -566,6 +566,7 @@ constexpr NameScopeId NameScopeId::Package = NameScopeId(0); // The ID of an instruction block. struct InstBlockId : public IdBase, public Printable { + // Types for BlockValueStore. using ElementType = InstId; using ValueType = llvm::MutableArrayRef; @@ -606,6 +607,7 @@ constexpr InstBlockId InstBlockId::Unreachable = InstBlockId(InvalidIndex - 1); // The ID of a type block. struct StructTypeFieldsId : public IdBase, public Printable { + // Types for BlockValueStore. using ElementType = StructTypeField; using ValueType = llvm::MutableArrayRef; @@ -670,6 +672,7 @@ constexpr TypeId TypeId::Invalid = TypeId(InvalidIndex); // The ID of a type block. struct TypeBlockId : public IdBase, public Printable { + // Types for BlockValueStore. using ElementType = TypeId; using ValueType = llvm::MutableArrayRef;