Lines Matching refs:write

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)
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')
293 ninja.write(textwrap.dedent(f'''\
313 ninja.write(f'build {lib_base_name}: exe {asm_name} {needed}\n')
315 ninja.write(f'build {lib_dso_name(lib)}: dso {asm_name} {needed}\n')
317 ninja.write(f' extra_args = -Wl,--version-script={map_name}\n')
329 bp.write(f'// AUTO-GENERATED BY {os.path.basename(__file__)} -- do not edit\n')
331 bp.write(f'package {{ default_applicable_licenses: ["bionic_benchmarks_license"], }}\n')
332 bp.write(f'cc_defaults {{\n')
333 bp.write(f' name: "{g_benchmark_name}_all_libs",\n')
334 bp.write(f' runtime_libs: [\n')
338 bp.write(f' "{lib_names.name(lib)}",\n')
339 bp.write(f' ],\n')
340 bp.write(f'}}\n')
354 bp.write(f'cc_binary {{\n')
355 bp.write(f' defaults: ["{g_benchmark_name}_binary"],\n')
357 bp.write(f'cc_test_library {{\n')
358 bp.write(f' defaults: ["{g_benchmark_name}_library"],\n')
359 bp.write(f' name: "{lib_base_name}",\n')
360 bp.write(f' srcs: ["{asm_name}"],\n')
361 bp.write(f' shared_libs: [\n')
364 bp.write(f' "{lib_names.name(need)}",\n')
365 bp.write(f' ],\n')
367 bp.write(f' version_script: "{map_name}",\n')
368 bp.write('}\n')