Modifying the IR is efficiently done through the API provided for the Cetus IR. The API provides complete abstraction to the pass writer, and construct specific API help in making the pass writer’s job easier.
More details about modifying the IR will be added to this manual in the near future. We currently suggest that you refer to the IR manipulation information in the Cetus tutorials available at http://cetus.ecn.purdue.edu. Please get in touch with us for further support.