search for: 3c3e0558

Displaying 1 result from an estimated 1 matches for "3c3e0558".

Did you mean: 3c2e0588
2017 Oct 22
2
Replace "while" "for" loops with "If-Else"
Hi everyone, I hope to implement a feature to transform an IR with "while" or "for" loops to a new IR with no loop. Instead, I just want to use if-else statements in the new IR to implement the original semantics. I can easily write a transform pass to handle the 1-level loop case, but for nested loops it seems a little harder. Can you show me some hints? Thank you very