Displaying 20 results from an estimated 200000 matches similar to: "[LLVMdev] new at LLVM"
2019 Oct 24
7
RFC: Adding IR Transformation examples/tutorial code to llvm-project
Hi,
I’d like to propose adding a new example directory (llvm/examples/IRTransforms) as a new home for example code used by various tutorials. After talking to a few people at the Developers meeting, it became clear to me that it would be valuable to have the code examples for various tutorials in-tree to keep them from bit-rotting and make it very easy to build them.
I’d suggest adding new IR
2014 Jun 12
2
[LLVMdev] include's are not being located
Hi Dan,
Thank you for your advice on the build/install.
On Jun 11, 2014, at 7:06 PM, Dan Liew <dan at su-root.co.uk> wrote:
> Well on many Linux distributions LLVM and Clang are installable as
> packages (along with the header files) so for something like the
> Kaleidoscope tutorial it isn't necessary to build LLVM and Clang from
> source. However you are running OSX
2015 Mar 17
2
[LLVMdev] Target-specific defaults for LLVM tools?
What is the preferred method for compiler (frontend) developers to optimize
and generate target machine code from IR?
At one point I found a tutorial that recommended simply dumping the IR to a
file and spawning llc to do the job.
Up until now I have "manually" created a TargetMachine, PassManager, etc.
to generate my object code. The initial version of my code was cribbed from
llc for
2014 Jun 13
6
[LLVMdev] include's are not being located
On Jun 12, 2014, at 4:37 PM, Jonathan Roelofs <jonathan at codesourcery.com> wrote:
>
>
> On 6/12/14, 3:07 PM, Joseph wrote:
>> Hi Dan,
>>
>>
>> So now that the includes are being found building the tutorial results in 74 warnings and 20 errors. Heres a couple examples:
>>
>> In file included from
2014 Jun 11
2
[LLVMdev] include's are not being located
I’m new to llvm so I’m hoping someone can shed some light on this. I am
trying to use the Kaleidoscope tutorial and cannot get past the 3rd part.
All the llvm includes are not in their expected places. Eg…
“llvm/IR/Verifier.h” is actually in “llvm/include/llvm/IR”. I am running
mac osx 10.9.
Here’s what I’ve tried:
1. checkout the svn of llvm, clang & compiler rt
2. created a “build”
2014 Jun 11
2
[LLVMdev] include's are not being located
Hi Dan,
Thank you for you response. As you suspect, I am struggling with the building of LLVM/Clang.
I thought building LLVM/Clang was required in order to build the tutorial and eventually modify for testing/learning. From what you are saying, it sounds like I am mistaken?
In reference to what you mentioned about installing/building and —prefix and my misuse of my build directory:
I am
2012 May 20
1
[LLVMdev] Error While Inserting New Instruction to LLVM IR
Hello;
I wanted to insert two new terminator instructions in LLVM IR. I modified
the necessary files (as mentioned in the tutorial in LLVM site and some
more to meet the new structure of LLVM, (e.g no Lexer.l now, we have
LLLexer.cpp. Again in the tutorial, files like LLVMBitCodes.h,
include/llvm-c/core.h that need to be modified are not mentioned) But I am
getting the error while building
2015 Jul 16
2
[LLVMdev] Adding integer field to all C++ classes in LLVM
Hi,
I want to add an integer field to all C++ classes in LLVM. Where do I look
at in the LLVM source to make the necessary changes? As of now, what I
understand is that I need to make changes in Type.cpp
(llvm/lib/IR/Type.cpp) where I insert an integer field in the ArrayRef
passed to StructType::setBody?
Thanks!
-Mohit.
-------------- next part --------------
An HTML attachment was scrubbed...
2015 Nov 26
4
Creating/Deleting a new instruction from LLVM IR
Hi,
I was trying to create a new *Store* instruction and inserting it to LLVM
IR (.ll) file. I found the following constructor in LLVM Manual:
StoreInst::StoreInst
<http://llvm.org/docs/doxygen/html/classllvm_1_1StoreInst.html#aa2a72f9a51b317f5b4ab8695adf59025>
(Value <http://llvm.org/docs/doxygen/html/classllvm_1_1Value.html> * Val,
Value
2012 Sep 20
2
[LLVMdev] Programmatically converting LLVM IR to native code
I am generating LLVM IR code and I would like to convert this IR code to native code using the LLVM C++ API. This would be very similar to what's done in the Kaleidoscope tutorial, but instead of relying on JIT compilation, I'd like to emit native code -- the same native code that's produced by llc, for instance.
I'm sure this is possible, but I wasn't able to find the
2019 Sep 19
4
LLVM building problem
Dear all,
I'm using a Virtual Machine with Ubuntu 18.04 at VIrtualBox and I'm trying
to build the LLVM project from https://github.com/llvm/llvm-project.git.
This VM has 6 cores (from an intel core i-7 8th gen), 11GB of RAM and 300GB
of storage (from a 1TB HDD) at a laptop, this is the model: MSI GS63
Stealth 8RE.
Then, I'm doing exactly that this tutorial says to build LLVM:
2010 Aug 20
1
[LLVMdev] Seeking Tutorial Based on Generation of LLVM IR and static compilation
I'm writing a compiler (originally targeting x86 asm, but now)
targeting the
LLVM IR. I am seeking some tutorial style information focused on:
1) Hand writing LLVM IR and/or compiler generated TEXT LLVM IR
text source modules by my compiler
2) Purely static compilation and linking of modules written in LLVM IR
(or compiler generated, clearly)
3) In sum, I'm only interested in using
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
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",
2012 Nov 17
2
[LLVMdev] Dynamic optimalization passes in LLVM based compiler
Hi!
I'm new to LLVM but I've read tons of articles, I want to implement my own
compiler and I came across a big problem.
I have several questions, that I cannot answer myself:
1) If I'm writing custom compiler do I have to "hardcode" passes that it
uses (like in Kaleidoscope example:
http://llvm.org/docs/tutorial/LangImpl4.html) or I have to generate LLVM IR
and then use the
2011 Apr 20
2
[LLVMdev] translation to the LLVM IR
Hi all,
I am trying to compile a high-level imperative OOP-like language to
the LLVM IR. Do we have any "generic" way of translating a non-SSA
form to the LLVM IR's SSA? There are lots of LLVM front-ends now. Do
they do such translation individually? or there is some common non-SSA
IR that we can translate to, and can be converted to the LLVM IR
automatically? I did not find such
2012 Nov 17
0
[LLVMdev] Dynamic optimalization passes in LLVM based compiler
On Sat, Nov 17, 2012 at 4:44 AM, Wojciech Daniło
<wojtek.danilo.ml at gmail.com> wrote:
> Hi!
> I'm new to LLVM but I've read tons of articles, I want to implement my own
> compiler and I came across a big problem.
> I have several questions, that I cannot answer myself:
>
> 1) If I'm writing custom compiler do I have to "hardcode" passes that it
>
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 =
2013 Jan 02
0
[LLVMdev] LLVM IR execution in JavaScript
----- Original Message -----
> From: "Sebastian Redl" <sebastian.redl at getdesigned.at>
> To: "Eli Bendersky" <eliben at google.com>
> Cc: "Alon Zakai" <azakai at mozilla.com>, "llvmdev" <llvmdev at cs.uiuc.edu>
> Sent: Wednesday, January 2, 2013 11:24:33 AM
> Subject: Re: [LLVMdev] LLVM IR execution in JavaScript
>
2012 Dec 14
1
[LLVMdev] CGO Tutorial on MCLinker and LLVM 2013 - Call for Participation
Dear LLVM user and developer,
We get a chance to give a tutorial on LLVM and MCLinker. The tutorial will
be co-located with CGO 2013 on Feb. 24 (Sunday morning) in Shenzhen, China.
If you are also interesting in these topics, welcome to join the tutorial!
Here is a website of the tutorial: http://code.google.com/p/mclinker/
We're also looking for additional presenters to share a