Wink Saville
2006-Feb-11 05:35 UTC
[LLVMdev] LLVM language atomic and syscall/int instructions
Hello, In reading the language reference manual I don't see any capability to perform atomic operations or issue sys calls and or software interrupts. I see here, http://gcc.gnu.org/ml/gcc/2005-11/msg01031.html, that Anthony asked about atomic operations but I didn't see an answer. Regarding syscall I see some discussions but no explanation of why it wasn't included. Cheers, Wink Saville
Chris Lattner
2006-Feb-11 05:49 UTC
[LLVMdev] LLVM language atomic and syscall/int instructions
On Fri, 10 Feb 2006, Wink Saville wrote:> In reading the language reference manual I don't see any capability to > perform atomic operations or issue sys calls and or software interrupts.There is no reason to include syscalls directly in LLVM: LLVM wouldn't provide any portability over using standard (e.g. unix) system calls, and you can use inline assembly to do non-portable system calls.> I see here, http://gcc.gnu.org/ml/gcc/2005-11/msg01031.html, that Anthony > asked about atomic operations but I didn't see an answer.I would like to see intrinsics for atomic instructions in LLVM. At one point, these were under development, but have apparently not been completed. If you were interested in working on such a thing, following the GCC model for atomic builtins makes sense. Patches welcome, this would be a nice straight-forward beginner project if you (or anyone else) is interested. -Chris -- http://nondot.org/sabre/ http://llvm.org/
Wink Saville
2006-Feb-11 18:46 UTC
[LLVMdev] LLVM language atomic and syscall/int instructions
Chris Lattner wrote:> > I would like to see intrinsics for atomic instructions in LLVM. At > one point, these were under development, but have apparently not been > completed. If you were interested in working on such a thing, > following the GCC model for atomic builtins makes sense. Patches > welcome, this would be a nice straight-forward beginner project if you > (or anyone else) is interested. > > -Chris >I may try to help in the future when I gain some experience. Wink Saville