Commit Graph

43 Commits

Author SHA1 Message Date
Devang Patel
fbaeda732e Reapply 79977.
Use MDNodes to encode debug info in llvm IR.

llvm-svn: 80406
2009-08-28 23:24:31 +00:00
Devang Patel
10c075a316 Revert 79977. It causes llvm-gcc bootstrap failures on some platforms.
llvm-svn: 80073
2009-08-26 05:01:18 +00:00
Devang Patel
7d42bfab6c Update DebugInfo interface to use metadata, instead of special named llvm.dbg.... global variables, to encode debugging information in llvm IR. This is mostly a mechanical change that tests metadata support very well.
This change speeds up llvm-gcc by more then 6% at "-O0 -g" (measured by compiling InstructionCombining.cpp!)

llvm-svn: 79977
2009-08-25 05:24:07 +00:00
Chris Lattner
36c1af90d8 fix some typos pointed out by Hidenobu Seki
llvm-svn: 76342
2009-07-18 21:47:15 +00:00
Devang Patel
84a8914a4a Remove debug info anchors - llvm.dbg.compile_units, llvm.dbg.subprograms
and llvm.dbg.global_variables.

llvm-svn: 74251
2009-06-26 01:49:18 +00:00
Bruno Cardoso Lopes
6ec3c6fab6 Fix some typos
llvm-svn: 72579
2009-05-29 17:08:57 +00:00
Bill Wendling
97af952d7a Formatting. Some updating of data structures. More work needs to be done to update the examples.
llvm-svn: 71974
2009-05-17 05:52:39 +00:00
Chris Lattner
c8f5edab31 update some syntax
llvm-svn: 68362
2009-04-03 00:29:19 +00:00
Devang Patel
58511a356b Each input file is encoded as a separate compile unit in LLVM debugging
information output. However, many target specific tool chains prefer to encode
only one compile unit in an object file. In this situation, the LLVM code
generator will include  debugging information entities in the compile unit 
that is marked as main compile unit. The code generator accepts maximum one main
compile unit per module. If a module does not contain any main compile unit 
then the code generator will emit multiple compile units in the output object 
file.

[Part 1]

Update DebugInfo APIs to accept optional boolean value while creating DICompileUnit  to mark the unit as "main" unit. By defaults all units are considered  non-main.  Update SourceLevelDebugging.html to document "main" compile unit.

Update DebugInfo APIs to not accept and encode separate source file/directory entries while creating various llvm.dbg.* entities. There was a recent, yet to be documented, change to include this additional information so no documentation changes are required here.

Update DwarfDebug to handle "main" compile unit. If "main" compile unit is seen then all DIEs are inserted into "main" compile unit. All other compile units are used to find source location for llvm.dbg.* values. If there is not any "main" compile unit then create unique compile unit DIEs for each llvm.dbg.compile_unit.

[Part 2]

Create separate llvm.dbg.compile_unit for each input file. Mark compile unit create for main_input_filename as "main" compile unit. Use appropriate compile unit, based on source location information collected from the tree node, while creating llvm.dbg.* values using DebugInfo APIs.

---

This is Part 1.

llvm-svn: 63400
2009-01-30 18:20:31 +00:00
Misha Brukman
129457e460 * Comply with HTML 4.01 Strict standard
* Converted absolute links to llvm.org/docs to relative links
* Fixed spelling and s/;/:/, as needed

llvm-svn: 61071
2008-12-16 02:54:22 +00:00
Misha Brukman
74411f221b Global replace of yellow W3C "valid HTML/CSS" icons with blue ones.
llvm-svn: 60880
2008-12-11 17:34:48 +00:00
Devang Patel
94c9b58408 Document TEST=dbgopt
llvm-svn: 59839
2008-11-21 19:35:57 +00:00
John Criswell
a806bf2de1 Minor spelling and typo fixes.
llvm-svn: 50448
2008-04-29 22:12:40 +00:00
Evan Cheng
567500c8be Update llvm.dbg.func.start.
llvm-svn: 46636
2008-02-01 09:12:11 +00:00
Duncan Sands
c6c5feafc6 Fix typos.
llvm-svn: 37573
2007-06-14 11:27:07 +00:00
Jim Laskey
cfed9526c1 Change e-mail address.
llvm-svn: 35103
2007-03-14 19:32:21 +00:00
Jim Laskey
64f4242072 Change the MachineDebugInfo to MachineModuleInfo to better reflect usage
for debugging and exception handling.

llvm-svn: 33550
2007-01-26 21:22:28 +00:00
Jim Laskey
637b01fc6c Update docs
llvm-svn: 32037
2006-11-30 14:36:22 +00:00
Jim Laskey
e85ba8b2db Update info on mangled names.
llvm-svn: 29804
2006-08-21 22:57:31 +00:00
Jim Laskey
f3f5f610a6 Update debugging documents.
llvm-svn: 29800
2006-08-21 21:21:06 +00:00
Jim Laskey
d5ff90140a fix typos
llvm-svn: 28894
2006-06-21 11:08:10 +00:00
Jim Laskey
323925d9d5 add subroutine types
llvm-svn: 28878
2006-06-20 21:13:20 +00:00
Jim Laskey
4dd34cc4a2 add decimal form of LLVMDebugVersion
llvm-svn: 28817
2006-06-16 13:45:38 +00:00
Jim Laskey
120281ddcf 1. Revise vector debug support.
2. Update docs for vector debug support and new version control.

3. Simplify serialization of DebugDescInfo subclasses.

llvm-svn: 28816
2006-06-16 13:14:03 +00:00
Jim Laskey
849c76e55c 1. Support standard dwarf format (was bootstrapping in Apple format.)
2. Add vector support.

llvm-svn: 28807
2006-06-15 20:51:43 +00:00
Jim Laskey
eb5bb57fe8 Fixed some grammer and spelling.
llvm-svn: 27062
2006-03-24 09:20:27 +00:00
Jim Laskey
88b7a2062e Correction of stoppoint arguments.
llvm-svn: 26983
2006-03-23 17:58:46 +00:00
Jim Laskey
a58a6b275b Updated information related to local variables and scopes.
llvm-svn: 26982
2006-03-23 17:54:33 +00:00
Jim Laskey
77239958ce Update doc to reflect changes in subprogram and block descriptors.
llvm-svn: 26783
2006-03-15 19:10:52 +00:00
Jim Laskey
f531c37a82 Reflect the fact that empty strings can be expressed as null.
llvm-svn: 26761
2006-03-14 18:50:50 +00:00
Jim Laskey
61fca9dbae Bring debugging information up to date.
llvm-svn: 26759
2006-03-14 18:08:46 +00:00
Reid Spencer
1667ea03b6 Changes docs for llvm.cs.uiuc.edu -> llvm.org
llvm-svn: 26746
2006-03-14 05:39:39 +00:00
Misha Brukman
6a982a1e5a * Straighten a comment to a single line
* Block off the section correctly with <!-- ***** -->

llvm-svn: 18721
2004-12-09 20:27:37 +00:00
Misha Brukman
873cd30878 Remove more smileys. I kept the one in WritingAnLLVMPass because it is actually
funny.

llvm-svn: 18475
2004-12-04 00:33:34 +00:00
Reid Spencer
bd18813e36 Minor format tweask for tables.
llvm-svn: 17394
2004-11-01 08:19:36 +00:00
Chris Lattner
3f60afac10 Fix broken link
llvm-svn: 15008
2004-07-19 19:30:40 +00:00
Misha Brukman
eca6c20638 Fix broken internal link.
llvm-svn: 14002
2004-06-03 23:42:24 +00:00
Misha Brukman
c2df1150c6 Fix broken internal links.
llvm-svn: 13999
2004-06-03 23:33:10 +00:00
Chris Lattner
f0931ed115 Make use of the new doc_author class. "Seperate content from presentation" they said.
llvm-svn: 13675
2004-05-23 21:07:27 +00:00
Misha Brukman
5a373bf271 Use the images in the img/ directory.
llvm-svn: 13509
2004-05-12 21:26:16 +00:00
Misha Brukman
8608c79487 Made file comply with HTML-4.01 (Strict)
llvm-svn: 13503
2004-05-12 19:21:57 +00:00
Chris Lattner
90912a88f6 Add links to SLD from the LangRef.html doc
Clean up the SLD document a LOT
Fill in a lot of details in the SLD document
update the formats for the object descriptors

llvm-svn: 10698
2004-01-06 05:31:32 +00:00
Chris Lattner
d488f7356f First version of this document. It is still missing some pretty big pieces, and
the debugging information formats will likely change, but it's a start, and I
have to move on to other things in the short-term, so it might be a while before
I get back to working on this.

llvm-svn: 10683
2004-01-05 05:06:33 +00:00