Hi I would like to insert a op in front of listed op, so I do this
OpBuilder b;
...//Some code
auto ins_point = b.saveInsertionPoint();
b.creater<op1>();
b.restoreInsertionPoint(ins_point);
b.creater<op2>();
What I expect is that op2 is in front of op1, however, it does not work.
The actual situation is more complicated, there can be multiple ops inserted in the middle and in different functions(recursive decent). And one of the specific op need to count the number of ops in between, and set up front of them.
Thus may I ask if it is possible to dealt with??
Thanks a lot!!!