lyh552506 / miniC-compiler

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

RSUW #8

Closed NanQin555 closed 5 months ago

NanQin555 commented 6 months ago

need a function called RSUW means 'replace single use with'

NanQin555 commented 6 months ago

in file backend/gir.hpp, the function has been declared. RSUA (User inst1, int num1, User inst2, int num2); the variable num,for example, num = -1 means we want to replace the value's def, num = i ( i >= 0) means we want to replace the value's uselist[i].