lyh552506 / miniC-compiler

for gpt5.0 group
MIT License
4 stars 2 forks source link

[RFC|FuncInline]impl clone function for funcinline #21

Closed RicoAfoat closed 5 months ago

RicoAfoat commented 5 months ago

Impl clone function for most of values which are used during the function inline process. At the same time add all inst initializer method with only Type pointer. Maybe we can achieve this by adding prototype factory method. Most Insts can be copied easily except phi. At the same time Function& master in BasicBlock is already supported by list data structure, call GetParent() instead. Hope the removal of master will not change this compiler's behavior.