search for: jittutorial1

Displaying 20 results from an estimated 25 matches for "jittutorial1".

2009 May 24
3
[LLVMdev] llvm address of
I'm trying to generate the equivalent of this function dynamically in llvm (a la http://llvm.org/docs/tutorial/JITTutorial1.html) but after half a day of searching I still haven't found how to create the equivalent of the & (address of) operator in the llvm API, more exactly how do I obtain the i8* from the i32 below void fn(int x) { another_fn(&x); } thanks for any suggestions Paul -------------- next...
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 it supposed to be possible for me to render out an LLVM datastructure that will verify but not render? That is, is this my bug or an LLVM bug? Daniel On Sun, Oct 4, 2009 at 7:27...
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 paper - IRBuilder<> builder(block))...
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 "tut1" in sample/tools/ folder, and the following Makefile. LEVEL=../.. TOOLNAME=tut1 LINK_COMPONENTS += --cxxflags LINK_COMPONENTS += --ldflags LINK_COMPONENTS += --l...
2009 Nov 15
0
[LLVMdev] create dummy function
What exactly is M in that code you posted? Oleg Knut wrote: > > 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 paper -...
2016 Apr 05
3
Add Call instruction in IR for a non-existing function
Hello everyone, I am trying to add checkpoints to my IR code. In order to do that I need to add this instruction: call void @m5_checkpoint(i64 0, i64 0) to some of the basic blocks in my benchmark. m5_checkpoint is a function defined for checkpointing in another simulator and is not included in my benchmark source code. So I need to create this instruction and I couldn't figure out how to do
2008 Nov 17
0
[LLVMdev] Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' faile
...&& "Value not > in map!"' failed. > > > > Appreciate any help! > > My guess is that you're somehow creating an instruction > without > inserting it into the function. > > Using IRBuilder (some details in > http://llvm.org/docs/tutorial/JITTutorial1.html) makes it > more > difficult to make errors like that. > > -Eli
2009 May 24
0
[LLVMdev] llvm address of
On 2009-05-24 19:42, Paul Martin wrote: > I'm trying to generate the equivalent of this function dynamically in > llvm (a la http://llvm.org/docs/tutorial/JITTutorial1.html) but after > half a day of searching I still haven't found how to create the > equivalent of the & (address of) operator in the llvm API, more > exactly how do I obtain the i8* from the i32 below > > void fn(int x) > { > another_fn(&x); > } >...
2009 Oct 04
4
[LLVMdev] LLVMdev Digest, Vol 64, Issue 5
Where exactly is this mythical Kaleidoscope example? I have llvm 2.5 installed. examples dsw$ ls BrainF Fibonacci Makefile ParallelJIT CMakeLists.txt HowToUseJIT ModuleMaker > Date: Sat, 3 Oct 2009 21:40:44 +0100 > From: Renato Golin <rengolin at systemcall.org> > Subject: Re: [LLVMdev] LLVM-Kaleidoscope tutorial > > 2009/10/3 Remy Demarest <remy.demarest at
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
0
[LLVMdev] LLVMdev Digest, Vol 64, Issue 6
...n(int argc) {return argc;}". If that doesn't work, how can gcc 4.0.1 be working at all? Just trying to figure out what is going on here and how to proceed. Daniel >> 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? > > The most likely reason is that you didn't follow the instructions, and > are using a known-broken GCC: > http://llvm.org/docs/GettingStarted.html#...
2008 Mar 15
0
[LLVMdev] newbie questions about setting up a new project
Joe, Joe Strout wrote: > I've downloaded and built LLVM 2.2, and I'm now trying to get to the > point where I can get through the first tutorial (which seems to > assume that you're already to the point of writing code and linking > against LLVM). I've found the Projects.html doc page [1], which > describes how to set up a project in the LLVM way. But some
2008 Mar 15
1
[LLVMdev] newbie questions about setting up a new project
On Mar 14, 2008, at 10:11 PM, Sam Bishop wrote: > Is the tutorial you're referring to the Projects.html page, or > something different? I was referring to <http://www.llvm.org/docs/tutorial/ JITTutorial1.html>, but laboring under the belief that it would first be a good idea to first get through GettingStarted.html, which recommends putting your stuff under "projects" based on "sample", and led me to Projects.html. I'm still stuck on that whole "projects"...
2009 Nov 05
0
[LLVMdev] create dummy function
2009/11/5 Oleg Knut <oleg77 at gmail.com>: > Hello, > I have a simple question. How to create "dummy" function which will > have no functionality behind (return nothing and do nothing)? > Currently I'm trying to do this: > > llvm::Constant* c = Module.getOrInsertFunction("dummy", > FunctionThatNeedsToBeReplaced.getFunctionType()); >
2009 Oct 03
1
[LLVMdev] code generation goes into an infinite loop
...amples or reading the docs, I suspect that this should be considered to be a bug in the verifier pass: clearly we generated wrong LLVM datastructures somehow and the verifier is not catching it before the emitter falls off a cliff. Please comment. Daniel // modified from: // llvm/docs/tutorial/JITTutorial1.html // make an LLVM module printf("%s:%d make module\n", __FILE__, __LINE__); // Module* Mod = makeLLVMModule(); llvm::Module *mod = new llvm::Module("test"); // make a function object printf("%s:%d make function\n", __FILE__, __LINE__); // Constant* c...
2009 Nov 05
2
[LLVMdev] create dummy function
Hello, I have a simple question. How to create "dummy" function which will have no functionality behind (return nothing and do nothing)? Currently I'm trying to do this: llvm::Constant* c = Module.getOrInsertFunction("dummy", FunctionThatNeedsToBeReplaced.getFunctionType()); llvm::Function* dummy = llvm::cast<llvm::Function>(c); This way I create new function that
2008 Mar 15
2
[LLVMdev] newbie questions about setting up a new project
I've downloaded and built LLVM 2.2, and I'm now trying to get to the point where I can get through the first tutorial (which seems to assume that you're already to the point of writing code and linking against LLVM). I've found the Projects.html doc page [1], which describes how to set up a project in the LLVM way. But some things are still unclear to me. (Please
2020 Mar 16
2
GSoC Opportunity
...sponse! I watched both of the videos, and I seem to have a rough idea now of how each of the different pieces of software maps onto the compilation process. Though I found blogs such as these two: https://jonasdevlieghere.com/understanding-the-clang-ast/, https://releases.llvm.org/2.6/docs/tutorial/JITTutorial1.html to be better for a more in-depth understanding. Anyways, in response to your answers: The latter can even be problematic if you start applying C++ craziness > while the first is pretty much always needed when working in a team project. > Ok, that makes sense as you would want the style...
2020 Mar 17
4
GSoC Opportunity
...the > videos, and I seem to have a rough idea now of how each of the different > pieces of software maps onto the compilation process. Though I found blogs > such as these two: > https://jonasdevlieghere.com/understanding-the-clang-ast/, > https://releases.llvm.org/2.6/docs/tutorial/JITTutorial1.html to be > better for a more in-depth understanding. Anyways, in response to your > answers: > > The latter can even be problematic if you start applying C++ craziness >> while the first is pretty much always needed when working in a team project. >> > Ok, that makes se...
2020 Mar 18
2
GSoC Opportunity
...;>>>> different pieces of software maps onto the compilation process. Though I >>>>>> found blogs such as these two: >>>>>> https://jonasdevlieghere.com/understanding-the-clang-ast/, >>>>>> https://releases.llvm.org/2.6/docs/tutorial/JITTutorial1.html to be >>>>>> better for a more in-depth understanding. Anyways, in response to your >>>>>> answers: >>>>>> >>>>>> The latter can even be problematic if you start applying C++ >>>>>>> craziness while th...