summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Mark tBX as an indirect branch rather than a return.Cameron Zwarich2011-05-262-9/+9
| | | | llvm-svn: 132107
* Test .seh_startchained and .seh_endchained parsing.Charles Davis2011-05-263-15/+18
| | | | | | | | | | | Rework how the MCWin64EHUnwindInfo instances are stored. Fix issues with chained unwind areas exposed by the test that were related to this. The ChainedParent field had the wrong address, because when the chained unwind info was added, the addresses shifted around. Now we store the pointers to the structures, which are now allocated from the MC heap. llvm-svn: 132106
* Correctly handle a one-word struct passed byval on x86_64.Stuart Hastings2011-05-264-15/+116
| | | | | | rdar://problem/6920088 llvm-svn: 132105
* Implement a new warning for when adding a default argument to a methodAlexis Hunt2011-05-265-6/+33
| | | | | | | | | makes it into a special member function. This is very bad and can lead to all sorts of nastiness including implicit member functions violating the One Definition Rule. This should probably be made ill-formed in a later version of the standard, but for now we'll just warn. llvm-svn: 132104
* indvars: incremental fixes for -disable-iv-rewrite and testcases.Andrew Trick2011-05-262-22/+138
| | | | | | | | Use a proper worklist for use-def traversal without holding onto an iterator. Now that we process all IV uses, we need complete logic for resusing existing derived IV defs. See HoistStep. llvm-svn: 132103
* Skip extra copy from aggregate where it isn't necessary; ↵Eli Friedman2011-05-263-4/+38
| | | | | | | | rdar://problem/8139919 . This shouldn't make much of a difference at -O3, but should substantially reduce the number of generated memcpy's at -O0. Originally r130717, but was backed out due to an ObjC regression. llvm-svn: 132102
* Add a RAGreedy::canEvict function.Jakob Stoklund Olesen2011-05-251-4/+62
| | | | | | | | | | | | This doesn't change functionality (much), but it allows for a more fine-grained eviction policy. The current policy only compares spill weights, and that is not always the best thing to do. Spill weights are designed to serve linear scan, and they don't consider live range splitting. Add a mechanism so canEvict() can request that a live range be evicted and split/spilled. This is to avoid infinite eviction loops. llvm-svn: 132101
* static analyzer: when conservatively evaluating functions, don't invalidate ↵Ted Kremenek2011-05-256-5/+82
| | | | | | the values of globals when the called function is strlen. llvm-svn: 132100
* Rewrite fast-isel integer cast handling to handle more cases, and to be ↵Eli Friedman2011-05-255-59/+205
| | | | | | | | | | simpler and more consistent. The practical effects here are that x86-64 fast-isel can now handle trunc from i8 to i1, and ARM fast-isel can handle many more constructs involving integers narrower than 32 bits (including loads, stores, and many integer casts). rdar://9437928 . llvm-svn: 132099
* Define WeakRefDirective.Akira Hatanaka2011-05-252-0/+13
| | | | llvm-svn: 132098
* PR9998: ashr exact %x, 31 is not equivalent to sdiv exact %x, -2147483648.Eli Friedman2011-05-252-4/+20
| | | | llvm-svn: 132097
* Update our diagnostics to properly account for move operations.Alexis Hunt2011-05-258-42/+96
| | | | llvm-svn: 132096
* Add a little spice to the script to allow us to specify a function name to ↵Johnny Chen2011-05-251-3/+20
| | | | | | | | break at and to disassemble. Usage: disasm.py [-n name] executable-image By default, it breaks at and disassembles the 'main' function. llvm-svn: 132090
* Fix a minor thinko that leads to a crash if PatternDecl is null butAlexis Hunt2011-05-251-4/+5
| | | | | | Pattern is not. Thanks Nick for catching this! llvm-svn: 132089
* Add a little twist to the disasm.py script so that it is possible to ↵Johnny Chen2011-05-251-7/+12
| | | | | | | | terminate the inferior process by entering 'Ctrl-D' or 'quit'. llvm-svn: 132088
* Remove unused statistical counter.Devang Patel2011-05-251-57/+0
| | | | llvm-svn: 132087
* Convert tBX_CALL / tBXr9_CALL to actual pseudoinstructions.Cameron Zwarich2011-05-252-10/+24
| | | | llvm-svn: 132086
* Add tests for .seh_setframe and .seh_handlerdata parsing. Fix issues withCharles Davis2011-05-254-2/+40
| | | | | | | | | | them. I had to add a special SwitchSectionNoChange method to MCStreamer just for .seh_handlerdata. If this isn't OK, please let me know, and I'll find some other way to fix .seh_handlerdata streaming. llvm-svn: 132084
* Clean up comment a bit.Eric Christopher2011-05-251-2/+2
| | | | llvm-svn: 132083
* Modified to use SBTarget.LaunchSimple() API.Johnny Chen2011-05-251-2/+1
| | | | llvm-svn: 132082
* Implement the 'm' modifier. Note that it only works for memory operands.Eric Christopher2011-05-252-4/+25
| | | | | | Part of rdar://9119939 llvm-svn: 132081
* Implement a little bit of cleanup and a lot more of the base workAlexis Hunt2011-05-257-88/+204
| | | | | | | | behind implicit moves. We now correctly identify move constructors and assignment operators and update bits on the record correctly. Generation of implicit moves (declarations or definitions) is not yet supported. llvm-svn: 132080
* Use built-in truth value testing.Johnny Chen2011-05-251-6/+6
| | | | llvm-svn: 132079
* Use built-in truth value testing.Johnny Chen2011-05-251-1/+1
| | | | llvm-svn: 132078
* Remove bitcast to incorrect type.David Chisnall2011-05-251-1/+1
| | | | llvm-svn: 132077
* Remove MipsTargetLowering::LowerFP_TO_SINT. Patterns for fp_to_sint have alreadyAkira Hatanaka2011-05-252-37/+0
| | | | | | been defined in MipsInstrFPU.td. llvm-svn: 132076
* Custom-lower FCOPYSIGN nodes.Akira Hatanaka2011-05-254-2/+117
| | | | llvm-svn: 132074
* Prepare ARMFastISel::SelectSIToFP for getRegForValue returning registers for ↵Eli Friedman2011-05-251-0/+4
| | | | | | i8 and i16 values. llvm-svn: 132073
* Convert these two modules to use the compact truth value testing as well.Johnny Chen2011-05-252-5/+5
| | | | llvm-svn: 132072
* Simplify r132022 based on Cameron's feedback.Evan Cheng2011-05-251-12/+5
| | | | llvm-svn: 132071
* Update MaxCallFrameSize regardless of the relocation model selected.Akira Hatanaka2011-05-251-11/+11
| | | | llvm-svn: 132070
* Bumping Xcode project versions for lldb-55 and debugserver-139.Greg Clayton2011-05-253-22/+22
| | | | llvm-svn: 132067
* Added some comments.Greg Clayton2011-05-251-0/+2
| | | | llvm-svn: 132066
* Change initial value of MaxCallFrameSize. MipsFI::getMaxCallFrameSize() shouldAkira Hatanaka2011-05-253-7/+7
| | | | | | return 0 if there are no function calls made. llvm-svn: 132065
* Properly align UnaryTransformType when allocating itDouglas Gregor2011-05-251-3/+4
| | | | llvm-svn: 132064
* Coding style fixes. Added comments.Akira Hatanaka2011-05-252-23/+16
| | | | llvm-svn: 132063
* Remove unused OpcodeMask enumerator.Francois Pichet2011-05-251-1/+0
| | | | llvm-svn: 132062
* Fix 3 MSVC warnings: Francois Pichet2011-05-253-3/+3
| | | | | | | | 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)' atexit really expects a "void f(void)" function. llvm-svn: 132061
* Update checker build to checker-257.Ted Kremenek2011-05-252-2/+15
| | | | llvm-svn: 132060
* Disable MSVC warning about runtime stack overflow for DebugOverflowStack.Francois Pichet2011-05-251-0/+8
| | | | llvm-svn: 132059
* Fix MSVC warning: <unsafe use of type 'bool' in operation>Francois Pichet2011-05-251-1/+1
| | | | llvm-svn: 132058
* Fix MSVC warning: "is out of range for enum constant" Francois Pichet2011-05-251-1/+1
| | | | | | | MSVC doesn't support 64 bit enum. OpcodeMask is not used anywhere in the code base. llvm-svn: 132057
* Fix some issues Duncan found in the previous commit.Rafael Espindola2011-05-252-4/+5
| | | | | | | | I kept the reference to the ABI since that is the common case. The -fno-asynchronous-unwind-tables option is a user controlled way of breaking the ABI. llvm-svn: 132053
* Add support for Microsoft __if_exists, __if_not_exists extension at class scope.Francois Pichet2011-05-254-4/+98
| | | | | | | | | | | | | | | | Example: typedef int TYPE; class C { __if_exists(TYPE) { TYPE a; } __if_not_exists(TYPE) { this will never be parsed. } }; llvm-svn: 132052
* Fix warning in the CMake build about redefining LLVM_PATH_XDOT_PY by making ↵Frits van Bommel2011-05-251-1/+1
| | | | | | | | | | | | | | | | | | | sure both definitions are identical. This used to produce warnings like In file included from .../llvm/trunk/tools/lto/LTOCodeGenerator.cpp:45: In file included from .../llvm/trunk/include/llvm/Support/system_error.h:225: .../include/llvm/Config/config.h:591:9: warning: 'LLVM_PATH_XDOT_PY' macro redefined #define LLVM_PATH_XDOT_PY ".../bin/xdot.py" ^ .../include/llvm/Config/llvm-config.h:98:9: note: previous definition is here #define LLVM_PATH_XDOT_PY "" ^ 1 warning generated. (Paths edited for clarity) Note: This only affected people who had xdot.py installed. llvm-svn: 132050
* Teach analyzer about cf_returns_not_retained for C functions.Ted Kremenek2011-05-252-0/+8
| | | | llvm-svn: 132049
* Enhance retain/release checker to flag warnings when functions returning CG ↵Ted Kremenek2011-05-253-55/+88
| | | | | | types do not follow the Core Foundation naming conventions. llvm-svn: 132048
* A StringRef-ication of the DiagnosticIDs API and internals.Argyrios Kyrtzidis2011-05-2510-113/+177
| | | | | | | | | Patch by Matthieu Monrocq with tweaks by me to avoid StringRefs in the static diagnostic data structures, which resulted in a huge global-var-init function. Depends on llvm commit r132046. llvm-svn: 132047
* [tablegen] A couple of changes to ClangDiagnosticEmmitter.Argyrios Kyrtzidis2011-05-251-2/+4
| | | | | | | -Emit an empty warning option as string ("") instead of 0. -For diagnostic names also emit the size of the string. llvm-svn: 132046
* Add tests for .seh_savereg and .seh_savexmm parsing. Once again, fix theCharles Davis2011-05-252-6/+23
| | | | | | buggy methods that parse these directives. llvm-svn: 132045
OpenPOWER on IntegriCloud