Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] LLVMdev Digest, Vol 64, Issue 5"
2009 Oct 03
1
[LLVMdev] LLVM-Kaleidoscope tutorial
Good morning everyone,
It seems the LLVM tutorial is not up to date anymore and doesn't
compile as is...
The function makeLLVMModule() function doesn't compile at all. Here is
a fix:
Module *makeLLVMModule()
{
// Caches the global context to share it with new Module() and
IntegerType::get() calls
LLVMContext &context = getGlobalContext();
// Module Construction
2009 Oct 05
0
[LLVMdev] LLVMdev Digest, Vol 64, Issue 5
On Oct 4, 2009, at 12:21 PM, Daniel Wilkerson wrote:
> Where exactly is this mythical Kaleidoscope example? I have llvm
> 2.5 installed.
http://llvm.org/docs/tutorial/
-Chris
2009 Oct 05
1
[LLVMdev] LLVMdev Digest, Vol 64, Issue 5
That's not an example, that's a tutorial, and an incomplete one at
that. However I did find the Kaleidoscope example in the subversion
repository head.
Any clue as to why when we attempt to follow the very simple example
in the llvm-2.5 release docs/tutorial/JITTutorial1.html we construct a
module state that verifies but then when we ask it to emit, we get a
stack overflow from LLVM?
Is
2009 Oct 03
1
[LLVMdev] code generation goes into an infinite loop
We seem to be creating an infinite loop in llvm while trying to
implement the simplest possible code generation. Specifically, we are
trying to emit code for the following program, as it is easily
testable from the command-line:
int main(int argc) { return argc; }
We got our code generator to build and link with llvm. When we run
it, it pauses when running the PrintModulePass and then
2009 Jun 02
0
[LLVMdev] Ubuntu: no .eh_frame_hdr table will be created
Hi,
While building svn using CMake on an Ubuntu 9.04 system (gcc 4.3.3,
binutils 2.19.1, 32-bit kernel and libs):
Linking CXX executable ../../bin/llvm-dis
[ 93%] Built target llvm-dis
Scanning dependencies of target llc
[ 93%] Building CXX object tools/llc/CMakeFiles/llc.dir/llc.cpp.o
Linking CXX executable ../../bin/llc
/usr/bin/ld: error in ../../lib/./LLVMX86AsmPrinter.o(.eh_frame); no
2008 Mar 26
1
[LLVMdev] PATCH: Use size reduction -- wave1
Hi all,
here comes the patch for the first wave of Use class size reduction.
I have split it into 3 files, corresponding to
- header changes
- implementation changes
- applications
This at the moment does not contain the description how the
size of the Use class will be reduced from 16 to 12 bytes,
I am going to send that in a separate patch.
This wave primarily consists of changes that are
2010 Jul 21
1
[LLVMdev] Is there a guide to LLVM's components?
I constructed an LLVM 2.7 VS solution with cmake, but it has 66 projects:
ALL_BUILD, ".\ALL_BUILD.vcproj"
BrainF, "examples\BrainF\BrainF.vcproj"
Fibonacci, "examples\Fibonacci\Fibonacci.vcproj"
FileCheck, "utils\FileCheck\FileCheck.vcproj"
HowToUseJIT,
2009 Jun 17
0
[LLVMdev] Segmentation fault - Kaleidoscope
FWIW, I'm also suddenly experiencing segfaults in code that used to work
a few days ago (I'm using svn). This may be unrelated to the problem
described below, but perhaps it's the same thing.
In my case it seems that creating an ExecutionEngine has changed. I used
to do
Module* Mod = makeLLVMModule(); // basically create a gcd function
verifyModule(*Mod,
2009 Sep 21
3
[LLVMdev] Error when building tutorial example
Hi all,
I'm a new user to LLVM. Not really sure if this is the correct place
to post, since there isn't really any other forums around. Anyway, the
issue I'm encountering is that, I was trying out the first tutorial
(http://llvm.org/docs/tutorial/JITTutorial1.html). I attempted to do
this in another folder that was copied from llvm/projects/sample. I
created a new folder called
2010 Jul 22
2
[LLVMdev] Is there a guide to LLVM's components?
One thing that helps me understand complex software is a dependency graph. I found an LLVM dependency graph at
https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_16/docs/UsingLibraries.html#dependencies
but it's really messy and hard to follow. From that graph I made a cleaner graph by hand (attached)... sorry about the fax-quality scan. But I have some questions about it...
-
2008 Nov 04
2
[LLVMdev] cross compiling using llvm 1.8
Thanks, it helped :-)
I'm now building the sources and apparently my mingw installation does
not support pthread and therefore examples/ParallelJIT.cpp fails:
make[2]: Entering directory
`/c/llvm1.8/generated-llvm/obj/examples/ParallelJIT'
llvm[2]: Compiling ParallelJIT.cpp for Debug build
c:/llvm1.8/llvm/examples/ParallelJIT/ParallelJIT.cpp:20:21: pthread.h:
No such file or
2006 Nov 28
0
[LLVMdev] mingw binary is corrupt
Reid Spencer-2 wrote:
>
>
> Looks to me like you're not configured correctly. Either that or
> llvm-config doesn't know how to construct the objdir directory properly.
> That error message should have a path
> like: /.../Release/lib/libLLVMTransforms.a
>
> To verify, try this command:
>
> llvm-config --obj-root
> llvm-config --libfiles
>
> These
2009 May 13
3
[LLVMdev] MSVC compile error with trunk
Does not seem to be a straight error with LLVM itself, but rather the
tools, linking issues, here are the errors:
Opt:
30> Creating library
R:\SDKs\llvm\trunk_VC8_building\lib\Debug\opt.lib and object
R:\SDKs\llvm\trunk_VC8_building\lib\Debug\opt.exp
30>LLVMScalarOpts.lib(IndVarSimplify.obj) : error LNK2019: unresolved
external symbol "public: bool __thiscall
2010 Aug 10
2
[LLVMdev] Patch to fix BrainF runtime assertion failure
Hi all,
I downloaded LLVM to play with today and found that the BrainF example
compiler fails with an assertion error like so:
examples$ ./BrainF -jit /tmp/test.bf
BrainF: Instructions.cpp:242: void llvm::CallInst::init(llvm::Value*, llvm::Value* const*, unsigned int): Assertion `(NumParams == FTy->getNumParams() || (FTy->isVarArg() && NumParams > FTy->getNumParams()))
2009 Nov 05
3
[LLVMdev] create dummy function
Thank you very much for you help, Renato!
I read through paper you referred and also this document -
http://llvm.org/docs/tutorial/JITTutorial1.html
Following these instructions to create successful function I run into
some problems:
1) llvm::getGlobalContext() does not exists anymore? "llvm/LLVMContext.h" too?
2) creating instance of IRBuilder don't require template (from
tutorial
2009 Jun 17
0
[LLVMdev] Segmentation fault - Kaleidoscope
Hello,
Maybe my version (LLVM 2.5) is incomplete... now get this error:
toy.cpp:11:38: error: llvm/Target/TargetSelect.h: No such file or directory
How can I get this file?
Regards,
Juan Carlos
On Wed, Jun 17, 2009 at 12:51 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Jun 17, 2009, at 9:46 AM, Paul Melis wrote:
>
> > FWIW, I'm also suddenly experiencing
2012 Jun 17
3
[LLVMdev] BlockAddress instruction is copied instead of cloned during module link?
I have a module having the blockaddress instruction.
When I link it into another module and delete the original, blockaddress
disappears and is replaced by inttoptr (i32 1 to i8*).
Please compile and run the attached program to see the demo of this
problem.
Right after linking modules, blockaddress still exists:
@switch.bbs = internal global [3 x i8*] [i8* blockaddress(@my_func,
2009 Jun 04
0
[LLVMdev] LLVM build error under gcc version 4.2.1 (SUSE Linux)
Hi,
I tried to install LLVM under gcc version 4.2.1 (SUSE Linux). And
here's the strange error I got when I tried to build llvm using gmake. Has
anyone else met with similar error under same platform? Thanks a lot.
.....
.....
`.gnu.linkonce.t._ZNK4llvm16DAGTypeLegalizer13getTypeActionENS_3MVTE'
referenced in section
2009 Jun 17
3
[LLVMdev] Segmentation fault - Kaleidoscope
Hello,
Following the tutorial "Kaleidoscope: Adding JIT and Optimizer Support", I
found a Segmentation fault when I try to execute it. I am new in the
neighbourhood, so I don't know what is wrong. Could you help me with that?
I am working with the last version of LLVM (2.5). The code in chapter 2 and
3 works good, but the code in the chapter 4 did not work.
Below are the detail of
2010 Jan 22
2
[LLVMdev] Compiling LLVM under vista with msdev 2008 gives a few errors
Hi,
I just started with LLVM so I'm not sure who's responsible for
portability. Anyways, I found the following problems trying to compile
llvm rev 94074 with the solution generated using cmake 2.8 (including
the clang front end) on 32bit vista:
lib/system
Errno.cpp : had to add "#undef HAVE_STRERROR_R"
raw_ostream.cpp: had to add "#undef HAVE_UNISTD_H"