summaryrefslogtreecommitdiffstats
path: root/llvm/utils
Commit message (Collapse)AuthorAgeFilesLines
* gn build: Merge r369918Nico Weber2019-08-262-0/+2
| | | | llvm-svn: 369953
* gn build: color linker errors when using lldNico Weber2019-08-261-0/+3
| | | | llvm-svn: 369951
* gn build: (manually) merge r369741Nico Weber2019-08-261-0/+2
| | | | llvm-svn: 369950
* gn build: (manually) merge r369940Nico Weber2019-08-262-0/+8
| | | | llvm-svn: 369948
* [TableGen] Correct comments for end of namespace. NFCBjorn Pettersson2019-08-2510-29/+29
| | | | | | | | | | | | | | | | | | | | | | Summary: Update end-of-namespace comments generated by tablegen emitters to fulfill the rules setup by clang-tidy's llvm-namespace-comment checker. Fixed a few end-of-namespace comments in the tablegen source code as well. Reviewers: craig.topper Reviewed By: craig.topper Subscribers: craig.topper, stoklund, dschuff, sbc100, jgravelle-google, aheejin, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66396 llvm-svn: 369865
* Use a bit of relaxed constexpr to make FeatureBitset costant intializableBenjamin Kramer2019-08-244-6/+6
| | | | | | | | | | | This requires std::intializer_list to be a literal type, which it is starting with C++14. The downside is that std::bitset is still not constexpr-friendly so this change contains a re-implementation of most of it. Shrinks clang by ~60k. llvm-svn: 369847
* hwasan: Untag unwound stack frames by wrapping personality functions.Peter Collingbourne2019-08-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | One problem with untagging memory in landing pads is that it only works correctly if the function that catches the exception is instrumented. If the function is uninstrumented, we have no opportunity to untag the memory. To address this, replace landing pad instrumentation with personality function wrapping. Each function with an instrumented stack has its personality function replaced with a wrapper provided by the runtime. Functions that did not have a personality function to begin with also get wrappers if they may be unwound past. As the unwinder calls personality functions during stack unwinding, the original personality function is called and the function's stack frame is untagged by the wrapper if the personality function instructs the unwinder to keep unwinding. If unwinding stops at a landing pad, the function is still responsible for untagging its stack frame if it resumes unwinding. The old landing pad mechanism is preserved for compatibility with old runtimes. Differential Revision: https://reviews.llvm.org/D66377 llvm-svn: 369721
* [utils] Update shebang to use the environment.Jonas Devlieghere2019-08-221-1/+1
| | | | | | This changes the shebang to launch bash through /usr/bin/env. llvm-svn: 369717
* gn build: Merge r369680Nico Weber2019-08-221-0/+1
| | | | llvm-svn: 369682
* gn build: Merge r369677Nico Weber2019-08-221-1/+0
| | | | llvm-svn: 369678
* Retire llvm::less_ptr. llvm::deref is much more flexible.Benjamin Kramer2019-08-221-1/+1
| | | | llvm-svn: 369675
* Retire llvm::less/equal in favor of C++14 std::less<>/equal_to<>.Benjamin Kramer2019-08-224-18/+21
| | | | llvm-svn: 369674
* [lit] Diagnose insufficient args to internal envJoel E. Denny2019-08-226-3/+31
| | | | | | | | | | | | | Without this patch, failing to provide a subcommand to lit's internal `env` results in either a python `IndexError` or an attempt to execute the final `env` argument, such as `FOO=1`, as a command. This patch diagnoses those cases with a more helpful message. Reviewed By: stella.stamenova Differential Revision: https://reviews.llvm.org/D66482 llvm-svn: 369620
* gn build: Merge r369605Nico Weber2019-08-221-1/+1
| | | | llvm-svn: 369608
* gn build: Merge r369600Nico Weber2019-08-221-0/+3
| | | | llvm-svn: 369603
* gn build: Merge r369591Nico Weber2019-08-211-0/+1
| | | | llvm-svn: 369594
* gn build: Merge r369587Nico Weber2019-08-211-0/+1
| | | | llvm-svn: 369593
* gn build: Merge r369568Nico Weber2019-08-211-0/+1
| | | | llvm-svn: 369572
* gn build: Make sync script not exit 1 if it writes changesNico Weber2019-08-211-1/+1
| | | | llvm-svn: 369571
* git-llvm: Make push --force suppress error on nothing to commit as wellNico Weber2019-08-211-5/+6
| | | | llvm-svn: 369544
* git-llvm: Give "push" a --force flag to disable confirm prompt on multiple ↵Nico Weber2019-08-211-1/+6
| | | | | | commits llvm-svn: 369538
* reland [gtest] Fix printing of StringRef and SmallString in assert messages.Sam McCall2019-08-212-2/+29
| | | | | | | | | Renames GTEST_NO_LLVM_RAW_OSTREAM -> GTEST_NO_LLVM_SUPPORT and guards the new features behind it. This reverts commit a063bcf3ef5a879adbe9639a3c187d876eee0e66. llvm-svn: 369527
* Add 9.0 release bug to merge request scriptSimon Atanasyan2019-08-211-0/+3
| | | | llvm-svn: 369526
* Revert "[gtest] Fix printing of StringRef and SmallString in assert messages."Sam McCall2019-08-211-29/+0
| | | | | | This reverts commit 4becb2ab4e9f52ce98272d1f5930d6942af5172b. llvm-svn: 369525
* [gtest] Fix printing of StringRef and SmallString in assert messages.Sam McCall2019-08-211-0/+29
| | | | | | | | | | | | | | | | | | Summary: These are detected by gtest as containers, and so previously printed as e.g. { '.' (46, 0x2E), 's' (115, 0x73), 'e' (101, 0x65), 'c' (99, 0x63), '0' (48, 0x30) }, gtest itself overloads PrintTo for std::string and friends, we use the same mechanism. Reviewers: labath Subscribers: dexonsmith, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66520 llvm-svn: 369518
* Remove llvm/utils/git/find-revNico Weber2019-08-201-50/+0
| | | | | | | | | It assumes git-svn, hasn't been touched in ages, and it's replaced by llvm-git in llvm/utils/git-svn. Differential Revision: https://reviews.llvm.org/D66193 llvm-svn: 369478
* gn build: Merge r369467Nico Weber2019-08-201-0/+18
| | | | llvm-svn: 369476
* Teach GlobalISelEmitter to treat used iPTRAny operands as pointer operandsJessica Paquette2019-08-203-7/+30
| | | | | | | | | | | | | | Overloaded intrinsics can use iPTRAny in used/input operands. The GlobalISelEmitter doesn't know that these are pointers, so it treats them as scalars. As a result, these intrinsics can't be imported. This teaches the GlobalISelEmitter to recognize these as pointers rather than scalars. Differential Revision: https://reviews.llvm.org/D65756 llvm-svn: 369455
* gn build: Merge r369298Nico Weber2019-08-201-0/+1
| | | | llvm-svn: 369401
* [lit] Check for accidental external command callsJoel E. Denny2019-08-198-0/+48
| | | | | | | | | | | | | | | This patch extends lit's test suite to check that lit's internal shell doesn't accidentally execute internal commands as external commands. It does so by putting fake failing versions of those commands in `PATH` while the entire lit test suite is running. Without the fixes in D65697 but with its tests, this approach catches accidental external `env` calls. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D66293 llvm-svn: 369309
* TableGen: Revert changes from r369038Matt Arsenault2019-08-181-3/+1
| | | | | | | These aren't needed for a specific use yet, and I meant to not commit these. llvm-svn: 369201
* Add LLDB dataformatters for llvm::StringRef and lldb_private::ConstStringAdrian Prantl2019-08-161-0/+23
| | | | | | | | | | These data formatters make the string value appear in Xcode's variables view (and on the command line) without having to expand the data structure. Differential Revision: https://reviews.llvm.org/D66354 llvm-svn: 369175
* gn build: Merge r369064Nico Weber2019-08-161-0/+1
| | | | llvm-svn: 369074
* gn build: Merge r369061Nico Weber2019-08-161-0/+1
| | | | llvm-svn: 369073
* [Utils][NFC] Copy bisect usage documents from commit msg into script.Jinsong Ji2019-08-151-1/+13
| | | | | | | | | | Copy the message into script, so that new users won't need to dig into commit messages to figure out how to use. The message are copied directly from Michael's commit message in https://reviews.llvm.org/rL214610. llvm-svn: 369054
* gn build: Merge r369039Nico Weber2019-08-151-2/+1
| | | | llvm-svn: 369047
* gn build: Merge r369018Nico Weber2019-08-151-1/+0
| | | | llvm-svn: 369046
* MVT: Add v3i16/v3f16 vectorsMatt Arsenault2019-08-152-1/+5
| | | | | | | | | | | | AMDGPU has some buffer intrinsics which theoretically could use this. Some of the generated tables include the 3 and 4 element vector versions of these rounded to 64-bits, which is ambiguous. Add these to help the table disambiguate these. Assertion change is for the path odd sized vectors now take for R600. v3i16 is widened to v4i16, which then needs to be promoted to v4i32. llvm-svn: 369038
* [llvm] Migrate llvm::make_unique to std::make_uniqueJonas Devlieghere2019-08-1511-36/+36
| | | | | | | | Now that we've moved to C++14, we no longer need the llvm::make_unique implementation from STLExtras.h. This patch is a mechanical replacement of (hopefully) all the llvm::make_unique instances across the monorepo. llvm-svn: 369013
* gn build: Merge r368918Vitaly Buka2019-08-151-0/+1
| | | | llvm-svn: 368951
* gn build: Pre-merge https://reviews.llvm.org/D66195Nico Weber2019-08-141-1/+1
| | | | llvm-svn: 368840
* [Intrinsics] Add a 'NoAlias' intrinsic property; annotate llvm.memcpyDavid Bolvansky2019-08-143-0/+10
| | | | | | | | | | Reviewers: jdoerfert Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D66158 llvm-svn: 368810
* [FileCheck] Document FILECHECK_OPTS in -helpJoel E. Denny2019-08-141-0/+4
| | | | | | | | Reviewed By: thopre Differential Revision: https://reviews.llvm.org/D65707 llvm-svn: 368787
* [FileCheck] Move -dump-input diagnostic to first lineJoel E. Denny2019-08-141-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this patch, `-dump-input` prints a diagnostic at the end of its marker range. For example: ``` 1: Start. check:1 ^~~~~~ 2: Bad. next:2 X~~~ 3: Many lines next:2 ~~~~~~~~~~ 4: of input. next:2 ~~~~~~~~~ 5: End. next:2 ~~~~ error: no match found ``` This patch moves it to the beginning like this: ``` 1: Start. check:1 ^~~~~~ 2: Bad. next:2 X~~~ error: no match found 3: Many lines next:2 ~~~~~~~~~~ 4: of input. next:2 ~~~~~~~~~ 5: End. next:2 ~~~~ ``` The former somehow looks nicer because the diagnostic doesn't appear to be somewhere within the marker range. However, the latter is more practical, especially when the marker range includes the remainder of a very long dump. First, in the case of an error, this patch enables me to search the dump for `error:` and usually immediately land where the detected error began. Second, when trying to follow FileCheck's logic, it's best to read top down, so this patch enables me to see each diagnostic as soon as I encounter its marker. Reviewed By: thopre Differential Revision: https://reviews.llvm.org/D65702 llvm-svn: 368786
* [util] Allow callsigns when running git llvm revertJordan Rupprecht2019-08-131-3/+3
| | | | llvm-svn: 368726
* gn build: Extract git() and git_out() functions in sync scriptNico Weber2019-08-131-11/+8
| | | | llvm-svn: 368671
* gn build: Merge r368630Nico Weber2019-08-131-0/+1
| | | | llvm-svn: 368668
* gn build: Give cmake sync script an opt-in --write flagNico Weber2019-08-131-14/+56
| | | | | | Differential Revision: https://reviews.llvm.org/D66101 llvm-svn: 368667
* gn build: Make sync script group output by revisionNico Weber2019-08-131-11/+38
| | | | | | Differential Revision: https://reviews.llvm.org/D66090 llvm-svn: 368665
* gn build: Merge r368592Nico Weber2019-08-121-0/+1
| | | | llvm-svn: 368601
OpenPOWER on IntegriCloud