Skip to content

Commit d5f6f30

Browse files
[MLGO] Add spaces at the end of lines in multiline string
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.
1 parent 8549b32 commit d5f6f30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/utils/mlgo-utils/mlgo/corpus/extract_ir.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ def main(args):
133133
elif args.input_type == "params":
134134
if not args.obj_base_dir:
135135
logging.info(
136-
"-obj_base_dir is unspecified, assuming current directory."
137-
"If no objects are found, use this option to specify the root"
136+
"-obj_base_dir is unspecified, assuming current directory. "
137+
"If no objects are found, use this option to specify the root "
138138
"directory for the object file paths in the input file."
139139
)
140140
with open(args.input, encoding="utf-8") as f:
@@ -143,9 +143,9 @@ def main(args):
143143
)
144144
elif args.input_type == "directory":
145145
logging.warning(
146-
"Using the directory input is only recommended if the build system"
147-
"your project uses does not support any structured output that"
148-
"ml-compiler-opt understands. If your build system provides a"
146+
"Using the directory input is only recommended if the build system "
147+
"your project uses does not support any structured output that "
148+
"ml-compiler-opt understands. If your build system provides a "
149149
"structured compilation database, use that instead"
150150
)
151151
objs = extract_ir_lib.load_from_directory(args.input, args.output_dir)

0 commit comments

Comments
 (0)