Basic lowering generic function definitions. (#5016)

Resolve the specific type for the callee, to lower the proper specific
function called.
This commit is contained in:
Alina Sbirlea
2025-03-04 18:41:29 +00:00
committed by GitHub
parent 92b3e61289
commit 4e21c0c1fc
7 changed files with 71 additions and 21 deletions
+2
View File
@@ -12,10 +12,12 @@ namespace Carbon::Lower {
FunctionContext::FunctionContext(FileContext& file_context,
llvm::Function* function,
SemIR::SpecificId specific_id,
llvm::DISubprogram* di_subprogram,
llvm::raw_ostream* vlog_stream)
: file_context_(&file_context),
function_(function),
specific_id_(specific_id),
builder_(file_context.llvm_context(), llvm::ConstantFolder(),
Inserter(file_context.inst_namer())),
di_subprogram_(di_subprogram),