summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* In mem2reg, for all alloca/stores that get promoted where the alloca has an ↵Victor Hernandez2010-01-232-3/+69
| | | | | | associated llvm.dbg.declare instrinsic, insert an llvm.dbg.var intrinsic before each store llvm-svn: 94260
* teach MCAsmStreamer::EmitBytes to use .ascii and .ascizChris Lattner2010-01-233-21/+50
| | | | llvm-svn: 94259
* Extend clang_createTranslationUnitFromSourceFile() to support creatingDouglas Gregor2010-01-2313-154/+334
| | | | | | translation units that include unsaved files. llvm-svn: 94258
* Make sure ValueFn starts off emptyVictor Hernandez2010-01-231-1/+1
| | | | llvm-svn: 94256
* Enable pre-regalloc scheduling load clustering by default.Evan Cheng2010-01-221-7/+1
| | | | llvm-svn: 94255
* Be more conservative with clustering f32 / f64 loads.Evan Cheng2010-01-221-0/+2
| | | | llvm-svn: 94254
* move "EOL" from asmprinter to dwarfprinter. It should eventuallyChris Lattner2010-01-226-121/+117
| | | | | | be completely eliminated, but today is not that day. llvm-svn: 94253
* remove uses of EOL.Chris Lattner2010-01-221-6/+2
| | | | llvm-svn: 94252
* add a new EmitCFAByte method and use it.Chris Lattner2010-01-222-14/+23
| | | | llvm-svn: 94251
* move uleb printing from asmprinter to dwarfprinter, mcize,Chris Lattner2010-01-228-135/+83
| | | | | | cleanup and eliminate a bunch more uses of "EOL". llvm-svn: 94250
* outside a method, 'super' should resolve in a normal name look upFariborz Jahanian2010-01-222-1/+18
| | | | | | to mimic gcc's behavior. Fixes radar 7400691. llvm-svn: 94246
* Make OProfile support compile again after r93630 removedJeffrey Yasskin2010-01-221-9/+11
| | | | | | | DebugLocTuple. Also use an AssertingVH to ensure that MDNodes aren't destroyed while the FilenameCache is using them. llvm-svn: 94245
* move sleb printing out of asmprinter into dwarf printer, make clientsChris Lattner2010-01-227-57/+45
| | | | | | handle the comment better, MCize the non-.sleb case. llvm-svn: 94244
* Remove MetadataBase class because it is not adding significant value.Devang Patel2010-01-227-29/+12
| | | | llvm-svn: 94243
* Add 'clang_getClangVersion()' function to CIndex. This exposes the full ↵Ted Kremenek2010-01-225-3/+32
| | | | | | Clang version string through the CIndex API. llvm-svn: 94242
* Added a Register token to AsmToken and the appropriateSean Callanan2010-01-221-0/+10
| | | | | | accessor method for its value. llvm-svn: 94241
* Ignore DEBUG_VALUE when building live intervals;Dale Johannesen2010-01-222-4/+11
| | | | | | | this makes the code work transparently the same whether they're there or not. llvm-svn: 94240
* add a new DwarfPrinter::EmitEncodingByte method which handlesChris Lattner2010-01-224-66/+59
| | | | | | | | | | | | | | pretty printing encoding comments and eliminates redundancy on the client side. We now get pretty dwarf like this again: .byte 255 ## @LPStart Encoding = omit .byte 0 ## @TType Encoding = absptr .byte 0x28 ## @TType base offset .byte 3 ## Call site Encoding = udata4 .byte 0x1a ## Call site table size ... llvm-svn: 94239
* Fixup the rest of the testcases to grep the .ll file instead of the .sMike Stump2010-01-221-263/+22
| | | | | | file, and add FIXMEs to the remaining broken tests. llvm-svn: 94238
* Filled out the skeleton of the TargetAsmLexer to behaveSean Callanan2010-01-221-0/+43
| | | | | | | | exactly like an MCAsmLexer. (The difference is that the TargetAsmLexer knows how to handle target-specific stuff like registers, whereas the MCAsmLexer is fully generic.) llvm-svn: 94237
* Fixes test.Fariborz Jahanian2010-01-221-2/+2
| | | | llvm-svn: 94236
* Move version string generation (e.g., "clang 1.1 ...") to ↵Ted Kremenek2010-01-225-16/+28
| | | | | | libBasic/Version.cpp, getClangFullVendorVersion(). llvm-svn: 94235
* Improve content and structure of the Doxygen documentation for theDouglas Gregor2010-01-221-267/+401
| | | | | | CIndex API. No functionality change. llvm-svn: 94234
* rename the dwarf class to DwarfPrinter. This matches the filenameChris Lattner2010-01-228-50/+52
| | | | | | and much more accurately describes what it is all about. llvm-svn: 94233
* fix indentationChris Lattner2010-01-221-128/+117
| | | | llvm-svn: 94232
* (1) Rename getClangSubversionRevision() to getClangRevision(), andTed Kremenek2010-01-225-25/+37
| | | | | | | | | | | | | | | | | have it return a StringRef instead of an integer (to be more VCS agnostic). (2) Add getClangFullRepositoryVersion(), which contains an amalgamation of the repository name and the revision. (3) Change PCH to only emit the string returned by getClangFullRepositoryVersion() instead of also emitting the value of getClangSubversionRevision() (which has been removed). This is functionally equivalent. More cleanup to version string generation pending... llvm-svn: 94231
* inline away the trivial AsmPrinter::EOL() method.Chris Lattner2010-01-228-48/+35
| | | | llvm-svn: 94230
* Convert more testcases to checking the .ll file instead of the .s file.Mike Stump2010-01-221-269/+105
| | | | llvm-svn: 94229
* inline AsmPrinter::PrintHex into its two trivial callers.Chris Lattner2010-01-222-13/+4
| | | | llvm-svn: 94228
* change this to be a static function instead of a method on asmprinter.Chris Lattner2010-01-222-68/+68
| | | | llvm-svn: 94227
* Yet more CIndex API cleanup:Douglas Gregor2010-01-224-21/+137
| | | | | | | | - Added more routines to manipulate/compare source locations and ranges - Switched clang_getCursor() over to take a CXSourceLocation rather than file/line/column. llvm-svn: 94226
* make the loop comment printer print out a much better structuredChris Lattner2010-01-221-15/+23
| | | | | | | | | | | | | output. An example: .align 4, 0x90 LBB1_5: ## %while.cond3 ## Parent Loop BB1_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB1_8 Depth 3 ## Child Loop BB1_6 Depth 3 llvm-svn: 94225
* ui64, etc. are valid VS suffixes.Fariborz Jahanian2010-01-222-2/+15
| | | | | | Fixes radar 7562363. llvm-svn: 94224
* document runtime support functionsNick Kledzik2010-01-221-44/+118
| | | | llvm-svn: 94223
* Changes to fix buffering that I forgot to commit with previous patch.Chris Lattner2010-01-223-8/+18
| | | | llvm-svn: 94222
* For blocks that are not loop headers, just print their loop depth and header BB.Chris Lattner2010-01-221-13/+16
| | | | | | | | | | | | | | | | | | | | | | For loop headers, print Inner loop along with the other stuff so it doesn't take an extra line. We now get stuff like this: LBB1_4: ## %land.end ## in Loop: Header=BB1_1 Depth=1 notb %al testb $1, %al jne LBB1_8 and: LBB1_6: ## %while.cond7 ## Inner Loop Header: Depth=3 ## Inside Loop BB1_5 Depth 2 ## Inside Loop BB1_1 Depth 1 which still isn't great for loop headers, but is much less verbose. llvm-svn: 94221
* Tweak clang_darwin config to strip off any -arch if the user overrides CC, we doDaniel Dunbar2010-01-221-0/+4
| | | | | | this during an Apple style build. llvm-svn: 94216
* reenable the label loop comments and switch them to use the formattedChris Lattner2010-01-221-67/+40
| | | | | | | comment emission stuff. I'm going to rewrite this though because the current output doesn't make sense. llvm-svn: 94215
* Rename pch::SVN_BRANCH_REVISION to pch::VERSION_CONTROL_BRANCH_REVISION.Ted Kremenek2010-01-223-8/+8
| | | | llvm-svn: 94214
* Rename getClangSubversionPath() -> getClangRepositoryPath() and have it ↵Ted Kremenek2010-01-225-9/+15
| | | | | | return a StringRef. llvm-svn: 94213
* Eliminate index-test; all of its tested functionality is now in c-index-test.Douglas Gregor2010-01-2211-570/+1
| | | | llvm-svn: 94211
* Eliminate CIndex's dependency on the Clang Index library, since weDouglas Gregor2010-01-225-20/+7
| | | | | | weren't actually using any of its facilities. llvm-svn: 94210
* Be sure to select primary bases among the nearly empties in preorder,Mike Stump2010-01-222-0/+44
| | | | | | | not just among the direct bases. Before we where missing nearly empties that were bases of virtual base classes. llvm-svn: 94208
* Mark EH_RETURN64 as CodeGenOnly.Daniel Dunbar2010-01-222-2/+4
| | | | llvm-svn: 94205
* Another strncmp -> StringRef.startswith simplification.Benjamin Kramer2010-01-221-1/+1
| | | | llvm-svn: 94203
* Convert some more random-comment-printing stuff to use Chris Lattner2010-01-223-33/+43
| | | | | | | AddComment and GetCommentOS. Add a blank line between globals (even in non-verbose mode) to make the assembly more readable. llvm-svn: 94202
* make this less constrained, we want blank lines between globals.Chris Lattner2010-01-221-1/+1
| | | | llvm-svn: 94201
* Teach CIndex's cursor visitor to restrict its traversal to a specificDouglas Gregor2010-01-2212-381/+235
| | | | | | | | | | | | | | region of interest (if provided). Implement clang_getCursor() in terms of this traversal rather than using the Index library; the unified cursor visitor is more complete, and will be The Way Forward. Minor other tweaks needed to make this work: - Extend Preprocessor::getLocForEndOfToken() to accept an offset from the end, making it easy to move to the last character in the token (rather than just past the end of the token). - In Lexer::MeasureTokenLength(), the length of whitespace is zero. llvm-svn: 94200
* add a new MCAsmStreamer::GetCommentOS method to simplify stuffChris Lattner2010-01-226-16/+57
| | | | | | that doesn't want to use twines. llvm-svn: 94199
* Revert 94059. It is breaking the MultiSource/Benchmarks/Prolangs-C/bisonBob Wilson2010-01-221-45/+0
| | | | | | test on ARM. llvm-svn: 94198
OpenPOWER on IntegriCloud