1. Dec 01, 2014
  2. Nov 30, 2014
    • Tobias Grosser's avatar
      Drop unused enum value · 7432a64d
      Tobias Grosser authored
      llvm-svn: 222980
      7432a64d
    • Tobias Grosser's avatar
      Remove Polly's IndVarSimplify pass · 71badac9
      Tobias Grosser authored
      Polly had a copy of this pass to create the canonical induction variables
      necessary for the non-scev-based code generation. As we now always use SCEV
      based code generation, canonical induction variables are not needed any more.
      
      llvm-svn: 222979
      71badac9
    • Tobias Grosser's avatar
      Remove -polly-codegen-scev option and related code · 683b8e44
      Tobias Grosser authored
      SCEV based code generation has been the default for two weeks after having
      been tested for a long time. We now drop the support the non-scev-based code
      generation.
      
      llvm-svn: 222978
      683b8e44
    • Tobias Grosser's avatar
      cmake: Add polly libraries to LLVMExports · 65b2b03f
      Tobias Grosser authored
      This fixes LINK_POLLY_INTO_TOOLS=ON builds, which previously failed with:
      
      CMake Error: install(EXPORT "LLVMExports" ...) includes target "opt" which
      requires target "Polly" that is not in the export set.
      
      CMake Error: install(EXPORT "LLVMExports" ...) includes target "bugpoint" which
      requires target "Polly" that is not in the export set.
      
      llvm-svn: 222977
      65b2b03f
    • Hal Finkel's avatar
      [PowerPC] Add asm support for cache-inhibited ld/st instructions · 378107da
      Hal Finkel authored
      Add assembler support for the fixed-point cache-inhibited load/store
      instructions. These are hypervisor-level only, so don't get too excited ;)
      
      Fixes PR21650.
      
      llvm-svn: 222976
      378107da
    • Shankar Easwaran's avatar
      [ELF] Rename align2 to alignment. · 52a53fe5
      Shankar Easwaran authored
      No change in functionality.
      
      llvm-svn: 222975
      52a53fe5
    • Shankar Easwaran's avatar
      [ELF] Fix creation of segments. · 25c33d60
      Shankar Easwaran authored
      Linker was creating a separate output segment in some cases if input sections
      had huge alignments. This patch fixes the issue.
      
      llvm-svn: 222974
      25c33d60
    • Shankar Easwaran's avatar
      [ELF] Create input and output section names · aa00539a
      Shankar Easwaran authored
      No change in functionality.
      
      llvm-svn: 222973
      aa00539a
    • Shankar Easwaran's avatar
      [ELF] Rename MergedSection to OutputSection. · 2d382c69
      Shankar Easwaran authored
      No change in functionality.
      
      llvm-svn: 222972
      2d382c69
    • Craig Topper's avatar
      Revert r222957 "Replace std::map<K, V*> with std::map<K, V> to handle... · 4ca4001d
      Craig Topper authored
      Revert r222957 "Replace std::map<K, V*> with std::map<K, V> to handle ownership and deletion of the values."
      
      Upon further review I think the MultiClass is being copied into the map instead of being moved due to the copy constructor on the nested Record type. This ultimately got exposed when the vector in DefPrototype vector was changed to hold unique_ptrs in another commit. This caused gcc 4.7 to fail due to the use of the copy constructor on unique_ptr with the error pointing back to one of the insert calls from this commit. Not sure why clang was able to build.
      
      This reverts commit 710cdf729f84b428bf41aa8d32dbdb35fff79fde.
      
      llvm-svn: 222971
      4ca4001d
    • Hans Wennborg's avatar
      Revert r222965 "Make MultiClass::DefPrototypes own their Records to fix memory leaks." · 854df468
      Hans Wennborg authored
      The bots started failing with the error below. I suspect this revision was the cause.
      
      FAILED: /home/bb/bin/g++47   -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -std=c++11 -ffunction-sections -fdata-sections -O3 -DNDEBUG -Ilib/TableGen -I/home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/lib/TableGen -Iinclude -I/home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/include    -fno-exceptions -fno-rtti -MMD -MT lib/TableGen/CMakeFiles/LLVMTableGen.dir/TGParser.cpp.o -MF "lib/TableGen/CMakeFiles/LLVMTableGen.dir/TGParser.cpp.o.d" -o lib/TableGen/CMakeFiles/LLVMTableGen.dir/TGParser.cpp.o -c /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/lib/TableGen/TGParser.cpp
      In file included from /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_tempbuf.h:62:0,
                       from /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_algo.h:64,
                       from /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/algorithm:63,
                       from /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/include/llvm/ADT/StringRef.h:13,
                       from /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/lib/TableGen/TGLexer.h:17,
                       from /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/lib/TableGen/TGParser.h:17,
                       from /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/lib/TableGen/TGParser.cpp:14:
      /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_construct.h: In instantiation of 'void std::_Construct(_T1*, _Args&& ...) [with _T1 = std::unique_ptr<llvm::Record>; _Args = {const std::unique_ptr<llvm::Record, std::default_delete<llvm::Record> >&}]':
      /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_uninitialized.h:77:3:   required from 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const std::unique_ptr<llvm::Record>*, std::vector<std::unique_ptr<llvm::Record> > >; _ForwardIterator = std::unique_ptr<llvm::Record>*; bool _TrivialValueTypes = false]'
      /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_uninitialized.h:119:41:   required from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const std::unique_ptr<llvm::Record>*, std::vector<std::unique_ptr<llvm::Record> > >; _ForwardIterator = std::unique_ptr<llvm::Record>*]'
      /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_uninitialized.h:260:63:   required from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const std::unique_ptr<llvm::Record>*, std::vector<std::unique_ptr<llvm::Record> > >; _ForwardIterator = std::unique_ptr<llvm::Record>*; _Tp = std::unique_ptr<llvm::Record>]'
      /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_vector.h:310:9:   required from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::unique_ptr<llvm::Record>; _Alloc = std::allocator<std::unique_ptr<llvm::Record> >]'
      /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/include/llvm/TableGen/Record.h:1664:8:   required from 'constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = std::basic_string<char>&; _U2 = llvm::MultiClass; <template-parameter-2-3> = void; _T1 = std::basic_string<char>; _T2 = llvm::MultiClass]'
      /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_pair.h:273:72:   required from 'constexpr std::pair<typename std::__decay_and_strip<_T1>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = std::basic_string<char>&; _T2 = llvm::MultiClass; typename std::__decay_and_strip<_T2>::__type = llvm::MultiClass; typename std::__decay_and_strip<_T1>::__type = std::basic_string<char>]'
      /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/lib/TableGen/TGParser.cpp:2295:78:   required from here
      /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_construct.h:77:7: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = llvm::Record; _Dp = std::default_delete<llvm::Record>]'
      In file included from /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/memory:86:0,
                       from /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/include/llvm/ADT/STLExtras.h:25,
                       from /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:14,
                       from /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/include/llvm/Support/SourceMgr.h:19,
                       from /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/lib/TableGen/TGParser.h:19,
                       from /home/bb/cmake-llvm-x86_64-linux/llvm-project/llvm/lib/TableGen/TGParser.cpp:14:
      /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/unique_ptr.h:262:7: error: declared here
      ninja: build stopped: subcommand failed.
      
      llvm-svn: 222970
      854df468
    • NAKAMURA Takumi's avatar
      clang/test/CodeGenOpenCL/opencl_types.cl: Appease i686-msvc. · ddd125a3
      NAKAMURA Takumi authored
      llvm-svn: 222969
      ddd125a3
    • Hans Wennborg's avatar
      Qualify one more make_unique call. · ffbbd53f
      Hans Wennborg authored
      The previous patch had effect, but missed this one. It seems MSVC
      gets ADL-confused by the calls where the first argument is a function call?
      
      llvm-svn: 222968
      ffbbd53f
    • Hans Wennborg's avatar
      Speculatively qualify some llvm::make_unique calls trying to please MSVC · b9a6eaac
      Hans Wennborg authored
      It was failing with this kind of error:
      
      C:\b\build\slave\CrWinClang\build\src\third_party\llvm\lib\TableGen\TGParser.cpp(1243) : error C2668: 'llvm::make_unique' : ambiguous call to overloaded function
      
              C:\b\build\slave\CrWinClang\build\src\third_party\llvm\include\llvm/ADT/STLExtras.h(408): could be 'std::unique_ptr<llvm::Record,std::default_delete<_Ty>> llvm::make_unique<llvm::Record,std::string,llvm::SMLoc&,llvm::RecordKeeper&,bool>(std::string &&,llvm::SMLoc &,llvm::RecordKeeper &,bool &&)'
              with
              [
                  _Ty=llvm::Record
              ]
              C:\b\depot_tools\win_toolchain\vs2013_files\win8sdk\bin\..\..\VC\include\memory(1637): or       'std::unique_ptr<llvm::Record,std::default_delete<_Ty>> std::make_unique<llvm::Record,std::string,llvm::SMLoc&,llvm::RecordKeeper&,bool>(std::string &&,llvm::SMLoc &,llvm::RecordKeeper &,bool &&)' [found using argument-dependent lookup]
              with
              [
                  _Ty=llvm::Record
              ]
              while trying to match the argument list '(std::string, llvm::SMLoc, llvm::RecordKeeper, bool)'
      
      llvm-svn: 222967
      b9a6eaac
    • Craig Topper's avatar
      a4ea4b09
    • Craig Topper's avatar
      Make MultiClass::DefPrototypes own their Records to fix memory leaks. · 66ac4930
      Craig Topper authored
      llvm-svn: 222965
      66ac4930
    • Nico Weber's avatar
      Fix typo. · cda5c7c7
      Nico Weber authored
      llvm-svn: 222964
      cda5c7c7
    • Nathan Sidwell's avatar
      81475c8b
    • Hans Wennborg's avatar
      Switch lowering: reformat some for loops etc. NFC · 6dfb041f
      Hans Wennborg authored
      llvm-svn: 222962
      6dfb041f
    • Hans Wennborg's avatar
      Switch lowering: Fix broken 'Figure out which block is next' code · 6c42d1a5
      Hans Wennborg authored
      This doesn't seem to have worked in a long time, but other optimizations
      would clean it up.
      
      llvm-svn: 222961
      6c42d1a5
    • Simon Pilgrim's avatar
      Target triple OS detection tidyup. NFC · 2bfd9129
      Simon Pilgrim authored
      Use Triple::isOS*() helpers where possible.
      
      llvm-svn: 222960
      2bfd9129
    • David Blaikie's avatar
      Remove some unnecessary vector::reserve/assign calls. · 7405608c
      David Blaikie authored
      llvm-svn: 222959
      7405608c
    • David Blaikie's avatar
      Remove indirection of vector<T*> in favor of deque<T> · 9b613dba
      David Blaikie authored
      llvm-svn: 222958
      9b613dba
    • Craig Topper's avatar
    • NAKAMURA Takumi's avatar
      c3ee2c5a
    • Craig Topper's avatar
      Remove 'else' after 'return'. Fix formatting of a 'switch' statement. · 73e2c0d8
      Craig Topper authored
      llvm-svn: 222955
      73e2c0d8