This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GIMPLE nodes to ASM by using builtins


"Thomas A.M. Bernard" <tbernard@science.uva.nl> writes:

> When you mean scheduling of the instruction, does it mean that the
> register allocation for ASM is not that advanced than it is for a
> builtin ? For instance the use of register classes, for the
> instruction.

Register allocation for an asm uses register classes.  I recommend
that you read the friendly manual.

> I basically would like to translate a gimple node which holds
> information about a feature which is handle as an assembly instruction
> in my target architecture. One gimple node or field maps directly into
> an assembly instruction.

So far I don't see any reason not to use an asm.

Even if you don't use an asm you should do this at the RTL level, not
the GIMPLE level.  There are many examples of target specific builtin
functions.  Look for TARGET_INIT_BUILTINS and TARGET_EXPAND_BUILTIN.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]