Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Copy Instruction from one Basic block to another"
2010 Nov 15
0
[LLVMdev] Copy Instruction from one Basic block to another
On Nov 14, 2010, at 12:13 PM, Soumya Prasad Ukil wrote:
> I have created a new basic block. Now I want to make copy of instructions from one basic block to another . How to do that ?
See CloneBasicBlock @ Transforms/Utils/Cloning.h
-
Devang
2010 Nov 17
1
[LLVMdev] Copy Instruction from one Basic block to another
I want to do the following:
suppose the program structure:
bb
/ \
bb1 bb2
\ /
bb3
2010 Aug 02
2
[LLVMdev] indirectbr and phi instructions
Hi,
How does the requirement that phi instructions have one value per
predecessor basic block interact with indirectbr instructions? For
instance, take the following code:
L1:
br i1 %somevalue, label %L2, label %L3
L2:
%ret1 = i8* blockaddress(@myfunction, %L5)
br label %L4
L3:
%ret2 = i8* blockaddress(@myfunction, %L6)
br label %L4
L4:
%ret = phi i8* [%ret1, L2], [%ret2, L3]
2011 Nov 21
1
[LLVMdev] Fwd: Order of Basic Blocks
---------- Forwarded message ----------
From: Ryan Taylor <ryta1203 at gmail.com>
Date: Mon, Nov 21, 2011 at 10:30 AM
Subject: Re: [LLVMdev] Order of Basic Blocks
To: Benjamin Kramer <benny.kra at googlemail.com>
This worked, though the RPO_iterator apparently wasn't what I was looking
for anyways, it seems it doesn't rreally go top->down.
I have a simple example code,
2016 Sep 21
2
Propagation of debug information for variable into basic blocks.
> On Sep 21, 2016, at 2:23 PM, Daniel Berlin <dberlin at dberlin.org> wrote:
>
>
>
> // For all predecessors of this MBB, find the set of VarLocs that
> // can be joined.
> for (auto p : MBB.predecessors()) {
> auto OL = OutLocs.find(p);
> // Join is null in case of empty OutLocs from any of the pred.
> if (OL == OutLocs.end())
>
2010 Jun 24
2
[LLVMdev] How to prevent an instruction to be executed more than once?
Hi LLVM-devs,
I am looking for a way to prevent an instruction to be executed more than
once, or duplicated .. I know that by default everything can be duplicated,
but is there a work-around?
The structure of the code is
BB1 BB2
| |
| |
| |
|----------|
|
v
BB3
where the first instruction in BB3 is inserting an inline assembly
2010 Aug 22
1
[LLVMdev] How to add a pass inside LLVM pass list
Soumya_Prasad_Ukil wrote:
> Look I have written a PRE pass. opt is running that pass. I have
> included my pass name there in include/llvm/Support/StandardPasses.h
> file. To do that, I have got some error. Because it also requires the
> definition of the pass in some other file also. I observed how gvn pre
> pass is added to the pass list. I had followed the same way, but failed.
2010 Aug 22
2
[LLVMdev] How to add a pass inside LLVM pass list
Soumya_Prasad_Ukil wrote:
> Pls help.
You didn't say what was actually running the passes. (llvm-gcc? clang?
opt -some -passes?) What you probably want is to modify one of the lists
in include/llvm/Support/StandardPasses.h.
Nick
>
> On 21 August 2010 17:32, Soumya_Prasad_Ukil <ukil.soumya at gmail.com
> <mailto:ukil.soumya at gmail.com>> wrote:
>
> I have
2013 Oct 10
2
[LLVMdev] Are there implicit rules or conventions for an llvm frontend to generate llvm IR?
Hi, this question might be a bit silly: apart from the language
reference(http://llvm.org/docs/LangRef.html#switch-instruction) page, are
there additional rules for a regular llvm frontend to generate llvm IRs?
There are a few cases that I got from clang/llvm-gcc/dragonegg when
compiling *C* source code into llvm IR:
1. It seems that there is ONLY ONE ReturnInst(and NO InvokeInst) for such
llvm
2016 Sep 21
2
Propagation of debug information for variable into basic blocks.
>
>
> Conceptually, the LiveDebugValues data flow analysis should be using
> three-valued logic arranged in a lattice
>
> ⊥ (uninitialized / don't know)
> / \
> true false (is (not) available)
>
> where join(x, ⊥) = x, otherwise it behaves like boolean &.
>
> All debug variable values are initialized to the bottom element first.
> After
2010 Aug 22
0
[LLVMdev] How to add a pass inside LLVM pass list
Look I have written a PRE pass. opt is running that pass. I have included my
pass name there in include/llvm/Support/StandardPasses.h file. To do that, I
have got some error. Because it also requires the definition of the pass in
some other file also. I observed how gvn pre pass is added to the pass list.
I had followed the same way, but failed. Cna you kindly tell what needs to
be done in this
2010 Aug 05
3
[LLVMdev] a problem when using postDominatorTree
On 08/05/2010 06:46 AM, Wenbin Zhang wrote:
> Hi all,
> I'm using postDominatorTree to do some program analysis. My code works
> well for small tests, but when I run it on real applications, the
> following error occurs:
> /Inorder PostDominator Tree: DFSNumbers invalid: 0 slow queries.
> [1] <<exit node>> {0,21}
> [2] %bb1 {1,2}
> [2] %bb {3,4}
> [2]
2016 Feb 08
2
LoopIdiomRegognize vs Preserved
Hi,
I'm having problems with the LoopIdiomRegognizer crashing on me with
An asserting value handle still pointed to this value!
UNREACHABLE executed at ../lib/IR/Value.cpp:695!
If I remove
AU.addPreserved<LoopInfoWrapperPass>();
or
AU.addPreserved<AAResultsWrapperPass>();
everything goes well.
The C-code triggering this is
void foo(int a[10][10])
{
int i, j,
2010 Aug 22
0
[LLVMdev] How to add a pass inside LLVM pass list
Pls help.
On 21 August 2010 17:32, Soumya_Prasad_Ukil <ukil.soumya at gmail.com> wrote:
> I have written a simple pass. I have been successful to execute it. I want
> LLVM to execute it. I don't know how to include a pass in llvm actual pass
> list, such it automatically invokes it just like GVNPre pass or some other
> pass. They have already been limked in llvm actual pass
2009 Sep 03
2
[LLVMdev] Non-local DSE optimization
Hi,
It looks like PDT.getRootNode() returns NULL for:
define fastcc void @c974001__lengthy_calculation.
1736(%struct.FRAME.c974001* nocapture %CHAIN.185) noreturn {
entry:
br label %bb
bb:
br label %bb
}
Isn't it a bug in PostDominatorTree?
Please note that this crashes:
opt -postdomtree -debug dom_crash.bc
I think this should be reported as a bug,
-Jakub
On Sep 3, 2009, at
2010 Aug 21
2
[LLVMdev] How to add a pass inside LLVM pass list
I have written a simple pass. I have been successful to execute it. I want
LLVM to execute it. I don't know how to include a pass in llvm actual pass
list, such it automatically invokes it just like GVNPre pass or some other
pass. They have already been limked in llvm actual pass list.
--
regards,
soumya prasad ukil
-------------- next part --------------
An HTML attachment was scrubbed...
2009 Sep 03
0
[LLVMdev] Non-local DSE optimization
Hi Jakub, interesting patch. I ran it over the Ada testsuite and this
picked up some problems even without enabling dse-ssu. For example,
"opt -inline -dse -domtree" crashes on the attached testcase.
Ciao,
Duncan.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dom_crash.ll
URL:
2009 Aug 31
2
[LLVMdev] Non-local DSE optimization
Hello,
This patch adds non-local DSE optimization. It uses Static Single Use
representation. This is my first "big" patch, please be tolerant :-)
Please note that optimization is disabled by default.
-Jakub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dse_ssu.patch
Type: application/octet-stream
Size: 17352 bytes
Desc: not available
URL:
2009 Sep 06
0
[LLVMdev] Non-local DSE optimization
Jakub Staszak wrote:
> Hi,
>
> It looks like PDT.getRootNode() returns NULL for:
>
> define fastcc void @c974001__lengthy_calculation.
> 1736(%struct.FRAME.c974001* nocapture %CHAIN.185) noreturn {
> entry:
> br label %bb
>
> bb:
> br label %bb
> }
>
>
> Isn't it a bug in PostDominatorTree?
>
> Please note that this crashes:
>
2013 Oct 10
0
[LLVMdev] Are there implicit rules or conventions for an llvm frontend to generate llvm IR?
On 10/10/13 10:43 AM, Hongxu Chen wrote:
> Hi, this question might be a bit silly: apart from the language
> reference(http://llvm.org/docs/LangRef.html#switch-instruction) page, are
> there additional rules for a regular llvm frontend to generate llvm IRs?
>
> There are a few cases that I got from clang/llvm-gcc/dragonegg when
> compiling *C* source code into llvm IR:
>
>