Closed fifield closed 2 weeks ago
This is some cleanup I did while trying to understand the state of -air-dma-to-channel pass:
-air-dma-to-channel
updateUsesInScfLoop
IRMapping
replaceAsyncOpWithWaitAllAndClone
replaceAsyncOpWithWaitAll
for() { if (cond) { <do all the work> } }
LoopLikeOpInterface
cloneScfLoopUsingRemap
This is some cleanup I did while trying to understand the state of
-air-dma-to-channel
pass:updateUsesInScfLoop
and associated helper functions with more use ofIRMapping
when cloning.replaceAsyncOpWithWaitAllAndClone
->replaceAsyncOpWithWaitAll
, since there is no cloning.for() { if (cond) { <do all the work> } }
code blocks with early exits to reduce indentation.LoopLikeOpInterface
specialization ofcloneScfLoopUsingRemap
to simplify call sites.