summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Switch Sema::CreateOverloadedUnaryOp over to InitializationSequence.Douglas Gregor2009-12-231-3/+8
| | | | llvm-svn: 91948
* set svn:ignoreNuno Lopes2009-12-230-0/+0
| | | | llvm-svn: 91947
* warn when attribute warn_unused_result is applied to void functions.Nuno Lopes2009-12-223-3/+12
| | | | | | while at it, remove an outdated FIXME llvm-svn: 91946
* Add coalescer asserts.Jakob Stoklund Olesen2009-12-221-4/+6
| | | | llvm-svn: 91945
* Add a SPR register class to the ARM target.Jakob Stoklund Olesen2009-12-222-1/+14
| | | | | | Certain Thumb instructions require only SP (e.g. tSTRspi). llvm-svn: 91944
* Partially revert r91626. Materializing extra functions to determine whetherJeffrey Yasskin2009-12-223-23/+106
| | | | | | | | | | | they're available_externally broke VMKit, which was relying on the fact that functions would only be materialized when they were first called. We'll have to wait for http://llvm.org/PR5737 to really fix this. I also added a test for one of the F->isDeclaration() calls which wasn't covered by anything else in the test suite. llvm-svn: 91943
* Assign ordering to nodes created in ExpandNode. Only roughly 1/2 of the functionBill Wendling2009-12-221-84/+237
| | | | | | is finished. llvm-svn: 91942
* Allow the first parameter of operator new to be a cv-qualifiedDouglas Gregor2009-12-224-5/+6
| | | | | | | | size_t. Also, fix an issue with initialization of parameters in calls, where we weren't removing the cv-qualifiers on the parameter type itself. Fixes PR5823. llvm-svn: 91941
* Driver: When linking, don't warn about unused arguments which are obviously onlyDaniel Dunbar2009-12-222-11/+20
| | | | | | | | used during compilation. - There is no easy way to define this group properly, unfortunately, and maybe this is a losing strategy. For now this is unambiguous more friendly, though. llvm-svn: 91940
* Fix a crash in JIT::recompileAndRelinkFunction(). It doesn't pass the MCIJeffrey Yasskin2009-12-222-2/+35
| | | | | | | | | argument to runJITOnFunction(), which caused a null pointer dereference at every call. Patch by Gianluca Guida! llvm-svn: 91939
* implement -W[no-]fatal-errors, patch by Christian Adåker!Chris Lattner2009-12-223-3/+48
| | | | llvm-svn: 91938
* Add c++-analyzer symlink (which is used by scan-build)Ted Kremenek2009-12-221-0/+1
| | | | llvm-svn: 91937
* Assign ordering to SDNodes in PromoteNode. Also fixing a subtle bug where BSWAPBill Wendling2009-12-222-15/+83
| | | | | | was using "Tmp1" in the first getNode call instead of Node->getOperand(0). llvm-svn: 91936
* Removed the "inline" keyword from the disassembler decoder,Sean Callanan2009-12-221-30/+30
| | | | | | because the Visual C++ build does not build .c files as C99 llvm-svn: 91935
* rename HexDisassembler -> Disassembler, it works on any inputChris Lattner2009-12-224-10/+10
| | | | | | integer encoding (0123, 0b10101, 42, etc). llvm-svn: 91934
* just discard the debug output from the disassembler.Chris Lattner2009-12-221-6/+2
| | | | llvm-svn: 91933
* Make sure that reinterpret_cast gets a CastKind on all successfulDouglas Gregor2009-12-222-1/+11
| | | | | | | paths. Fixes "cannot compile this unexpected cast lvalue yet" error in llvm/lib/Analysis/IPA/GlobalsModRef.cpp. llvm-svn: 91932
* Add testcase for PR5703Anton Korobeynikov2009-12-221-0/+13
| | | | llvm-svn: 91931
* Revert accidental commitDouglas Gregor2009-12-222-2/+0
| | | | llvm-svn: 91930
* accept -Wcomments as an alias for -Wcomment, PR5855Chris Lattner2009-12-221-2/+3
| | | | llvm-svn: 91929
* Add using shadow decls to the "instantiated locals" map, fixing PR5847.John McCall2009-12-222-0/+19
| | | | llvm-svn: 91928
* Switch Sema::AddCXXDirectInitializerToDecl over to InitializationSequenceDouglas Gregor2009-12-229-44/+50
| | | | llvm-svn: 91927
* Add transfer functions support for visiting an Objective-C message ↵Ted Kremenek2009-12-225-47/+117
| | | | | | expression as an lvalue when the return type is a C++ reference. llvm-svn: 91926
* ARM: Remove a FIXME, it's not actually more complicated than that.Daniel Dunbar2009-12-221-1/+0
| | | | llvm-svn: 91924
* Remove minimal CFG sanity checks from verifier.Jakob Stoklund Olesen2009-12-221-18/+0
| | | | | | | | | These checks would often trigger on unreachable statements inserted by bugpoint, leading it astray. It would be nice if we could distinguish unreachable blocks from errors. llvm-svn: 91923
* Allow explicit %reg0 operands beyond what the .td file describes.Jakob Stoklund Olesen2009-12-221-1/+2
| | | | | | ARM uses these to indicate predicates. llvm-svn: 91922
* Switch parameter passing for overloaded binary operators toDouglas Gregor2009-12-221-7/+31
| | | | | | | InitializationSequence. Fixes the -fsyntax-only failure in llvm/lib/Transforms/Scalar/InstructionCombining.cpp. llvm-svn: 91921
* Allow 0 as an order number. Don't assign an order to formal arguments.Bill Wendling2009-12-222-21/+11
| | | | llvm-svn: 91920
* Fixes to the X86 disassembler:Sean Callanan2009-12-223-8/+20
| | | | | | | | Made LEA memory operands emit only 4 MCInst operands. Made the scale operand equal 1 for instructions that have no SIB byte. llvm-svn: 91919
* Restore snprintf weirdness for VCPP onlyAnton Korobeynikov2009-12-221-0/+8
| | | | llvm-svn: 91918
* Fix the Convert to scalar to not insert dead loads in the store case. TheChris Lattner2009-12-221-2/+12
| | | | | | | | | | | | | | load is needed when we have a small store into a large alloca (at which point we get a load/insert/store sequence), but when you do a full-sized store, this load ends up being dead. This dead load is bad in really large nasty testcases where the load ends up causing mem2reg to insert large chains of dependent phi nodes which only ADCE can delete. Instead of doing this, just don't insert the dead load. This fixes rdar://6864035 llvm-svn: 91917
* fix some fixme's by using twinesChris Lattner2009-12-221-6/+2
| | | | llvm-svn: 91916
* Use proper move instructions. Make the verifier happy.Jakob Stoklund Olesen2009-12-221-1/+1
| | | | llvm-svn: 91914
* Report an error for bad inline assembly, where the value passed for anBob Wilson2009-12-221-2/+6
| | | | | | "indirect" operand is not a pointer. llvm-svn: 91913
* Serialize the NoReturn bit on FunctionTypes for precompiled headersDouglas Gregor2009-12-224-4/+13
| | | | llvm-svn: 91911
* Remove target attribute break-sse-dep. Instead, do not fold load into sse ↵Evan Cheng2009-12-227-56/+25
| | | | | | partial update instructions unless optimizing for size. llvm-svn: 91910
* Enter the scope of an initializer for direct-initialization as well asDouglas Gregor2009-12-222-0/+18
| | | | | | for copy-initialization. llvm-svn: 91909
* Include based on the current path, since we already -I the X86 target's ↵Douglas Gregor2009-12-221-1/+1
| | | | | | path. Fixes CMake build llvm-svn: 91908
* When transforming a C++ "new" expression that was not explicitly givenDouglas Gregor2009-12-222-0/+39
| | | | | | | a size, check whether the transformed type is itself an array type. If so, take the major array bound as the size to allocate. Fixes PR5833. llvm-svn: 91907
* Switch parameter-passing for calls via function pointers (where weDouglas Gregor2009-12-223-18/+30
| | | | | | don't have a FunctionDecl) over to InitializationSequence. llvm-svn: 91906
* Switch InitializedEntity from TypeLoc down to just QualTypes, since we don't ↵Douglas Gregor2009-12-225-150/+60
| | | | | | use the location information but we did spend a bunch of time building faked-up TypeLocs llvm-svn: 91905
* While converting one of the operands to a memory operand, we need to check ↵Sanjiv Gupta2009-12-224-10/+60
| | | | | | if it is Legal and does not result into a cyclic dep. llvm-svn: 91904
* Move the implementation of ASTContext::getTypeSizeInChars() to the .cpp file toKen Dyck2009-12-223-7/+14
| | | | | | avoid #including CharUnits.h in ASTContext.h. llvm-svn: 91903
* Switch initialization of parameters in a call over toDouglas Gregor2009-12-227-17/+43
| | | | | | | | | | | InitializationSequence (when a FunctionDecl is present). This required a few small fixes to initialization sequences: - Make sure to use the adjusted parameter type for initialization of function parameters. - Implement transparent union calling semantics in C llvm-svn: 91902
* specify what is invalid about itChris Lattner2009-12-221-1/+1
| | | | llvm-svn: 91901
* specify a triple to use, fixing the test on non-x86-64 hosts.Chris Lattner2009-12-221-1/+1
| | | | llvm-svn: 91900
* reject invalid input with a caret, e.g.:Chris Lattner2009-12-221-2/+2
| | | | | | | | simple-tests.txt:16:1: error: invalid instruction 0xff 0xff ^ llvm-svn: 91898
* Generalize SROA to allow the first index of a GEP to be non-zero. Add aBob Wilson2009-12-222-23/+57
| | | | | | | | missing check that an array reference doesn't go past the end of the array, and remove some redundant checks for in-bound array and vector references that are no longer needed. llvm-svn: 91897
* various cleanups, make the disassemble reject lines with too muchChris Lattner2009-12-222-40/+50
| | | | | | | | | | | data on them, for example: addb %al, (%rax) simple-tests.txt:11:5: error: excess data detected in input 0 0 0 0 0 ^ llvm-svn: 91896
* If you thought that it didn't make sense for the disassemblerChris Lattner2009-12-221-19/+15
| | | | | | to not produce caret diagnostics, you were right! llvm-svn: 91895
OpenPOWER on IntegriCloud