Lines Matching refs:out

181     with open(out_filename, 'w') as out:
182 out.write(f'// AUTO-GENERATED BY {os.path.basename(__file__)} -- do not edit manually\n')
183 out.write(f'#include "{g_benchmark_name}_asm.h"\n')
184 out.write('.data\n')
185 out.write('.p2align 4\n')
188 out.write('.text\n' 'MAIN\n')
195 out.write('.text\n'
201 out.write('.data\n'
208 out.write('.text\n')
212 if r.is_weak: out.write(f'.weak {sym}\n')
213 out.write(f'CALL({sym})\n')
214 out.write('.text\n')
218 if r.is_weak: out.write(f'.weak {sym}\n')
219 out.write(f'GOT_RELOC({sym})\n')
221 out.write('.data\n')
222 out.write('local_label:\n')
238 out.write(f'.space (__SIZEOF_POINTER__ * {off - cur_off})\n')
240 out.write(text)
246 with open(map_out_filename, 'w') as out:
253 out.write(f'{rot13(ver)} {{\n')
255 out.write(' global:\n')
256 out.write(''.join(f' {x};\n' for x in versions[ver]))
257 out.write(f'}};\n')
283 def make_ninja_benchmark(root: LoadedLibrary, defs: Definitions, cc: str, out: Path) -> None:
290 ninja = open(out / 'build.ninja', 'w')
291 include_path = os.path.relpath(os.path.dirname(__file__) + '/../include', out)
306 asm_path = out / asm_name
307 map_path = out / map_name
321 subprocess.run(['ninja', '-C', str(out), lib_names.name(root)], check=True)
324 def make_soong_benchmark(root: LoadedLibrary, defs: Definitions, out: Path) -> None:
328 bp = open(out / 'Android.bp', 'w')
347 asm_path = out / asm_name
348 map_path = out / map_name
388 out = Path(args.out_dir)
394 if out.exists(): shutil.rmtree(out)
395 os.makedirs(str(out))
398 make_ninja_benchmark(root, defs, args.cc, out)
400 make_soong_benchmark(root, defs, out)