Displaying 20 results from an estimated 70257 matches for "llvm".
2008 Apr 09
2
[LLVMdev] Compiling Stacker compiler
Hi, I'm new to LLVM, and I'm trying to get things set up. So far I've
successfully gotten the C and C++ frontends to run, using the
pre-compiled Mac OS X PPC binaries. I've also successfully compiled
the main LLVM package (minus the gcc frontend).
I'm now trying to get the Stacker sample project to co...
2018 Jul 25
2
are the LLD libraries thread safe?
...be allowed to call lld::elf::link in 2 different
threads at the same time?
Follows is an example Valgrind error I ran into when doing the above.
I'll try putting a global resource lock on invoking LLD and see if it
solves the problem.
==5467== Invalid write of size 8
==5467== at 0x525509:
llvm::DenseMapBase<llvm::DenseMap<llvm::CachedHashStringRef, int,
llvm::DenseMapInfo<llvm::CachedHashStringRef>,
llvm::detail::DenseMapPair<llvm::CachedHashStringRef, int> >,
llvm::CachedHashStringRef, int,
llvm::DenseMapInfo<llvm::CachedHashStringRef>,
llvm::detail::DenseMapP...
2018 Jul 25
2
are the LLD libraries thread safe?
...bal state which are manipulated during the
link, so I wouldn't expect it to be thread safe at that level, although it
does attempt to reset that global state at the start of each call to
link(), so it should be callable sequentially.
Regards,
James
On 25 July 2018 at 02:37, Andrew Kelley via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Follow-up -
>
> Putting a global lock on running LLD indeed solved the issue, so I'm
> guessing that the LLD libraries do not in fact support being called from
> multiple threads simultaneously.
>
>
> On Tue, Jul 24, 2018...
2011 May 06
0
[LLVMdev] Question about linking llvm-mc when porting a new backend
Hello all,
I am a LLVM newer who want to add a new backend(EBC) into LLVM. After coping
the related
files from another target and modifying it, I meet a problem when I build
the project. The
error message is as follows:
================================================================
[ 94%] Built target llvm-dis
Linking...
2010 Oct 01
2
[LLVMdev] CMake "sudo make install" & headers
..."
PATTERN "*.inc"
PATTERN ".svn" EXCLUDE
)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/
DESTINATION include
# FILES_MATCHING
PATTERN "*.def"
PATTERN "*.h"
PATTERN "*.gen"
PATTERN "*.inc"
# Exclude include/llvm/CMakeFiles/intrinsics_gen.dir, matched by "*.def"
PATTERN "CMakeFiles" EXCLUDE
PATTERN ".svn" EXCLUDE
)
It seems like there is either a bug with FILES_MATCHING or an issue with the way it is being used.
The results of which can be seen at the end of this mail....
2010 Oct 01
0
[LLVMdev] CMake "sudo make install" & headers
On Thu, Sep 30, 2010 at 3:08 PM, Samuel Williams
<space.ship.traveller at gmail.com> wrote:
> Hi,
>
> I might just be doing something stupid, but when I do
>
> $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release ..
> $ sudo make install
>
> I don't get the expected headers in
> /usr/local/llvm-2.8/include/llvm
>
> It is simply an empty directory.
>
> What am I doing wrong? This is on Mac OS X, CMake 2.8+
What version or CMake are you using...
2020 Apr 16
4
ORC Assertion failure
Hi
On Windows 10 when using a debug build of LLVM 10, I get this assertion failure:
Assertion failed: (KV.second.getFlags() & ~WeakFlags) == (I->second &
~WeakFlags) && "Resolving symbol with incorrect flags", file
C:\work\github\llvm-10.0.0.src\lib\ExecutionEngine\Orc\Core.cpp, line
450
The same failure occurred in...
2010 Sep 30
6
[LLVMdev] CMake "sudo make install" & headers
Hi,
I might just be doing something stupid, but when I do
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release ..
$ sudo make install
I don't get the expected headers in
/usr/local/llvm-2.8/include/llvm
It is simply an empty directory.
What am I doing wrong? This is on Mac OS X, CMake 2.8+
Kind regards,
Samuel
2018 Nov 03
2
llvm bug 36466 fix
Hi
I come across the following exception when I use the llvm-dwarfdump
-debug-info target_binary:
llvm-dwarfdump: /home/linux/llvm-7/llvm/lib/MC/MCRegisterInfo.cpp:87: int
llvm::MCRegisterInfo::getLLVMRegNum(unsigned int, bool) const: Assertion `I
!= M+Size && I->FromReg == RegNum && "Invalid RegNum"' failed.
Stack dump:
0....
2007 Apr 30
1
[LLVMdev] llvm-gcc build broken
I can't build llvm-gcc from working directories updated an hour
ago.
-Dave
/tools/llvm-tools/i686-pc-linux-gnu/bin/g++ -c -g -DENABLE_CHECKING
-DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -pedantic
-Wno-long-long -Wno-variadic-macros -fno-common -DHAVE_CONFIG_H
-Wno-unused -D...
2010 Feb 07
3
[LLVMdev] Help with Mac OS X 10.6.2 build
Greetings,
I am having trouble getting the Kaleidoscope example to build from
tutorial #3 on Mac OS X 10.6.2. I didn't have too much trouble
getting llvm-2.6 and llvm-gcc-frontend to build. Thanks for the help.
Here are the steps I followed:
Environment variables for build
export LLVMOBJDIR=/opt/llvm
export TARGETOPTIONS='--with-arch=nocona --with-tune=generic'
export TRIPLE=i686-apple-darwin9 // I wonder should it be darwin10
export BU...
2020 May 23
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
Hello,
I am trying to run this basic C++ hello-world code in my iOS app that has
LLVM libraries linked in (the app runs on the actual device - iPad Pro, iOS
13.4.1).
#include <iostream>
int main (int argh, char *argv[]) {
std::cout << "Hello World!" << std::endl;
return 0;
}
So below is the break down of the steps that I do:
First I compile th...
2012 Apr 13
2
[LLVMdev] Make error of latest devel version of llvm and clang
Hi
I am trying to use latest version of llvm and clang, and I have gotten them
by svn.
./configure --enable-shared has run successfully, but make REQUIRES_RTTI=1
returns error:
make[2]: Entering directory
`/home/ryjiao/Downloads/llvm-dev/llvm/tools/llvm-config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/...
2018 Nov 03
2
llvm bug 36466 fix
...ng to access any hardware. I am using clang to analysis the ARM
binaries. The binary is 483.xalancbmk in CPU SPEC2006. When I use the
optimization O0, no crash will occur. The crash occurs when I set
optimization level as O1,O2,O3 and Os.
If I have to recompile and rerun the tests. What version of llvm is
suggested. It would be better if anyone could provide the patch on this
bug.
Regards
Muhui
David Blaikie <dblaikie at gmail.com> 于2018年11月4日周日 上午2:58写道:
>
>
> On Sat, Nov 3, 2018 at 6:51 AM Muhui Jiang via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> H...
2013 Nov 18
2
[LLVMdev] Debug Info Slowing Things Down?!
...s now and shows no sign of quitting. To reproduce, build a Release+Asserts build of clang. Then use that to build a Debug+Asserts version. Include all of the bells and whistles, like the clang-extras and compiler-rt libraries.
The reason I suspect debug info is because of this stack trace:
[morbo:llvm] lldb -p 92084
Attaching to process with:
process attach -p 92084
Process 92084 stopped
Executable module set to "/Users/morbo/llvm/llvm-clean.obj/Release+Asserts/bin/clang".
Architecture set to: x86_64-apple-macosx.
(lldb) bt
* thread #1: tid = 0xbebaf, 0x000000010c5f6dc1 clang`llvm:...
2012 Apr 13
0
[LLVMdev] Make error of latest devel version of llvm and clang
...ar problem while linking the opt. In my case, I was not being able to
create the shared library when enable-shared were passed through the
configure script. I just had to realize that my default compiler was not
being able to generate the binaries, probably because of its version (it
was the stable llvm-gcc 4.1). Therefore, if I had compiled the llvm+clang
from svn without the enable-shared flag, and installed it in some temp
folder (configured in the PATH), I could use this one to configure and
recompile the source with the flag enabled without this linkage error. I
guess you could give it a try....
2013 Nov 18
0
[LLVMdev] Debug Info Slowing Things Down?!
...ign of quitting. To reproduce, build a Release+Asserts build of clang. Then use that to build a Debug+Asserts version. Include all of the bells and whistles, like the clang-extras and compiler-rt libraries.
>
> The reason I suspect debug info is because of this stack trace:
>
> [morbo:llvm] lldb -p 92084
> Attaching to process with:
> process attach -p 92084
> Process 92084 stopped
> Executable module set to "/Users/morbo/llvm/llvm-clean.obj/Release+Asserts/bin/clang".
> Architecture set to: x86_64-apple-macosx.
> (lldb) bt
> * thread #1: tid = 0xbeb...
2012 Jan 22
2
[LLVMdev] CreateGlobalStringPtr giving linker errors
Hi,
I am trying to use some LLVM API in my C++ code, and I end up getting
linker errors. I am working on Apple MacOSX Lion. Using g++ for the
compile. It is the CreateGlobalStringPtr which is throwing the error. This
is LLVM 3.0.
Here's the codeI am trying to use some LLVM API in my C++ code, and I end
up getting linker error...
2013 Nov 18
3
[LLVMdev] Debug Info Slowing Things Down?!
...th ToT.
$ clang++ -g -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -m64 -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -Wno-uninitialized -Wno-missing-field-initializers -c LLVMTidyModule.ii
-bw
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LLVMTidyModule.ii
Type: application/octet-stream
Size: 3330650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131117/0d6a0092/attachment.obj>
--------...
2017 Apr 10
2
clang build failures using Visual Studio
Anyone run into this before?
I'm trying to get a Windows native build using Visual Studio of LLVM,
Clang, and LLD 4.0.0. So far LLVM built successfully, but I'm getting these
cryptic error messages when building Clang:
Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
ClangDiagnosticsEmitter.cpp
c:\program files (x86)\micr...