summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Hooking up two more calls for the PythonOSPlugin stuff. The part of code to ↵Enrico Granata2012-08-244-4/+160
| | | | | | fetch the data and convert it to C++ objects is still missing, but will come llvm-svn: 162522
* Updated LibTooling.html, minor improvements in CommonOptionsParserAlexander Kornienko2012-08-244-80/+59
| | | | llvm-svn: 162521
* Fix undefined behavior (negation of INT_MIN) in ARM backend.Richard Smith2012-08-242-2/+2
| | | | llvm-svn: 162520
* Was forcing everyone on ToT to use the PythonOSPlugin.. my badEnrico Granata2012-08-241-1/+1
| | | | llvm-svn: 162519
* Fix floating-point divide by zero, in a case where the value was not going ↵Richard Smith2012-08-241-1/+1
| | | | | | to be used anyway. llvm-svn: 162518
* Remove some spurious mayLoad = 0 flags.Jakob Stoklund Olesen2012-08-241-14/+8
| | | | | | | They were inserted to silence TableGen's warning about redundant properties. That warning is now gone. llvm-svn: 162517
* Heed guessInstructionProperties, and stop warning on redundant flags.Jakob Stoklund Olesen2012-08-243-93/+92
| | | | | | | | | | | | Emit TableGen errors if guessInstructionProperties is 0 and instruction properties can't be inferred from patterns. Allow explicit instruction properties even when they can be inferred. This patch doesn't change the TableGen output. Redundant properties are not yet verified because the tree has errors. llvm-svn: 162516
* Add missing SDNP properties on the flushw node.Jakob Stoklund Olesen2012-08-241-1/+1
| | | | llvm-svn: 162515
* X86MemBarrier has unmodeled side effects.Jakob Stoklund Olesen2012-08-241-1/+1
| | | | llvm-svn: 162514
* Adding bindings to the Script Interpreter for some basic Python OS plugin ↵Enrico Granata2012-08-247-13/+244
| | | | | | functionality (still WIP) llvm-svn: 162513
* DeclPrinter tests: mark test case we get wrong currently with WRONG.Dmitri Gribenko2012-08-241-1/+1
| | | | llvm-svn: 162512
* DeclPrinter tests: add two more tests.Dmitri Gribenko2012-08-241-0/+23
| | | | llvm-svn: 162511
* Fix a typo.Johnny Chen2012-08-241-1/+1
| | | | llvm-svn: 162510
* [ms-inline asm] Add the basic APIs for Exprs to the MSAsmStmt AST. Next we needChad Rosier2012-08-243-6/+45
| | | | | | generate the Input/Output expressions using Sema::ActOnIdExpression(). llvm-svn: 162509
* [analyzer] Make analyzer less aggressive when dealing with [self init].Anna Zaks2012-08-245-15/+171
| | | | | | | | | | | | | | With inlining, retain count checker starts tracking 'self' through the init methods. The analyser results were too noisy if the developer did not follow 'self = [super init]' pattern (which is common especially in older code bases) - we reported self init anti-pattern AND possible use-after-free. This patch teaches the retain count checker to assume that [super init] does not fail when it's not consumed by another expression. This silences the retain count warning that warns about possibility of use-after-free when init fails, while preserving all the other checking on 'self'. llvm-svn: 162508
* Comment semantic analysis: treat function typedefs as functions so that one canDmitri Gribenko2012-08-244-3/+85
| | | | | | | | use \param and \returns in documentation. Fixes PR13533. llvm-svn: 162507
* Fix a few -Wdocumentation warnings.Dmitri Gribenko2012-08-245-13/+7
| | | | llvm-svn: 162506
* Fix undefined behavior (signed integer overflow) when Clang parses a ↵Richard Smith2012-08-241-1/+3
| | | | | | hexfloat with an enormous exponent. Caught by an existing unit test + -ftrapv. llvm-svn: 162505
* Switch over to using object instances for all PythonData objects.Greg Clayton2012-08-232-86/+178
| | | | llvm-svn: 162504
* Clarify the doc string for register-name a bit, add flags.Jim Ingham2012-08-231-1/+4
| | | | llvm-svn: 162503
* Take '--help' as well as '-h' as hint to emit the usage output.Johnny Chen2012-08-231-1/+1
| | | | llvm-svn: 162502
* Now that ASTMultiPtr is nothing more than a array reference, make it a ↵Benjamin Kramer2012-08-2322-176/+106
| | | | | | | | MutableArrayRef. This required changing all get() calls to data() and using the simpler constructors. llvm-svn: 162501
* Document the generic register names in help for register-name.Jim Ingham2012-08-231-1/+15
| | | | llvm-svn: 162500
* Formatting cleanup.Eric Christopher2012-08-231-7/+7
| | | | llvm-svn: 162499
* Add an assert here in case parsing gave us a NULL compile unit.Eric Christopher2012-08-231-1/+3
| | | | llvm-svn: 162498
* [scan-build] Accept -fno-objc-arc as well as -fobjc-arc.Jordan Rose2012-08-231-0/+1
| | | | | | | | | This is how Xcode lets individual files be marked as non-ARC when the rest of the project is ARC-enabled, so this is necessary for scan-build xcodebuild. Patch by Paul Eipper! llvm-svn: 162497
* [analyzer] For now, treat pointers-to-members as non-null void * symbols.Jordan Rose2012-08-233-3/+60
| | | | | | | | | | | | Until we have full support for pointers-to-members, we can at least approximate some of their use by tracking null and non-null values. We thus treat &A::m_ptr as a non-null void * symbol, and MemberPointer(0) as a pointer-sized null constant. This enables support for what is sometimes called the "safe bool" idiom, demonstrated in the test case. llvm-svn: 162495
* [analyzer] Handle UserDefinedConversion casts in C++.Jordan Rose2012-08-232-11/+24
| | | | | | | | This is trivial; the UserDefinedConversion always wraps a CXXMemberCallExpr for the appropriate conversion function, so it's just a matter of propagating that value to the CastExpr itself. llvm-svn: 162494
* Remove the DW_AT_MIPS_linkage name attribute when we don't need itEric Christopher2012-08-233-5/+67
| | | | | | | | | | | output (we're emitting a specification already and the information isn't changing) and we're not in old gdb compat mode. Saves 1% on the debug information for a build of llvm. Fixes rdar://11043421 llvm-svn: 162493
* Remove ASTOwningVector, it doesn't own anything and provides no value over ↵Benjamin Kramer2012-08-2316-105/+79
| | | | | | SmallVector. llvm-svn: 162492
* Attaching comments to decls: since it was decided that Decl::isImplicit shouldDmitri Gribenko2012-08-231-2/+0
| | | | | | | | | | | | not be set for implicit instantiations, remove the FIXME. This should be the last bit for PR13634. The actual fix happened in r162238. Motivation: it might be misleading to mark implicit instantiations as Decl::isImplicit = true. Because then, in order to be consistent, we should mark all instantiated members as implicit. But the user did actually type the declaration for the member, but the compiler played with it a little bit. llvm-svn: 162488
* Turn these two options in to trinary state so that they can beEric Christopher2012-08-233-16/+43
| | | | | | turned on and off separate from the platform if you're on darwin. llvm-svn: 162487
* Add a flag to DwarfDebug to allow it to communicate whether or notEric Christopher2012-08-232-0/+9
| | | | | | we're using the darwin old gdb compat mode for emitting dwarf. llvm-svn: 162486
* Preserve operand flags in convertToThreeAddress() by copying operands.Jakob Stoklund Olesen2012-08-231-67/+52
| | | | | | No test case, this is a generalization of r160260. llvm-svn: 162485
* Cope with the case where the user-supplied callbacks want the watchpoint ↵Johnny Chen2012-08-235-1/+93
| | | | | | | | | | | | itself to be disabled! Previously we put a WatchpointSentry object within StopInfo.cpp to disable-and-then-enable the watchpoint itself while we are performing the actions associated with the triggered watchpoint, which can cause the user-initiated watchpoint disabling action to be negated. Add a test case to verify that a watchpoint can be disabled during the callbacks. llvm-svn: 162483
* A first version of a bunch of classes that wrap commonly used Python objects ↵Enrico Granata2012-08-234-0/+459
| | | | | | in a ref-counting and type-safe C++ API llvm-svn: 162481
* [ms-inline asm] Add a few helper function to the MSAsmStmt class that are neededChad Rosier2012-08-231-0/+38
| | | | | | | | | | by CodeGen. In the long-term, much of the codegen logic will be shared between the GNU-style and MS-style inline assembly, but for now I'm replicating this logic to avoid regressions with the GNU-style. llvm-svn: 162478
* Rip out remnants of move semantic emulation and smart pointers in Sema.Benjamin Kramer2012-08-2328-428/+263
| | | | | | | These were nops for quite a while and only lead to confusion. ASTMultiPtr now behaves like a proper dumb array reference. llvm-svn: 162475
* Added a hollowed out version of an OperatingSystem plugin that will use a ↵Greg Clayton2012-08-236-1/+370
| | | | | | class in python to get thread information for threads stored in memory. llvm-svn: 162472
* Added a method to DeclContext that marks theSean Callanan2012-08-231-0/+7
| | | | | | | | | | lookup table as needing to be built. This is required for LLDB, which provides the contents of many DeclContexts through a custom ExternalASTSource. llvm-svn: 162471
* gdb format should default to count of 1.Jim Ingham2012-08-231-2/+2
| | | | | | <rdar://problem/12161861> llvm-svn: 162470
* Change a bunch of cases where we do "getAs<...>->doSomething()" toTed Kremenek2012-08-232-16/+19
| | | | | | | | | "castAs<...>->doSomething()". The analyzer was flagging these as potential null dereferences, which is technically true. The invariants appear to be that these casts should never fail, so let's use castAs<> instead and avoid a runtime check. llvm-svn: 162468
* Make the substring un-matching more robust.Johnny Chen2012-08-231-1/+1
| | | | llvm-svn: 162467
* Make a test scenario stronger, since, by default, the setting ↵Johnny Chen2012-08-231-2/+3
| | | | | | interpreter.expand-regex-aliases is false. llvm-svn: 162465
* When disambiguating an expression-statement from a declaraton-statement, if theRichard Smith2012-08-235-17/+42
| | | | | | | statement starts with an identifier for which name lookup will fail either way, look at later tokens to disambiguate in order to improve error recovery. llvm-svn: 162464
* [ms-inline asm] Remove an unused argument. This logic can now be reused by theChad Rosier2012-08-232-10/+7
| | | | | | ms-style inline asms. llvm-svn: 162463
* Fix the test suite failures as a result of r162418 check-in.Johnny Chen2012-08-232-2/+5
| | | | llvm-svn: 162462
* Tristate mayLoad, mayStore, and hasSideEffects.Jakob Stoklund Olesen2012-08-235-7/+37
| | | | | | | Keep track of the set/unset state of these bits along with their true/false values, but treat '?' as '0' for now. llvm-svn: 162461
* Add CodeGenTarget::guessInstructionProperties.Jakob Stoklund Olesen2012-08-233-0/+24
| | | | | | | | | | | | Currently, TableGen just guesses instruction properties when it can't infer them form patterns. This adds a guessInstructionProperties flag to the instruction set definition that will be used to disable guessing. The flag is intended as a migration aid. It will be removed again when no more targets need their properties guessed. llvm-svn: 162460
* Fix attributes on X86 store intrinsics.Jakob Stoklund Olesen2012-08-231-11/+11
| | | | | | | These intrinsics don't have unmodeled side effects, they are just stores. llvm-svn: 162459
OpenPOWER on IntegriCloud