Displaying 20 results from an estimated 300000 matches similar to: "[LLVMdev] help"
2013 Sep 24
3
[LLVMdev] request for tutorial
When I registered for dev conference, there was a field asking what I was
particularly interested in learning. I didn't fill it out then , but it
occurs to me now that I'd really enjoy a tutorial on how to develop a new
back end.
I spent some time recently reviewing existing material (documentation and
code) and not making a lot of progress. Indeed, under some time pressure,
I'm
2009 Dec 20
2
[LLVMdev] help for clang
hello,
i want to rewrite clang using c instead of c++,what's your advice and what should i do first,and i want to know where's the source codes of the files which will be read into the buffer to compiler?
thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2014 Jun 12
3
[LLVMdev] Creating and implementing an analysis group out of tree
Hi Eli,
Thanks for the link! I'm able to compile a standalone pass outside of the
source tree, and I'm obviously ably to compile analysis groups inside the
source tree. However, the problem comes when I try to do what the tutorial
suggests to create an analysis group outside of the source tree.
My understanding is that building out of tree requires different methods to
register the
2012 Nov 06
3
[LLVMdev] Error while linking LLVM files
Hi!
I'm trying to learn LLVM and I want to compile the Kaleidoscope compiler.
according to:
http://llvm.org/docs/tutorial/LangImpl3.html
I'm compiling it with:
clang++ -g -O3 test.cpp `llvm-config --cppflags --ldflags --libs core` -o
toy
and it indeed works.
The problem is that when using eclipse it forces me to divide the
compilation into two steps:
g++ -O0 -g3 -Wall -c
2009 Jun 28
2
[LLVMdev] Several basic questions about Builder
I have been toying around with the LLVM tutorial code and I am trying to deduce what I can from it as a basis for a compiler frontend for a simple language of my own devising (once I understand what I am doing I will probably attempt mapping a more complex language target). I am having some difficulties however understanding how certain things work and I was hoping perhaps someone could help me
2009 Dec 20
1
[LLVMdev] source code for llvm
i don't understand the source code :
static StringMapEntryBase *getTombstoneVal() {
return (StringMapEntryBase*)-1;
} at "include\llvm\adt\stingmaph" at line 116. "(StringMapEntryBase*)-1" is it the cast or something other? why there is a * after class StringMapEntryBase?
thank you ~~
-------------- next part --------------
An HTML attachment was scrubbed...
2012 Aug 02
2
[LLVMdev] Questions about clang options
Hi,
I am quite new to LLVM. I just compiled LLVM and clang on Ubuntu11.10 then
followed the tutorial http://llvm.org/docs/DebuggingJITedCode.html
clang -cc1 -O0 -g -emit-llvm showdebug.c
where showdebug.c contains:
#include<stdio.h>
int main()
{
printf("hello\n");
return 0;
}
But I got
Fatal error: 'stdio.h' file not found.
However,
clang showdebug.c
has no
2012 Aug 02
1
[LLVMdev] Questions about clang options
Dear Zhang,
Compiler ends up invoking cc1 (the backend) anyways. So if you would
like to invoke it by hand, the only thing to know is the right
combination of options. Try to use the compiler verbose option "-v".
It will show you how exactly clang invokes the backend:
> clang -v -c showdebug.c
clang version 3.2 (trunk 156703)
Target: x86_64-unknown-linux-gnu
Thread model: posix
2014 Jun 12
2
[LLVMdev] Creating and implementing an analysis group out of tree
Hello all,
I'm trying to follow the guide http://llvm.org/docs/WritingAnLLVMPass.html
to build an some passes and analysis groups out of tree. However, I'm
having some trouble with crashes when I try to follow the guide.
The first section provides a very useful example of what the whole .cpp
file should look like for the HelloWorld pass. Obviously it's a bit more
complex to write the
2012 Nov 06
0
[LLVMdev] Error while linking LLVM files
On Tue, Nov 6, 2012 at 6:38 AM, Wojciech Daniło
<wojtek.danilo.ml at gmail.com> wrote:
> Hi!
> I'm trying to learn LLVM and I want to compile the Kaleidoscope compiler.
> according to:
> http://llvm.org/docs/tutorial/LangImpl3.html
>
> I'm compiling it with:
> clang++ -g -O3 test.cpp `llvm-config --cppflags --ldflags --libs core` -o
> toy
>
> and it
2014 Oct 21
2
[LLVMdev] Updating Kaleidoscope tutorial
Hi there,
I've been working through the tutorial on using LLVM to implement a small
language (http://llvm.org/docs/tutorial/index.html), and I noticed that the
code in the tutorial is a bit out of sync with LLVM 3.5.
I managed to get the code working, and it appears to even be working
correctly. I'd like to help correct the tutorial so that other people can
also benefit from the pain
2014 Oct 13
2
[LLVMdev] writing llvm ir not in c++
On 10/13/14 11:44 AM, Eli Bendersky wrote:
> On Mon, Oct 13, 2014 at 10:35 AM, Dave Pitsbawn <dpitsbawn at gmail.com> wrote:
>
>> Is it possible to write LLVM IR but not using C++?
>>
>> I'm exceedingly terrible at C++.
>>
>> I was thinking, isn't it possible to write the IR using Java?
>>
>
>
> You can use llvmpy (Python bindings
2016 Jun 02
2
New to LLVM, need some help with JIT
Hi,
I'm a grad student working on a C++11 project and I have no compiler
background. I apologize for asking basic questions here.
Currently I'm looking for ways to optimize my code and as a starting point
I wanted to experiment with loop unrolling and further I might consider
function in-lining . I have been introduced to JIT compiler of LLVM and the
possible application of it in my
2019 Jan 07
2
Kaleidoscope tutorial: extern functions failing
Hi all,
I am new to LLVM and have been working through the Kaleidoscope tutorial.
Everything is working fine so far except for local externs (as opposed to
things like the math functions, which are working). Note that I have seen
this bug with the reference code listing, as well as my own code. link to
code: https://llvm.org/docs/tutorial/LangImpl05.html#full-code-listing
[c34n10 kaleidoscope]
2014 Oct 13
5
[LLVMdev] writing llvm ir not in c++
Is it possible to write LLVM IR but not using C++?
I'm exceedingly terrible at C++.
I was thinking, isn't it possible to write the IR using Java? I effectively
have emit some sort of binary op codes to be passed into llvm right?
The same thing for if I wanted to integrate a GC? Could the interfacing be
done in any other language?
-------------- next part --------------
An HTML
2013 Aug 14
2
[LLVMdev] gerate LLVM IR from an AST output from ANTLR
Hi,
I am a complete newbie to LLVM. I have an ANTLR parser, that outputs an
AST. I want to comvert this AST to a LLVM IR, Can someone point me some
relevant documentation/examples/ etc. on how to go about doing this?
TIA.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130814/919cb805/attachment.html>
2020 Jun 03
2
Fwd: I cannot change value of global variable in LLVM IR using IRBuilder
I don't think it's the same problem as you described. By printing I meant
calling printf function and passing my global variable as one of the
arguments.
My code:
Instruction* InstructionVisitor::incrementGlobalKey(Instruction* I) {
IRBuilder<> Builder(I->getContext());
Builder.SetInsertPoint(I->getNextNode());
GlobalVariable* key =
2008 Jun 09
7
[LLVMdev] regression? Or did I do something wrong again?
I don't know if the toy program in chapter 4 of the tutorial
implementing Kaleidoscope in llvm with C++ is part of your
regression suite, but with the version of llvm I installed
last weekend, it does not compile:
hendrik at lovesong:~/dv/llvm/tut$ g++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
toy.cpp: In member function ‘virtual llvm::Value*
2020 Jun 03
2
Fwd: I cannot change value of global variable in LLVM IR using IRBuilder
Hi Everyone,
I'm quite new to LLVM and I want to update value of global variable in LLVM
IR. I created new global variable in ModulePass:
bool runOnModule(llvm::Module &M) {
IRBuilder<> Builder(M.getContext());
Instruction *I = &*inst_begin(M.getFunction("main"));
Builder.SetInsertPoint(I);
M.getOrInsertGlobal("globalKey",
2009 Aug 02
2
[LLVMdev] Couple newbie questions :|
Hello there!
I'm an absolute newb at LLVM,and I was hoping someone could answer a few of
my questions.
I'm currently working on a game engine. As part of it's design, I need a
virtual machine for scripts. Is LLVM suited for this at all? Such as
registering external functions that can be called from the scripts? And if
this did work, it wouldn't really matter what language the