The patchset LGTM.

> -----Original Message-----
> From: Beignet [mailto:[email protected]] On Behalf Of
> Bai Yannan
> Sent: Wednesday, November 18, 2015 4:29 PM
> To: [email protected]
> Cc: Bai, Yannan <[email protected]>
> Subject: [Beignet] [PATCH V3 5/5] GBE/DebugInfo: Print line and column NO.
> with ASM
> 
>     Print line and column numbers with ASM, if OCL_DEBUGINFO is true.
> 
> Signed-off-by: Yannan Bai <[email protected]>
> ---
>  backend/src/backend/gen_context.cpp | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/backend/src/backend/gen_context.cpp
> b/backend/src/backend/gen_context.cpp
> index cd34649..d66d618 100644
> --- a/backend/src/backend/gen_context.cpp
> +++ b/backend/src/backend/gen_context.cpp
> @@ -2922,6 +2922,9 @@ namespace gbe
>      if (OCL_OUTPUT_ASM)
>        outputAssembly(stdout, genKernel);
> 
> +    if (OCL_DEBUGINFO)
> +      outputAssembly(stdout, genKernel);
> +
>      if (this->asmFileName) {
>        FILE *asmDumpStream = fopen(this->asmFileName, "a");
>        if (asmDumpStream) {
> @@ -2953,6 +2956,10 @@ namespace gbe
>            curLabel = (ir::LabelIndex)(curLabel + 1);
>          }
>        }
> +
> +      if (OCL_DEBUGINFO)
> +        fprintf(file, "[%3i,%3i]", p->storedbg[insnID].line, p-
> >storedbg[insnID].col);
> +
>        fprintf(file, "    (%8i)  ", insnID);
>        pCom = (GenCompactInstruction*)&p->store[insnID];
>        if(pCom->bits1.cmpt_control == 1) {
> --
> 1.9.1
> 
> _______________________________________________
> Beignet mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/beignet
_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to