1. Oct 19, 2015
    • Nico Weber's avatar
      afa62fae
    • Saleem Abdulrasool's avatar
      docs: remote stale refs · 7f66d758
      Saleem Abdulrasool authored
      Since the attribute documentation is now auto-generated, the previous references
      are no longer valid.  This prevented the docs build from completing
      successfully.
      
      llvm-svn: 250674
      7f66d758
    • Saleem Abdulrasool's avatar
      Python: follow python guidelines for header usage · a8bf774b
      Saleem Abdulrasool authored
      Python requires that Python.h is included before any std header.  Not doing so
      results in conflicts with standards macros such as `_XOPEN_SOURCE`.  NFC.
      
      llvm-svn: 250673
      a8bf774b
    • Nico Weber's avatar
      Update `clang-format -help` output in clang-format docs. · 187fcf1e
      Nico Weber authored
      -assume-filename, -fallback-style, and -sort-includes are new.  (They're also
      longer than the previous options, so all descriptions shift over by some amount,
      making this diff look larger than it is.)
      
      It looks like someone renamed "General options" to "Generic Options" too.
      
      llvm-svn: 250672
      187fcf1e
    • Nico Weber's avatar
      Update list of languages advertised in OVERVIEW: A tool to format... · 373ee96e
      Nico Weber authored
      Update list of languages advertised in OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code.
      
      If no arguments are specified, it formats the code from standard input
      and writes the result to the standard output.
      If <file>s are given, it reformats the files. If -i is specified
      together with <file>s, the files are edited in-place. Otherwise, the
      result is written to the standard output.
      
      USAGE: clang-format [options] [<file> ...]
      
      OPTIONS:
        -assume-filename=<string> - When reading from stdin, clang-format assumes this
                                    filename to look for a style config file (with
                                    -style=file) and to determine the language.
        -cursor=<uint>            - The position of the cursor when invoking
                                    clang-format from an editor integration
        -dump-config              - Dump configuration options to stdout and exit.
                                    Can be used with -style option.
        -fallback-style=<string>  - The name of the predefined style used as a
                                    fallback in case clang-format is invoked with
                                    -style=file, but can not find the .clang-format
                                    file to use.
                                    Use -fallback-style=none to skip formatting.
        -help                     - Display available options (-help-hidden for more)
        -i                        - Inplace edit <file>s, if specified.
        -length=<uint>            - Format a range of this length (in bytes).
                                    Multiple ranges can be formatted by specifying
                                    several -offset and -length pairs.
                                    When only a single -offset is specified without
                                    -length, clang-format will format up to the end
                                    of the file.
                                    Can only be used with one input file.
        -lines=<string>           - <start line>:<end line> - format a range of
                                    lines (both 1-based).
                                    Multiple ranges can be formatted by specifying
                                    several -lines arguments.
                                    Can't be used with -offset and -length.
                                    Can only be used with one input file.
        -offset=<uint>            - Format a range starting at this byte offset.
                                    Multiple ranges can be formatted by specifying
                                    several -offset and -length pairs.
                                    Can only be used with one input file.
        -output-replacements-xml  - Output replacements as XML.
        -sort-includes            - Sort touched include lines
        -style=<string>           - Coding style, currently supports:
                                      LLVM, Google, Chromium, Mozilla, WebKit.
                                    Use -style=file to load style configuration from
                                    .clang-format file located in one of the parent
                                    directories of the source file (or current
                                    directory for stdin).
                                    Use -style="{key: value, ...}" to set specific
                                    parameters, e.g.:
                                      -style="{BasedOnStyle: llvm, IndentWidth: 8}"
        -version                  - Display the version of this program output.
      
      llvm-svn: 250671
      373ee96e
    • Johannes Doerfert's avatar
      [FIX] Only constant integer branch conditions are always affine · 9c28bfa7
      Johannes Doerfert authored
        There are several different kinds of constants that could occur in a
        branch condition, however we can only handle the most interesting one
        namely constant integers. To this end we have to treat others as
        non-affine.
      
        This fixes bug 25244.
      
      llvm-svn: 250669
      9c28bfa7
    • Johannes Doerfert's avatar
      [FIX] Normalize loops outside the SCoP during schedule generation · 30c2265f
      Johannes Doerfert authored
        We build the schedule based on a traversal of the region and accumulate
        information for each loop in it. The total schedule is associated with the
        loop surrounding the SCoP, though it can happen that there are blocks in the
        SCoP which are part of loops that are only partially in the SCoP. Instead of
        associating information with them (they are not part of the SCoP and
        consequently are not modeled) we have to associate the schedule information
        with the surrounding loop if any.
      
        This fixes bug 25240.
      
      llvm-svn: 250668
      30c2265f
    • Saleem Abdulrasool's avatar
      Silence -Wreturn-type with gcc 5.2 · 43d3a7ae
      Saleem Abdulrasool authored
      The switch is fully covered, mark "default" as unreachable.  NFC.
      
      llvm-svn: 250667
      43d3a7ae
    • Nick Lewycky's avatar
      No functionality change, just fix whitespace, a typo and remove an unnecessary · 4b81fc87
      Nick Lewycky authored
      emacs mode marker. (Changes left behind from another patch that ended up not
      working out.)
      
      llvm-svn: 250666
      4b81fc87
    • Saleem Abdulrasool's avatar
      CodeGen: simplify TargetOptions setup · b25445cb
      Saleem Abdulrasool authored
      Do direct assignment of boolean values and regroup.  Use StringSwitch instead of
      custom cases.  NFC.
      
      llvm-svn: 250665
      b25445cb
    • Johannes Doerfert's avatar
      [FIX] Do not try to hoist "empty" accesses · b864c2c3
      Johannes Doerfert authored
        Accesses that have a relative offset (in bytes) that is not divisible
        by the type size (in bytes) will be represented as empty in the SCoP
        description. This is on its own not good but it also crashed the
        invariant load hoisting. This patch will fix the latter problem while
        the former should be addressed too.
      
        This fixes bug 25236.
      
      llvm-svn: 250664
      b864c2c3
    • Johannes Doerfert's avatar
      [FIX] Do not hoist invariant pointers with non-loaded base ptr in SCoP · bc7cff4c
      Johannes Doerfert authored
        If the base pointer of a load is invariant and defined in the SCoP but
        not loaded we cannot hoist the load as we would not hoist the base
        pointer definition.
      
        This fixes bug 25237.
      
      llvm-svn: 250663
      bc7cff4c
    • Saleem Abdulrasool's avatar
      Silence -Wqual-cast warnings from GCC 5.2 · ba507b04
      Saleem Abdulrasool authored
      There were a number of const qualifiers being cast away which caused warnings.
      This cluttered the output hiding real errors.  Silence them by explicit casting.
      NFC.
      
      llvm-svn: 250662
      ba507b04
    • Saleem Abdulrasool's avatar
      Silence some -Wunused-but-set-variable with gcc 5.2.0 · 8b8d2a4d
      Saleem Abdulrasool authored
      Cleanup some unused variables.  NFC.
      
      llvm-svn: 250661
      8b8d2a4d
    • Jakub Staszak's avatar
      Preserve CFG in MergedLoadStoreMotion. This fixes PR24426. · f12821a4
      Jakub Staszak authored
      llvm-svn: 250660
      f12821a4
  2. Oct 18, 2015