[midend-mem2reg]修改函数参数定义引入argument类,显示为参数创建alloca和store指令

This commit is contained in:
rain2133
2025-07-26 12:30:03 +08:00
parent 04c5c6b44d
commit 2643eb1edd
5 changed files with 73 additions and 36 deletions

View File

@@ -134,7 +134,7 @@ void SysYPrinter::printFunction(Function *function) {
auto entryBlock = function->getEntryBlock();
const auto &args_types = function->getParamTypes();
auto &args = entryBlock->getArguments();
auto &args = function->getArguments();
int i = 0;
for (const auto &args_type : args_types) {