"Thomas A.M. Bernard" <[EMAIL PROTECTED]> 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

Reply via email to