[LLVMdev] [cfe-dev] Modify the LLVM front-end to support EFI C and Add LLVM to EFI Byte Code(EBC) target
Lu Mitnick
king19880326 at gmail.com
Fri Dec 17 06:35:05 PST 2010
Hello Michael and all,
So the issue related can be reduced into the two problem:
1. There is no good representation of EBC int in LLVM IR.
2. clang IRGen may have some serious modification.
I know LLVM IR is extensible. Is it possible to add a new type in(natural
int) to represent EFI int and
integrated into clang IRGen??
thanks
yi-hong
2010/12/17 David Chisnall <theraven at sucs.org>
> On 17 Dec 2010, at 03:15, Michael Spencer wrote:
>
> > As long as EFI C isn't radically different from normal C, I would
> > suggest adding a EBC target to LLVM first. Otherwise you have no way
> > to test the clang modifications.
>
>
> As was stated in the last post on this subject, EFI C has integer types
> that have a size determined at run time. I can't see how this would be
> integrated into the existing IRGen infrastructure in clang without some
> serious modification, nor how you would represent these in LLVM IR. Mapping
> from a language that has variable-sized ints, to a target that has
> variable-sized ints, via an intermediate representation that does not have
> variable-sized ints would be tricky, I suspect.
>
> David
>
> -- Sent from my PDP-11
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101217/68f63a5e/attachment.html>
More information about the llvm-dev
mailing list