[LLVMdev] Global register variables/custom calling conventions

Anton Korobeynikov anton at korobeynikov.info
Sat Sep 19 23:45:40 PDT 2009


> 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)
I don't see the difference so far. Could you please explain?

> and I've got to the point where I have to deal with Qemu's use of global register variables.
Why? The whole point of llvm-qemu project was that you don't need to
go with all that hacks and workarounds - you just emit LLVM IR and let
the codegenerator deal with register allocation, etc. For example, you
have much available registers on x86-64 (and even on x86-32!).

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the llvm-dev mailing list