Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Invalid bitcode signature"
2012 Feb 04
0
[LLVMdev] Invalid bitcode signature
On Feb 3, 2012, at 1:47 PM, Fraser Cormack wrote:
>
> I'm trying to link two modules together using the C++ API, one that's a sort
> of library module and one that's being generated from the source language.
>
> If I have something like this:
>
> OwningPtr<MemoryBuffer> owning_ptr;
> if (MemoryBuffer::getFile(StringRef("../hello.bc"),
2007 Jul 13
0
[LLVMdev] llvm-gcc-4-2 development branch is open
Hi Devang,
> llvm-gcc-4-2 development branch is now open for development at
>
> llvm.org/svn/llvm-project/llvm-gcc-4-2
I noticed the following difference between llvm-gcc and llvm-gcc-4-2
in gcc/llvm-linker-hack.cpp, any idea where it came from?
Thanks, Duncan.
@@ -28,6 +28,7 @@
#include "llvm/Bitcode/ReaderWriter.h"
#include "llvm/CodeGen/ScheduleDAG.h"
2007 Jul 13
2
[LLVMdev] llvm-gcc-4-2 development branch is open
On Jul 13, 2007, at 9:28 AM, Duncan Sands wrote:
> Hi Chris,
>
>> This is probably a patch that got checked into llvm-gcc4 after devang
>> started work on 4.2. Please feel free to update 4.2 to the version
>> in
>> 4.0.
>
> no, it doesn't exist in 4.0.
hmm. that can not be true. It was applied by Evan on May 07, 2007 to
unbreak Apple style builds.
-
2007 Jul 14
0
[LLVMdev] llvm-gcc-4-2 development branch is open
Hi Devang,
> >> This is probably a patch that got checked into llvm-gcc4 after devang
> >> started work on 4.2. Please feel free to update 4.2 to the version
> >> in
> >> 4.0.
> >
> > no, it doesn't exist in 4.0.
>
> hmm. that can not be true. It was applied by Evan on May 07, 2007 to
> unbreak Apple style builds.
this difference
2007 Jul 13
2
[LLVMdev] llvm-gcc-4-2 development branch is open
On Fri, 13 Jul 2007, Duncan Sands wrote:
> I noticed the following difference between llvm-gcc and llvm-gcc-4-2
> in gcc/llvm-linker-hack.cpp, any idea where it came from?
This is probably a patch that got checked into llvm-gcc4 after devang
started work on 4.2. Please feel free to update 4.2 to the version in
4.0.
Thanks!
-Chris
> @@ -28,6 +28,7 @@
> #include
2013 Dec 17
0
[LLVMdev] llvmContext::removeModule doesn't remove NamedStructTypes
Hi, LLVM community,
I found an issue in my using scenario. We deliberately parse a bitcode
file twice. It contains a named struct type. eg. %struct.cmd = type {
float, float, float, float, float, i32 }. In the second module->dump,
%struct.cmd becomes %struct.cmd0.
my code is simplified like this.
int main()
{
llvm::LLVMContext &llvmCtx = llvm::getGlobalContext();
string ErrMsg;
2007 Jul 11
12
[LLVMdev] llvm-gcc-4-2 development branch is open
Hi All,
llvm-gcc-4-2 development branch is now open for development at
llvm.org/svn/llvm-project/llvm-gcc-4-2
It is not yet ready, it can not even bootstrap. I welcome LLVM
developers to test and apply fixes!
However, first take a note of ground rules :
1) LLVM developers, use your write access as judiciously as you use it
for LLVM development and follow same check-in procedure.
2)
2014 Sep 01
2
[LLVMdev] Problem linking and JITing code through C++-API
I have a frontend that generates some LLVM bitcode that needs to be linked with other bitcode (its runtime library), which I generate from C++ source using Clang.
If I write the output of my program to disk, link it with llvm-link, and then run it with lli, everything works perfectly. But if I try to perform the linking and running steps in my main program, I get this error during
2014 Sep 02
2
[LLVMdev] Problem linking and JITing code through C++-API
Yes. It appears that a bad reference to DataLayout was passed to MachineJumpTableInfo::getEntrySize. I'm using LLVM as a pre-compiled Ubuntu package for this work, so I can't do much more in GDB without building from source.
Program received signal SIGSEGV, Segmentation fault.
0x00000000007565f0 in llvm::MachineJumpTableInfo::getEntrySize(llvm::DataLayout const&) const ()
(gdb)
2008 Jun 04
1
[LLVMdev] Standard output binary mode on windows
Hello,
On windows, the standard output is not set to binary mode by default so
all '\n' characters are replaced with '\r\n'. This is a pain for any
command using stdout, like "llvm-as < input.ll > out.bc", because out.bc
is then most likely corrupted.
This is an old story, fixed a while ago:
http://llvm.org/bugs/show_bug.cgi?id=787
And here is the thread on
2014 Sep 08
2
[LLVMdev] Problem linking and JITing code through C++-API
Hi Andy,
It looks like you're using LLVM's old JIT, rather than MCJIT? The old JIT
has been removed from the mainline, and is no longer supported. I'd
recommend building your own copy of LLVM from the development branch (as
Reed suggested) where MCJIT is used by default - this may fix your issue.
If you want to stick with the precompiled binaries, then you should change:
#include
2008 Sep 06
2
[LLVMdev] "has different visibility" warnings
Recently I started getting these warnings - thousands of them - and I'm
not sure what I did to cause them or how to solve them:
ld: warning llvm::MemoryBuffer::getBufferStart() const has different
visibility (1) in /usr/local/lib/libLLVMSupport.a(MemoryBuffer.o) and
(2) in /usr/local/lib/libLLVMSupport.a(CommandLine.o)
ld: warning
2008 Sep 06
0
[LLVMdev] "has different visibility" warnings
http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-August/016763.html
On 2008-09-05, at 22:46, Talin wrote:
> Recently I started getting these warnings - thousands of them - and
> I'm
> not sure what I did to cause them or how to solve them:
>
> ld: warning llvm::MemoryBuffer::getBufferStart() const has different
> visibility (1) in
2014 Mar 19
2
[LLVMdev] load bytecode from string for jiting problem
all of:
----
// cout << "lsr: " << lsr << "\n";
llvm::MemoryBuffer* mbjit =
llvm::MemoryBuffer::getMemBufferCopy (sr);
------
string lsr = sr.str();
// cout << "lsr: " << lsr << "\n";
2014 Mar 20
2
[LLVMdev] load bytecode from string for jiting problem
This segfault occuring only under valgrind,
in shell way, and in gdb way i have
Invalid bitcode signature
simple_scev_dynamic_array: /home/willy/apollo/llvm/include/llvm/Support/ErrorOr.h:258: storage_type *llvm::ErrorOr<llvm::Module *>::getStorage() [T = llvm::Module *]: Assertion `!HasError && "Cannot get value when an error exists!"' failed.
Command terminated by
2008 Nov 15
1
[LLVMdev] How to use EE->runFunction for a function with StructRet set?
Hi,
I'm using LLVM 2.4 (but llvm-gcc 2.2) on Ubuntu 8.10 (Intrepid Ibex) for
a small part-time project combining Witty (http://www.webtoolkit.eu) and
the ExecutionEngine in LLVM. (This is my second week with any of these
so I still lack a lot of basic knowledge.)
Sometimes I want to call a function returing a struct (in this case
std::string), thus hasStructRetAttr() is true for the Function
2014 Feb 21
3
[LLVMdev] Status of http://llvm.org/doxygen
Hi,
I found that http://llvm.org/doxygen seems to be out-of-date. The footer
shows that the files are regenerated everyday. I guess that the input
repository for doxygen has not been updated for a while.
For example,
http://llvm.org/doxygen/namespacellvm.html#adeb6bbe8b1bed333ee7608e1939153c0
It says llvm::ParseBitcodeFile() has following prototype:
Module *ParseBitcodeFile(MemoryBuffer
2014 Mar 20
2
[LLVMdev] load bytecode from string for jiting problem
Hello Willy,
Here is the dump from one of my bitcode files:
0000000 42 43 c0 de 21 0c 00 00 25 05 00 00 0b 82 20 00
As expected, 0x42 (= B), 0x43 (= C), xc0 and 0xde are in correct order. In
your case, the first byte is read as 37 (= 0x25). I wonder why? When you
check the bytes yourself, you get expected results. When the same bytes are
read from Stream object, you get a different result (maybe
2014 Mar 19
2
[LLVMdev] load bytecode from string for jiting problem
I mad the change, and still have the problem.
I investigate more the source code of llvm.
First, I change isRawBitcode function to print the content of the
parameter like this:
original:
http://llvm.org/docs/doxygen/html/ReaderWriter_8h_source.html#l00081
inline bool isRawBitcode(const unsigned char *BufPtr,
const unsigned char *BufEnd) {
// These bytes sort
2012 Sep 26
0
[LLVMdev] Error while loading profile information
Hi all,
I am trying to load a profile information (llvmprof.out) which has been
separately created, to get the execution count of each basic block and use
it to estimate the execution count of machine basic blocks for getting how
many times any instruction gets executed, for ARM specifically. The error
on running the code comes as:
clang: PassManager.cpp:601: void