summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Warn about self references in in-class initializers.Hans Wennborg2012-09-182-95/+128
| | | | | | | | | | | | | | This makes Clang warn about self references in in-class initializers, for example: struct S { int a = a + 42; }; This basically just moves UninitializedFieldVisitor up a bit in SemaDeclCXX.cpp, and adds a call to it from ActOnCXXInClassMemberInitializer. llvm-svn: 164131
* SROA.cpp: Appease msvc.NAKAMURA Takumi2012-09-181-1/+1
| | | | | | ...I don't know why this could appease msvc...baad. llvm-svn: 164130
* llvm/test/DebugInfo: Move two tests, 2010-04-13-PubType.ll and ↵NAKAMURA Takumi2012-09-182-0/+0
| | | | | | linkage-name.ll to X86. llvm-svn: 164129
* XFAIL SROA test until Chandler can get to it.Benjamin Kramer2012-09-181-0/+1
| | | | llvm-svn: 164128
* Fix isDerivedFrom matcher.Daniel Jasper2012-09-182-0/+11
| | | | | | | | | | | | | Without this patch, the isDerivedFrom matcher asserts in the "assert(ClassDecl != NULL);" in the new test, as a DependentTemplateSpecilizationType is not a sub-type of TemplateSpecializationType and also does not offer getAsCXXRecordDecl(). I am not sure why this did not cause problems before. It is now (after the changed implementation of isDerivedFrom) easier to write a matcher that actually gets into this branch of the code. llvm-svn: 164127
* Coding standards: fix typo: '= deleted' -> '= delete'.Dmitri Gribenko2012-09-181-2/+2
| | | | llvm-svn: 164126
* Make MachinePostDominatorTree::DT privateTom Stellard2012-09-181-2/+4
| | | | llvm-svn: 164125
* LNT builders have picked up new SROA, disable it to get the remaining ↵Benjamin Kramer2012-09-181-1/+1
| | | | | | builders green again. llvm-svn: 164124
* Add missing matcher for C-style cast expressions.Daniel Jasper2012-09-182-0/+24
| | | | | | Patch by Gábor Horváth. llvm-svn: 164123
* Disable some tests that fail when the x86 backend isn't built.Benjamin Kramer2012-09-182-0/+3
| | | | llvm-svn: 164122
* Make all VariadicDynCast-Expr-matchers StatementMatchersDaniel Jasper2012-09-182-82/+76
| | | | | | | | | | Having Expr-subclass-matchers being VariadicDynCast-Expr-matchers does not provide additional type safety and just makes using them harder. In the clang AST, expressions are always statements and an expression matcher can be used anywhere, a statement matcher is expected. Any given matcher definition still has at least one noun. llvm-svn: 164121
* Fix a warning in release builds and a test case I forgot to update withChandler Carruth2012-09-182-1/+2
| | | | | | a fix to getCommonType in the previous patch. llvm-svn: 164120
* Add a major missing piece to the new SROA pass: aggressive splitting ofChandler Carruth2012-09-183-8/+270
| | | | | | | | | | | | | | | | | | | | | | | FCAs. This is essential in order to promote allocas that are used in struct returns by frontends like Clang. The FCA load would block the rest of the pass from firing, resulting is significant regressions with the bullet benchmark in the nightly test suite. Thanks to Duncan for repeated discussions about how best to do this, and to both him and Benjamin for review. This appears to have blocked many places where the pass tries to fire, and so I'm expect somewhat different results with this fix added. As with the last big patch, I'm including a change to enable the SROA by default *temporarily*. Ben is going to remove this as soon as the LNT bots pick up the patch. I'm just trying to get a round of LNT numbers from the stable machines in the lab. NOTE: Four clang tests are expected to fail in the brief window where this is enabled. Sorry for the noise! llvm-svn: 164119
* Intercept signal() and sigaction() within the dynamic runtime on Mac.Alexander Potapenko2012-09-182-1/+38
| | | | | | Add a test that ensures that ASan does not allow to override the signal handlers. llvm-svn: 164118
* Fix instcombine to obey requested alignment when merging allocas.Richard Osborne2012-09-182-3/+31
| | | | llvm-svn: 164117
* [TSan] s/uintptr_t/intptr_t in TSan test and enforce stack size limit in one ↵Alexey Samsonov2012-09-182-1/+3
| | | | | | of TSan output tests that somewhy fails otherwise llvm-svn: 164116
* [TSan] fix a typo in test dependencies. Silence few remaining pedantic gcc ↵Alexey Samsonov2012-09-184-6/+12
| | | | | | warnings in TSan tests. llvm-svn: 164115
* More domain conversion; convert VFP VMOVS to NEON instructions in more cases ↵James Molloy2012-09-182-15/+74
| | | | | | - when we may clobber the other S-lane by converting an S to a D instruction, make an effort to work out if the S lane is clobberable or not. llvm-svn: 164114
* [Sanitizer] llvm-symbolizer: turn off symbol table lookup by default while ↵Alexey Samsonov2012-09-181-1/+3
| | | | | | getSymbolAddress from libObject returns wrong values llvm-svn: 164113
* [ASan] Move printing descriptions of heap addresses in error report from ↵Alexey Samsonov2012-09-183-80/+117
| | | | | | allocator internals to asan_report.cc. llvm-svn: 164112
* [Sanitizer] update lint checker scriptAlexey Samsonov2012-09-181-3/+3
| | | | llvm-svn: 164111
* [TSan] port all output tests to lit and move them to lit_tests directory. ↵Alexey Samsonov2012-09-1837-37/+193
| | | | | | This makes 'make check-tsan' command test both unit and output TSan tests. Old custom makefiles for running TSan tests are still functional as well. llvm-svn: 164110
* Make custom operand parsing mnemonic indices use the same mnemonic table as ↵Craig Topper2012-09-181-34/+39
| | | | | | the match table. Reorder fields in OperandMatchEntry to provide the least amount of padding for in tree targets. llvm-svn: 164109
* Use variable type for index into mnemonic table. Shrinks size of index field ↵Craig Topper2012-09-181-5/+14
| | | | | | on in tree targets. Saving static data space. llvm-svn: 164108
* [tsan] fix the tsan allocator to handle any alignmentKostya Serebryany2012-09-182-13/+33
| | | | llvm-svn: 164107
* Remove an unused private field exposed by the recent LLVM_DELETED_FUNCTION ↵Craig Topper2012-09-181-5/+4
| | | | | | changes. llvm-svn: 164106
* Replaced ReInitMCSubtargetInfo with InitMCProcessor.Andrew Trick2012-09-183-18/+20
| | | | | | | | Now where we used to call ReInitMCSubtargetInfo, we actually recompute the same information as InitMCSubtargetInfo instead of only setting the feature bits. llvm-svn: 164105
* Remove an unused private field exposed by the recent LLVM_DELETED_FUNCTION ↵Craig Topper2012-09-181-4/+1
| | | | | | changes. llvm-svn: 164104
* Remove an unused private field exposed by the recent LLVM_DELETED_FUNCTION ↵Craig Topper2012-09-182-2/+1
| | | | | | changes. llvm-svn: 164103
* Mark unimplemented copy constructors and copy assignment operators with ↵Craig Topper2012-09-1814-34/+32
| | | | | | LLVM_DELETED_FUNCTION. llvm-svn: 164102
* Add LLVM_DELETED_FUNCTION to coding standards.Craig Topper2012-09-181-0/+28
| | | | llvm-svn: 164101
* Fix a typo. No functional change.Craig Topper2012-09-181-1/+1
| | | | llvm-svn: 164100
* Let NULL slip through again.Andrew Trick2012-09-181-1/+1
| | | | llvm-svn: 164099
* TargetSchedModel API. Implement latency lookup, disabled.Andrew Trick2012-09-187-22/+178
| | | | llvm-svn: 164098
* comment typoAndrew Trick2012-09-181-1/+1
| | | | llvm-svn: 164097
* TableGen subtarget emitter. Use getSchedClassIdx.Andrew Trick2012-09-182-11/+1
| | | | llvm-svn: 164096
* TableGen subtarget emitter. Generate resolveSchedClass generated hook for ↵Andrew Trick2012-09-181-0/+84
| | | | | | resolving instruction variants. llvm-svn: 164095
* TableGen subtarget emitter. Remove unnecessary header dependence.Andrew Trick2012-09-182-8/+10
| | | | llvm-svn: 164094
* Mark unimplemented operator new as LLVM_DELETED_FUNCTION.Craig Topper2012-09-181-10/+10
| | | | llvm-svn: 164093
* TableGen subtarget emitter. Initialize MCSubtargetInfo with the new machine ↵Andrew Trick2012-09-186-13/+65
| | | | | | model. llvm-svn: 164092
* Mark constructors, destructors, and operator new commented as 'do not ↵Craig Topper2012-09-185-43/+43
| | | | | | implement' with LLVM_DELETED_FUNCTION instead. llvm-svn: 164091
* Mark unimplemented copy constructors and copy assignment operators as ↵Craig Topper2012-09-188-21/+20
| | | | | | LLVM_DELETED_FUNCTION. llvm-svn: 164090
* Use vld1 / vst2 for unaligned v2f64 load / store. e.g. Use vld1.16 for 2-byteEvan Cheng2012-09-1811-53/+593
| | | | | | | | | aligned address. Based on patch by David Peixotto. Also use vld1.64 / vst1.64 with 128-bit alignment to take advantage of alignment hints. rdar://12090772, rdar://12238782 llvm-svn: 164089
* Mark asm matcher conversion table as const.Craig Topper2012-09-181-5/+5
| | | | llvm-svn: 164088
* Fix some funky indentation.Evan Cheng2012-09-181-18/+17
| | | | llvm-svn: 164087
* Fix typo in comment. No functional change.Craig Topper2012-09-181-1/+1
| | | | llvm-svn: 164086
* If a comma operator is followed by a token which unambiguously indicates theRichard Smith2012-09-187-1/+81
| | | | | | | | start of a statement or the end of a compound-statement, diagnose the comma as a typo for a semicolon. Patch by Ahmed Bougacha! Additional test cases and minor refactoring by me. llvm-svn: 164085
* PGO: preserve branch-weight metadata when simplifying Switch to a sub, an icmpManman Ren2012-09-182-2/+85
| | | | | | and a conditional branch; also when removing dead cases from a switch. llvm-svn: 164084
* Per discussion on cfe-dev, remove -Wunique-enums entirely. ThereTed Kremenek2012-09-184-360/+0
| | | | | | | | is no compelling argument that this is a generally useful warning, and imposes a strong stylistic argument on code beyond what it was intended to find warnings in. llvm-svn: 164083
* Making ClangExpression hold on to a WP to the Process instead of a SP. This ↵Enrico Granata2012-09-184-19/+35
| | | | | | fix should enable us to have per-process maps of ClangExpressions without fear of keeping the process alive forever llvm-svn: 164082
OpenPOWER on IntegriCloud