lyh552506 / miniC-compiler

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

[WIP] complete phi elimination #37

Closed RicoAfoat closed 4 months ago

RicoAfoat commented 4 months ago

Some interfaces need to be implemented. The structure is set.

RicoAfoat commented 4 months ago

Every RISCVMOperand will have an enum type which indicates their type

cases for imm and vreg are simple

riscv_ptr : a pointer to objects, frame or global riscv_none : none for function and basicblock (should they also has a type of ptr as we can find their address?)