[LLVMdev] [LLVMDev] llc and -debug-only?

1,013 views
Skip to first unread message

Jeff Kunkel

unread,
Sep 20, 2010, 8:31:53 AM9/20/10
to llv...@cs.uiuc.edu
Many places in the documentation says the -debug and the
-debug-only=... can be used to debug modules. However, I cannot find
this option in llc (llvm version 2.8rc, DEBUG build).

This doc explicitly uses -debug/-debug-only:
http://llvm.org/docs/ProgrammersManual.html#DEBUG_TYPE

Thanks,
Jeff Kunkel
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

Duncan Sands

unread,
Sep 20, 2010, 10:59:45 AM9/20/10
to llv...@cs.uiuc.edu
Hi Jeff,

> Many places in the documentation says the -debug and the
> -debug-only=... can be used to debug modules. However, I cannot find
> this option in llc (llvm version 2.8rc, DEBUG build).

llc -help-hidden

Ciao,

Duncan.

Jeff Kunkel

unread,
Sep 20, 2010, 11:15:55 AM9/20/10
to llv...@cs.uiuc.edu
Thanks Duncan,

I assume the debug-pass option (the only option with "debug"
prepending it) is the correct option.

Thanks,
Jeff Kunkel

Duncan Sands

unread,
Sep 20, 2010, 11:33:23 AM9/20/10
to llv...@cs.uiuc.edu
Hi Jeff,

> I assume the debug-pass option (the only option with "debug"
> prepending it) is the correct option.

with latest svn I get:

-debug - Enable debug output
-debug-buffer-size=<uint> - Buffer the last N characters of
debug outputuntil program termination. [default 0 -- immediate print-out]
-debug-only=<debug string> - Enable a specific type of debug output
-debug-pass - Print PassManager debugging information
=None - disable debug output
=Arguments - print pass arguments to pass to 'opt'
=Structure - print pass structure before run()
=Executions - print pass name before it is executed
=Details - print pass details when it is
executed

Chris Lattner

unread,
Sep 20, 2010, 11:38:11 AM9/20/10
to Duncan Sands, llv...@cs.uiuc.edu

On Sep 20, 2010, at 8:33 AM, Duncan Sands wrote:

> Hi Jeff,
>
>> I assume the debug-pass option (the only option with "debug"
>> prepending it) is the correct option.
>
> with latest svn I get:

Note that these will only be enabled in an assert or debug build.

-Chris

Reply all
Reply to author
Forward
0 new messages