summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Update checker build.Ted Kremenek2009-03-131-1/+1
| | | | llvm-svn: 66855
* Fixed an ir-gen bug related to strong-cast generation ofFariborz Jahanian2009-03-132-0/+49
| | | | | | source being a non-pointer. llvm-svn: 66854
* Fix spelling error, and add target triplet to header.Mike Stump2009-03-131-2/+2
| | | | llvm-svn: 66853
* Improve the representation of operator expressions like "x + y" withinDouglas Gregor2009-03-137-140/+278
| | | | | | | | | | | | | | | | C++ templates. In particular, keep track of the overloaded operators that are visible from the template definition, so that they can be merged with those operators visible via argument-dependent lookup at instantiation time. Refactored the lookup routines for argument-dependent lookup and for operator name lookup, so they can be called without immediately adding the results to an overload set. Instantiation of these expressions is completely wrong. I'll work on that next. llvm-svn: 66851
* just initialize the first element, we don't need to set the rest to zeros.Chris Lattner2009-03-131-3/+3
| | | | llvm-svn: 66850
* When testing with VERBOSE=0, report results in the ISO format. WeMike Stump2009-03-131-0/+5
| | | | | | | include the triplet so that people that run multiple targets in parallel, say i386 and x86_64 can distinguish between the two. llvm-svn: 66849
* ccc/Driver: Mark {dump{machine,specs,version},Daniel Dunbar2009-03-134-30/+17
| | | | | | | print-{multi-{directory,lib,os-directory}, search-dirs} as unsupported instead of handling separately. llvm-svn: 66848
* Eliminate a 9640 byte static mutable initialized data item by moving itChris Lattner2009-03-131-2/+2
| | | | | | to the stack. This shrinks all llvm tools by 9k, and improves reentrancy. llvm-svn: 66847
* Bring in std::string to fix compilation on GCC 4.3Argyrios Kyrtzidis2009-03-131-0/+1
| | | | llvm-svn: 66846
* static functions don't need an anonymous namespace.Chris Lattner2009-03-121-373/+371
| | | | llvm-svn: 66845
* Driver: Determine which compilation stages to run.Daniel Dunbar2009-03-124-2/+67
| | | | llvm-svn: 66844
* Fix a typo in a comment.Dan Gohman2009-03-121-1/+1
| | | | llvm-svn: 66843
* Use the correct data structures!Ted Kremenek2009-03-122-12/+12
| | | | | | | | | | | | | | | | ExplodedGraph::TrimGraph: - Just do a DFS both ways instead of BFS-DFS. We're just determining what subset of the nodes are reachable from the root and reverse-reachable from the bug nodes. DFS is more efficient for this task. BugReporter: - MakeReportGraph: Do a reverse-BFS instead of a reverse-DFS to determine the approximate shortest path through the simulation graph. We were seeing some weird cases where too many loops were being reported for simple bugs. Possibly we will need to replace this with actually computing the shortest path in terms of line numbers. llvm-svn: 66842
* Previous debug info fix to this code wasn't quiteDale Johannesen2009-03-121-5/+4
| | | | | | | | right; did the wrong thing when there are exactly 11 non-debug instructions, followed by debug info. Remove a FIXME since it's apparently been fixed along the way. llvm-svn: 66840
* cosmetic change, in preparation of future changeGabor Greif2009-03-121-3/+3
| | | | llvm-svn: 66839
* Add this test back.Evan Cheng2009-03-121-0/+11
| | | | llvm-svn: 66838
* Eliminate some unused default cases in switches on the binary operator kindDouglas Gregor2009-03-122-3/+4
| | | | llvm-svn: 66837
* More objc2's ivar layout bitmap.Fariborz Jahanian2009-03-121-62/+104
| | | | | | | bitmap generation for basic ivars seem to work now. This is work in progress. llvm-svn: 66836
* Implement template instantiation for builtin binary operatorsDouglas Gregor2009-03-125-15/+76
| | | | llvm-svn: 66835
* Use paropery's setter attribute name asFariborz Jahanian2009-03-122-7/+17
| | | | | | the selector for the property setter. llvm-svn: 66834
* Store the type of the integral value within a TemplateArgument, so that we ↵Douglas Gregor2009-03-123-22/+33
| | | | | | can more efficiently reconstruct an IntegerLiteral from it during template instantiation llvm-svn: 66833
* Fix crash when using TypedViewRegions and ObjCQualifiedIdTypes ↵Ted Kremenek2009-03-122-1/+94
| | | | | | (TypedViewRegion::getLValueType() was not implemented). llvm-svn: 66830
* raw_ostream: unbuffered streams weren't being immediately flushed onDaniel Dunbar2009-03-121-0/+6
| | | | | | single character writes. llvm-svn: 66827
* Revert commit 66140 since it caused several failuresDuncan Sands2009-03-122-6/+1
| | | | | | | | | | | in the Ada testcase. Reverting this only covers up the real problem, which is a nasty conceptual difficulty in the phi elimination pass: when eliminating phi nodes in landing pads, the register copies need to come before the invoke, not at the end of the basic block which is too late... See PR3784. llvm-svn: 66826
* Darwin 10.4.x: "-rpath" is unnecessary when linking shared libraries.Scott Michel2009-03-121-19/+23
| | | | llvm-svn: 66825
* There already was a class to force deterministicDale Johannesen2009-03-121-23/+14
| | | | | | sorting of ConstantInt's; unreinvent wheel. llvm-svn: 66824
* Fix an inconsistent use of LLVMGCCDIR. In all other cases, this directoryBob Wilson2009-03-121-1/+1
| | | | | | | | refers to the "prefix" directory, i.e., one level above "bin". LLVMGCCPATH is used as the directory containing the llvm-gcc executable, so add a "/bin" suffix to get from LLVMGCCDIR to LLVMGCCPATH. llvm-svn: 66823
* Add file I forgot to commit in previous commit.Ted Kremenek2009-03-121-2/+2
| | | | llvm-svn: 66820
* Driver: Value initialization is nicer than memset.Daniel Dunbar2009-03-121-2/+1
| | | | | | | | | - Who wouldn't want correctness to hang critically on two easily ignored characters? Thanks Doug! llvm-svn: 66819
* PathDiagnostics:Ted Kremenek2009-03-124-130/+234
| | | | | | | | | | | | | | | | - PathDiagnosticControlFlowPiece now consists of a "start" and "end" location to indicating the branch location and where the branch goes. BugReporter: - Updated BugReporter to construct PathDiagnosticControlFlowPiece objects with "end" locations. PlistDiagnostics: - Plists now contain the bug "type" (not just bug "category") - Plists now encode control-flow pieces differently than events; now the "start" and "end" locations are recorded llvm-svn: 66818
* Driver: Add majority of driver-driver implementation.Daniel Dunbar2009-03-125-2/+136
| | | | | | | | | | | - Compare to driverdriver.c if bored; not completely fair since the driver gets a bit more code in other places to handle binding archs (for Xarch) but not completely unfair either. Fear not, extra Action classes will have a happy home for their vtables soon. llvm-svn: 66817
* Use StmtVisitor to handle the decoding of expressions forDouglas Gregor2009-03-122-36/+84
| | | | | | | instantiation. This is roughly the structure we want to expression instantiation. llvm-svn: 66816
* Rearrange operands of the BranchInst, to be able toGabor Greif2009-03-126-51/+125
| | | | | | | | | | | | | | | | | | | | | | | | | access each with a fixed negative index from op_end(). This has two important implications: - getUser() will work faster, because there are less iterations for the waymarking algorithm to perform. This is important when running various analyses that want to determine callers of basic blocks. - getSuccessor() now runs faster, because the indirection via OperandList is not necessary: Uses corresponding to the successors are at fixed offset to "this". The price we pay is the slightly more complicated logic in the operator User::delete, as it has to pick up the information whether it has to free the memory of an original unconditional BranchInst or a BranchInst that was originally conditional, but has been shortened to unconditional. I was not able to come up with a nicer solution to this problem. (And rest assured, I tried *a lot*). Similar reorderings will follow for InvokeInst and CallInst. After that some optimizations to pred_iterator and CallSite will fall out naturally. llvm-svn: 66815
* API fix: All "bodies" for functions, Objective-C methods, blocks, are assumed toTed Kremenek2009-03-126-16/+21
| | | | | | | | be CompoundStmts. I think this is a valid assumption, and felt that the API should reflect it. Others please validate this assumption to make sure I didn't break anything. llvm-svn: 66814
* Driver: Drop some unnecessary uses of clang namespace.Daniel Dunbar2009-03-123-3/+0
| | | | llvm-svn: 66813
* Driver: Introduce ActionList typedef, tweak some constness.Daniel Dunbar2009-03-123-19/+18
| | | | llvm-svn: 66809
* Driver: Add types::canLipoType helper method.Daniel Dunbar2009-03-122-0/+11
| | | | llvm-svn: 66807
* Driver: Add some HostInfo accessors.Daniel Dunbar2009-03-121-0/+4
| | | | llvm-svn: 66806
* Driver: Add ArgList support for synthesizing arguments.Daniel Dunbar2009-03-122-0/+68
| | | | llvm-svn: 66805
* Re-apply 66024 with fixes: 1. Fixed indirect call to immediate address ↵Evan Cheng2009-03-124-6/+16
| | | | | | assembly. 2. Fixed JIT encoding by making the address pc-relative. llvm-svn: 66803
* More ident fixesAnders Carlsson2009-03-121-11/+11
| | | | llvm-svn: 66801
* Another missing check for debug intrinsics.Dale Johannesen2009-03-121-1/+1
| | | | llvm-svn: 66800
* add a callback for macro expansion, based on a patch by Paolo Bolzoni!Chris Lattner2009-03-122-0/+7
| | | | llvm-svn: 66799
* Fully initialize all ivars, fixing PR3790, patch by Edwin Torok!Chris Lattner2009-03-121-1/+1
| | | | llvm-svn: 66798
* Typo.Evan Cheng2009-03-121-1/+1
| | | | llvm-svn: 66797
* Straw man for instantiation of expressions. Use it to instantiate theDouglas Gregor2009-03-123-2/+84
| | | | | | | | | width of bitfields. I'll be burning this down and replacing it with a properly-dispatched implementation like the one used for types. llvm-svn: 66796
* Fix test after Chris' select changes.Evan Cheng2009-03-121-3/+3
| | | | llvm-svn: 66795
* Driver: Add ArgList::getLastArg.Daniel Dunbar2009-03-122-4/+7
| | | | llvm-svn: 66794
* ccc: Fix broken assertion.Daniel Dunbar2009-03-121-1/+2
| | | | llvm-svn: 66793
* ccc: Fix -ccc-print-phases when doing a universal build.Daniel Dunbar2009-03-121-5/+6
| | | | llvm-svn: 66792
OpenPOWER on IntegriCloud