search for: scross99

Displaying 7 results from an estimated 7 matches for "scross99".

Did you mean: scross
2015 Jun 28
2
[LLVMdev] llvm-abi: A library for generating ABI-compliant LLVM IR
...cfe-dev since this seems relevant to Clang, particularly the questions at the end.) I've been working on a library to generate LLVM IR that complies with platform ABIs (the current focus is on C but I'm also interested in ABIs for other languages). You can find it here: https://github.com/scross99/llvm-abi To explain further (for those who are unfamiliar), LLVM frontends have to modify function argument types, attributes etc. in order to ensure the backend generates code that satisfies the ABI; this is needed because LLVM's type system can't encode all the necessary information. Thi...
2015 Jun 29
2
[LLVMdev] [cfe-dev] llvm-abi: A library for generating ABI-compliant LLVM IR
...> the questions at the end.) >> >> I've been working on a library to generate LLVM IR that complies with >> platform ABIs (the current focus is on C but I'm also interested in >> ABIs for other languages). >> >> You can find it here: https://github.com/scross99/llvm-abi >> >> To explain further (for those who are unfamiliar), LLVM frontends have >> to modify function argument types, attributes etc. in order to ensure >> the backend generates code that satisfies the ABI; this is needed >> because LLVM's type system can'...
2016 Mar 29
1
C returning struct by value
...for particular functions. If you stay away from passing > structs/unions by value, it becomes a *lot* simpler, though... > > Some people have tried to make libraries for doing the ABI lowering > available in a way that's not tied to clang. Here's one: > <https://github.com/scross99/llvm-abi> (I have no idea how well, or if, it > works). > > I think I've also seen mention of someone constructing the proper classes to > pass to clang to have it emit the C ABI calls from their non-C language, > although I'm not sure where I saw that. There was an inter...
2016 Mar 29
0
C returning struct by value
...actually gets emitted for particular functions. If you stay away from passing structs/unions by value, it becomes a *lot* simpler, though... Some people have tried to make libraries for doing the ABI lowering available in a way that's not tied to clang. Here's one: < https://github.com/scross99/llvm-abi> (I have no idea how well, or if, it works). I think I've also seen mention of someone constructing the proper classes to pass to clang to have it emit the C ABI calls from their non-C language, although I'm not sure where I saw that. Is there any current plan to change the wa...
2016 Mar 28
3
C returning struct by value
Thanks for the explanation. It's good to hear the situation isn't felt to be ideal. The details here are going to be sensitive to the OS + target that I'm compiling for, right? So the effort here will be to understand and get right the calling convention details for each supported target, yes? Is there any current plan to change the way this works, or is it more of a dreamy cleanup
2015 Jun 29
3
[LLVMdev] [cfe-dev] llvm-abi: A library for generating ABI-compliant LLVM IR
...ibrary to generate LLVM IR that complies > > >> with > > >> platform ABIs (the current focus is on C but I'm also interested > > >> in > > >> ABIs for other languages). > > >> > > >> You can find it here: https://github.com/scross99/llvm-abi > > >> > > >> To explain further (for those who are unfamiliar), LLVM frontends > > >> have > > >> to modify function argument types, attributes etc. in order to > > >> ensure > > >> the backend generates code that sat...
2015 Jul 01
2
[LLVMdev] [cfe-dev] llvm-abi: A library for generating ABI-compliant LLVM IR
...> >> with > >> > >> platform ABIs (the current focus is on C but I'm also interested > >> > >> in > >> > >> ABIs for other languages). > >> > >> > >> > >> You can find it here: https://github.com/scross99/llvm-abi > >> > >> > >> > >> To explain further (for those who are unfamiliar), LLVM frontends > >> > >> have > >> > >> to modify function argument types, attributes etc. in order to > >> > >> ensure > >...