mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:00:12 +01:00
Add comments on the constants for BlockValueStore (#4605)
This allows the reader to understand their purpose without having to find and understand BlockValueStore beforehand.
This commit is contained in:
@@ -566,6 +566,7 @@ constexpr NameScopeId NameScopeId::Package = NameScopeId(0);
|
||||
|
||||
// The ID of an instruction block.
|
||||
struct InstBlockId : public IdBase, public Printable<InstBlockId> {
|
||||
// Types for BlockValueStore<InstBlockId>.
|
||||
using ElementType = InstId;
|
||||
using ValueType = llvm::MutableArrayRef<ElementType>;
|
||||
|
||||
@@ -606,6 +607,7 @@ constexpr InstBlockId InstBlockId::Unreachable = InstBlockId(InvalidIndex - 1);
|
||||
// The ID of a type block.
|
||||
struct StructTypeFieldsId : public IdBase,
|
||||
public Printable<StructTypeFieldsId> {
|
||||
// Types for BlockValueStore<StructTypeFieldsId>.
|
||||
using ElementType = StructTypeField;
|
||||
using ValueType = llvm::MutableArrayRef<StructTypeField>;
|
||||
|
||||
@@ -670,6 +672,7 @@ constexpr TypeId TypeId::Invalid = TypeId(InvalidIndex);
|
||||
|
||||
// The ID of a type block.
|
||||
struct TypeBlockId : public IdBase, public Printable<TypeBlockId> {
|
||||
// Types for BlockValueStore<TypeBlockId>.
|
||||
using ElementType = TypeId;
|
||||
using ValueType = llvm::MutableArrayRef<ElementType>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user