ids.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_TOOLCHAIN_SEM_IR_IDS_H_
  5. #define CARBON_TOOLCHAIN_SEM_IR_IDS_H_
  6. #include "common/check.h"
  7. #include "common/ostream.h"
  8. #include "toolchain/base/index_base.h"
  9. #include "toolchain/base/value_store.h"
  10. #include "toolchain/diagnostics/diagnostic_emitter.h"
  11. #include "toolchain/parse/node_ids.h"
  12. #include "toolchain/sem_ir/builtin_kind.h"
  13. namespace Carbon::SemIR {
  14. // Forward declare indexed types, for integration with ValueStore.
  15. class File;
  16. class Inst;
  17. struct BindNameInfo;
  18. struct Class;
  19. struct Function;
  20. struct ImportIR;
  21. struct ImportIRInst;
  22. struct Interface;
  23. struct Impl;
  24. struct NameScope;
  25. struct TypeInfo;
  26. // The ID of an instruction.
  27. struct InstId : public IdBase, public Printable<InstId> {
  28. using ValueType = Inst;
  29. // An explicitly invalid ID.
  30. static const InstId Invalid;
  31. // Builtin instruction IDs.
  32. #define CARBON_SEM_IR_BUILTIN_KIND_NAME(Name) static const InstId Builtin##Name;
  33. #include "toolchain/sem_ir/builtin_kind.def"
  34. // The namespace for a `package` expression.
  35. static const InstId PackageNamespace;
  36. // Returns the instruction ID for a builtin. This relies on File guarantees
  37. // for builtin ImportRefUsed placement.
  38. static constexpr auto ForBuiltin(BuiltinKind kind) -> InstId {
  39. return InstId(kind.AsInt());
  40. }
  41. using IdBase::IdBase;
  42. // Returns true if the instruction is a builtin. Requires is_valid.
  43. auto is_builtin() const -> bool {
  44. CARBON_CHECK(is_valid());
  45. return index < BuiltinKind::ValidCount;
  46. }
  47. // Returns the BuiltinKind. Requires is_builtin.
  48. auto builtin_kind() const -> BuiltinKind {
  49. CARBON_CHECK(is_builtin());
  50. return BuiltinKind::FromInt(index);
  51. }
  52. auto Print(llvm::raw_ostream& out) const -> void {
  53. out << "inst";
  54. if (!is_valid()) {
  55. IdBase::Print(out);
  56. } else if (is_builtin()) {
  57. out << builtin_kind();
  58. } else {
  59. // Use the `+` as a small reminder that this is a delta, rather than an
  60. // absolute index.
  61. out << "+" << index - BuiltinKind::ValidCount;
  62. }
  63. }
  64. };
  65. constexpr InstId InstId::Invalid = InstId(InvalidIndex);
  66. #define CARBON_SEM_IR_BUILTIN_KIND_NAME(Name) \
  67. constexpr InstId InstId::Builtin##Name = \
  68. InstId::ForBuiltin(BuiltinKind::Name);
  69. #include "toolchain/sem_ir/builtin_kind.def"
  70. // The package namespace will be the instruction after builtins.
  71. constexpr InstId InstId::PackageNamespace = InstId(BuiltinKind::ValidCount);
  72. // The ID of a constant value of an expression. An expression is either:
  73. //
  74. // - a template constant, with an immediate value, such as `42` or `i32*` or
  75. // `("hello", "world")`, or
  76. // - a symbolic constant, whose value includes a symbolic parameter, such as
  77. // `Vector(T*)`, or
  78. // - a runtime expression, such as `Print("hello")`.
  79. struct ConstantId : public IdBase, public Printable<ConstantId> {
  80. // An ID for an expression that is not constant.
  81. static const ConstantId NotConstant;
  82. // An ID for an expression whose phase cannot be determined because it
  83. // contains an error. This is always modeled as a template constant.
  84. static const ConstantId Error;
  85. // An explicitly invalid ID.
  86. static const ConstantId Invalid;
  87. // Returns the constant ID corresponding to a template constant, which should
  88. // either be in the `constants` block in the file or should be known to be
  89. // unique.
  90. static constexpr auto ForTemplateConstant(InstId const_id) -> ConstantId {
  91. return ConstantId(const_id.index + IndexOffset);
  92. }
  93. // Returns the constant ID corresponding to a symbolic constant, which should
  94. // either be in the `constants` block in the file or should be known to be
  95. // unique.
  96. static constexpr auto ForSymbolicConstant(InstId const_id) -> ConstantId {
  97. return ConstantId(-const_id.index - IndexOffset);
  98. }
  99. using IdBase::IdBase;
  100. // Returns whether this represents a constant. Requires is_valid.
  101. auto is_constant() const -> bool {
  102. CARBON_CHECK(is_valid());
  103. return *this != ConstantId::NotConstant;
  104. }
  105. // Returns whether this represents a symbolic constant. Requires is_valid.
  106. auto is_symbolic() const -> bool {
  107. CARBON_CHECK(is_valid());
  108. return index <= -IndexOffset;
  109. }
  110. // Returns whether this represents a template constant. Requires is_valid.
  111. auto is_template() const -> bool {
  112. CARBON_CHECK(is_valid());
  113. return index >= IndexOffset;
  114. }
  115. // Returns the instruction that describes this constant value, or
  116. // InstId::Invalid for a runtime value. Requires is_valid.
  117. constexpr auto inst_id() const -> InstId {
  118. CARBON_CHECK(is_valid());
  119. return InstId(Abs(index) - IndexOffset);
  120. }
  121. auto Print(llvm::raw_ostream& out) const -> void {
  122. if (!is_valid()) {
  123. IdBase::Print(out);
  124. } else if (is_template()) {
  125. out << "template " << inst_id();
  126. } else if (is_symbolic()) {
  127. out << "symbolic " << inst_id();
  128. } else {
  129. out << "runtime";
  130. }
  131. }
  132. private:
  133. // TODO: C++23 makes std::abs constexpr, but until then we mirror std::abs
  134. // logic here. LLVM should still optimize this.
  135. static constexpr auto Abs(int32_t i) -> int32_t { return i > 0 ? i : -i; }
  136. static constexpr int32_t NotConstantIndex = InvalidIndex - 1;
  137. // The offset of InstId indices to ConstantId indices.
  138. static constexpr int32_t IndexOffset = -NotConstantIndex + 1;
  139. };
  140. constexpr ConstantId ConstantId::NotConstant = ConstantId(NotConstantIndex);
  141. static_assert(ConstantId::NotConstant.inst_id() == InstId::Invalid);
  142. constexpr ConstantId ConstantId::Error =
  143. ConstantId::ForTemplateConstant(InstId::BuiltinError);
  144. constexpr ConstantId ConstantId::Invalid = ConstantId(InvalidIndex);
  145. // The ID of a bind name.
  146. struct BindNameId : public IdBase, public Printable<BindNameId> {
  147. using ValueType = BindNameInfo;
  148. // An explicitly invalid ID.
  149. static const BindNameId Invalid;
  150. using IdBase::IdBase;
  151. auto Print(llvm::raw_ostream& out) const -> void {
  152. out << "bindName";
  153. IdBase::Print(out);
  154. }
  155. };
  156. constexpr BindNameId BindNameId::Invalid = BindNameId(InvalidIndex);
  157. // The ID of a function.
  158. struct FunctionId : public IdBase, public Printable<FunctionId> {
  159. using ValueType = Function;
  160. // An explicitly invalid ID.
  161. static const FunctionId Invalid;
  162. using IdBase::IdBase;
  163. auto Print(llvm::raw_ostream& out) const -> void {
  164. out << "function";
  165. IdBase::Print(out);
  166. }
  167. };
  168. constexpr FunctionId FunctionId::Invalid = FunctionId(InvalidIndex);
  169. // The ID of a class.
  170. struct ClassId : public IdBase, public Printable<ClassId> {
  171. using ValueType = Class;
  172. // An explicitly invalid ID.
  173. static const ClassId Invalid;
  174. using IdBase::IdBase;
  175. auto Print(llvm::raw_ostream& out) const -> void {
  176. out << "class";
  177. IdBase::Print(out);
  178. }
  179. };
  180. constexpr ClassId ClassId::Invalid = ClassId(InvalidIndex);
  181. // The ID of an interface.
  182. struct InterfaceId : public IdBase, public Printable<InterfaceId> {
  183. using ValueType = Interface;
  184. // An explicitly invalid ID.
  185. static const InterfaceId Invalid;
  186. using IdBase::IdBase;
  187. auto Print(llvm::raw_ostream& out) const -> void {
  188. out << "interface";
  189. IdBase::Print(out);
  190. }
  191. };
  192. constexpr InterfaceId InterfaceId::Invalid = InterfaceId(InvalidIndex);
  193. // The ID of an impl.
  194. struct ImplId : public IdBase, public Printable<ImplId> {
  195. using ValueType = Impl;
  196. // An explicitly invalid ID.
  197. static const ImplId Invalid;
  198. using IdBase::IdBase;
  199. auto Print(llvm::raw_ostream& out) const -> void {
  200. out << "impl";
  201. IdBase::Print(out);
  202. }
  203. };
  204. constexpr ImplId ImplId::Invalid = ImplId(InvalidIndex);
  205. // The ID of an imported IR.
  206. struct ImportIRId : public IdBase, public Printable<ImportIRId> {
  207. using ValueType = ImportIR;
  208. // An explicitly invalid ID.
  209. static const ImportIRId Invalid;
  210. // The builtin IR's import location.
  211. static const ImportIRId Builtins;
  212. // The implicit `api` import, for an `impl` file. A null entry is added if
  213. // there is none, as in an `api`, in which case this ID should not show up in
  214. // instructions.
  215. static const ImportIRId ApiForImpl;
  216. using IdBase::IdBase;
  217. auto Print(llvm::raw_ostream& out) const -> void {
  218. out << "ir";
  219. IdBase::Print(out);
  220. }
  221. };
  222. constexpr ImportIRId ImportIRId::Invalid = ImportIRId(InvalidIndex);
  223. constexpr ImportIRId ImportIRId::Builtins = ImportIRId(0);
  224. constexpr ImportIRId ImportIRId::ApiForImpl = ImportIRId(1);
  225. // A boolean value.
  226. struct BoolValue : public IdBase, public Printable<BoolValue> {
  227. static const BoolValue False;
  228. static const BoolValue True;
  229. // Returns the `BoolValue` corresponding to `b`.
  230. static constexpr auto From(bool b) -> BoolValue { return b ? True : False; }
  231. // Returns the `bool` corresponding to this `BoolValue`.
  232. constexpr auto ToBool() -> bool {
  233. CARBON_CHECK(*this == False || *this == True)
  234. << "Invalid bool value " << index;
  235. return *this != False;
  236. }
  237. using IdBase::IdBase;
  238. auto Print(llvm::raw_ostream& out) const -> void {
  239. if (*this == False) {
  240. out << "false";
  241. } else if (*this == True) {
  242. out << "true";
  243. } else {
  244. CARBON_FATAL() << "Invalid bool value " << index;
  245. }
  246. }
  247. };
  248. constexpr BoolValue BoolValue::False = BoolValue(0);
  249. constexpr BoolValue BoolValue::True = BoolValue(1);
  250. // An integer kind value -- either "signed" or "unsigned".
  251. //
  252. // This might eventually capture any other properties of an integer type that
  253. // affect its semantics, such as overflow behavior.
  254. struct IntKind : public IdBase, public Printable<IntKind> {
  255. static const IntKind Unsigned;
  256. static const IntKind Signed;
  257. using IdBase::IdBase;
  258. // Returns whether this type is signed.
  259. constexpr auto is_signed() -> bool { return *this == Signed; }
  260. auto Print(llvm::raw_ostream& out) const -> void {
  261. if (*this == Unsigned) {
  262. out << "unsigned";
  263. } else if (*this == Signed) {
  264. out << "signed";
  265. } else {
  266. CARBON_FATAL() << "Invalid int kind value " << index;
  267. }
  268. }
  269. };
  270. constexpr IntKind IntKind::Unsigned = IntKind(0);
  271. constexpr IntKind IntKind::Signed = IntKind(1);
  272. // The ID of a name. A name is either a string or a special name such as
  273. // `self`, `Self`, or `base`.
  274. struct NameId : public IdBase, public Printable<NameId> {
  275. // names().GetFormatted() is used for diagnostics.
  276. using DiagnosticType = DiagnosticTypeInfo<std::string>;
  277. // An explicitly invalid ID.
  278. static const NameId Invalid;
  279. // The name of `self`.
  280. static const NameId SelfValue;
  281. // The name of `Self`.
  282. static const NameId SelfType;
  283. // The name of the return slot in a function.
  284. static const NameId ReturnSlot;
  285. // The name of `package`.
  286. static const NameId PackageNamespace;
  287. // The name of `base`.
  288. static const NameId Base;
  289. // The number of non-index (<0) that exist, and will need storage in name
  290. // lookup.
  291. static const int NonIndexValueCount;
  292. // Returns the NameId corresponding to a particular IdentifierId.
  293. static auto ForIdentifier(IdentifierId id) -> NameId {
  294. if (id.index >= 0) {
  295. return NameId(id.index);
  296. } else if (!id.is_valid()) {
  297. return NameId::Invalid;
  298. } else {
  299. CARBON_FATAL() << "Unexpected identifier ID " << id;
  300. }
  301. }
  302. using IdBase::IdBase;
  303. // Returns the IdentifierId corresponding to this NameId, or an invalid
  304. // IdentifierId if this is a special name.
  305. auto AsIdentifierId() const -> IdentifierId {
  306. return index >= 0 ? IdentifierId(index) : IdentifierId::Invalid;
  307. }
  308. auto Print(llvm::raw_ostream& out) const -> void {
  309. out << "name";
  310. if (*this == SelfValue) {
  311. out << "SelfValue";
  312. } else if (*this == SelfType) {
  313. out << "SelfType";
  314. } else if (*this == ReturnSlot) {
  315. out << "ReturnSlot";
  316. } else if (*this == PackageNamespace) {
  317. out << "PackageNamespace";
  318. } else if (*this == Base) {
  319. out << "Base";
  320. } else {
  321. CARBON_CHECK(!is_valid() || index >= 0) << "Unknown index " << index;
  322. IdBase::Print(out);
  323. }
  324. }
  325. };
  326. constexpr NameId NameId::Invalid = NameId(InvalidIndex);
  327. constexpr NameId NameId::SelfValue = NameId(InvalidIndex - 1);
  328. constexpr NameId NameId::SelfType = NameId(InvalidIndex - 2);
  329. constexpr NameId NameId::ReturnSlot = NameId(InvalidIndex - 3);
  330. constexpr NameId NameId::PackageNamespace = NameId(InvalidIndex - 4);
  331. constexpr NameId NameId::Base = NameId(InvalidIndex - 5);
  332. constexpr int NameId::NonIndexValueCount = 6;
  333. // Enforce the link between SpecialValueCount and the last special value.
  334. static_assert(NameId::NonIndexValueCount == -NameId::Base.index);
  335. // The ID of a name scope.
  336. struct NameScopeId : public IdBase, public Printable<NameScopeId> {
  337. using ValueType = NameScope;
  338. // An explicitly invalid ID.
  339. static const NameScopeId Invalid;
  340. // The package (or file) name scope, guaranteed to be the first added.
  341. static const NameScopeId Package;
  342. using IdBase::IdBase;
  343. auto Print(llvm::raw_ostream& out) const -> void {
  344. out << "name_scope";
  345. IdBase::Print(out);
  346. }
  347. };
  348. constexpr NameScopeId NameScopeId::Invalid = NameScopeId(InvalidIndex);
  349. constexpr NameScopeId NameScopeId::Package = NameScopeId(0);
  350. // The ID of an instruction block.
  351. struct InstBlockId : public IdBase, public Printable<InstBlockId> {
  352. using ElementType = InstId;
  353. using ValueType = llvm::MutableArrayRef<ElementType>;
  354. // An empty block, reused to avoid allocating empty vectors. Always the
  355. // 0-index block.
  356. static const InstBlockId Empty;
  357. // Exported instructions. Always the 1-index block. Empty until the File is
  358. // fully checked; intermediate state is in the Check::Context.
  359. static const InstBlockId Exports;
  360. // Global declaration initialization instructions. Empty if none are present.
  361. // Otherwise, __global_init function will be generated and this block will
  362. // be inserted into it.
  363. static const InstBlockId GlobalInit;
  364. // An explicitly invalid ID.
  365. static const InstBlockId Invalid;
  366. // An ID for unreachable code.
  367. static const InstBlockId Unreachable;
  368. using IdBase::IdBase;
  369. auto Print(llvm::raw_ostream& out) const -> void {
  370. if (*this == Unreachable) {
  371. out << "unreachable";
  372. } else if (*this == Empty) {
  373. out << "empty";
  374. } else if (*this == Exports) {
  375. out << "exports";
  376. } else if (*this == GlobalInit) {
  377. out << "global_init";
  378. } else {
  379. out << "block";
  380. IdBase::Print(out);
  381. }
  382. }
  383. };
  384. constexpr InstBlockId InstBlockId::Empty = InstBlockId(0);
  385. constexpr InstBlockId InstBlockId::Exports = InstBlockId(1);
  386. constexpr InstBlockId InstBlockId::Invalid = InstBlockId(InvalidIndex);
  387. constexpr InstBlockId InstBlockId::Unreachable = InstBlockId(InvalidIndex - 1);
  388. constexpr InstBlockId InstBlockId::GlobalInit = InstBlockId(2);
  389. // The ID of a type.
  390. struct TypeId : public IdBase, public Printable<TypeId> {
  391. using ValueType = TypeInfo;
  392. // StringifyType() is used for diagnostics.
  393. using DiagnosticType = DiagnosticTypeInfo<std::string>;
  394. // The builtin TypeType.
  395. static const TypeId TypeType;
  396. // The builtin Error.
  397. static const TypeId Error;
  398. // An explicitly invalid ID.
  399. static const TypeId Invalid;
  400. using IdBase::IdBase;
  401. auto Print(llvm::raw_ostream& out) const -> void {
  402. out << "type";
  403. if (*this == TypeType) {
  404. out << "TypeType";
  405. } else if (*this == Error) {
  406. out << "Error";
  407. } else {
  408. IdBase::Print(out);
  409. }
  410. }
  411. };
  412. constexpr TypeId TypeId::TypeType = TypeId(InvalidIndex - 2);
  413. constexpr TypeId TypeId::Error = TypeId(InvalidIndex - 1);
  414. constexpr TypeId TypeId::Invalid = TypeId(InvalidIndex);
  415. // The ID of a type block.
  416. struct TypeBlockId : public IdBase, public Printable<TypeBlockId> {
  417. using ElementType = TypeId;
  418. using ValueType = llvm::MutableArrayRef<ElementType>;
  419. using IdBase::IdBase;
  420. auto Print(llvm::raw_ostream& out) const -> void {
  421. out << "typeBlock";
  422. IdBase::Print(out);
  423. }
  424. };
  425. // An index for element access, for structs, tuples, and classes.
  426. struct ElementIndex : public IndexBase, public Printable<ElementIndex> {
  427. using IndexBase::IndexBase;
  428. auto Print(llvm::raw_ostream& out) const -> void {
  429. out << "element";
  430. IndexBase::Print(out);
  431. }
  432. };
  433. // The ID of an ImportIRInst.
  434. struct ImportIRInstId : public IdBase, public Printable<InstId> {
  435. using ValueType = ImportIRInst;
  436. // An explicitly invalid ID.
  437. static const ImportIRInstId Invalid;
  438. using IdBase::IdBase;
  439. };
  440. constexpr ImportIRInstId ImportIRInstId::Invalid = ImportIRInstId(InvalidIndex);
  441. // A SemIR location used exclusively for diagnostic locations.
  442. //
  443. // Contents:
  444. // - index > Invalid: A Parse::NodeId in the current IR.
  445. // - index < Invalid: An ImportIRInstId.
  446. // - index == Invalid: Can be used for either.
  447. struct LocId : public IdBase, public Printable<LocId> {
  448. // An explicitly invalid ID.
  449. static const LocId Invalid;
  450. using IdBase::IdBase;
  451. // NOLINTNEXTLINE(google-explicit-constructor)
  452. constexpr LocId(Parse::InvalidNodeId /*invalid*/) : IdBase(InvalidIndex) {}
  453. // NOLINTNEXTLINE(google-explicit-constructor)
  454. constexpr LocId(Parse::NodeId node_id) : IdBase(node_id.index) {
  455. CARBON_CHECK(node_id.is_valid() == is_valid());
  456. }
  457. // NOLINTNEXTLINE(google-explicit-constructor)
  458. constexpr LocId(ImportIRInstId inst_id)
  459. : IdBase(InvalidIndex + ImportIRInstId::InvalidIndex - inst_id.index) {
  460. CARBON_CHECK(inst_id.is_valid() == is_valid());
  461. }
  462. auto is_node_id() const -> bool { return index > InvalidIndex; }
  463. auto is_import_ir_inst_id() const -> bool { return index < InvalidIndex; }
  464. // This is allowed to return an invalid NodeId, but should never be used for a
  465. // valid InstId.
  466. auto node_id() const -> Parse::NodeId {
  467. CARBON_CHECK(is_node_id() || !is_valid());
  468. return Parse::NodeId(index);
  469. }
  470. // This is allowed to return an invalid InstId, but should never be used for a
  471. // valid NodeId.
  472. auto import_ir_inst_id() const -> ImportIRInstId {
  473. CARBON_CHECK(is_import_ir_inst_id() || !is_valid());
  474. return ImportIRInstId(InvalidIndex + ImportIRInstId::InvalidIndex - index);
  475. }
  476. auto Print(llvm::raw_ostream& out) const -> void {
  477. out << "loc_";
  478. if (is_node_id() || !is_valid()) {
  479. out << node_id();
  480. } else {
  481. out << import_ir_inst_id();
  482. }
  483. }
  484. };
  485. constexpr LocId LocId::Invalid = LocId(Parse::NodeId::Invalid);
  486. } // namespace Carbon::SemIR
  487. // Support use of Id types as DenseMap/DenseSet keys.
  488. template <>
  489. struct llvm::DenseMapInfo<Carbon::SemIR::ConstantId>
  490. : public Carbon::IndexMapInfo<Carbon::SemIR::ConstantId> {};
  491. template <>
  492. struct llvm::DenseMapInfo<Carbon::SemIR::InstBlockId>
  493. : public Carbon::IndexMapInfo<Carbon::SemIR::InstBlockId> {};
  494. template <>
  495. struct llvm::DenseMapInfo<Carbon::SemIR::InstId>
  496. : public Carbon::IndexMapInfo<Carbon::SemIR::InstId> {};
  497. template <>
  498. struct llvm::DenseMapInfo<Carbon::SemIR::NameId>
  499. : public Carbon::IndexMapInfo<Carbon::SemIR::NameId> {};
  500. template <>
  501. struct llvm::DenseMapInfo<Carbon::SemIR::NameScopeId>
  502. : public Carbon::IndexMapInfo<Carbon::SemIR::NameScopeId> {};
  503. template <>
  504. struct llvm::DenseMapInfo<Carbon::SemIR::TypeId>
  505. : public Carbon::IndexMapInfo<Carbon::SemIR::TypeId> {};
  506. #endif // CARBON_TOOLCHAIN_SEM_IR_IDS_H_