Displaying 10 results from an estimated 10 matches for "viewcfgon".
Did you mean:
viewcfgonly
2009 Jul 23
2
[LLVMdev] viewCFGOnly() function
Hello David,
Thanks for the reply. Would i not need to pass any arguments for
viewCFGOnly() method? According to this
http://llvm.org/doxygen/Function_8h-source.html seems like we need to?
I am building it on top of the example shown at
http://llvm.org/docs/WritingAnLLVMPass.html and just added
'F->viewCFGOnly(); line to it. It doesn't compile, i suspect it has to do
with...
2009 Jul 23
0
[LLVMdev] viewCFGOnly() function
Here's what the doxygen page has for viewCFGOnly() :
/// viewCFGOnly - This function is meant for use from the debugger. It works
/// just like viewCFG, but it does not include the contents of basic blocks
/// into the nodes, just the label. If you are only interested in the CFG
/// this can make the graph smaller.
///
void viewCFGOnly() con...
2009 Jul 21
2
[LLVMdev] viewCFGOnly() function
Hello All,
I am trying to get basic CFG display to work. I have read the programmer's
manual and it mentions that we can simply call the viewCFGOnly() (part of
Function.h) from our sample program. When i read the comments for that
method in Function.h, it mentions that i need to call it from the gdb
debugger instead. I am confused as to how to get this working. Do we need to
call it from a simple program or a debugger. An example would be ver...
2009 Jul 22
0
[LLVMdev] viewCFGOnly() function
You can call the function from your program OR the debugger. The
comments simply inform you that it is quite handy to be able to call the
function from a debugger (such as gdb).
To call the function in you code simply add a line such as:
F->viewCFGOnly();
Where F is an appropriate variable eg. a MachineFunction pointer
If you are using gdb then you can do the following:
call F->viewCFGOnly()
from a point where F is live.
David
nxer wrote:
> Hello All,
>
> I am trying to get basic CFG display to work. I have read the programmer&...
2009 Jul 16
1
[LLVMdev] [patch] Dotty printer for dependency trees
...{
+ return df_end<DomTreeNode *> (N);
+ }
No spaces between the function name and the parenthesis. This occurs a
few times.
@@ -112,7 +59,7 @@ namespace {
CFGOnlyViewer() : FunctionPass(&ID) {}
virtual bool runOnFunction(Function &F) {
- F.viewCFG();
+ F.viewCFGOnly();
return false;
}
Put that back. viewCFG shows the CFG with full instructions inside it
while viewCFGOnly shows just the block without the instruction listing
inside. This pass is intended to show the details.
+ template<>
+ struct DOTGraphTraits<DomTreeNode*> :...
2009 Jul 14
2
[LLVMdev] [patch] Dotty printer for dependency trees
...GraphWriter on these data structures.
3. The file DomPrinter.cpp containing the actual passes, printers & Co.
It is simple as almost everything already existed.
4. A little bug fix in lib/Analysis/CFGPrinter.cpp.
virtual bool runOnFunction(Function &F) {
- F.viewCFG();
+ F.viewCFGOnly();
return false;
"opt -view-cfg-only" showed too much.
Any feedback is highly appreciated.
See you
Tobi
2009 Jul 14
0
[LLVMdev] [patch] Dotty printer for dependency trees
On Wed, 2009-07-15 at 00:20 +0200, Tobias Grosser wrote:
> Hi,
>
> I started to work with llvm and liked the CFG dotty printer a lot.
> However there was none for the dominance trees.
>
> I implemented dotty printing for dominance trees
And here is the patch.
Tobi
-------------- next part --------------
A non-text attachment was scrubbed...
Name:
2004 Jul 12
0
LLVM July Status Update
...rget-independent live-variable analysis is quicker and simpler
than before.
15. Vladimir Prus contributed code generator support for targets that have
object alignments bigger than their size (e.g. bytes aligned on 32-bit
boundaries).
16. Alkis implemented MachineFunction::viewCFG and ::viewCFGOnly methods,
which make it really easy to visualize machine code in a debugger
(operating like the Function::viewCFG method). Note that this does
not work with the SparcV9 target yet.
17. The LLVM llc and lli tools now support dynamically loaded target
implementations:
http://mail.cs...
2005 Jun 17
5
[LLVMdev] Re: Control flow graph
...a variety of graphics
formats with the graphviz toolset that you can get on the net.
If you're running on a system with graphviz installed and with 'gv'
(ghostview), you can even call functions like this from your code or from
the debugger:
LLVMFunction->viewCFG()
also ->viewCFGOnly();
> Also, when I compile a C file to llvm assembly code i.e using llvmgcc -S
> option then the output file has lot of "declare" and "typedef" and then
> the "main" starts. Sorry for my naive questions but can you tell me what
> are those.
I wouldn'...
2011 Apr 05
3
[LLVMdev] Building LLVM on Solaris/Sparc
...,
llvm::PassManagerType)
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::cl::opt<bool, false, llvm::cl::parser<bool> >::setInitialValue(bool
const&)/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::Function::viewCFGOnly() const
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::CallGraphSCCPass::assignPassManager(llvm::PMStack&,
llvm::PassManagerType)
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::createRegionOnlyViewerPass()
/n/fs/s...