- Oct 19, 2015
-
-
Nico Weber authored
llvm-svn: 250675
-
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
-
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
-
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
-
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 -
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
-
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
-
Saleem Abdulrasool authored
The switch is fully covered, mark "default" as unreachable. NFC. llvm-svn: 250667
-
Nick Lewycky authored
emacs mode marker. (Changes left behind from another patch that ended up not working out.) llvm-svn: 250666
-
Saleem Abdulrasool authored
Do direct assignment of boolean values and regroup. Use StringSwitch instead of custom cases. NFC. llvm-svn: 250665
-
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
-
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
-
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
-
Saleem Abdulrasool authored
Cleanup some unused variables. NFC. llvm-svn: 250661
-
Jakub Staszak authored
llvm-svn: 250660
-
- Oct 18, 2015
-
-
Rafael Espindola authored
Sometimes it is more natural to use a ArrayRef<uint8_t> than a StringRef to represent a range of bytes that is not, semantically, a string. This will be used in lld in a sec. llvm-svn: 250658
-
Dimitry Andric authored
Summary: Similar to rL248426 (which was a followup to rL248379 and rL248424), add the required libraries for OpenMP on the linker command line, and update the test case. Reviewers: emaste, theraven, joerg Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13822 llvm-svn: 250657
-
Simon Pilgrim authored
llvm-svn: 250656
-
Johannes Doerfert authored
Sorting is replaced by a demand driven code generation that will pre-load a value when it is needed or, if it was not needed before, at some point determined by the order of invariant accesses in the program. Only in very little cases this demand driven pre-loading will kick in, though it will prevent us from generating faulty code. An example where it is needed is shown in: test/ScopInfo/invariant_loads_complicated_dependences.ll Invariant loads that appear in parameters but are not on the top-level (e.g., the parameter is not a SCEVUnknown) will now be treated correctly. Differential Revision: http://reviews.llvm.org/D13831 llvm-svn: 250655 -
Johannes Doerfert authored
Preloaded values have to match the type of their counterpart in the original code and not the type of the base array. llvm-svn: 250654
-
Simon Pilgrim authored
llvm-svn: 250653
-
Johannes Doerfert authored
Polly can now be used as a analysis only tool as long as the code generation is disabled. However, we do not have an alternative to the independent blocks pass in place yet, though in the relevant cases this does not seem to impact the performance much. Nevertheless, a virtual alternative that allows the same transformations without changing the input region will follow shortly. llvm-svn: 250652
-
Simon Pilgrim authored
llvm-svn: 250651
-
Asaf Badouh authored
Differential Revision: http://reviews.llvm.org/D13769 llvm-svn: 250650
-
Igor Breger authored
Differential Revision: http://reviews.llvm.org/D13632 llvm-svn: 250649
-
Daniel Jasper authored
If a RegExp contains a character group with a quote (/["]/), the trailing end of it is first tokenized as a string literal, which leads to the merging code seeing an unbalanced bracket. This change parses regex literals from the left hand side. That simplifies the parsing code and also allows correctly handling escapes and character classes, hopefully correctly parsing all regex literals. Patch by Martin Probst, thank you. Review: http://reviews.llvm.org/D13765 llvm-svn: 250648
-
Craig Topper authored
llvm-svn: 250647
-
Craig Topper authored
Add an unnecessary makeArrayRef I add earlier. I didn't realize range-based for loops worked with arrays. llvm-svn: 250646
-
Craig Topper authored
llvm-svn: 250645
-
Craig Topper authored
[Sparc] Use MCPhysReg instead of unsigned to size static arrays of registers. Should reduce the table size. llvm-svn: 250644
-
Craig Topper authored
llvm-svn: 250643
-
Craig Topper authored
llvm-svn: 250642
-
Craig Topper authored
llvm-svn: 250641
-
Rafael Espindola authored
llvm-svn: 250640
-
Lang Hames authored
llvm-svn: 250639
-
Xinliang David Li authored
1. Key constant values (version, magic) and data structures related to raw and indexed profile format are moved into one centralized file: InstrProf.h. 2. Utility function such as MD5Hash computation is also moved to the common header to allow sharing with other components in the future. 3. A header data structure is introduced for Indexed format so that the reader and writer can always be in sync. 4. Added some comments to document different places where multiple definition of the data structure must be kept in sync (reader/writer, runtime, lowering etc). No functional change is intended. Differential Revision: http://reviews.llvm.org/D13758 llvm-svn: 250638
-
Tobias Grosser authored
Expressing this in terms of BlockGenerator::getOrCreateAlloca(const ScopArrayInfo *Array) does not work as the MemoryAccess BasePtr is in case of invariant load hoisting different to the ScopArrayInfo BasePtr. Until this is investigated and fixed, we move back to code that just uses the baseptr of MemoryAccess. llvm-svn: 250637
-
Sanjoy Das authored
llvm-svn: 250636
-
Sanjoy Das authored
llvm-svn: 250635
-
Sanjoy Das authored
llvm-svn: 250634
-