Base the implementation on the llvmdo script so that we only have to