Displaying 11 results from an estimated 11 matches for "basicblockptr".
2010 Mar 26
2
[LLVMdev] Why is BasicBlock's copy constructor private?
...y and presumably will do
> so for the life of your graph processing, could you just use a
> boost::directed_graph<llvm::BasicBlock*> instead?
Yeah, that was one of the first things I tried:
for (Function::iterator i = function.begin(), e = function.end(); i !=
e; ++i) {
BasicBlock *basicBlockPtr = &(*i);
add_vertex(basicBlockPtr, timingGraph);
}
The "&(*i)" sure seems weird, but I don't know how else to grab a
pointer to the BasicBlock from within the iterator.
Also, if I then try to extract a vertex from the graph:
BasicBlock *basicBlockPtr = timingGraph[0];...
2010 Mar 26
0
[LLVMdev] Why is BasicBlock's copy constructor private?
On 25 March 2010 20:04, Trevor Harmon <trevor.w.harmon at nasa.gov> wrote:
>
> So why exactly is BasicBlock's copy constructor private? The ominous
> "Do not implement" warning leads me to think there is some sort of
> design issue that is preventing a copy constructor here. Is there any
> possibility of working around it?
>
I think the problem is that LLVM
2010 Mar 26
3
[LLVMdev] Why is BasicBlock's copy constructor private?
Hi,
LLVM provides basic graph traversal for its CFGs, but I need
additional operations, such as iterating over the edges. I thought I
would solve this problem using the Boost graph library. It should be
relatively simple to walk an LLVM CFG and add the BasicBlock objects
to a Boost graph declared as:
typedef boost::directed_graph<llvm::BasicBlock> Graph;
Once constructed, this
2011 Nov 17
2
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
...or <ryta1203 at gmail.com>
Date: Wed, Nov 16, 2011 at 5:23 PM
Subject: Re: [LLVMdev] Problem getting LoopInfo inside non-LoopPass
To: llvmdev at cs.uiuc.edu
LLVMers,
So, I'm trying to write a pass that changes the names of the basic blocks
through the use of Value, so:
Value *V = *BasicBlockPtr;
const Twine Tname("new_name");
V->setName(Tname);
But when I run the opt and look at the IR output nothing is changed? Not
sure what I'm doing wrong.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/l...
2011 Nov 10
1
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
Ryan,
[ Please continue the discussion on mailing for the benefit of everyone. ]
On Nov 10, 2011, at 10:31 AM, Ryan Taylor wrote:
> I need to iterate bottom up on the nodes, but within that I want to break up BBs within a loop. I could just create a loop pass as another opt and call that, I just thought it'd be easier to get the loop info inside the opt I'm already doing.
It is
2011 Nov 17
0
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
LLVMers,
So, I'm trying to write a pass that changes the names of the basic blocks
through the use of Value, so:
Value *V = *BasicBlockPtr;
const Twine Tname("new_name");
V->setName(Tname);
But when I run the opt and look at the IR output nothing is changed? Not
sure what I'm doing wrong.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/l...
2011 Nov 17
2
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
...inside non-LoopPass
>> To: llvmdev at cs.uiuc.edu <mailto:llvmdev at cs.uiuc.edu>
>>
>>
>> LLVMers,
>>
>> So, I'm trying to write a pass that changes the names of the basic
>> blocks through the use of Value, so:
>>
>> Value *V = *BasicBlockPtr;
>> const Twine Tname("new_name");
>> V->setName(Tname);
>>
>> But when I run the opt and look at the IR output nothing is changed? Not
>> sure what I'm doing wrong.
>>
>> Thanks.
>>
>>
>>
>>
>>
>> __...
2011 Nov 17
0
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
...[LLVMdev] Problem getting LoopInfo inside non-LoopPass
> To: llvmdev at cs.uiuc.edu <mailto:llvmdev at cs.uiuc.edu>
>
>
> LLVMers,
>
> So, I'm trying to write a pass that changes the names of the basic
> blocks through the use of Value, so:
>
> Value *V = *BasicBlockPtr;
> const Twine Tname("new_name");
> V->setName(Tname);
>
> But when I run the opt and look at the IR output nothing is changed? Not
> sure what I'm doing wrong.
>
> Thanks.
>
>
>
>
>
> _______________________________________________
>...
2011 Nov 17
0
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
...: llvmdev at cs.uiuc.edu <mailto:llvmdev at cs.uiuc.edu>
>>>
>>>
>>> LLVMers,
>>>
>>> So, I'm trying to write a pass that changes the names of the basic
>>> blocks through the use of Value, so:
>>>
>>> Value *V = *BasicBlockPtr;
>>> const Twine Tname("new_name");
>>> V->setName(Tname);
>>>
>>> But when I run the opt and look at the IR output nothing is changed? Not
>>> sure what I'm doing wrong.
>>>
>>> Thanks.
>>>
>>>
&g...
2011 Nov 21
5
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
...lto:llvmdev at cs.uiuc.edu>
>>>>
>>>>
>>>> LLVMers,
>>>>
>>>> So, I'm trying to write a pass that changes the names of the basic
>>>> blocks through the use of Value, so:
>>>>
>>>> Value *V = *BasicBlockPtr;
>>>> const Twine Tname("new_name");
>>>> V->setName(Tname);
>>>>
>>>> But when I run the opt and look at the IR output nothing is changed? Not
>>>> sure what I'm doing wrong.
>>>>
>>>> Thanks....
2011 Nov 10
4
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
John,
This did not work. It compiles (isDeclaration was the name of the
function) and I passed a reference (&F) (F is a function pointer). I still
get the opt load error from the original message (UNREACHABLE exectuted!).
Thanks.
On Thu, Nov 10, 2011 at 10:00 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> 1. Ok will do.
> 2. Ok, will do.
> 3. It's a CallGraphPass. I