summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ASan] Move Mac-specific tests to asan_mac_test.ccAlexander Potapenko2013-01-214-232/+249
| | | | llvm-svn: 173048
* Fix parsing of templated declarations.Daniel Jasper2013-01-214-9/+7
| | | | | | | | | | Before: template <template <typename T>, typename P > class X; After: template <template <typename T>, typename P> class X; More importantly, the token annotations for the second ">" are now computed correctly. llvm-svn: 173047
* Removing empty loop-convert directoryEdwin Vane2013-01-210-0/+0
| | | | llvm-svn: 173046
* Fixes indent in linkage specification blocks.Manuel Klimek2013-01-212-0/+16
| | | | | | | | | | | We now indent: extern "C" { int a; } without additional indent inside the extern "C" block. llvm-svn: 173045
* CMake: generalize checking for target availability and add initial support ↵Alexey Samsonov2013-01-213-28/+32
| | | | | | for PowerPC native arch. With this patch, building LLVM on PowerPC native arch produces a working ASan runtime. llvm-svn: 173044
* Fix bug discovered by valgrind.Daniel Jasper2013-01-211-2/+3
| | | | | | | When trying to merge lines, we should not touch lines that are invalid, as we don't know how long they might be. llvm-svn: 173043
* Add regression test.Manuel Klimek2013-01-211-0/+7
| | | | llvm-svn: 173042
* AST/VTableBuilder.h: Suppress a warning. [-Wunused-private-field]NAKAMURA Takumi2013-01-211-0/+1
| | | | llvm-svn: 173041
* R600/SILowerControlFlow.cpp: Fix a warning. [-Wunused-variable]NAKAMURA Takumi2013-01-211-3/+2
| | | | llvm-svn: 173040
* Fixes detection of class template specializations.Manuel Klimek2013-01-212-1/+22
| | | | | | | Now correctly formats: template <> class A<int> {} a; llvm-svn: 173038
* [sanitizer] Disable scanf interceptor on windows.Evgeniy Stepanov2013-01-211-1/+1
| | | | llvm-svn: 173037
* Switch CodeMetrics itself over to use TTI to determine if an instructionChandler Carruth2013-01-216-95/+29
| | | | | | | | | | | | is free. The whole CodeMetrics API should probably be reworked more, but this is enough to allow deleting the duplicate code there for computing whether an instruction is free. All of the passes using this have been updated to pull in TTI and hand it to the CodeMetrics stuff. Further, a dead CodeMetrics API (analyzeFunction) is nuked for lack of users. llvm-svn: 173036
* First step towards vftable generation with -cxx-abi microsoft PR13231Timur Iskhodzhanov2013-01-215-33/+230
| | | | llvm-svn: 173035
* Fix indentation and formatting.Chandler Carruth2013-01-211-71/+71
| | | | | | This change brought to by clang-format. =] llvm-svn: 173034
* Sink InlineCost.cpp into IPA -- it is now officially an interproceduralChandler Carruth2013-01-213-1/+1
| | | | | | | | | | analysis. How cute that it wasn't previously. ;] Part of this confusion stems from the flattened header file tree. Thanks to Benjamin for pointing out the goof on IRC, and we're considering un-flattening the headers, so speak now if that would bug you. llvm-svn: 173033
* Move the inline cost analysis's primary cost query to TTI instead of theChandler Carruth2013-01-211-4/+4
| | | | | | | | old CodeMetrics system. TTI has the specific advantage of being extensible and customizable by targets to reflect target-specific cost metrics. llvm-svn: 173032
* Now that the inline cost analysis is a pass, we can easily have itChandler Carruth2013-01-212-12/+22
| | | | | | | | | | | depend on and use other analyses (as long as they're either immutable passes or CGSCC passes of course -- nothing in the pass manager has been fixed here). Leverage this to thread TargetTransformInfo down through the inline cost analysis. No functionality changed here, this just threads things through. llvm-svn: 173031
* Make the inline cost a proper analysis pass. This remains essentiallyChandler Carruth2013-01-215-30/+70
| | | | | | | | | | | | | | | | a dynamic analysis done on each call to the routine. However, now it can use the standard pass infrastructure to reference other analyses, instead of a silly setter method. This will become more interesting as I teach it about more analysis passes. This updates the two inliner passes to use the inline cost analysis. Doing so highlights how utterly redundant these two passes are. Either we should find a cheaper way to do always inlining, or we should merge the two and just fiddle with the thresholds to get the desired behavior. I'm leaning increasingly toward the latter as it would also remove the Inliner sub-class split. llvm-svn: 173030
* Formatting and comment fixes to the always inliner.Chandler Carruth2013-01-211-25/+28
| | | | | | Formatting fixes brought to you by clang-format. llvm-svn: 173029
* Clean up the formatting and doxygen for the simple inliner a bit. NoChandler Carruth2013-01-211-18/+29
| | | | | | functionality changed. llvm-svn: 173028
* Fix an old-style doxygen comment.Chandler Carruth2013-01-211-1/+1
| | | | llvm-svn: 173027
* Fixup for r173021: build tests with zero-based shadow on Android only, fix ↵Alexey Samsonov2013-01-213-5/+5
| | | | | | condition in checking for shadow gap in asan_mapping.h llvm-svn: 173026
* [sanitizer] Define va_copy on win32.Evgeniy Stepanov2013-01-211-0/+4
| | | | llvm-svn: 173025
* Add a fixit for _Noreturn main,Dmitri Gribenko2013-01-213-2/+41
| | | | | | add tests for fixits removing static and inline from main llvm-svn: 173024
* [tsan] fix thread_name.cc test to work with older versions of libcKostya Serebryany2013-01-211-0/+4
| | | | llvm-svn: 173023
* CGDebugInfo.cpp: Fix a warning. [-Wunused-variable]NAKAMURA Takumi2013-01-211-0/+1
| | | | llvm-svn: 173022
* ASan: build unit tests with -fsanitize-address-zero-base-shadow on Linux and ↵Alexey Samsonov2013-01-214-19/+34
| | | | | | Android llvm-svn: 173021
* [asan] Move *scanf declarations out of mac-only section.Evgeniy Stepanov2013-01-211-23/+23
| | | | llvm-svn: 173020
* Allow for nested name specifiers in record declarations.Manuel Klimek2013-01-212-2/+8
| | | | | | | Now correctly formats: class A::B {} n; llvm-svn: 173019
* Cleanup the formatting of this header. This removes the namespace indentChandler Carruth2013-01-211-105/+104
| | | | | | | and reformats a few constructors using clang-format. Only whitespace changes here. llvm-svn: 173018
* Fix parsing of return statements.Manuel Klimek2013-01-213-0/+34
| | | | | | | | | Previously, we would not detect brace initializer lists in return statements, thus: return (a)(b) { 1, 2, 3 }; would put the semicolon onto the next line. llvm-svn: 173017
* ASan: build runtime flexible mapping and offset in configure+make build as wellAlexey Samsonov2013-01-212-5/+9
| | | | llvm-svn: 173016
* ASan: use dynamic lookup when building dynamic ASan runtime on Mac, because ↵Alexey Samsonov2013-01-211-1/+4
| | | | | | shadow mapping and offset are defined in the instrumented modules instead of runtime llvm-svn: 173015
* Port r172856: 'Include ubsan runtime even when building a shared library. We ↵Alexey Samsonov2013-01-213-11/+5
| | | | | | don't require executable to be linked with UBSan.' to Mac llvm-svn: 173014
* ASan: build runtime library with ASAN_FLEXIBLE_MAPPING_AND_OFFSET=1 as ↵Alexey Samsonov2013-01-211-12/+9
| | | | | | shadow mapping/offset are always emitted by the LLVM backend now llvm-svn: 173013
* Revert "[Object] .bss sections have no content. PR15005."Michael J. Spencer2013-01-211-7/+5
| | | | | | This reverts commit r173007. llvm-svn: 173012
* CMake: add functions creating universal runtime libraries for several ↵Alexey Samsonov2013-01-214-67/+74
| | | | | | architectures on OS X and use them in ASan and UBSan build rules llvm-svn: 173011
* Use <0 checks in place of ==-1 because it results in simpler code.Craig Topper2013-01-211-3/+3
| | | | llvm-svn: 173010
* Use MVT instead of EVT in LowerVECTOR_SHUFFLEtoBlend.Craig Topper2013-01-211-6/+5
| | | | llvm-svn: 173009
* Remove trailing whitespace.Craig Topper2013-01-211-9/+9
| | | | llvm-svn: 173008
* [Object] .bss sections have no content. PR15005.Michael J. Spencer2013-01-211-5/+7
| | | | llvm-svn: 173007
* Fix some 80 column violations.Craig Topper2013-01-211-7/+9
| | | | llvm-svn: 173006
* Make helper method static.Craig Topper2013-01-212-4/+2
| | | | llvm-svn: 173005
* [Support] Make test C++03.Michael J. Spencer2013-01-211-4/+2
| | | | llvm-svn: 173004
* PR14472: Preserve qualifiers while unwrapping types for debug infoDavid Blaikie2013-01-212-18/+16
| | | | | | | | | | Looks like r161368 fixed this for one case but not all. This change generalizes the solution over all the unwrapping cases. Now that preserving the qualifiers is done independent of the particular type being unwrapped I won't bother adding test cases for each one but at least demonstrate that this change was necessary & sufficient to fix the bug. llvm-svn: 173002
* Remove the comma from the last enumerator to fix -pedantic warnings.Chandler Carruth2013-01-211-1/+1
| | | | llvm-svn: 172999
* Introduce a generic interface for querying an operation's expectedChandler Carruth2013-01-212-1/+190
| | | | | | | | | | | | | | | lowered cost. Currently, this is a direct port of the logic implementing isInstructionFree in CodeMetrics. The hope is that the interface can be improved (f.ex. supporting un-formed instruction queries) and the implementation abstracted so that as we have test cases and target knowledge we can expose increasingly accurate heuristics to clients. I'll start switching existing consumers over and kill off the routine in CodeMetrics in subsequent commits. llvm-svn: 172998
* Support/Compiler.h: MSC1600, aka VS2010, is not C++11-ready.NAKAMURA Takumi2013-01-211-2/+2
| | | | | | | LLVM_HAS_CXX11_TYPETRAITS -- std::is_constructible LLVM_HAS_CXX11_STDLIB -- std::unique_ptr llvm-svn: 172997
* Disable test that fails due to lack of std::true_type in C++03.Benjamin Kramer2013-01-201-0/+2
| | | | | | Michael, can this test be ported to C++03? llvm-svn: 172996
* Convert more EVT's to MVT's in the lowering methods.Craig Topper2013-01-201-23/+24
| | | | llvm-svn: 172995
OpenPOWER on IntegriCloud