Pass around a reference to the op list to the various IR functions, instead of transferring ownership.