[LLVMdev] Global register variables/custom calling conventions
Andrew Jeffery
andrew at aj.id.au
Sat Sep 19 18:47:40 PDT 2009
Hi all,
I'm implementing an LLVM backend for qemu-arm (by creating an ARM
frontend for LLVM - from what I understand a slightly different approach
than the original llvm-qemu project) and I've got to the point where I
have to deal with Qemu's use of global register variables. From what
I've read LLVM doesn't support GCC style register variables and the
workaround was to implement a custom calling convention to ensure they
weren't clobbered (at least from a caller's point of view)[1]. I haven't
played with the LLVM code base much, just used the interfaces, and so
was wondering if anyone had some pointers on what to look at/how to go
about this?
Cheers,
Andrew
[1]
http://markmail.org/message/ko3rrf5zacoocvg5#query:+page:1+mid:5uygbscyiqmuxqi4+state:results
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090920/ec1016d7/attachment.sig>
More information about the llvm-dev
mailing list