Displaying 20 results from an estimated 32 matches for "langimpl7".
Did you mean:
langimpl4
2019 Aug 29
3
404s within LLVM documentation
...all?
I ran a web crawler to find each of the dead links (this may not be
exhaustive), and they are as follows:
https://llvm.org/docs/TestSuiteMakefileGuide
https://llvm.org/docs/doxygen/structLICM.html
https://llvm.org/docs/tutorial/LangImpl5.html#for-loop-expression
https://llvm.org/docs/tutorial/LangImpl7.html#user-defined-local-variables
http://llvm.org/docs/lnt/modindex.html
https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/LangImpl6.html#user-defined-unary-operators
https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/LangImpl5.html#for-loop-expression
https://llvm.org/docs/tutorial/MyFirs...
2012 Mar 29
2
[LLVMdev] Alloca instructions in NON-entry block?
The Kaleidoscope example here:
http://llvm.org/docs/tutorial/LangImpl7.html#adjustments
defines a CreateEntryBlockAlloca() helper function that "ensures that the allocas are created in the entry block of the function."
It's kid of implied, but I thought I'd ask explicitly: *must* alloca instructions be created in the entry block of a function?
- P...
2019 Aug 29
2
404s within LLVM documentation
...to find each of the dead links (this may not be
> exhaustive), and they are as follows:
> https://llvm.org/docs/TestSuiteMakefileGuide
> https://llvm.org/docs/doxygen/structLICM.html
> https://llvm.org/docs/tutorial/LangImpl5.html#for-loop-expression
> https://llvm.org/docs/tutorial/LangImpl7.html#user-defined-local-variables
> http://llvm.org/docs/lnt/modindex.html
>
> https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/LangImpl6.html#user-defined-unary-operators
>
> https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/LangImpl5.html#for-loop-expression
>
> ht...
2012 Oct 17
2
[LLVMdev] a bug in Kaleidoscope code
hi,
with LLVM 3.1, i am trying to compile toy.cpp from
http://llvm.org/docs/tutorial/LangImpl7.html#code.
i got the following error:
$ clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit
native` -O3 -o toy
toy.cpp:4:10: fatal error: 'llvm/IRBuilder.h' file not found
#include "llvm/IRBuilder.h"
i fixed this by modifying the broken line to:
#include &quo...
2010 Jul 14
1
[LLVMdev] Installing the Library
Okay, so I am on OSX, I am trying to install the LLVM library. Trying to
compile their simple example (http://llvm.org/docs/tutorial/LangImpl7.html)
I keep on getting a host of errors, the source of which is its not finding
any of the included files (
#include "llvm/DerivedTypes.h"
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/LLVMContext.h"...
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
2011 Apr 20
0
[LLVMdev] translation to the LLVM IR
...? 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 things from the current LLVM code.
See http://llvm.org/docs/tutorial/LangImpl7.html#memory .
-Eli
2012 Mar 29
0
[LLVMdev] Alloca instructions in NON-entry block?
On 3/29/12 11:32 AM, Paul J. Lucas wrote:
> The Kaleidoscope example here:
>
> http://llvm.org/docs/tutorial/LangImpl7.html#adjustments
>
> defines a CreateEntryBlockAlloca() helper function that "ensures that the allocas are created in the entry block of the function."
>
> It's kid of implied, but I thought I'd ask explicitly: *must* alloca instructions be created in the entry block o...
2008 Jul 02
0
[LLVMdev] Problem while using mem2reg Optimization
...ass is used for SSA construction
> and basically removed alloca of the corresponding pointers are just used in
> load/stores.
> So, is there any restriction that all the alloca should be put in first
> basic block?
Yes, there is exactly such a restriction;
http://llvm.org/docs/tutorial/LangImpl7.html has a good description of
using mem2reg for SSA construction.
-Eli
2008 Jul 02
2
[LLVMdev] Problem while using mem2reg Optimization
Hi,
I am using various LLVM optimization passes and I noticed a strange
behaviour in Mem2Reg Optimization. These pass is used for SSA construction
and basically removed alloca of the corresponding pointers are just used in
load/stores.
I tried the following .ll file
*define i32 @test(i32 %y,i32 %z) {
entry:
%X = alloca i32 ; type of %X is i32*.
%X.0 = add i32 %y ,%z
2009 Jun 28
0
[LLVMdev] Several basic questions about Builder
...ing the Builder interface how does one create the equivalent of stack frames and access variables in the current stack frame or perhaps in the static enclosing scope (assuming functions can be nested)?
To create stack variables, you can use the alloca instruction; see
http://llvm.org/docs/tutorial/LangImpl7.html#memory .
LLVM doesn't directly support nested functions; you'll have to lower
them yourself. For example, try something like the following in the
LLVM demo page (http://llvm.org/demo/index.cgi) with optimization off:
int main(int argc, char **argv) {
void a(int x) { if (x == 10) re...
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
2011 Apr 23
2
[LLVMdev] copy instructions
...%y, %z
> %1 = mul %0, %y
> %2 = call foo(%0)
> %3 = add %1, %2
>
>
> Is there a more obvious approach to avoiding "copy instructions"?
The recommended approach to generating LLVM IR is simply not to try to
generate code in SSA form; see
http://llvm.org/docs/tutorial/LangImpl7.html#memory .
-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110423/f74713b7/attachment.html>
2011 Apr 23
0
[LLVMdev] copy instructions
...%y, %z
> %1 = mul %0, %y
> %2 = call foo(%0)
> %3 = add %1, %2
>
>
> Is there a more obvious approach to avoiding "copy instructions"?
The recommended approach to generating LLVM IR is simply not to try to
generate code in SSA form; see
http://llvm.org/docs/tutorial/LangImpl7.html#memory .
-Eli
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
2011 Apr 23
0
[LLVMdev] copy instructions
... %2 = call foo(%0)
>> %3 = add %1, %2
>>
>>
>> Is there a more obvious approach to avoiding "copy instructions"?
>
> The recommended approach to generating LLVM IR is simply not to try to
> generate code in SSA form; see
> http://llvm.org/docs/tutorial/LangImpl7.html#memory .
>
> -Eli
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
2011 Apr 22
3
[LLVMdev] copy instructions
This is a simple SSA code generation 101 question.
If I follow the IR code generation techniques in the Dragon book the
statement
x = y + z
would translate into something like this in SSA/LLVM
%0 = add %y, %z
%x = %0
Obviously "copy instructions" like %foo = %bar are senseless in SSA
since %foo and %bar are immutably fixed to the same value and there
is no need for two aliases
2011 Jun 14
0
[LLVMdev] Avoiding Constant Folding
...%returnValue
> Broken module found, compilation aborted!
>
> >From the code I can see all the operands are i1 type, so the 'or'
> instructions should be valid. Could some one give me some clues how to fix
> this problem?
Maybe take a look at http://llvm.org/docs/tutorial/LangImpl7.html ?
The simplest way to avoid "Instruction does not dominate all uses!"
errors is to avoid having values defined in a different block from the
use.
-Eli
2013 Jul 05
1
[LLVMdev] Enabling vectorization with LLVM 3.3 for a DSL emitting LLVM IR
Le 5 juil. 2013 à 17:48, Arnold Schwaighofer <aschwaighofer at apple.com> a écrit :
>
> On Jul 5, 2013, at 10:43 AM, Stéphane Letz <letz at grame.fr> wrote
>>
>> 1) "entry" block is the first block of the function right?
>
> Yes.
OK
>
>>
>> 2) do you mean *all* "alloca" in a function always have to be in the fist entry
2007 Nov 13
0
[LLVMdev] 'Implementing a language with LLVM' tutorial
...-
A non-text attachment was scrubbed...
Name: LangImpl6.diff
Type: text/x-patch
Size: 9035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071113/88e66930/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LangImpl7.diff
Type: text/x-patch
Size: 8181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071113/88e66930/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LangImpl8.diff
Type: text/x-patch
Size: 7479 bytes...