summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't refer to check.deps unless LLVM_INCLUDE_TESTS is enabledDouglas Gregor2011-07-151-2/+2
| | | | llvm-svn: 135300
* A real testcase for r135286.Chad Rosier2011-07-151-36/+19
| | | | llvm-svn: 135299
* Update these tests, no longer outputting names for the variables.Eric Christopher2011-07-152-6/+6
| | | | llvm-svn: 135298
* Fix pointer heuristic. Check whether predicator is ICMP_NE instead of if it isJakub Staszak2011-07-151-2/+2
| | | | | | not isEquality(). llvm-svn: 135296
* Add some more docstrings for SBCompileUnit and SBBreakpoint, plus ↵Johnny Chen2011-07-154-10/+48
| | | | | | | | | | | | incorporate the doxgen doc block of SBValue::GetChildAtIndex(uint32_t idx, lldb::DynamicValueType use_dynamic, bool can_create_synthetic); into the SBValue docstrings. llvm-svn: 135295
* [analyzer] GNU __null is a pointer-sized integer, not a pointer. Fixes PR10372.Jordy Rose2011-07-152-1/+12
| | | | llvm-svn: 135294
* A couple of minor fixes to the OCaml tutorial. PR10025 and PR10316. ↵Eli Friedman2011-07-151-5/+6
| | | | | | Patches by Damien Schoof! llvm-svn: 135293
* Added the ability to get synthetic child values from SBValue objects thatGreg Clayton2011-07-153-14/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | represent pointers and arrays by adding an extra parameter to the SBValue SBValue::GetChildAtIndex (uint32_t idx, DynamicValueType use_dynamic, bool can_create_synthetic); The new "can_create_synthetic" will allow you to create child values that aren't actually a part of the original type. So if you code like: int *foo_ptr = ... And you have a SBValue that contains the value for "foo_ptr": SBValue foo_value = ... You can now get the "foo_ptr[12]" item by doing this: v = foo_value.GetChiltAtIndex (12, lldb.eNoDynamicValues, True); Normall the "foo_value" would only have one child value (an integer), but we can create "synthetic" child values by treating the pointer as an array. Likewise if you have code like: int array[2]; array_value = .... v = array_value.GetChiltAtIndex (0); // Success, v will be valid v = array_value.GetChiltAtIndex (1); // Success, v will be valid v = array_value.GetChiltAtIndex (2); // Fail, v won't be valid, "2" is not a valid zero based index in "array" But if you use the ability to create synthetic children: v = array_value.GetChiltAtIndex (0, lldb.eNoDynamicValues, True); // Success, v will be valid v = array_value.GetChiltAtIndex (1, lldb.eNoDynamicValues, True); // Success, v will be valid v = array_value.GetChiltAtIndex (2, lldb.eNoDynamicValues, True); // Success, v will be valid llvm-svn: 135292
* Add testcase for r135286.Chad Rosier2011-07-151-0/+47
| | | | llvm-svn: 135291
* Remove VMOVDneon and VMOVQ, which are just aliases for VORR. This continues ↵Owen Anderson2011-07-158-26/+21
| | | | | | to simplify the path towards an auto-generated disassembler. llvm-svn: 135290
* Teach llvm-objdump to disassemble sections symbol by symbol.Benjamin Kramer2011-07-152-23/+60
| | | | llvm-svn: 135289
* ObjectFile: Add a method to check whether a section contains a symbol.Benjamin Kramer2011-07-155-0/+50
| | | | | | | - No ELF or COFF implementation yet, I don't have a way to test that. Should be straightforward to add though. llvm-svn: 135288
* Have tblgen produce code that tolerates operands that return an invalid ↵Kevin Enderby2011-07-151-0/+4
| | | | | | match class. llvm-svn: 135287
* Disable loop idiom recognition of memset/memcpy if the function being compiledChad Rosier2011-07-151-0/+5
| | | | | | | | | is named after a common idiom (i.e., memset/memcpy). Otherwise, we can run into infinite recursion. Ideally, the user should use the correct -fno-builtin flag, but in case they don't we should play nicely. rdar://9763412 llvm-svn: 135286
* Fix typoJoerg Sonnenberger2011-07-151-1/+1
| | | | llvm-svn: 135285
* Fixed the comment lines in the file comment headers.Greg Clayton2011-07-156-6/+6
| | | | llvm-svn: 135284
* Remove unnecessary duplicate instruction definitions that simply overloaded ↵Owen Anderson2011-07-151-9/+8
| | | | | | the type of VEXT. This can be achieved with a Pat definition, and is much more disassembler friendly. llvm-svn: 135283
* MachOObjectFile: Get symbol functions ready for 64 bit.Benjamin Kramer2011-07-151-13/+58
| | | | llvm-svn: 135282
* No need to explicitly invoke the ArrayRef constructor here.Frits van Bommel2011-07-151-1/+1
| | | | llvm-svn: 135281
* Use the new APFloat::convertToInt(APSInt) function to simplify uses ofJeffrey Yasskin2011-07-152-11/+8
| | | | | | convertToInt(integerParts*) and make them more reliable. llvm-svn: 135279
* Eliminate redundant map.Devang Patel2011-07-152-12/+3
| | | | llvm-svn: 135278
* Added the ability to connect using "tcp://<host>:<port>" which is theGreg Clayton2011-07-156-261/+277
| | | | | | | | | | | | | | | | | | | | | same as the old "connect://<host>:<port>". Also added the ability to connect using "udp://<host>:<port>" which will open a connected datagram socket. I need to find a way to specify a non connected datagram socket as well. We might need to start setting some settings in the URL itself, maybe something like: udp://<host>:<port>?connected=yes udp://<host>:<port>?connected=no I am open to suggestions for URL settings. Also did more work on the KDP darwin kernel plug-in. llvm-svn: 135277
* Store bracket locations for array subscript expressions, from Erik Verbruggen!Douglas Gregor2011-07-153-10/+29
| | | | llvm-svn: 135275
* When creating a property in a class extension, make sure to check itsDouglas Gregor2011-07-152-0/+12
| | | | | | attributes. Fixes <rdar://problem/9561076>. llvm-svn: 135273
* Revert locale for apple back to original design, getting rid of now useless ↵Howard Hinnant2011-07-151-88/+18
| | | | | | helper *_l functions llvm-svn: 135272
* _LIBCXX_STABLE_APPLE_ABI -> _LIBCPP_STABLE_APPLE_ABIHoward Hinnant2011-07-151-3/+3
| | | | llvm-svn: 135271
* Eliminate "const" from extern const to fix breakeage since r135184 on msvc.NAKAMURA Takumi2011-07-155-10/+10
| | | | | | MSVC decorates (and distinguishes) "const" in mangler. It brought linkage error between "extern const" declarations and definitions. llvm-svn: 135269
* For my ego.Francois Pichet2011-07-151-0/+4
| | | | llvm-svn: 135268
* In Twine::str(), if the Twine stores only a std::string, just return a ↵Frits van Bommel2011-07-151-3/+8
| | | | | | direct copy of that instead of first copying to a SmallString and converting that to a std::string. Also fix some indentation. llvm-svn: 135267
* Convert CallInst and InvokeInst APIs to use ArrayRef. For the LLVM examples.Francois Pichet2011-07-156-10/+10
| | | | llvm-svn: 135266
* Convert CallInst and InvokeInst APIs to use ArrayRef.Jay Foad2011-07-1541-383/+213
| | | | llvm-svn: 135265
* Restore the C-style cast hack for enum template arguments,John McCall2011-07-152-1/+22
| | | | | | | | which is required given the current setup for template argument deduction substitution validation, and add a test case to make sure we don't break it in the future. llvm-svn: 135262
* Explicitly cast the second argument to unsigned in order to select theChandler Carruth2011-07-151-1/+1
| | | | | | | | | desired overload. This is a bit of a hackish workaround to fix the compile after r135259. Let me know if there is a better approach. llvm-svn: 135261
* Move the Serialization library from 'instantiation' to 'expansion', withChandler Carruth2011-07-154-20/+19
| | | | | | the exception of its uses of SourceManager and SourceLocation APIs. llvm-svn: 135260
* Add an APFloat::convertToInt(APSInt) function that automatically manages theJeffrey Yasskin2011-07-153-0/+69
| | | | | | memory for the result. llvm-svn: 135259
* Add serialization support for SubstNonTypeTemplateParmExpr.John McCall2011-07-155-291/+163
| | | | | | | | | | Also add the missing serialization support for SEHTryStmt, SEHFinallyStmt, and SEHExceptStmt, and fix and finish the serialization support for AsTypeExpr. In addition, change the code so that it will no longer link if a Stmt subclass is missing serialization support. llvm-svn: 135258
* Fix the definition of AsTypeExpr. I'm still not sure thisJohn McCall2011-07-152-12/+16
| | | | | | | | | | is right --- shouldn't there be a TypeLoc in here somewhere? --- but at least it doesn't have a redundant QualType and a broken children() method. Noticed this while doing things in serialization. llvm-svn: 135257
* protect some calls to ConvertType when a function info is under constructionChris Lattner2011-07-151-3/+3
| | | | | | | to prevent recursive compilation problems. This fixes a failure of CodeGen/decl.c on x86-32 targets that don't fill in the coerce-to type. llvm-svn: 135256
* Clean up UnixAPIChecker, including switching its array of BugTypes to ↵Jordy Rose2011-07-151-70/+40
| | | | | | llvm::OwningPtr<BugType> vars (the new convention). No functionality change. llvm-svn: 135255
* Reverting r135232. It's causing infinite looping in DbgScope::openInsnRange.Evan Cheng2011-07-151-13/+5
| | | | llvm-svn: 135254
* remove the old and dangerous uncheckedReplaceAllUsesWith method,Chris Lattner2011-07-153-32/+14
| | | | | | | which was just replaceAllUsesWith without some assertions. It was needed back when type refinement was alive. llvm-svn: 135253
* devirtualize Constant::isNullValue:Chris Lattner2011-07-154-60/+15
| | | | | | 4 files changed, 15 insertions(+), 60 deletions(-) llvm-svn: 135252
* start using the new helper methods a bit.Chris Lattner2011-07-154-23/+21
| | | | llvm-svn: 135251
* Clean up MacOSXAPIChecker, including switching its array of BugTypes to a ↵Jordy Rose2011-07-151-53/+26
| | | | | | single llvm::OwningPtr<BugType> (the new convention). No functionality change. llvm-svn: 135250
* add CFP::isNegative() and ConstnatInt::isNegative() methods.Chris Lattner2011-07-153-8/+16
| | | | | | Devirtualize the isNegativeZeroValue method. llvm-svn: 135249
* bump pointer allocate LLVM IR types, since they are never deallocated.Chris Lattner2011-07-153-38/+23
| | | | llvm-svn: 135248
* Fix wchar tests by not assuming that tm is complete and by using theAlexis Hunt2011-07-152-4/+12
| | | | | | proper va_list time on non-darwin platforms. llvm-svn: 135247
* Reapply 135035 with proper conditional inclusion, hopefully solvingAlexis Hunt2011-07-153-181/+449
| | | | | | issues with it. llvm-svn: 135246
* remove the InvalidateStructLayoutInfo API, which is dead and unnecessary nowChris Lattner2011-07-154-35/+0
| | | | | | that type refinement is toast. llvm-svn: 135245
* Enhance the IR type lowering code to be much smarter about recursively loweringChris Lattner2011-07-154-69/+181
| | | | | | | | | | | | | | | | | | | | | | | | | types. Fore xample, we used to lower: struct bar { int a; }; struct foo { void (*FP)(struct bar); } G; to: %struct.foo = type { {}* } since the function pointer would cause recursive translation of bar and we didn't know if that would get us into trouble. We are now smart enough to know that it is fine, so we get this type instead: %struct.foo = type { void (i32)* } Codegen still needs to be prepared for uncooperative types at any place, which is why I let the maximally uncooperative code sit around for awhile to help shake out the bugs. llvm-svn: 135244
OpenPOWER on IntegriCloud