summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* A redeclaration of an inline method in C99 mode should trigger emission of thatNick Lewycky2011-07-075-3/+51
| | | | | | function. Fixes PR10233! llvm-svn: 134634
* Define class MipsMCInstLower.Akira Hatanaka2011-07-073-0/+161
| | | | llvm-svn: 134633
* Add docstrings for SBValueList with example usage.Johnny Chen2011-07-071-0/+63
| | | | llvm-svn: 134632
* Undo r134587 as the bug was actually a deep and hideous one in theAlexis Hunt2011-07-071-7/+0
| | | | | | | | client code. My bad. llvm-svn: 134631
* Change visibility of MipsAsmPrinter.Akira Hatanaka2011-07-072-60/+87
| | | | llvm-svn: 134630
* Define class MipsMCSymbolRefExpr.Akira Hatanaka2011-07-073-0/+126
| | | | llvm-svn: 134629
* Simplify MipsRegisterInfo::eliminateFrameIndex.Akira Hatanaka2011-07-071-33/+13
| | | | llvm-svn: 134628
* Rewrite comment in English.Evan Cheng2011-07-071-1/+1
| | | | llvm-svn: 134627
* Rename attribute 'thumb' to a more descriptive 'thumb-mode'.Evan Cheng2011-07-074-9/+10
| | | | llvm-svn: 134626
* Reverse order of operands of address operand mem so that the base operand comesAkira Hatanaka2011-07-077-50/+50
| | | | | | | before the offset. This change will enable simplification of function MipsRegisterInfo::eliminateFrameIndex. llvm-svn: 134625
* objc-arc: diagnose assignment/cast of a weak-unavailableFariborz Jahanian2011-07-074-2/+59
| | | | | | | object to a __weak object/type. // rdar://9732636. This is objc side of things. objc++ side tbd. llvm-svn: 134624
* Fix wording in docstring.Johnny Chen2011-07-071-1/+1
| | | | llvm-svn: 134623
* Add missing return statement.Akira Hatanaka2011-07-071-1/+3
| | | | llvm-svn: 134622
* Turn hashhash into tok::unkwown when it comes from expanding an argument, ↵Argyrios Kyrtzidis2011-07-071-8/+19
| | | | | | per Chris' suggestion. llvm-svn: 134621
* If known DebugLocs do not match then two DBG_VALUE machine instructions are ↵Devang Patel2011-07-071-0/+5
| | | | | | | | | | | not identical. For example, DBG_VALUE 3.310000e+02, 0, !"ds"; dbg:sse.stepfft.c:138:18 @[ sse.stepfft.c:32:10 ] DBG_VALUE 3.310000e+02, 0, !"ds"; dbg:sse.stepfft.c:138:18 @[ sse.stepfft.c:31:10 ] These two MIs represent identical value, 3.31..., for one variable, ds, but they are not identical because the represent two separate instances of inlined variable "ds". llvm-svn: 134620
* FreeBSD gets FreeBSD target, just mipsel.Joerg Sonnenberger2011-07-071-1/+1
| | | | llvm-svn: 134619
* Slightly improve the code to derive target from program name to notJoerg Sonnenberger2011-07-071-3/+5
| | | | | | fault if no arguments are given. llvm-svn: 134618
* Recognize mipseb as alias for mips for symmetry with mipsel.Joerg Sonnenberger2011-07-071-1/+2
| | | | llvm-svn: 134617
* Update CMake library dependenciesOscar Fuentes2011-07-072-5/+4
| | | | llvm-svn: 134616
* Introduce a new libclang aPI function,Douglas Gregor2011-07-0711-41/+541
| | | | | | | | | clang_codeCompleteGetContexts(), that provides the client with information about the context in which code completion has occurred and what kinds of entities make sense as completions at that point. Patch by Connor Wakamo! llvm-svn: 134615
* Fix CMake buildDouglas Gregor2011-07-071-0/+2
| | | | llvm-svn: 134614
* Fixed a warning where initializing CommandObject::g_arguments_data[] ↵Enrico Granata2011-07-072-82/+64
| | | | | | required global constructors llvm-svn: 134613
* If we're using the pure non-fragile ABI, then skip some of the contortions ↵David Chisnall2011-07-071-9/+30
| | | | | | required to support the transitional ABI. llvm-svn: 134612
* Set a flag to tell the runtime when we're compiling in ARC mode and use the ↵David Chisnall2011-07-071-10/+19
| | | | | | pure-nonfragile ABI for both ARC and GC mode. llvm-svn: 134611
* Fix example: variable is initialized to 10 and then has 11 stored in it, but ↵David Chisnall2011-07-071-1/+1
| | | | | | in the expanded version is initialized to 11. llvm-svn: 134610
* The VMLA instruction and its friends are not actually fused; they're plain oldCameron Zwarich2011-07-072-2/+2
| | | | | | multiply-accumulate instructions with separate rounding steps. llvm-svn: 134609
* Sink feature IsThumb into MC layer.Evan Cheng2011-07-074-15/+34
| | | | llvm-svn: 134608
* Feature bits are 64-bits.Evan Cheng2011-07-071-1/+1
| | | | llvm-svn: 134607
* Compute feature bits at time of MCSubtargetInfo initialization.Evan Cheng2011-07-0733-109/+160
| | | | llvm-svn: 134606
* In ARC, reclaim all return values of retainable type, not just thoseJohn McCall2011-07-0721-44/+136
| | | | | | | | | | | | where we have an immediate need of a retained value. As an exception, don't do this when the call is made as the immediate operand of a __bridge retain. This is more in the way of a workaround than an actual guarantee, so it's acceptable to be brittle here. rdar://problem/9504800 llvm-svn: 134605
* type can be nullChris Lattner2011-07-071-1/+1
| | | | llvm-svn: 134601
* use a more efficient check for 'is metadata'Chris Lattner2011-07-071-5/+4
| | | | llvm-svn: 134599
* Stop the lldb_private::RegularExpression class from implicitlyGreg Clayton2011-07-073-2/+3
| | | | | | | constructing itself and causing unexpected things to happen in LLDB. llvm-svn: 134598
* Use ArrayRef instead of a std::vector&.Bill Wendling2011-07-073-7/+8
| | | | llvm-svn: 134595
* Centralize the variable display prefs into a new optionGreg Clayton2011-07-076-129/+274
| | | | | | | | | | | | | group class: OptionGroupVariable. It gets initialized with a boolean that indicates if the frame specific options are included so that this can be used in both the "frame variable" and "target variable" commands. Removed the global functionality from the "frame variable" command. Users should switch to using the "target variable" command. llvm-svn: 134594
* Add functions 'hasPredecessor' and 'hasPredecessorHelper' to SDNode. TheLang Hames2011-07-073-20/+59
| | | | | | | | | | | | | | | | hasPredecessorHelper function allows predecessors to be cached to speed up repeated invocations. This fixes PR10186. X.isPredecessorOf(Y) now just calls Y.hasPredecessor(X) Y.hasPredecessor(X) calls Y.hasPredecessorHelper(X, Visited, Worklist) with empty Visited and Worklist sets (i.e. no caching over invocations). Y.hasPredecessorHelper(X, Visited, Worklist) caches search state in Visited and Worklist to speed up repeated calls. The Visited set is searched for X before going to the worklist to further search the DAG if necessary. llvm-svn: 134592
* [arcmt] Add -ccc-arcmt-check/-ccc-arcmt-modify driver option aliases.Argyrios Kyrtzidis2011-07-072-6/+8
| | | | llvm-svn: 134591
* Change some ARM subtarget features to be single bit yes/no in order to sink ↵Evan Cheng2011-07-0724-150/+161
| | | | | | them down to MC layer. Also fix tests. llvm-svn: 134590
* Sort #includes.Nick Lewycky2011-07-071-1/+1
| | | | llvm-svn: 134589
* When expanding macro arguments, treat '##' coming from an argument as a ↵Argyrios Kyrtzidis2011-07-072-6/+17
| | | | | | | | | | | normal token. e.g. #define M(x) A x B M(##) // should expand to 'A ## B', not 'AB' llvm-svn: 134588
* Make the Preprocessor more memory efficient and improve macro instantiation ↵Argyrios Kyrtzidis2011-07-0715-81/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | diagnostics. When a macro instantiation occurs, reserve a SLocEntry chunk with length the full length of the macro definition source. Set the spelling location of this chunk to point to the start of the macro definition and any tokens that are lexed directly from the macro definition will get a location from this chunk with the appropriate offset. For any tokens that come from argument expansion, '##' paste operator, etc. have their instantiation location point at the appropriate place in the instantiated macro definition (the argument identifier and the '##' token respectively). This improves macro instantiation diagnostics: Before: t.c:5:9: error: invalid operands to binary expression ('struct S' and 'int') int y = M(/); ^~~~ t.c:5:11: note: instantiated from: int y = M(/); ^ After: t.c:5:9: error: invalid operands to binary expression ('struct S' and 'int') int y = M(/); ^~~~ t.c:3:20: note: instantiated from: \#define M(op) (foo op 3); ~~~ ^ ~ t.c:5:11: note: instantiated from: int y = M(/); ^ The memory savings for a candidate boost library that abuses the preprocessor are: - 32% less SLocEntries (37M -> 25M) - 30% reduction in PCH file size (900M -> 635M) - 50% reduction in memory usage for the SLocEntry table (1.6G -> 800M) llvm-svn: 134587
* Fix bug in SourceManager::getDecomposedInstantiationLocSlowCase.Argyrios Kyrtzidis2011-07-072-6/+6
| | | | | | | | | | | | | It would add up relative (decomposed) offsets like in getDecomposedSpellingLocSlowCase, but while it makes sense to preserve the offset among lexed spelling locations, it doesn't make sense to add anything to the offset of the instantiation location. The instantiation location will be the same regardless of the relative offset in the tokens that were instantiated. This bug didn't actually affect anything because, currently, in practice we never create macro locations with relative offset greater than 0. llvm-svn: 134586
* For -print-stats, add the number of bytes that SLocEntryTable consumes.Argyrios Kyrtzidis2011-07-071-1/+3
| | | | llvm-svn: 134585
* Typo in header doc.Jim Ingham2011-07-072-2/+2
| | | | llvm-svn: 134584
* In an in-class initialization, defer checks for value-dependent initializationNick Lewycky2011-07-072-3/+16
| | | | | | expressions. llvm-svn: 134583
* Added "target variable" command that allows introspection of globalGreg Clayton2011-07-0739-415/+771
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variables prior to running your binary. Zero filled sections now get section data correctly filled with zeroes when Target::ReadMemory reads from the object file section data. Added new option groups and option values for file lists. I still need to hook up all of the options to "target variable" to allow more complete introspection by file and shlib. Added the ability for ValueObjectVariable objects to be created with only the target as the execution context. This allows them to be read from the object files through Target::ReadMemory(...). Added a "virtual Module * GetModule()" function to the ValueObject class. By default it will look to the parent variable object and return its module. The module is needed when we have global variables that have file addresses (virtual addresses that are specific to module object files) and in turn allows global variables to be displayed prior to running. Removed all of the unused proxy object support that bit rotted in lldb_private::Value. Replaced a lot of places that used "FileSpec::Compare (lhs, rhs) == 0" code with the more efficient "FileSpec::Equal (lhs, rhs)". Improved logging in GDB remote plug-in. llvm-svn: 134579
* Zap a couple unnecessary loops.Eli Friedman2011-07-072-20/+2
| | | | llvm-svn: 134578
* Add a target hook to encode the compact unwind information.Bill Wendling2011-07-076-14/+130
| | | | llvm-svn: 134577
* Add isCodeGenOnly value to the CodeGenInstruction class.Jim Grosbach2011-07-072-0/+2
| | | | | | | So users of a CGI don't have to look up the value directly from the original Record; just like the rest of the convenience values in the class. llvm-svn: 134576
* new webpage describing type commandEnrico Granata2011-07-071-0/+576
| | | | llvm-svn: 134575
OpenPOWER on IntegriCloud