GBE: Enable CFG printer.
authorRuiling Song <ruiling.song@intel.com>
Fri, 11 Apr 2014 06:48:18 +0000 (14:48 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Wed, 16 Apr 2014 02:04:40 +0000 (10:04 +0800)
commit94ee7a3de83c2471a09be83bc860ce3763ce73a2
tree6e38c9f77c48a19fc242695a7ea9d64a82a70402
parent45530f39acc1741156c25520300f8e515ac43c33
GBE: Enable CFG printer.

export OCL_OUTPUT_CFG=1
or export OCL_OUTPUT_CFG_ONLY=1
then it will output .dot file of CFG for the compiled kernels.

The CFG_ONLY means pure cfg without llvm IR.
You can use xdot to view .dot file.

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/llvm/llvm_to_gen.cpp