Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] Alloca instructions in NON-entry block?"
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
2019 Aug 29
3
404s within LLVM documentation
Hi all,
I'm currently in the process of updating the Kaleidoscope tutorials (first
and foremost, the ORC/BuildingAJIT ones), and I've noticed a fair few 404s
which are lingering within the current visible documentation. Some of these
don't seem to have linked to existing pages for a while.
I was wondering if there was a way to set up a check in the buildbot to
ensure that
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
2019 Aug 29
2
404s within LLVM documentation
Patrick, how long does the crawl take? I suspect if we fixed internal
documentation links so that they point to local copies of documentation
when building locally it would be quite quick (no actual idea though). That
in turn would probably make it feasible to add to the existing
documentation build bots, I think.
James
On Thu, 29 Aug 2019 at 03:47, Neil Nelson via llvm-dev <
llvm-dev at
2011 Apr 23
2
[LLVMdev] copy instructions
It is my understanding, the alloca memory routines are used
for forcing variables to be allocated on the stack frame -- which
you would want for source level debugging.
When SSA registers are used, LLVM will decide what goes into
registers and what will spill over to the stack frame.
I want the latter.
--w
Wayne O. Cochran
Assistant Professor Computer Science
wcochran at vancouver.wsu.edu
2011 Apr 23
0
[LLVMdev] copy instructions
The mem2reg pass will rewrite allocas and loads and stores to SSA
virtual registers. Essentially it's a transformation from non-SSA to
SSA form. That said, I don't know if you want your students to
implement their own SSA transformation.
Reid
On Sat, Apr 23, 2011 at 1:57 PM, Cochran, Wayne Owen
<wcochran at vancouver.wsu.edu> wrote:
> It is my understanding, the alloca memory
2007 Nov 13
2
[LLVMdev] 'Implementing a language with LLVM' tutorial
On Nov 11, 2007, at 2:41 PM, Kelly Wilson wrote:
> Hey Chris:
>
> Here are the diffs for the next few chapters of the tutorial that I
> have
> edited.
Nice! You are an excellent editor, I'm impressed. I committed these
without any changes here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071112/055566.html
Thank you for the help with this.
> Please
2010 Oct 21
0
[LLVMdev] Re : How to assign a constant to a register?
> If x is a local variable, it will be stored on the stack. So you need an
> alloca for it:
Aha, I remember this in Kaleidoscope tutorial. So, after the alloca %x can
be modified freely (e.g. without adding suffix)?
--
View this message in context: http://old.nabble.com/How-to-assign-a-constant-to-a-register--tp29987387p30016496.html
Sent from the LLVM - Dev mailing list archive at
2007 Nov 13
0
[LLVMdev] 'Implementing a language with LLVM' tutorial
Hi Chris,
Here are some diffs for the final three chapters of the Kaleidoscope
tutorial. The changes are the same sort of changes as previous diffs.
One question though....under the "Memory in LLVM" section of chapter 7
(mutable variables) there is a statement like this:
The mem2reg pass implements the standard "iterated dominator frontier"
algorithm...
Should this read
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
2010 Oct 20
3
[LLVMdev] Re : How to assign a constant to a register?
Hi,
If x is a local variable, it will be stored on the stack. So you need an
alloca for it:
%x = alloca i8 ; <i8*>
Then you can just perform a store:
Store i8* %x, i8 0
Cheers,
James
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of leledumbo
> Sent: 20 October 2010 14:39
> To: llvmdev at
2011 Apr 23
0
[LLVMdev] copy instructions
On Fri, Apr 22, 2011 at 10:40 AM, Wayne Cochran
<wcochran at vancouver.wsu.edu> wrote:
> 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"
2009 Oct 01
3
[LLVMdev] PHI and Allocas
Hi,
I'm incrementing my toy compiler to account for variable mutations
around if/else blocks.
Reading the Kaleidoscope tutorial, I've learnt that I can substitute
the PHI node creation by allocas and retrieving the value later, if
needed. The Kaleidoscope example seems to account for one value only,
the result of:
Value *ThenV = Then->Codegen();
(...)
Value *ElseV =
2008 Aug 13
6
[LLVMdev] Alloca Outside of Entry Block
Dear All,
Is it legal to have an alloca in a basic block other than a function's
entry block?
-- John T.
2008 Jul 02
0
[LLVMdev] Problem while using mem2reg Optimization
On Wed, Jul 2, 2008 at 10:07 AM, kapil anand <kapilanand2 at gmail.com> wrote:
> 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.
> So, is there any restriction that all the
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
2011 Apr 20
0
[LLVMdev] translation to the LLVM IR
On Wed, Apr 20, 2011 at 2:54 PM, Jianzhou Zhao <jianzhou at seas.upenn.edu> wrote:
> 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
2009 Feb 12
0
[LLVMdev] Eliminate PHI for non-copyable registers
On Feb 11, 2009, at 4:07 AM, Alex wrote:
> In my hardware there are two special registers cannot be copied but
> can only be assigned and referenced (read) in the other instruction.
> They are allocatable also.
>
> br i1 %if_cond, label %then, label %else
> then:
> %x1 = fptosi float %y1 to i32
> br label %endif
> else:
> %x2 = fptosi float %y2 to i32
>
2017 Sep 19
2
Block internet access for some users on the LAN ?
--On Tuesday, September 19, 2017 9:57 AM -0700 John R Pierce
<pierce at hogranch.com> wrote:
> all it takes is one kid, who then shares his 'trick' with other kids, and
> blam.
Hire that kid to be head of security. :D
2008 Aug 14
0
[LLVMdev] Alloca Outside of Entry Block
My understanding is that it is legal to have allocas
in any basic block. However, the mem2reg pass
only recognizes allocas in the entry block of a function
as candidate for conversion into registers. So if you're
hoping to use mem2reg, it won't work if you place your
allocas elsewhere.
-Srikumar