================ @@ -558,7 +560,107 @@ def genOrderFile(args): return 0 +def bolt_optimize(args): + parser = argparse.ArgumentParser("%prog [options] ") + parser.add_argument("--method") + parser.add_argument("--input") + parser.add_argument("--instrumented-output") + parser.add_argument("--fdata") + parser.add_argument("--perf-training-binary-dir") + parser.add_argument("--readelf") + parser.add_argument("--bolt") + parser.add_argument("--lit") + parser.add_argument("--merge-fdata") + + opts = parser.parse_args(args) + + readelf = opts.readelf + bolt = opts.bolt + lit = opts.lit ---------------- petrhosek wrote:
This is just a nit, but these variables are only used a few times so I'd probably just inline them for simplicity. https://github.com/llvm/llvm-project/pull/119896 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits