handle_call.cpp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  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. #include <algorithm>
  5. #include <vector>
  6. #include "llvm/IR/Type.h"
  7. #include "llvm/IR/Value.h"
  8. #include "toolchain/lower/function_context.h"
  9. #include "toolchain/sem_ir/builtin_function_kind.h"
  10. #include "toolchain/sem_ir/ids.h"
  11. #include "toolchain/sem_ir/typed_insts.h"
  12. namespace Carbon::Lower {
  13. // Get the predicate to use for an `icmp` instruction generated for the
  14. // specified builtin.
  15. static auto GetBuiltinICmpPredicate(SemIR::BuiltinFunctionKind builtin_kind,
  16. bool is_signed)
  17. -> llvm::CmpInst::Predicate {
  18. switch (builtin_kind) {
  19. case SemIR::BuiltinFunctionKind::IntEq:
  20. case SemIR::BuiltinFunctionKind::BoolEq:
  21. return llvm::CmpInst::ICMP_EQ;
  22. case SemIR::BuiltinFunctionKind::IntNeq:
  23. case SemIR::BuiltinFunctionKind::BoolNeq:
  24. return llvm::CmpInst::ICMP_NE;
  25. case SemIR::BuiltinFunctionKind::IntLess:
  26. return is_signed ? llvm::CmpInst::ICMP_SLT : llvm::CmpInst::ICMP_ULT;
  27. case SemIR::BuiltinFunctionKind::IntLessEq:
  28. return is_signed ? llvm::CmpInst::ICMP_SLE : llvm::CmpInst::ICMP_ULE;
  29. case SemIR::BuiltinFunctionKind::IntGreater:
  30. return is_signed ? llvm::CmpInst::ICMP_SGT : llvm::CmpInst::ICMP_UGT;
  31. case SemIR::BuiltinFunctionKind::IntGreaterEq:
  32. return is_signed ? llvm::CmpInst::ICMP_SGE : llvm::CmpInst::ICMP_UGE;
  33. default:
  34. CARBON_FATAL("Unexpected builtin kind {0}", builtin_kind);
  35. }
  36. }
  37. // Get the predicate to use for an `fcmp` instruction generated for the
  38. // specified builtin.
  39. static auto GetBuiltinFCmpPredicate(SemIR::BuiltinFunctionKind builtin_kind)
  40. -> llvm::CmpInst::Predicate {
  41. switch (builtin_kind) {
  42. case SemIR::BuiltinFunctionKind::FloatEq:
  43. return llvm::CmpInst::FCMP_OEQ;
  44. case SemIR::BuiltinFunctionKind::FloatNeq:
  45. return llvm::CmpInst::FCMP_ONE;
  46. case SemIR::BuiltinFunctionKind::FloatLess:
  47. return llvm::CmpInst::FCMP_OLT;
  48. case SemIR::BuiltinFunctionKind::FloatLessEq:
  49. return llvm::CmpInst::FCMP_OLE;
  50. case SemIR::BuiltinFunctionKind::FloatGreater:
  51. return llvm::CmpInst::FCMP_OGT;
  52. case SemIR::BuiltinFunctionKind::FloatGreaterEq:
  53. return llvm::CmpInst::FCMP_OGE;
  54. default:
  55. CARBON_FATAL("Unexpected builtin kind {0}", builtin_kind);
  56. }
  57. }
  58. // Returns whether the specified instruction has a signed integer type.
  59. static auto IsSignedInt(FunctionContext& context, SemIR::InstId int_id)
  60. -> bool {
  61. return context.sem_ir().types().IsSignedInt(
  62. context.sem_ir().insts().Get(int_id).type_id());
  63. }
  64. // Creates a zext or sext instruction depending on the signedness of the
  65. // operand.
  66. static auto CreateExt(FunctionContext& context, llvm::Value* value,
  67. llvm::Type* type, bool is_signed,
  68. const llvm::Twine& name = "") -> llvm::Value* {
  69. return is_signed ? context.builder().CreateSExt(value, type, name)
  70. : context.builder().CreateZExt(value, type, name);
  71. }
  72. // Creates a zext, sext, or trunc instruction depending on the signedness of the
  73. // operand.
  74. static auto CreateExtOrTrunc(FunctionContext& context, llvm::Value* value,
  75. llvm::Type* type, bool is_signed,
  76. const llvm::Twine& name = "") -> llvm::Value* {
  77. return is_signed ? context.builder().CreateSExtOrTrunc(value, type, name)
  78. : context.builder().CreateZExtOrTrunc(value, type, name);
  79. }
  80. // Handles a call to a builtin integer bit shift operator.
  81. static auto HandleIntShift(FunctionContext& context, SemIR::InstId inst_id,
  82. llvm::Instruction::BinaryOps bin_op,
  83. SemIR::InstId lhs_id, SemIR::InstId rhs_id) -> void {
  84. llvm::Value* lhs = context.GetValue(lhs_id);
  85. llvm::Value* rhs = context.GetValue(rhs_id);
  86. // Weirdly, LLVM requires the operands of bit shift operators to be of the
  87. // same type. We can always use the width of the LHS, because if the RHS
  88. // doesn't fit in that then the cast is out of range anyway. Zero-extending is
  89. // always fine because it's an error for the RHS to be negative.
  90. //
  91. // TODO: In a development build we should trap if the RHS is signed and
  92. // negative or greater than or equal to the number of bits in the left-hand
  93. // type.
  94. rhs = context.builder().CreateZExtOrTrunc(rhs, lhs->getType(), "rhs");
  95. context.SetLocal(inst_id, context.builder().CreateBinOp(bin_op, lhs, rhs));
  96. }
  97. // Handles a call to a builtin integer comparison operator.
  98. static auto HandleIntComparison(FunctionContext& context, SemIR::InstId inst_id,
  99. SemIR::BuiltinFunctionKind builtin_kind,
  100. SemIR::InstId lhs_id, SemIR::InstId rhs_id)
  101. -> void {
  102. llvm::Value* lhs = context.GetValue(lhs_id);
  103. llvm::Value* rhs = context.GetValue(rhs_id);
  104. const auto* lhs_type = cast<llvm::IntegerType>(lhs->getType());
  105. const auto* rhs_type = cast<llvm::IntegerType>(rhs->getType());
  106. // We perform a signed comparison if either operand is signed.
  107. bool lhs_signed = IsSignedInt(context, lhs_id);
  108. bool rhs_signed = IsSignedInt(context, rhs_id);
  109. bool cmp_signed = lhs_signed || rhs_signed;
  110. // Compute the width for the comparison. This is the smallest width that
  111. // fits both types, after widening them to include a sign bit if
  112. // necessary.
  113. auto width_for_cmp = [&](const llvm::IntegerType* type, bool is_signed) {
  114. unsigned width = type->getBitWidth();
  115. if (!is_signed && cmp_signed) {
  116. // We're performing a signed comparison but this input is unsigned.
  117. // Widen it by at least one bit to provide a sign bit.
  118. ++width;
  119. }
  120. return width;
  121. };
  122. // TODO: This might be an awkward size, such as 33 or 65 bits, for a
  123. // signed/unsigned comparison. Would it be better to round this up to a
  124. // "nicer" bit width?
  125. unsigned cmp_width = std::max(width_for_cmp(lhs_type, lhs_signed),
  126. width_for_cmp(rhs_type, rhs_signed));
  127. auto* cmp_type = llvm::IntegerType::get(context.llvm_context(), cmp_width);
  128. // Widen the operands as needed.
  129. lhs = CreateExt(context, lhs, cmp_type, lhs_signed, "lhs");
  130. rhs = CreateExt(context, rhs, cmp_type, rhs_signed, "rhs");
  131. context.SetLocal(
  132. inst_id,
  133. context.builder().CreateICmp(
  134. GetBuiltinICmpPredicate(builtin_kind, cmp_signed), lhs, rhs));
  135. }
  136. // Handles a call to a builtin function.
  137. static auto HandleBuiltinCall(FunctionContext& context, SemIR::InstId inst_id,
  138. SemIR::BuiltinFunctionKind builtin_kind,
  139. llvm::ArrayRef<SemIR::InstId> arg_ids) -> void {
  140. // TODO: Consider setting this to true in the performance build mode if the
  141. // result type is a signed integer type.
  142. constexpr bool SignedOverflowIsUB = false;
  143. // TODO: Move the instruction names here into InstNamer.
  144. switch (builtin_kind) {
  145. case SemIR::BuiltinFunctionKind::None:
  146. CARBON_FATAL("No callee in function call.");
  147. case SemIR::BuiltinFunctionKind::NoOp:
  148. CARBON_FATAL("NoOp is a constant expression and won't reach this.");
  149. case SemIR::BuiltinFunctionKind::PrintChar: {
  150. auto* i32_type = llvm::IntegerType::getInt32Ty(context.llvm_context());
  151. llvm::Value* arg_value = context.builder().CreateSExtOrTrunc(
  152. context.GetValue(arg_ids[0]), i32_type);
  153. auto putchar = context.llvm_module().getOrInsertFunction(
  154. "putchar", i32_type, i32_type);
  155. auto* result = context.builder().CreateCall(putchar, {arg_value});
  156. context.SetLocal(
  157. inst_id,
  158. context.builder().CreateSExtOrTrunc(
  159. result, context.GetType(
  160. context.sem_ir().insts().Get(inst_id).type_id())));
  161. return;
  162. }
  163. case SemIR::BuiltinFunctionKind::PrintInt: {
  164. auto* i32_type = llvm::IntegerType::getInt32Ty(context.llvm_context());
  165. auto* ptr_type = llvm::PointerType::get(context.llvm_context(), 0);
  166. auto* printf_type = llvm::FunctionType::get(i32_type, {ptr_type},
  167. /*isVarArg=*/true);
  168. llvm::FunctionCallee printf =
  169. context.llvm_module().getOrInsertFunction("printf", printf_type);
  170. llvm::Value* format_string = context.printf_int_format_string();
  171. llvm::Value* arg_value = context.builder().CreateSExtOrTrunc(
  172. context.GetValue(arg_ids[0]), i32_type);
  173. context.SetLocal(inst_id, context.builder().CreateCall(
  174. printf, {format_string, arg_value}));
  175. return;
  176. }
  177. case SemIR::BuiltinFunctionKind::ReadChar: {
  178. auto* i32_type = llvm::IntegerType::getInt32Ty(context.llvm_context());
  179. auto getchar =
  180. context.llvm_module().getOrInsertFunction("getchar", i32_type);
  181. auto* result = context.builder().CreateCall(getchar, {});
  182. context.SetLocal(
  183. inst_id,
  184. context.builder().CreateSExtOrTrunc(
  185. result, context.GetType(
  186. context.sem_ir().insts().Get(inst_id).type_id())));
  187. return;
  188. }
  189. case SemIR::BuiltinFunctionKind::TypeAnd: {
  190. context.SetLocal(inst_id, context.GetTypeAsValue());
  191. return;
  192. }
  193. case SemIR::BuiltinFunctionKind::BoolMakeType:
  194. case SemIR::BuiltinFunctionKind::FloatMakeType:
  195. case SemIR::BuiltinFunctionKind::IntLiteralMakeType:
  196. case SemIR::BuiltinFunctionKind::IntMakeTypeSigned:
  197. case SemIR::BuiltinFunctionKind::IntMakeTypeUnsigned:
  198. context.SetLocal(inst_id, context.GetTypeAsValue());
  199. return;
  200. case SemIR::BuiltinFunctionKind::IntConvert: {
  201. context.SetLocal(
  202. inst_id,
  203. CreateExtOrTrunc(
  204. context, context.GetValue(arg_ids[0]),
  205. context.GetType(context.sem_ir().insts().Get(inst_id).type_id()),
  206. IsSignedInt(context, arg_ids[0])));
  207. return;
  208. }
  209. case SemIR::BuiltinFunctionKind::IntSNegate: {
  210. // Lower `-x` as `0 - x`.
  211. auto* operand = context.GetValue(arg_ids[0]);
  212. context.SetLocal(
  213. inst_id,
  214. context.builder().CreateSub(
  215. llvm::ConstantInt::getNullValue(operand->getType()), operand, "",
  216. /*HasNUW=*/false,
  217. /*HasNSW=*/SignedOverflowIsUB));
  218. return;
  219. }
  220. case SemIR::BuiltinFunctionKind::IntUNegate: {
  221. // Lower `-x` as `0 - x`.
  222. auto* operand = context.GetValue(arg_ids[0]);
  223. context.SetLocal(
  224. inst_id,
  225. context.builder().CreateSub(
  226. llvm::ConstantInt::getNullValue(operand->getType()), operand));
  227. return;
  228. }
  229. case SemIR::BuiltinFunctionKind::IntComplement: {
  230. // Lower `^x` as `-1 ^ x`.
  231. auto* operand = context.GetValue(arg_ids[0]);
  232. context.SetLocal(
  233. inst_id,
  234. context.builder().CreateXor(
  235. llvm::ConstantInt::getSigned(operand->getType(), -1), operand));
  236. return;
  237. }
  238. case SemIR::BuiltinFunctionKind::IntSAdd: {
  239. context.SetLocal(
  240. inst_id, context.builder().CreateAdd(context.GetValue(arg_ids[0]),
  241. context.GetValue(arg_ids[1]), "",
  242. /*HasNUW=*/false,
  243. /*HasNSW=*/SignedOverflowIsUB));
  244. return;
  245. }
  246. case SemIR::BuiltinFunctionKind::IntSSub: {
  247. context.SetLocal(
  248. inst_id, context.builder().CreateSub(context.GetValue(arg_ids[0]),
  249. context.GetValue(arg_ids[1]), "",
  250. /*HasNUW=*/false,
  251. /*HasNSW=*/SignedOverflowIsUB));
  252. return;
  253. }
  254. case SemIR::BuiltinFunctionKind::IntSMul: {
  255. context.SetLocal(
  256. inst_id, context.builder().CreateMul(context.GetValue(arg_ids[0]),
  257. context.GetValue(arg_ids[1]), "",
  258. /*HasNUW=*/false,
  259. /*HasNSW=*/SignedOverflowIsUB));
  260. return;
  261. }
  262. case SemIR::BuiltinFunctionKind::IntSDiv: {
  263. context.SetLocal(
  264. inst_id, context.builder().CreateSDiv(context.GetValue(arg_ids[0]),
  265. context.GetValue(arg_ids[1])));
  266. return;
  267. }
  268. case SemIR::BuiltinFunctionKind::IntSMod: {
  269. context.SetLocal(
  270. inst_id, context.builder().CreateSRem(context.GetValue(arg_ids[0]),
  271. context.GetValue(arg_ids[1])));
  272. return;
  273. }
  274. case SemIR::BuiltinFunctionKind::IntUAdd: {
  275. context.SetLocal(
  276. inst_id, context.builder().CreateAdd(context.GetValue(arg_ids[0]),
  277. context.GetValue(arg_ids[1])));
  278. return;
  279. }
  280. case SemIR::BuiltinFunctionKind::IntUSub: {
  281. context.SetLocal(
  282. inst_id, context.builder().CreateSub(context.GetValue(arg_ids[0]),
  283. context.GetValue(arg_ids[1])));
  284. return;
  285. }
  286. case SemIR::BuiltinFunctionKind::IntUMul: {
  287. context.SetLocal(
  288. inst_id, context.builder().CreateMul(context.GetValue(arg_ids[0]),
  289. context.GetValue(arg_ids[1])));
  290. return;
  291. }
  292. case SemIR::BuiltinFunctionKind::IntUDiv: {
  293. context.SetLocal(
  294. inst_id, context.builder().CreateUDiv(context.GetValue(arg_ids[0]),
  295. context.GetValue(arg_ids[1])));
  296. return;
  297. }
  298. case SemIR::BuiltinFunctionKind::IntUMod: {
  299. context.SetLocal(
  300. inst_id, context.builder().CreateURem(context.GetValue(arg_ids[0]),
  301. context.GetValue(arg_ids[1])));
  302. return;
  303. }
  304. case SemIR::BuiltinFunctionKind::IntAnd: {
  305. context.SetLocal(
  306. inst_id, context.builder().CreateAnd(context.GetValue(arg_ids[0]),
  307. context.GetValue(arg_ids[1])));
  308. return;
  309. }
  310. case SemIR::BuiltinFunctionKind::IntOr: {
  311. context.SetLocal(
  312. inst_id, context.builder().CreateOr(context.GetValue(arg_ids[0]),
  313. context.GetValue(arg_ids[1])));
  314. return;
  315. }
  316. case SemIR::BuiltinFunctionKind::IntXor: {
  317. context.SetLocal(
  318. inst_id, context.builder().CreateXor(context.GetValue(arg_ids[0]),
  319. context.GetValue(arg_ids[1])));
  320. return;
  321. }
  322. case SemIR::BuiltinFunctionKind::IntLeftShift: {
  323. HandleIntShift(context, inst_id, llvm::Instruction::Shl, arg_ids[0],
  324. arg_ids[1]);
  325. return;
  326. }
  327. case SemIR::BuiltinFunctionKind::IntRightShift: {
  328. HandleIntShift(context, inst_id,
  329. IsSignedInt(context, inst_id) ? llvm::Instruction::AShr
  330. : llvm::Instruction::LShr,
  331. arg_ids[0], arg_ids[1]);
  332. return;
  333. }
  334. case SemIR::BuiltinFunctionKind::IntEq:
  335. case SemIR::BuiltinFunctionKind::IntNeq:
  336. case SemIR::BuiltinFunctionKind::IntLess:
  337. case SemIR::BuiltinFunctionKind::IntLessEq:
  338. case SemIR::BuiltinFunctionKind::IntGreater:
  339. case SemIR::BuiltinFunctionKind::IntGreaterEq:
  340. case SemIR::BuiltinFunctionKind::BoolEq:
  341. case SemIR::BuiltinFunctionKind::BoolNeq: {
  342. HandleIntComparison(context, inst_id, builtin_kind, arg_ids[0],
  343. arg_ids[1]);
  344. return;
  345. }
  346. case SemIR::BuiltinFunctionKind::FloatNegate: {
  347. context.SetLocal(
  348. inst_id, context.builder().CreateFNeg(context.GetValue(arg_ids[0])));
  349. return;
  350. }
  351. case SemIR::BuiltinFunctionKind::FloatAdd: {
  352. context.SetLocal(
  353. inst_id, context.builder().CreateFAdd(context.GetValue(arg_ids[0]),
  354. context.GetValue(arg_ids[1])));
  355. return;
  356. }
  357. case SemIR::BuiltinFunctionKind::FloatSub: {
  358. context.SetLocal(
  359. inst_id, context.builder().CreateFSub(context.GetValue(arg_ids[0]),
  360. context.GetValue(arg_ids[1])));
  361. return;
  362. }
  363. case SemIR::BuiltinFunctionKind::FloatMul: {
  364. context.SetLocal(
  365. inst_id, context.builder().CreateFMul(context.GetValue(arg_ids[0]),
  366. context.GetValue(arg_ids[1])));
  367. return;
  368. }
  369. case SemIR::BuiltinFunctionKind::FloatDiv: {
  370. context.SetLocal(
  371. inst_id, context.builder().CreateFDiv(context.GetValue(arg_ids[0]),
  372. context.GetValue(arg_ids[1])));
  373. return;
  374. }
  375. case SemIR::BuiltinFunctionKind::FloatEq:
  376. case SemIR::BuiltinFunctionKind::FloatNeq:
  377. case SemIR::BuiltinFunctionKind::FloatLess:
  378. case SemIR::BuiltinFunctionKind::FloatLessEq:
  379. case SemIR::BuiltinFunctionKind::FloatGreater:
  380. case SemIR::BuiltinFunctionKind::FloatGreaterEq: {
  381. context.SetLocal(inst_id, context.builder().CreateFCmp(
  382. GetBuiltinFCmpPredicate(builtin_kind),
  383. context.GetValue(arg_ids[0]),
  384. context.GetValue(arg_ids[1])));
  385. return;
  386. }
  387. case SemIR::BuiltinFunctionKind::IntConvertChecked: {
  388. // TODO: Check this statically.
  389. CARBON_CHECK(builtin_kind.IsCompTimeOnly(
  390. context.sem_ir(), arg_ids,
  391. context.sem_ir().insts().Get(inst_id).type_id()));
  392. CARBON_FATAL("Missing constant value for call to comptime-only function");
  393. }
  394. }
  395. CARBON_FATAL("Unsupported builtin call.");
  396. }
  397. auto HandleInst(FunctionContext& context, SemIR::InstId inst_id,
  398. SemIR::Call inst) -> void {
  399. llvm::ArrayRef<SemIR::InstId> arg_ids =
  400. context.sem_ir().inst_blocks().Get(inst.args_id);
  401. auto callee_function = SemIR::GetCalleeFunction(
  402. context.sem_ir(), inst.callee_id, context.specific_id());
  403. CARBON_CHECK(callee_function.function_id.has_value());
  404. if (auto builtin_kind = context.sem_ir()
  405. .functions()
  406. .Get(callee_function.function_id)
  407. .builtin_function_kind;
  408. builtin_kind != SemIR::BuiltinFunctionKind::None) {
  409. HandleBuiltinCall(context, inst_id, builtin_kind, arg_ids);
  410. return;
  411. }
  412. std::vector<llvm::Value*> args;
  413. auto inst_type_id = SemIR::GetTypeOfInstInSpecific(
  414. context.sem_ir(), context.specific_id(), inst_id);
  415. if (SemIR::ReturnTypeInfo::ForType(context.sem_ir(), inst_type_id)
  416. .has_return_slot()) {
  417. args.push_back(context.GetValue(arg_ids.back()));
  418. arg_ids = arg_ids.drop_back();
  419. }
  420. for (auto arg_id : arg_ids) {
  421. auto arg_type_id = context.sem_ir().insts().Get(arg_id).type_id();
  422. if (SemIR::ValueRepr::ForType(context.sem_ir(), arg_type_id).kind !=
  423. SemIR::ValueRepr::None) {
  424. args.push_back(context.GetValue(arg_id));
  425. }
  426. }
  427. llvm::CallInst* call;
  428. const auto& function =
  429. context.sem_ir().functions().Get(callee_function.function_id);
  430. if (function.virtual_index != -1) {
  431. CARBON_CHECK(!args.empty(),
  432. "Virtual functions must have at least one parameter");
  433. auto* ptr_type =
  434. llvm::PointerType::get(context.llvm_context(), /*AddressSpace=*/0);
  435. // The vtable pointer is always at the start of the object in the Carbon
  436. // ABI, so a pointer to the object is a pointer to the vtable pointer - load
  437. // that to get a pointer to the vtable.
  438. auto* vtable =
  439. context.builder().CreateLoad(ptr_type, args.front(), "vtable");
  440. auto* i32_type = llvm::IntegerType::getInt32Ty(context.llvm_context());
  441. auto function_type_info = context.BuildFunctionTypeInfo(
  442. function, callee_function.resolved_specific_id);
  443. call = context.builder().CreateCall(
  444. function_type_info.type,
  445. context.builder().CreateCall(
  446. llvm::Intrinsic::getOrInsertDeclaration(
  447. &context.llvm_module(), llvm::Intrinsic::load_relative,
  448. {i32_type}),
  449. {vtable,
  450. llvm::ConstantInt::get(
  451. i32_type, static_cast<uint64_t>(function.virtual_index) * 4)}),
  452. args);
  453. } else {
  454. call = context.builder().CreateCall(
  455. context.GetOrCreateFunction(callee_function.function_id,
  456. callee_function.resolved_specific_id),
  457. args);
  458. }
  459. context.SetLocal(inst_id, call);
  460. }
  461. } // namespace Carbon::Lower