Re: Automatic "code-pattern" recognition, in DSP codes

"drizzle" <drizzle76@gmail.com>
11 Jul 2005 06:58:34 -0400

          From comp.compilers

Related articles
Automatic "code-pattern" recognition, in DSP codes Miguel.CasasSanchez@ucd.ie (=?ISO-8859-15?Q?Miguel_Cas=E1s-S=E1nchez?=) (2005-07-05)
Re: Automatic "code-pattern" recognition, in DSP codes jle@ural.owlnet.rice.edu (2005-07-11)
Re: Automatic "code-pattern" recognition, in DSP codes bsheff2@yahoo.com (Bob Sheff) (2005-07-11)
Re: Automatic "code-pattern" recognition, in DSP codes codeworker@free.fr (=?iso-8859-1?q?C=E9dric_LEMAIRE?=) (2005-07-11)
Re: Automatic "code-pattern" recognition, in DSP codes darius@raincode.com (Darius Blasband) (2005-07-11)
Re: Automatic "code-pattern" recognition, in DSP codes drizzle76@gmail.com (drizzle) (2005-07-11)
Re: Automatic "code-pattern" recognition, in DSP codes oliver@first.in-berlin.de (Oliver Bandel) (2005-07-11)
Re: Automatic "code-pattern" recognition, in DSP codes pohjalai@cc.helsinki.fi (A Pietu Pohjalainen) (2005-07-11)
| List of all articles for this month |

From: "drizzle" <drizzle76@gmail.com>
Newsgroups: comp.compilers
Date: 11 Jul 2005 06:58:34 -0400
Organization: http://groups.google.com
References: 05-07-024
Keywords: DSP, analysis
Posted-Date: 11 Jul 2005 06:58:34 EDT

The usual instruction selection is itself a pattern matching like you
are talking abt. I am not sure if any compiler does it, but I would
imagine that it can be trivially accomodated in the present algorithm
itself. It is just a matter of adding the pattern for call fir() to the
library of opcodes. Now the only hindrance might be if the instruction
selection is on a data dependence graph based on a basic block.
        Yet another related work could be those which synthesize some loops
into FPGA. There again you have to detect the loop, find its
characteristics, estimate the hardware and then synthesis. A possible
paper on this is the following -
www.comp.nus.edu.sg/~tulika/fpl03.pdf








Miguel Casás-Sánchez wrote:
> I am researching in compilers and source to source code transformations,
> for Digital Signal Processors, in particular with the Texas Instruments
> Code Composer Studio 2.2 for the 55x family.
>
> I was wondering if somebody has ever heard about something like
> "automatic typical DSP-like kernel recognition", for example, as the
> compiler reads the program and sets up the data and control graphs,
> recognise that
>
> for(i=0, acc = 0; i < N; i++) {
> acc = h[n] * X[N-n];
> }
>
> can be a FIR filter, that may be substituted as a whole by a fir()
> library function call, most optimised.
>
> Can be also understood as pattern-search in the code control/data graphs?


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.