[Beignet] [PATCH V3 5/5] GBE/DebugInfo: Print line and column NO. with ASM
Song, Ruiling
ruiling.song at intel.com
Mon Nov 30 21:14:32 PST 2015
The patchset LGTM.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Bai Yannan
> Sent: Wednesday, November 18, 2015 4:29 PM
> To: beignet at lists.freedesktop.org
> Cc: Bai, Yannan <yannan.bai at intel.com>
> 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 <yannan.bai at intel.com>
> ---
> 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
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list