4 ms·
LLVM Adds Support for ASM Goto with Output Constraints
- khrghkdf 7y agoCan someone link me some "llvm4retards"-ish kind of tutorial? Also which language has best llvm wrapper libraries except cpp/c? would be it possible to do it in c#/go?
- eatonphil 7y agoI've got three posts on targeting LLVM by hand in a compiler basics series that you may find to be a good intro. Here's the first one: http://notes.eatonphil.com/compiler-basics-llvm.html http://notes.eatonphil.com/compiler-basics-llvm.html
- rscho 7y agoOcaml
- CalChris 7y agoRetards? No, but I can give you the next best thing. LLVM for Grad Students. https://www.cs.cornell.edu/~asampson/blog/llvm.html https://www.cs.cornell.edu/~asampson/blog/llvm.html
- khrghkdf 7y agothanks guys! @eatonphil @rscho @CalChris
- ksec 7y ago>Retards? What was the original message? Seems to be flagged.
- patagurbon 7y agoLLVM guide for stupid people essentially
- saagarjha 7y agoI wonder if this helps improve the fidelity of Clang-built Linux.
- pm215 7y agoNo, because (as the commit message notes) gcc does not support output constraints on asm goto, so the kernel can't be using this feature at the moment. (Indeed, nothing can be...) On the other hand, Torvalds has mentioned in the past (https://lkml.org/lkml/2018/2/14/656 https://lkml.org/lkml/2018/2/14/656) that asm-goto with outputs would be nice to have and that if clang supported this he'd like to see it in gcc too...
- pwdisswordfish2 7y agoIt won’t. This is an original feature, absent from GCC. Regular asm goto has been merged a while ago. I’m wondering what the use case is; asm goto by itself is quite an obscure feature already, so I expect this would be doubly so.