[LLVMdev] How to access llvm Types from the codegen?

Rafael Espindola espindola at google.com
Fri Aug 3 06:28:32 PDT 2007


> I propose that structures that are passed on registers should be slip
> into many DAG level arguments (for now this would be all structs) and
> the DAG should contain copies instead of loads. The nice thing about
> this proposal is that for structures that are passed on the stack, the
> DAG doesn't need to know the size. All that we need to add to add to
> the DAG is a flag so that the code generators know that the struct
> pointer should be computed based on the stack pointer.

Just noticed that we still need the size and the alignment of the
structure so that we determine the stack location of subsequent
arguments. So, any ideas on how to add that information to the DAG?

Cheers,
-- 
Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland

Registered in Dublin, Ireland
Registration Number: 368047



More information about the llvm-dev mailing list