Displaying 20 results from an estimated 300 matches similar to: "[LLVMdev] [patch] atomic functions on darwin"
2011 Jul 18
0
[LLVMdev] [compiler-rt] trunk fails ctest on X86_64 Linux
If this is not the proper place to report this problem, I apologize
and would like to know the proper avenue. Information on compiler-rt
is very scarce, and I have been unable to get block support on Linux
any other way.
I'm running X86_64 Ubuntu Linux, and I checked out the trunk of
compiler-rt and built it according to the instructions on it's page,
and ran the test suite. Three tests
2011 Jan 07
1
[LLVMdev] [PATCH] compiler-rt patch for clean build on Solaris 10 / x86
Hi,
Attached is small patch (based of r122998 of compiler-rt), required for clean builds on Solaris 10 / x86 using clang 2.8.
Please consider it for inclusion.
Cheers,
Joakim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: solaris_stdint.patch
Type: application/octet-stream
Size: 457 bytes
Desc: not available
URL:
2015 Feb 12
0
Re: [PATCH 1/3] macosx: Includes/defines for byteswap operations
On Thursday 12 February 2015 17:28:46 Margaret Lewicka wrote:
> ---
> src/inspect-apps.c | 13 ++++++++++++-
> src/inspect-fs-windows.c | 6 ++++++
> src/journal.c | 5 +++++
> 3 files changed, 23 insertions(+), 1 deletion(-)
>
> diff --git a/src/inspect-apps.c b/src/inspect-apps.c
> index 20cf00a..8fbae9c 100644
> --- a/src/inspect-apps.c
> +++
2009 Dec 07
2
[LLVMdev] Trunk build failure
On the trunk I am getting some errors which are killing the rest of the build:
2>Atomic.cpp(49) : error C2664: 'InterlockedCompareExchange' : cannot
convert parameter 1 from 'volatile llvm::sys::cas_flag *' to 'volatile
LONG *'
2> Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
2>Atomic.cpp(62) :
2015 Feb 12
8
[PATCH 1/3] macosx: Includes/defines for byteswap operations
---
src/inspect-apps.c | 13 ++++++++++++-
src/inspect-fs-windows.c | 6 ++++++
src/journal.c | 5 +++++
3 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/src/inspect-apps.c b/src/inspect-apps.c
index 20cf00a..8fbae9c 100644
--- a/src/inspect-apps.c
+++ b/src/inspect-apps.c
@@ -35,11 +35,22 @@
#include <sys/endian.h>
#endif
-/* be32toh is usually a macro
2016 Apr 16
2
[TSAN] LLVM statistics and pass initialization trigger race detection
Hello,
I trying TSAN on Darwin on LLVM itself (sanitizing multi-threaded ThinLTO link).
However I see two main issues on my debug build:
1) Statistics: the pre/post increment is not safe, it seems to be acknowledge in the code itself:
// FIXME: This function and all those that follow carefully use an
// atomic operation to update the value safely in the presence of
// concurrent
2009 May 24
2
[LLVMdev] broken Atomic.cpp on Darwin
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.
- xi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 1248 bytes
Desc: not available
URL:
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
2020 May 26
2
Emitting aligned nlist_64 structures for Mach-O in MC
I looked into this further. ld64 has a macho_nlist abstraction over the various underlying nlist structures [1]. On x86-64, the P::getP referenced in n_value will resolve to [2], which in turn goes to [3], which calls OSReadLittleInt64. On a little endian machine, OSReadLittleEndian just calls _OSReadInt64 [4], which in turn does a pointer arithmetic and cast and then dereferences the pointer [5].
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
2015 Feb 24
2
[LLVMdev] Removing contention in PassRegistry accesses to speed up compiles
Hi,
We use LLVM libraries to compile C++ code and noticed slow downs when
multiple threads of a process were compiling at once. *perf *indicated that
most of the CPU time was spent in a spin lock, which was being
locked/unlocked from llvm::PassRegistry::getPassInfo().
We read the relevant LLVM code and found out that PassRegistry is a
ManagedStatic and is shared among all threads in case of a
2016 Jan 25
3
Building LLVM 3.7.1 on OS X
Hello,
I haven't found any relevant info in the docs about this. I'm trying to
build LLVM 3.7.1 on OS X but it fails in the configuration phase. Here
are the relevant parts of the output:
$ cmake -DCMAKE_INSTALL_PREFIX=/Volumes/HD2/jenkins/workspace/LLVMDev/label/osxbuild/miniconda/envs/_build -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host -DLLVM_INCLUDE_TESTS=OFF
2016 Feb 25
2
[llvm-3.8-ec3] cmake-2.8.12 and gcc-4.6: Host compiler appears to require libatomic, but cannot find it.
Hi,
when I switch to an unsupported GCC like v4.6.4 to build LLVM v3.8-rc3
with cmake I get the following:
...
-- Looking for __atomic_fetch_add_4 in atomic
-- Looking for __atomic_fetch_add_4 in atomic - not found
CMake Error at cmake/modules/CheckAtomic.cmake:36 (message):
Host compiler appears to require libatomic, but cannot find it.
Call Stack (most recent call first):
2016 May 06
3
build issue in llvm-clang cross tool chain for arm target
Hello All,
I am building llvm-clang cross tool chain for arm target, after successful
build for Linux host now I am now building toolchain for *arm target*.
However, I am getting below error message which seems to be confusing and
not getting any idea how to resolve this issue.
*Command :*
#CC='clang' CXX='clang++' cmake -G Ninja /home/iiita/crossbuild/llvm
2016 Jul 01
2
How to resolve conflicts between sanitizer_common and system headers
Hi Sanitizer Runtime Developers,
We recently ran into a problem building clang because some of the definitions in sanitizer_common conflicted with system definitions and later another system header was trying to use the system definition:
.../usr/include/libkern/OSAtomicDeprecated.h:756:17: error: reference to 'memory_order_relaxed' is ambiguous
__theAmount, memory_order_relaxed) +
2019 Nov 13
2
Compiling libc++ using GNU Arm Embedded Toolchain for arm-cortex-m4
Hello,
lately, I have been thinking about how to resolve the problem with that the
program size increases enormously when including <iostream> when compiling
with libstdc++. In this library, in <iostream> there is a static object
__ioinit initialized like so:
...
// For construction of filebuffers for cout, cin, cerr, clog et. al.
static ios_base::Init __ioinit;
...
This
2016 Jul 01
2
How to resolve conflicts between sanitizer_common and system headers
> On Jul 1, 2016, at 12:10 PM, Dmitry Vyukov <dvyukov at google.com> wrote:
>
> On Fri, Jul 1, 2016 at 8:53 PM, Anna Zaks <ganna at apple.com> wrote:
>> Hi Sanitizer Runtime Developers,
>>
>> We recently ran into a problem building clang because some of the
>> definitions in sanitizer_common conflicted with system definitions and later
>>
2018 May 14
1
Unable to build 'lld' on Mac OS 10.9
Hi All,
I am trying to build the 'lld' linker on Mac OS 10.9, but during the build, I am getting the errors. Following are the steps that I have followed:
1. I have downloaded the ‘llvm-stable’ source code from the following location:
https://github.com/llvm-mirror/llvm/tree/stable
2. Machine details(on which llvm source code isbeing built) are as follows:
$ sw_vers
2009 Apr 26
4
1.6.1: menuselect has problems with x86_64 ??
1.6.1 svn 190575:
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect
CONFIGURE_SILENT="--silent" menuselect
make[1]: Entering directory
`/home/asterisk/rpmbuild/BUILD/asterisk-1.6.1/menuselect'
gcc -m64 -march=native -mtune=native -floop-interchange
-floop-strip-mine -floop-block -c -o