Skip to content

Commit

Permalink
[MLGO] Add spaces at the end of lines in multiline string
Browse files Browse the repository at this point in the history
This patch adds spaces at the end of lines in multiline strings in the
extract_ir script. Without this patch, the warning/info messages will be
printed without spaces between words when there is a line break in the
source which looks/reads weird.
  • Loading branch information
boomanaiden154 committed Sep 9, 2024
1 parent 8549b32 commit d5f6f30
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions llvm/utils/mlgo-utils/mlgo/corpus/extract_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def main(args):
elif args.input_type == "params":
if not args.obj_base_dir:
logging.info(
"-obj_base_dir is unspecified, assuming current directory."
"If no objects are found, use this option to specify the root"
"-obj_base_dir is unspecified, assuming current directory. "
"If no objects are found, use this option to specify the root "
"directory for the object file paths in the input file."
)
with open(args.input, encoding="utf-8") as f:
Expand All @@ -143,9 +143,9 @@ def main(args):
)
elif args.input_type == "directory":
logging.warning(
"Using the directory input is only recommended if the build system"
"your project uses does not support any structured output that"
"ml-compiler-opt understands. If your build system provides a"
"Using the directory input is only recommended if the build system "
"your project uses does not support any structured output that "
"ml-compiler-opt understands. If your build system provides a "
"structured compilation database, use that instead"
)
objs = extract_ir_lib.load_from_directory(args.input, args.output_dir)
Expand Down

0 comments on commit d5f6f30

Please sign in to comment.