[Beignet] [PATCH 1/3] backend/src/backend: Handle -dump-opt-llvm=[PATH] in clCompileProgram and clBuildProgram OpenCL API

2015-08-18 Thread Manasi Navare
This is a resubmission of the patch with support for LLVM 3.4 Allows the user to request a dump of the LLVM-generated IR to the file specified in [PATH] through clCompileProgram options Signed-off-by: Manasi Navare --- backend/src/backend/program.cpp | 61 +---

Re: [Beignet] [PATCH] fix issue when build against llvm3.4

2015-08-18 Thread Navare, Manasi D
I retested and F_None works good for llvm dump. I will incorporate this change in my previous patch, rebase and resubmit for review. Regards Manasi -Original Message- From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of Navare, Manasi D Sent: Tuesday, August 18, 20

Re: [Beignet] [PATCH] fix issue when build against llvm3.4

2015-08-18 Thread Navare, Manasi D
Hi Yejun, I tried this change on my end. But if we give F_None as the OpenFlags then it is not creating the file specified in the dumpllvmFilename. I am testing agaist llvm 3.5 I am guessing that is happening because if F_NONE is specified it defaults to O_CREAT option but to be able to read th