Displaying 20 results from an estimated 4000 matches similar to: "[LLVMdev] broken Atomic.cpp on Darwin"
2009 May 24
2
[LLVMdev] broken Atomic.cpp on Darwin
Thanks. I think I am using Apple GCC 4.2.
i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5566)
Should I use something else for LLVM?
- xi
On Sun, May 24, 2009 at 1:20 AM, Owen Anderson <resistor at mac.com> wrote:
>
> On May 23, 2009, at 9:41 PM, Xi Wang wrote:
>
> There is no __sync_synchronize or __sync_val_compare_and_swap on Mac
> OS X. One might use
2009 May 24
0
[LLVMdev] broken Atomic.cpp on Darwin
On May 23, 2009, at 9:41 PM, Xi Wang wrote:
> There is no __sync_synchronize or __sync_val_compare_and_swap on Mac
> OS X. One might use OSMemoryBarrier or OSAtomicCompareAndSwap32
> instead. The patch is attached.
Actually, __sync_synchronize and __sync_val_compare_and_swap DO exist
on Darwin, but only if you use Apple's GCC 4.2 (or later), just as it
is on Linux. We always
2009 May 24
0
[LLVMdev] broken Atomic.cpp on Darwin
No, that should work fine, and is exactly what I use to compile
atomics on Darwin.
--Owen
On May 23, 2009, at 11:02 PM, Xi Wang wrote:
> Thanks. I think I am using Apple GCC 4.2.
>
> i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5566)
>
> Should I use something else for LLVM?
>
> - xi
>
> On Sun, May 24, 2009 at 1:20 AM, Owen Anderson <resistor at
2012 Feb 28
0
[LLVMdev] [patch] atomic functions on darwin
Hi,
Some time in the last few weeks I noticed my cmake build of
svn-trunk on powerpc-darwin8 start to warn about atomics being unavailable
and thus building thread-unsafe. I just looked into it and found an easy
solution, using the atomic functions in <libkern/OSAtomic.h> in
/usr/include. The attached patch does this and also modifies the cmake
and autoconf tests to 'pass'
2009 Jul 01
2
[LLVMdev] build failure on ARM linux
llvm/lib/System/Atomic.cpp contains the call to
__sync_val_compare_and_swap that lowers to the missing
__sync_val_compare_and_swap_4 GCC intrinsic.
The same file contains several other __sync_* calls and all these has
to be implemented if we want to be able to compile llvm on linux/ARM
with GCC versions below < 4.4
xerxes at labbserver:~/llvm$ grep _sync lib/*/*
lib/System/Atomic.cpp:
2009 Jul 01
0
[LLVMdev] build failure on ARM linux
Why is his configure not catching this? It tests for the linkability
of these functions on the target arch, and should be detecting their
absence if that is actually the case.
--Owen
On Jul 1, 2009, at 12:50 AM, Xerxes Rånby wrote:
> llvm/lib/System/Atomic.cpp contains the call to
> __sync_val_compare_and_swap that lowers to the missing
> __sync_val_compare_and_swap_4 GCC
2008 Feb 15
3
[LLVMdev] llvm.atomic.barrier implementation
On Feb 15, 2008, at 2:29 PM, Andrew Lenharth wrote:
> On 2/15/08, Andrew Lenharth <andrewl at lenharth.org> wrote:
>> I'll take a hack at the front end support for
>> __sync_synchronize after this goes in.
>
> This is the gcc side of the patch.
GCC 4.2 compiles this to a no-op on x86:
void foo() {
__sync_synchronize();
}
Are you seeing different behavior?
2008 Feb 15
6
[LLVMdev] llvm.atomic.barrier implementation
Attached is the target independent llvm.atomic.barrier support, as
well as alpha and x86 (sse2) support. This matches Chandler's
definitions, and the LangRef patch will just restore that. Non-sse2
barrier will be needed, I think it is "lock; mov %esp, %esp", but I'm
not sure.
Any objections? I'll take a hack at the front end support for
__sync_synchronize after this
2008 Feb 15
0
[LLVMdev] llvm.atomic.barrier implementation
On 2/15/08, Andrew Lenharth <andrewl at lenharth.org> wrote:
> I'll take a hack at the front end support for
> __sync_synchronize after this goes in.
This is the gcc side of the patch.
Index: gcc/llvm-convert.cpp
===================================================================
--- gcc/llvm-convert.cpp (revision 46956)
+++ gcc/llvm-convert.cpp (working copy)
@@
2012 Jul 15
1
[LLVMdev] Errors reported in config.log on linux
Hi all,
I ran ../llvm/configure CC=g44 CXX=g++44 and the exit code was 0, but
in config.log I found errors (mostly about missing files) and warnings
(mostly about conflicts in builtin functions).
I thought maybe the fact I later get compilation errors when running make
is related to these.
How do I correct these errors? or can they be ignored?
The full list of errors from config.log is
2009 Jun 30
0
[LLVMdev] build failure on ARM linux
Nick Lewycky wrote:
> 2009/6/30 Andrew Haley <aph at redhat.com <mailto:aph at redhat.com>>
>
> Nick Lewycky wrote:
> > I'm seeing this new build failure, starting some time yesterday on
> ARM:
>
> Yes. It's just a matter of defining __sync_val_compare_and_swap_4:
>
>
2009 Jun 19
1
[LLVMdev] /lib/System/Atomic.cpp
Hello,
Could you look at current implementation of
AtomicIncrement/AtomicDecrement?
I think there is a error in version for MSVC.
--
Иван Сорокин mailto:sorokin at rain.ifmo.ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: application/octet-stream
Size: 827 bytes
Desc: not available
URL:
2008 Feb 16
0
[LLVMdev] llvm.atomic.barrier implementation
> GCC 4.2 compiles this to a no-op on x86:
>
> void foo() {
> __sync_synchronize();
> }
>
> Are you seeing different behavior? What am I missing here?
Maybe the processor does a memory barrier when it executes
a call instruction.
Ciao,
Duncan.
2009 Jun 30
3
[LLVMdev] build failure on ARM linux
2009/6/30 Andrew Haley <aph at redhat.com>
> Nick Lewycky wrote:
> > I'm seeing this new build failure, starting some time yesterday on ARM:
> >
> > make[3]: Entering directory `/home/nlewycky/llvm/tools/llvmc/driver'
> > llvm[3]: Linking Debug executable llvmc
> > g++ -DLLVMC_BUILTIN_PLUGIN_1=Base -DLLVMC_BUILTIN_PLUGIN_2=Clang
>
2009 Feb 03
3
[LLVMdev] multithreaded applications
Hi all:
I am working on a project using llvm and we need to deal with multithreaded
applications. I wanted to know if there was a C front end for llvm that
could parse multithreaded applications? I tried llvm-gcc (4.2) and could not
get it to work. Is there an extra parameter that I need to pass or something
?
Thanks a lot for your help.
Regards
--
-- Aparna
Graduate Student
Department
2014 Apr 17
3
[LLVMdev] multithreaded performance disaster with -fprofile-instr-generate (contention on profile counters)
On Apr 17, 2014, at 11:09 AM, Xinliang David Li <xinliangli at gmail.com> wrote:
>
> On Thu, Apr 17, 2014 at 10:58 AM, Duncan P. N. Exon Smith <dexonsmith at apple.com> wrote:
>
> On 2014-Apr-17, at 10:38, Xinliang David Li <xinliangli at gmail.com> wrote:
>
> >
> > Another idea is to use stack local counters per function -- synced up with global
2010 Oct 05
3
[LLVMdev] Multithreaded code generation
Hi
yes, I'm asking for any advice, I want to implement multithreaded code generator in LLVM.
tnx
--- On Tue, 10/5/10, Duncan Sands <baldrick at free.fr> wrote:
From: Duncan Sands <baldrick at free.fr>
Subject: Re: [LLVMdev] Multithreaded code generation
To: llvmdev at cs.uiuc.edu
Date: Tuesday, October 5, 2010, 10:50 AM
Hi Hamed,
> I want to use LLVM to automatically
2013 May 14
2
[LLVMdev] Keeping Clang from changing function calls to IR operations: cmpxchg
I'm working on getting the LLVM/projects/Test-Suite/UnitTest to compile for
a target that I am developing.
There is an example: AtomicOps, that uses calls to:
__sync_fetch_and_add
__sync_val_compare_and_swap
__sync_lock_test_and_set
These get converted into llvm IR operations like:
atomicrmw
cmpxchg
Is there any way to keep these as function calls, as they are easier to map
to the
2002 Jan 17
1
Multithreading inquiry
I noticed that the statically linked ogg/vorbis libraries for Windows are
multithreaded. I want to link them into a non-multithreaded application, so
I'm considering recompiling them to use the non-multithreaded C runtime. Is
this feasible, or do libogg and libvorbis rely on multithreading?
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage:
2010 Oct 05
2
[LLVMdev] Multithreaded code generation
Hi
I want to use LLVM to automatically translate sequential codes to multithreaded codes for execution on multicore processors.
How should I start?
Best Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101004/db9ce7bf/attachment.html>