[LLVMdev] vliw compatability

Eli Friedman eli.friedman at gmail.com
Wed Mar 17 12:28:37 PDT 2010


On Wed, Mar 17, 2010 at 10:47 AM, Onalenna Junior Makhura
<ojm106 at ecs.soton.ac.uk> wrote:
> hi guys
>
> I need to get llvm to support vliw architecture. Can you please point me
> in the right direction. we have managed to get it to compile into simple
> assemble and now need it to be able to schedule the instructions in
> parrallel.
>
> any help would be appreciated

You'll need to add one or more custom passes to do the appropriate
scheduling.  LLVM doesn't support any VLIW architectures at the
moment, so there isn't any good example to look at; you'll probably
have to experiment a bit to figure out something that works.
llvm/lib/CodeGen/PostRASchedulerList.cpp and
lib/Target/Sparc/DelaySlotFiller.cpp are somewhat similar to what you
need to do.

-Eli



More information about the llvm-dev mailing list