summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Capitalize lowerTRUNCATE so that it matches the other lower functions in ↵Craig Topper2013-01-202-3/+3
| | | | | | this file despite it not matching coding standards. llvm-svn: 172994
* [Core] Use LLVM's ErrorOr<T>.Michael J. Spencer2013-01-206-396/+6
| | | | llvm-svn: 172993
* Revert CostTable algorithm, will re-writeRenato Golin2013-01-203-163/+102
| | | | llvm-svn: 172992
* [Support] Port ErrorOr<T> from lld to C++03.Michael J. Spencer2013-01-205-0/+452
| | | | llvm-svn: 172991
* LoopVectorize: Fix a C++11 incompatibility.Benjamin Kramer2013-01-201-1/+1
| | | | llvm-svn: 172990
* Prune unused diagnostics.Benjamin Kramer2013-01-202-4/+0
| | | | | | Courtesy of utils/find-unused-diagnostics.sh. llvm-svn: 172988
* Add instruction encodings / disassembly support for l2rus instructions.Richard Osborne2013-01-204-23/+92
| | | | llvm-svn: 172987
* Add instruction encodings / disassembly support for l3r instructions.Richard Osborne2013-01-204-56/+216
| | | | llvm-svn: 172986
* Add instruction encodings / disassembler support for 2rus instructions.Richard Osborne2013-01-204-23/+113
| | | | llvm-svn: 172985
* Add instruction encodings / disassembly support 3r instructions.Richard Osborne2013-01-204-85/+205
| | | | | | | | It is not possible to distinguish 3r instructions from 2r / rus instructions using only the fixed bits. Therefore if an instruction doesn't match the 2r / rus format try to decode it as a 3r instruction before returning Fail. llvm-svn: 172984
* llvm/test/CodeGen/X86/win_ftol2.ll: Add -cpu=generic to appease valgrind.NAKAMURA Takumi2013-01-201-1/+1
| | | | | | | On valgrind the processor is reported; Host CPU: athlon-fx llvm-svn: 172983
* clang/utils/valgrind/x86_64-pc-linux-gnu_gcc-4.3.3.supp: Add /usr/bin/cmp.NAKAMURA Takumi2013-01-201-0/+7
| | | | | | | | | FIXME: It could be removed if; - check-all included llvm/valgrind/supp, too. - clang-vg didn't use "check-all". llvm-svn: 172982
* llvm/utils/valgrind/x86_64-pc-linux-gnu.supp: Add /usr/bin/cmp.NAKAMURA Takumi2013-01-201-0/+6
| | | | llvm-svn: 172981
* Add bitreader to LINK_COMPONENTS in users of libclang, c-arcmt-test and ↵NAKAMURA Takumi2013-01-202-2/+2
| | | | | | | | c-index-test. They don't link cygclang.dll, but libclang.a on cygwin. llvm-svn: 172980
* CMake: Add add_compiler_rt_osx_object_library to create universal libraries ↵Alexey Samsonov2013-01-203-8/+22
| | | | | | on Mac llvm-svn: 172979
* CMake: use add_compiler_rt_static_runtime to build TSan and MSan runtimes. ↵Alexey Samsonov2013-01-202-29/+18
| | | | | | No functionality change. llvm-svn: 172978
OpenPOWER on IntegriCloud