gallivm: split out the flow control ir to a common file.