summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a testcase to verify that commands don't crash when they hitDan Gohman2010-08-181-0/+9
| | | | | | errors on stderr. llvm-svn: 111440
* Simplify the ownership model for DiagnosticClients, which was reallyDouglas Gregor2010-08-1810-64/+57
| | | | | | | convoluted and a bit leaky. Now, the Diagnostic object owns its DiagnosticClient. llvm-svn: 111437
* Make raw_fd_ostream consider itself the owner of STDOUT_FILENO whenDan Gohman2010-08-182-4/+10
| | | | | | | | | constructed with an output filename of "-". In particular, allow the file descriptor to be closed, and close the file descriptor in the destructor if it hasn't been explicitly closed already, to ensure that any write errors are detected. llvm-svn: 111436
* When sending stats output to stdout for grepping, don't emit normalDan Gohman2010-08-181-1/+1
| | | | | | output to standard output also. llvm-svn: 111435
* Add/update a bunch of svn:ignore properties; get rid of empty folderEli Friedman2010-08-180-0/+0
| | | | | | lib/Runtime. llvm-svn: 111434
* move gep decomposition out of ValueTracking into BasicAA. The form ofChris Lattner2010-08-183-242/+229
| | | | | | | | | decomposition that it is doing is very basicaa specific and is only used by basicaa. Now with less tree breakingness. llvm-svn: 111433
* Tidy.Dan Gohman2010-08-181-5/+4
| | | | llvm-svn: 111432
* Minor simplification. Gets rid of a needless temporary.Bill Wendling2010-08-181-4/+3
| | | | llvm-svn: 111430
* Simplify the assert matched-string criterion.Johnny Chen2010-08-181-4/+1
| | | | llvm-svn: 111429
* There is no pointer conversion between to similar types (i.e., sameDouglas Gregor2010-08-182-0/+27
| | | | | | | type ignoring cv-qualifiers). These are qualification conversions. Fixes PR7934. llvm-svn: 111428
* Call llvm::remove_fatal_error_handler before deallocating objectsDan Gohman2010-08-182-2/+7
| | | | | | which are used by the error handling functions. llvm-svn: 111427
* Added psuedo-constant analysis and integrated it into the false positive ↵Tom Care2010-08-189-24/+247
| | | | | | | | | | | | | reduction stage in IdempotentOperationChecker. - Renamed IdempotentOperationChecker::isConstant to isConstantOrPseudoConstant to better reflect the function - Changed IdempotentOperationChecker::PreVisitBinaryOperator to only run 'CanVary' once on undefined assumptions - Created new PsuedoConstantAnalysis class and added it to AnalysisContext - Changed IdempotentOperationChecker to exploit the new analysis - Updated tests with psuedo-constants - Added check to IdempotentOperationChecker to see if a Decl is const qualified llvm-svn: 111426
* Use ConstantRange to propagate information through value definitions.Owen Anderson2010-08-181-4/+83
| | | | llvm-svn: 111425
* When sending stats output to stdout for grepping, don't emit normalDan Gohman2010-08-188-9/+9
| | | | | | output to standard output also. llvm-svn: 111401
* Thinking about it, we don't need MachineDominatorTree after all. The DomValueJakob Stoklund Olesen2010-08-182-19/+26
| | | | | | map discovers the iterated dominance frontier for free. llvm-svn: 111400
* Introduce a ScopedFatalErrorHandler class to make it easy to registerDan Gohman2010-08-181-0/+12
| | | | | | | fatal error handlers which automatically get unregistered at the end of a scope. llvm-svn: 111398
* Revert r111394. It was too aggressive.Jakob Stoklund Olesen2010-08-182-12/+3
| | | | | | | | | | We must complete the DFS, otherwise we might miss needed phi-defs, and prematurely color live ranges with a non-dominating value. This is not a big deal since we get to color more of the CFG and the next mapValue call will be faster. llvm-svn: 111397
* Some Block:: methods wandered to the end of the file after the BlockList:: ↵Jim Ingham2010-08-181-70/+70
| | | | | | methods. I moved them back. llvm-svn: 111396
* Contextual arity is a feature of mangling expressions; kill offJohn McCall2010-08-182-45/+47
| | | | | | | | mangleCallExpression. Also, operator names with unknown arity should be mangled as binary operators; this is actually covered by an oddly- positioned sentence in the ABI document. Fixes PR7891. llvm-svn: 111395
* Aggressively prune the DFS when inserting phi-defs.Jakob Stoklund Olesen2010-08-182-3/+12
| | | | llvm-svn: 111394
* Add the LiveIntervalMap class. Don't hook it up yet.Jakob Stoklund Olesen2010-08-182-1/+279
| | | | | | | | | | | | | | | | LiveIntervalMap maps values from a parent LiveInterval to a child interval that is a strict subset. It will create phi-def values as needed to preserve the VNInfo SSA form in the child interval. This leads to an algorithm very similar to the one in SSAUpdaterImpl.h, but with enough differences that the code can't be reused: - We don't need to manipulate PHI instructions. - LiveIntervals have kills. - We have MachineDominatorTree. - We can use df_iterator. llvm-svn: 111393
* Add df_iterator::getPathLength and getPath as a way of getting a path from theJakob Stoklund Olesen2010-08-181-0/+10
| | | | | | entry node to the current node. llvm-svn: 111392
* Updated by-chapter chart with weekly test results. Also did some ↵Howard Hinnant2010-08-183-1/+66
| | | | | | prototyping on result_of, but if-def'd out the prototyped part (which the LWG may or may not accept) llvm-svn: 111389
* Patch by Bill Lynch fixing handling of the pidSean Callanan2010-08-185-17/+13
| | | | | | in the IR transformation passes. llvm-svn: 111388
* libclang: Put clang_parseTranslationUnit inside a crash recovery context.Daniel Dunbar2010-08-182-12/+54
| | | | llvm-svn: 111387
* libclang: Implicitly enable crash recovery when using the libclang APIs. We ↵Daniel Dunbar2010-08-181-0/+5
| | | | | | may need to add an explicit API call, but hopefully we can make the crash recovery seamless enough that it doesn't make sense to turn it off. llvm-svn: 111386
* Revert r111375, "move gep decomposition out of ValueTracking into BasicAA. TheDaniel Dunbar2010-08-183-213/+241
| | | | | | form of", it doesn't pass tests. llvm-svn: 111385
* Improve whitespace.Bill Wendling2010-08-181-1/+2
| | | | llvm-svn: 111384
* Marked with ATTRIBUTE_USED so that clang doesn't complain.Bill Wendling2010-08-181-1/+1
| | | | llvm-svn: 111383
* Inform LazyValueInfo whenever a block is deleted, to avoid dangling pointer ↵Owen Anderson2010-08-183-21/+56
| | | | | | issues. llvm-svn: 111382
* Avoid an assertion crash by avoiding a circular dependency in the objectiveGreg Clayton2010-08-181-3/+0
| | | | | | C builtin type conversion. llvm-svn: 111381
* Changed "Error Value::GetValueAsData (...)" to set the data extractor byte Greg Clayton2010-08-181-0/+9
| | | | | | | | | | order and address size correctly when the value comes from a file address. Values have "file" addresses when they are globals and the debug information specifies that they live in the object file at a given address (DWARF will represent this as a location "DW_OP_addr <addr>"). This causes global pointers to correctly extract their children on 64 bit programs. llvm-svn: 111380
* Added call stacks with inlined functions higher on the stack, and ↵Jim Ingham2010-08-182-1/+20
| | | | | | non-inlined functions at the bottom. llvm-svn: 111379
* Added a Thread accessor to the register context.Greg Clayton2010-08-181-0/+6
| | | | llvm-svn: 111378
* Allow the SBDebugger to construct itself with the default constructor soGreg Clayton2010-08-181-3/+2
| | | | | | objects can own one of these objects and assign a valid value at a later point. llvm-svn: 111377
* MC/ELF: Allow null values in virtual sections, ELF doesn't use specialDaniel Dunbar2010-08-183-1/+29
| | | | | | directives for putting contents in .bss, for example. llvm-svn: 111376
* move gep decomposition out of ValueTracking into BasicAA. The form ofChris Lattner2010-08-183-241/+213
| | | | | | | decomposition that it is doing is very basicaa specific and is only used by basicaa. llvm-svn: 111375
* Add hook for re-using virtual base registers for local stack slot access.Jim Grosbach2010-08-184-12/+56
| | | | | | | | | | Nothing fancy, just ask the target if any currently available base reg is in range for the instruction under consideration and use the first one that is. Placeholder ARM implementation simply returns false for now. ongoing saga of rdar://8277890 llvm-svn: 111374
* Eliminate some redundancy by relying on raw_fd_ostream to handle "-"Dan Gohman2010-08-181-43/+34
| | | | | | properly. llvm-svn: 111373
* Allow the -analyze option to follow the -o option, which defaults toDan Gohman2010-08-181-30/+35
| | | | | | standard output, instead of just hardcoding outs(). llvm-svn: 111372
* Don't translate "-" to outs() manually; raw_ostream does that automatically.Dan Gohman2010-08-181-31/+23
| | | | llvm-svn: 111371
* Don't translate "-" to outs() manually; raw_ostream does thatDan Gohman2010-08-181-6/+3
| | | | | | automatically. llvm-svn: 111370
* Don't register stdout to be deleted on a signal.Dan Gohman2010-08-181-1/+2
| | | | llvm-svn: 111368
* Remove an unused command-line option.Dan Gohman2010-08-181-3/+0
| | | | llvm-svn: 111367
* Preserve subregs on PHI source operands. Patch by Krister Wombell!Jakob Stoklund Olesen2010-08-181-1/+4
| | | | llvm-svn: 111366
* zap dead code.Chris Lattner2010-08-184-63/+14
| | | | llvm-svn: 111365
* no need to pass bumppointer allocator into macroinfo::destroyChris Lattner2010-08-183-8/+7
| | | | llvm-svn: 111364
* Make sure to add MallocAttr to explicitly-declared operator new/new[]Douglas Gregor2010-08-182-1/+8
| | | | | | when -fassume-sane-operator-new. Patch by Tom Jablin! llvm-svn: 111363
* Simplify FixItHint by eliminated the unnecessary InsertionLocDouglas Gregor2010-08-185-52/+16
| | | | | | location. Patch by Eelis van der Weegen! llvm-svn: 111362
* Fix a bug with insertelement on SPU. Kalle Raiskila2010-08-182-6/+26
| | | | | | | The previous algorithm in LowerVECTOR_SHUFFLE didn't check all requirements for "monotonic" shuffles. llvm-svn: 111361
OpenPOWER on IntegriCloud