Here is a sample

https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_1/lib/CodeGen/PrologEpilogInserter.cpp


This may also help ..

https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/LLVM/Design#LLVMCodeGeneration

section on global registers but looks like they tend have a custom calling
convention.

Ben



> Has anyone that has been following the discussion figured out what
> we're supposed to do about caller-saved registers?  Since they aren't
> llvm registers, I can't figure out how I'm supposed to know where they
> end up on the stack across a function call.
>
> --
> William Leslie
>
>
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to