1. Apr 29, 2018
    • Hideki Saito's avatar
      [NFC][LV][LoopUtil] Move LoopVectorizationLegality to its own file · f2ec16cc
      Hideki Saito authored
      Summary:
      This is a follow up to D45420 (included here since it is still under review and this change is dependent on that) and D45072 (committed).
      Actual change for this patch is LoopVectorize* and cmakefile. All others are all from D45420.
      
      LoopVectorizationLegality is an analysis and thus really belongs to Analysis tree. It is modular enough and it is reusable enough ---- we can further improve those aspects once uses outside of LV picks up.
      
      Hopefully, this will make it easier for people familiar with vectorization theory, but not necessarily LV itself to contribute, by lowering the volume of code they should deal with. We probably should start adding some code in LV to check its own capability (i.e., vectorization is legal but LV is not ready to handle it) and then bail out.
      
      
      Reviewers: rengolin, fhahn, hfinkel, mkuper, aemerson, mssimpso, dcaballe, sguggill
      
      Reviewed By: rengolin, dcaballe
      
      Subscribers: egarcia, rogfer01, mgorny, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D45552
      
      llvm-svn: 331139
      f2ec16cc
    • Craig Topper's avatar
      [X86] Add suffixes to the LGDT/LIDT/SGDT/SIDT mnemonics in Intel syntax. Add... · 18c4c8ef
      Craig Topper authored
      [X86] Add suffixes to the LGDT/LIDT/SGDT/SIDT mnemonics in Intel syntax. Add aliases based on 16/32-bit mode to choose the default.
      
      This allows the instruction selection to follow mode in Intel syntax. And allows a suffix to be used to change size.
      
      This matches gas behavior from what I could tell.
      
      llvm-svn: 331138
      18c4c8ef
    • Richard Smith's avatar
      Fix printing of reference-to-reference types. · d1868290
      Richard Smith authored
      Previously we would sometimes print these as 'T &&&' or even 'T &&&&'.
      
      llvm-svn: 331137
      d1868290
    • Richard Smith's avatar
      PR37275 packed attribute should not apply to base classes · 4ae767ba
      Richard Smith authored
      Clang incorrectly applied the packed attribute to base classes. Per GCC's
      documentation and as can be observed from its behavior, packed only applies to
      members, not base classes.
      
      This change is conditioned behind -fclang-abi-compat so that an ABI break can
      be avoided by users if desired.
      
      Differential Revision: https://reviews.llvm.org/D46218
      
      llvm-svn: 331136
      4ae767ba
    • Craig Topper's avatar
      [X86] Remove SLDT64m instruction. · ebd3e4a6
      Craig Topper authored
      It doesn't really exist. The instruction always writes 16-bits of memory. Putting a REX.w on it won't change anything.
      
      While I was touching the encoding tests to remove it, I added some other missing register form test cases.
      
      llvm-svn: 331135
      ebd3e4a6
    • Craig Topper's avatar
      [X86] Remove unnecessary InstAliases. NFCI · 8e3dbfd7
      Craig Topper authored
      These used to disambiguate MOV16ms/MOV16sm from other size instructions that no longer exist.
      
      llvm-svn: 331134
      8e3dbfd7
    • Ed Maste's avatar
      Add -warn-backrefs (r329636) to lld's man page · 59c4962c
      Ed Maste authored
      llvm-svn: 331133
      59c4962c
    • whitequark's avatar
      [LLVM-C] Eliminate an unused variable in a test. · b18cd6d1
      whitequark authored
      This was introduced in r331123 and broke -Werror bots.
      
      llvm-svn: 331132
      b18cd6d1
    • Rafael Espindola's avatar
      Update my email address and description. · ab0f3fdd
      Rafael Espindola authored
      llvm-svn: 331131
      ab0f3fdd
    • Tobias Grosser's avatar
      Remove keep/take/give from isl C++ bindings · e1cadf17
      Tobias Grosser authored
      These functions have been legacy leftovers which we used before the
      official C++ bindings existed. As all uses of these legacy functions
      have been removed, this polly-specific extension can also be dropped.
      
      llvm-svn: 331130
      e1cadf17
    • Tobias Grosser's avatar
      Remove another set or release() calls · 8dae41a1
      Tobias Grosser authored
      llvm-svn: 331129
      8dae41a1
    • Craig Topper's avatar
      [X86] Use getX86SubSuperRegister in addGR32orGR64Operands in the AsmParser... · a3f52aaa
      Craig Topper authored
      [X86] Use getX86SubSuperRegister in addGR32orGR64Operands in the AsmParser instead of duplicating its functionality. NFC
      
      llvm-svn: 331128
      a3f52aaa
    • Nico Weber's avatar
      s/LLVM_ON_WIN32/_WIN32/, llvm · 712e8d29
      Nico Weber authored
      LLVM_ON_WIN32 is set exactly with MSVC and MinGW (but not Cygwin) in
      HandleLLVMOptions.cmake, which is where _WIN32 defined too.  Just use the
      default macro instead of a reinvented one.
      
      See thread "Replacing LLVM_ON_WIN32 with just _WIN32" on llvm-dev and cfe-dev.
      No intended behavior change.
      
      This moves over all uses of the macro, but doesn't remove the definition
      of it in (llvm-)config.h yet.
      
      llvm-svn: 331127
      712e8d29
    • Tobias Grosser's avatar
      Remove the last uses of isl::give and isl::take · d3d3d6b7
      Tobias Grosser authored
      llvm-svn: 331126
      d3d3d6b7
    • Tobias Grosser's avatar
      Fix one unit test · 72018eda
      Tobias Grosser authored
      llvm-svn: 331125
      72018eda
    • Nico Weber's avatar
      Remove unused includes of clang/Config/config.h · 0c3984ef
      Nico Weber authored
      Found by opening config.h.cmake in vim, finding all defined macros with
      
        /define\(01\)\? \zs[A-Za-z0-9_]*<cr>
        :%s//\=setreg('A', submatch(0), 'V')/gn<cr>
        :put A<cr>
      
      and then joining them all with |, and passing that to
      
        git grep -E that_pattern 'clang/*.h' 'clang/*.cpp' 'clang/*.c'
      
      and diffing that output with the result of
      
        git grep Config/config.h 'clang/*.h' 'clang/*.cpp' 'clang/*.c'
      
      No intended behavior change.
      
      llvm-svn: 331124
      0c3984ef
    • Robert Widmann's avatar
      [LLVM-C] Add DIBuilder bindings to create import declarations · aec494f3
      Robert Widmann authored
      Summary: Add bindings to create import declarations for modules, functions, types, and other entities.  This wraps the conveniences available in the existing DIBuilder API, but these seem C++-specific.
      
      Reviewers: whitequark, harlanhaskins, deadalnix
      
      Reviewed By: whitequark
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D46167
      
      llvm-svn: 331123
      aec494f3
    • Tobias Grosser's avatar
      [DeLICM] Remove uses of isl::give · da3e8c4b
      Tobias Grosser authored
      llvm-svn: 331122
      da3e8c4b
    • Tobias Grosser's avatar
      [ZoneAlgo] Remove uses of isl::give - II · daf68ea3
      Tobias Grosser authored
      llvm-svn: 331121
      daf68ea3
    • Tobias Grosser's avatar
      [ZoneAlgo] Remove uses of isl::give · 2f549fd6
      Tobias Grosser authored
      This moves more of Polly to islpp.
      
      llvm-svn: 331120
      2f549fd6
    • Tobias Grosser's avatar
      [islpp] Remove use of isl::give from unittests · 0ba8c4a8
      Tobias Grosser authored
      We do this mostly by just moving directly to pure C++ code.
      
      llvm-svn: 331119
      0ba8c4a8
    • Tobias Grosser's avatar
      77e871aa
    • Craig Topper's avatar
      [X86] Restrict many of the InstAliases to either to only att or intel syntax. NFCI · 06624e1a
      Craig Topper authored
      Many of these aliases exist to give one syntax or the other a slightly different mnemonic and the other variant gets a duplicate of its normal mnemonic
      
      This patch restricts a lot of these to only one variant so we don't get the duplication.
      
      This removes a lot of duplicate entries from the matcher table. It also reduces the number of warnings printed when you enable the ambiguous match warning in tablegen.
      
      llvm-svn: 331117
      06624e1a
    • Simon Pilgrim's avatar
      [X86] Remove unnecessary rotate-carry folded InstRW overrides. · badf63e9
      Simon Pilgrim authored
      Merge some remaining instregex entries.
      
      llvm-svn: 331116
      badf63e9
    • Daniel Sanders's avatar
      [globalisel][legalizerinfo] Introduce dedicated extending loads and add lowerings for them · 5eb9f581
      Daniel Sanders authored
      Summary:
      Previously, a extending load was represented at (G_*EXT (G_LOAD x)).
      This had a few drawbacks:
      * G_LOAD had to be legal for all sizes you could extend from, even if
        registers didn't naturally hold those sizes.
      * All sizes you could extend from had to be allocatable just in case the
        extend went missing (e.g. by optimization).
      * At minimum, G_*EXT and G_TRUNC had to be legal for these sizes. As we
        improve optimization of extends and truncates, this legality requirement
        would spread without considerable care w.r.t when certain combines were
        permitted.
      * The SelectionDAG importer required some ugly and fragile pattern
        rewriting to translate patterns into this style.
      
      This patch begins changing the representation to:
      * (G_[SZ]EXTLOAD x)
      * (G_LOAD x) any-extends when MMO.getSize() * 8 < ResultTy.getSizeInBits()
      which resolves these issues by allowing targets to work entirely in their
      native register sizes, and by having a more direct translation from
      SelectionDAG patterns.
      
      This patch introduces the new generic instructions and new variation on
      G_LOAD and adds lowering for them to convert back to the existing
      representations.
      
      Depends on D45466
      
      Reviewers: ab, aditya_nandakumar, bogner, rtereshin, volkan, rovka, aemerson, javed.absar
      
      Reviewed By: aemerson
      
      Subscribers: aemerson, kristof.beyls, javed.absar, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D45540
      
      llvm-svn: 331115
      5eb9f581
    • Robert Widmann's avatar
      [LLVM-C] Miscellaneous Cleanups in DIBuilder Bindings · 2d2698c6
      Robert Widmann authored
      Summary:
      * rL328953 does not include bindings for LLVMDIBuilderCreateClassType and LLVMDIBuilderCreateBitFieldMemberType despite declaring their prototypes.  Provide these bindings now.
      * Switch to more precise types with specific numeric limits matching the DIBuilder's C++ API.
      
      Reviewers: harlanhaskins, whitequark, deadalnix
      
      Reviewed By: whitequark
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D46168
      
      llvm-svn: 331114
      2d2698c6
    • Tobias Grosser's avatar
      Update to latest version of the isl c++ bindings · b5892809
      Tobias Grosser authored
      The delta to the previous version is rather small, but a change in brace
      placement makes this a rather noisy commit.
      
      llvm-svn: 331113
      b5892809
  2. Apr 28, 2018