summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Select DW_AT_const_value size based on variable size.Devang Patel2011-05-274-5/+44
| | | | llvm-svn: 132193
* Remove DwarfRegNum from the individual bits of the condition register.Rafael Espindola2011-05-271-32/+32
| | | | | | These should be DW_OP_bit_piece of CR (64). llvm-svn: 132192
* Update the jump-scope checker for local variables with initializers,Douglas Gregor2011-05-272-10/+67
| | | | | | | | so that it looks at the initializer of a local variable of class type (or array thereof) to determine whether it's just an implicit invocation of the trivial default constructor. Fixes PR10034. llvm-svn: 132191
* Remove DwarfRegNum from CARRY. I should be encoded with DW_OP_bit_piece.Rafael Espindola2011-05-271-1/+1
| | | | llvm-svn: 132190
* Assorted fixes for Win64 EH unwind info emission:Charles Davis2011-05-272-20/+42
| | | | | | | | | | - Flip order of bitfields. This gets our output matching GAS. - Handle case where the end of the prolog wasn't specified. - If the resulting unwind info struct is less than 8 bytes, pad to 8 bytes. Add a test for the latter two. llvm-svn: 132188
* Remove dwarf numbers from subregs. We should use DW_OP_bit_piece toRafael Espindola2011-05-271-45/+45
| | | | | | | | refer to them. I tested this with both check-all and the gdb testsuite. llvm-svn: 132187
* noexcept for <utility>. This included a little repair on pair, and some ↵Howard Hinnant2011-05-273-29/+80
| | | | | | noexcept workarounds. llvm-svn: 132186
* InstCombine: Make switch folding with equality compares more aggressive by ↵Benjamin Kramer2011-05-272-15/+94
| | | | | | | | trying instsimplify on the arm where we know the compared value. Stuff like "x == y ? y : x&y" now folds into "x&y". llvm-svn: 132185
* Fix PR10029 - VerifyCoalescing failure on patterns_dfa.c of 445.gobmk.Cameron Zwarich2011-05-272-2/+58
| | | | llvm-svn: 132181
* Add a test for Win64 EH unwind information emission.Charles Davis2011-05-271-0/+51
| | | | llvm-svn: 132180
* Make the branch encoding for tBcc more obvious that it's a 4-byte opcodeEric Christopher2011-05-272-1/+5
| | | | | | followed by a conditional and imm8. llvm-svn: 132179
* Fix comment.Eric Christopher2011-05-271-1/+1
| | | | llvm-svn: 132178
* Start keeping track of where the various unwind instructions are in the prolog.Charles Davis2011-05-273-32/+50
| | | | | | | Use them to calculate the offset inside the prolog. Emit this value when emitting the unwind codes. llvm-svn: 132177
* Add missing break statements. Align UNWIND_INFO and RUNTIME_FUNCTION structsCharles Davis2011-05-271-0/+6
| | | | | | | | to 4 bytes. I'm surprised no one caught the missing break statements. llvm-svn: 132176
* Add an additional check for null pointer before accessing PatternDecl.Richard Trieu2011-05-271-1/+1
| | | | llvm-svn: 132175
* My attempt at fixing the leak reported by the valgrind buildbots. Valgrind willCharles Davis2011-05-271-2/+4
| | | | | | | | still report leaks, but they're spurious now. Valgrind cannot peer into std::vector objects--or any dynamic array, for that matter--because it doesn't know how big the array is. llvm-svn: 132174
* Fix inverted conditional in SaveReg and SaveXMM. Err when the frame pointer isCharles Davis2011-05-271-3/+7
| | | | | | | already defined, and err when the PushMachFrame operation isn't the first operation (if specified at all). llvm-svn: 132173
* Enhance Clang to start instantiating static data member definitionsChandler Carruth2011-05-275-6/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | within class templates when they are necessary to complete the type of the member. The canonical example is code like: template <typename T> struct S { static const int arr[]; static const int x; static int f(); }; template <typename T> const int S<T>::arr[] = { 1, 2, 3 }; template <typename T> const int S<T>::x = sizeof(arr) / sizeof(arr[0]); template <typename T> int S<T>::f() { return x; } int x = S<int>::f(); We need to instantiate S<T>::arr's definition to pick up its initializer and complete the array type. This involves new code to specially handle completing the type of an expression where the type alone is insufficient. It also requires *updating* the expression with the newly completed type. Fortunately, all the other infrastructure is already in Clang to do the instantiation, do the completion, and prune out the unused bits of code that result from this instantiation. This addresses the initial bug in PR10001, and will be a step to fleshing out other cases where we need to work harder to complete an expression's type. Who knew we still had missing C++03 "features"? llvm-svn: 132172
* Objective-C doesn't consider the use of incomplete types as methodDouglas Gregor2011-05-276-11/+81
| | | | | | | | | | | | | | parameter types to be ill-formed. However, it relies on the completeness of method parameter types when producing metadata, e.g., for a protocol, leading IR generating to crash in such cases. Since there's no real way to tighten down the semantics of Objective-C here without breaking existing code, do something safe but lame: suppress the generation of metadata when this happens. Fixes <rdar://problem/9123036>. llvm-svn: 132171
* One more debug line number miss in instcombine (although the code in ↵Eli Friedman2011-05-271-5/+1
| | | | | | question isn't actually in instcombine). llvm-svn: 132170
* Fix copy+pastos.Dan Gohman2011-05-271-2/+2
| | | | llvm-svn: 132168
* Final step of instcombine debuginfo; switch a couple more places over to ↵Eli Friedman2011-05-275-16/+34
| | | | | | InsertNewInstWith, and use setDebugLoc for the cases which can't be easily handled by the automated mechanisms. llvm-svn: 132167
* Fix warning about || and && without explicit grouping.Chandler Carruth2011-05-261-2/+2
| | | | | | | | This looks like it flagged an actual bug. Devang, please review. I added the parentheses that change behavior, but make the behavior more closely match commit log's intent. llvm-svn: 132165
* Do not insert anything after terminator.Devang Patel2011-05-261-1/+2
| | | | llvm-svn: 132164
* Renamed llvm.x86.sse42.crc32 intrinsics; crc64 doesn't exist. Chad Rosier2011-05-268-48/+96
| | | | | | | crc32.[8|16|32] have been renamed to .crc32.32.[8|16|32] and crc64.[8|16|32] have been renamed to .crc32.64.[8|64]. llvm-svn: 132163
* Comment cleanup.Eric Christopher2011-05-261-2/+2
| | | | llvm-svn: 132162
* Do not move DBG_VALUE in middle of PHI nodes.Devang Patel2011-05-261-1/+4
| | | | llvm-svn: 132161
* Remove extra '.' in the comment.Johnny Chen2011-05-261-1/+1
| | | | llvm-svn: 132160
* Add comment.Johnny Chen2011-05-261-1/+4
| | | | llvm-svn: 132152
* If llvm.dbg.value and the value instruction it refers to are far apart then ↵Devang Patel2011-05-261-1/+13
| | | | | | iSel may not be able to find corresponding Node for llvm.dbg.value during DAG construction. Make iSel's life easier by removing this distance between llvm.dbg.value and its value instruction. llvm-svn: 132151
* Comment change.Johnny Chen2011-05-261-1/+1
| | | | llvm-svn: 132150
* Add comment.Devang Patel2011-05-261-0/+3
| | | | llvm-svn: 132149
* During branch folding avoid inserting redundant DBG_VALUE machine instructions.Devang Patel2011-05-262-0/+105
| | | | llvm-svn: 132148
* Simplify test setup; there's no need to pass a customized dictionary here.Johnny Chen2011-05-261-1/+1
| | | | llvm-svn: 132147
* Silence sign compare warning.Benjamin Kramer2011-05-261-4/+4
| | | | llvm-svn: 132146
* Change the include stack of "instantiated from" notes to fall under the ↵Richard Trieu2011-05-263-1/+13
| | | | | | control of f/fno-diagnostics-show-note-include-stack flags. This should help with reducing diagnostic spew from macros instantiations. llvm-svn: 132143
* regexp-break -> _regexp-break in command string.Jim Ingham2011-05-261-1/+1
| | | | llvm-svn: 132141
* Use MachineFrameInfo::hasCalls instead of MipsFunctionInfo::hasCall to check ifAkira Hatanaka2011-05-263-10/+2
| | | | | | a function has any function calls. llvm-svn: 132140
* Add a fix-it and better error recovery for improperly nested namespaces. ↵Richard Trieu2011-05-264-7/+118
| | | | | | This will give a better error message for cases such as "namespace foo::bar::baz {}" and a suggested fix-it of "namespace foo { namespace bar { namespace baz {} } }" llvm-svn: 132138
* Applied noexcept to everything in [diagnostics] (Chapter 19)Howard Hinnant2011-05-266-141/+149
| | | | llvm-svn: 132137
* Fix some dwarf register numbers.Rafael Espindola2011-05-263-3/+3
| | | | llvm-svn: 132136
* Make few ExecutionEngine tests XFAIL for ARM, since ExecutionEngine is ↵Galina Kistanova2011-05-2615-0/+31
| | | | | | broken for ARM, please remove the following XFAIL when it will be fixed. llvm-svn: 132135
* Turn on cxx_alias_templates supportHoward Hinnant2011-05-261-2/+2
| | | | llvm-svn: 132134
* Fix LTO builds with xcode 4.Rafael Espindola2011-05-261-1/+11
| | | | llvm-svn: 132132
* Add support for C++ exception handling.Akira Hatanaka2011-05-267-21/+76
| | | | llvm-svn: 132131
* Tighen analyzer diagnostics w.r.t ObjC/CF leaks.Ted Kremenek2011-05-262-19/+19
| | | | llvm-svn: 132130
* Applied noexcept to everything in [language.support] (Chapter 18)Howard Hinnant2011-05-268-266/+273
| | | | llvm-svn: 132129
* Reorganize these slightly according to operand type.Eric Christopher2011-05-261-2/+2
| | | | llvm-svn: 132128
* Set HasSetDirective to true.Akira Hatanaka2011-05-261-1/+0
| | | | llvm-svn: 132127
* Fix test on Windows.Eli Friedman2011-05-261-2/+2
| | | | llvm-svn: 132126
OpenPOWER on IntegriCloud