[Beignet] [PATCH 0/7] Print kernel assembly to a file.

Laura Ekstrand laura.d.ekstrand at intel.com
Mon Jul 27 10:25:10 PDT 2015


This series allows user applications to pass a compiler option to
clBuildProgram that dumps the kernel assembly to a file.
This option takes the form "-dump-opt-asm=[PATH]" where [PATH] is the absolute
path to a file that will be overwritten with the output.

This patch series preserves the original functionality of dumping the assembly
to stdout if the environment variable OCL_OUTPUT_ASM is set to 1.

Laura Ekstrand (7):
  backend: Handle (but ignore) -dump-opt-asm=[PATH].
  backend: Move ASM printing to a helper function.
  backend: Convert outputAssembly to C file I/O.
  backend,src: Add ASM file name to gbe_program_new_from_llvm.
  backend: Add ASM file name to GenProgram object.
  backend: Add ASM file name to GenContext object.
  backend: Turn on ASM dump.

 backend/src/backend/gen_context.cpp | 71 +++++++++++++++++++++++--------------
 backend/src/backend/gen_context.hpp |  6 ++++
 backend/src/backend/gen_program.cpp |  4 ++-
 backend/src/backend/gen_program.hpp |  4 ++-
 backend/src/backend/program.cpp     | 18 +++++++---
 backend/src/backend/program.h       |  1 +
 src/cl_program.c                    |  2 +-
 7 files changed, 71 insertions(+), 35 deletions(-)

-- 
2.1.0



More information about the Beignet mailing list