Commit Graph

7869 Commits

Author SHA1 Message Date
Nico Weber 6b2c37ffb9 Remove llvm/utils/git/find-rev
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369478 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-20 23:59:07 +00:00
Nico Weber d16df4ed95 gn build: Merge r369467
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369476 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-20 23:49:12 +00:00
Jessica Paquette 55599619e3 Teach GlobalISelEmitter to treat used iPTRAny operands as pointer operands
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369455 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-20 22:04:10 +00:00
Nico Weber 07a06dc747 gn build: Merge r369298
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369401 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-20 16:19:50 +00:00
Joel E. Denny 0fb951d92e [lit] Check for accidental external command calls
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369309 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-19 22:59:37 +00:00
Matt Arsenault 3993f1876c TableGen: Revert changes from r369038
These aren't needed for a specific use yet, and I meant to not commit
these.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369201 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-18 00:20:42 +00:00
Adrian Prantl 42e3d15bdf Add LLDB dataformatters for llvm::StringRef and lldb_private::ConstString
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369175 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-16 23:47:57 +00:00
Nico Weber ee1ae4a984 gn build: Merge r369064
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369074 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-16 00:04:48 +00:00
Nico Weber dda1fb813e gn build: Merge r369061
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369073 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-16 00:04:42 +00:00
Jinsong Ji f462bca8da [Utils][NFC] Copy bisect usage documents from commit msg into script.
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369054 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-15 22:07:59 +00:00
Nico Weber 9c0833a5e9 gn build: Merge r369039
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369047 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-15 21:00:33 +00:00
Nico Weber 11dfccda03 gn build: Merge r369018
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369046 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-15 21:00:26 +00:00
Matt Arsenault 0015b14b6e MVT: Add v3i16/v3f16 vectors
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369038 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-15 18:58:25 +00:00
Jonas Devlieghere 114087caa6 [llvm] Migrate llvm::make_unique to std::make_unique
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369013 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-15 15:54:37 +00:00
Vitaly Buka 2d8a339384 gn build: Merge r368918
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368951 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-15 01:38:30 +00:00
Nico Weber 837b943b42 gn build: Pre-merge https://reviews.llvm.org/D66195
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368840 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-14 12:38:43 +00:00
David Bolvansky c558af7c15 [Intrinsics] Add a 'NoAlias' intrinsic property; annotate llvm.memcpy
Reviewers: jdoerfert

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D66158

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368810 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-14 08:33:07 +00:00
Joel E. Denny c1911fe14e [FileCheck] Document FILECHECK_OPTS in -help
Reviewed By: thopre

Differential Revision: https://reviews.llvm.org/D65707

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368787 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-14 02:56:20 +00:00
Joel E. Denny 7df8868628 [FileCheck] Move -dump-input diagnostic to first line
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368786 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-14 02:56:09 +00:00
Jordan Rupprecht 38ed850b98 [util] Allow callsigns when running git llvm revert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368726 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-13 17:19:53 +00:00
Nico Weber 9ca54d8f2f gn build: Extract git() and git_out() functions in sync script
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368671 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-13 11:48:15 +00:00
Nico Weber f3212a7825 gn build: Merge r368630
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368668 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-13 11:32:54 +00:00
Nico Weber e43efcaf09 gn build: Give cmake sync script an opt-in --write flag
Differential Revision: https://reviews.llvm.org/D66101

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368667 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-13 11:32:45 +00:00
Nico Weber f20ce4b797 gn build: Make sync script group output by revision
Differential Revision: https://reviews.llvm.org/D66090

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368665 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-13 11:24:20 +00:00
Nico Weber c3de672f62 gn build: Merge r368592
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368601 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-12 18:33:10 +00:00
Michael Liao ba58d61270 [TableGen] Correct the shift to the proper bit width.
- Replace the previous 32-bit shift with 64-bit one matching `OpInit`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368513 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-10 16:15:06 +00:00
Peter Collingbourne 8551fbb04b gn build: Merge r368432.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368470 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-09 19:28:53 +00:00
Peter Collingbourne 510d91369e gn build: Merge r368439.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368469 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-09 19:28:44 +00:00
Peter Collingbourne b7bd12574a gn build: Merge r368402.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368468 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-09 19:28:35 +00:00
Peter Collingbourne b811e3d1b3 gn build: Merge r368392.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368467 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-09 19:28:26 +00:00
Peter Collingbourne 3e9c2ecbf0 gn build: Merge r368358.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368466 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-09 19:28:17 +00:00
Daniel Sanders bf5acac9ab [TableGen] Add "InitValue": Handle operands with set bit values in decoder methods
Summary:
The problem:
  When an operand had bits explicitly set to "1" (as in the InitValue.td test case attached), the decoder was ignoring those bits, and the DecoderMethod was receiving an input where the bits were still zero.

The solution:
  We added an "InitValue" variable that stores the initial value of the operand based on what bits were explicitly initialized to 1 in TableGen code. The generated decoder code then uses that initial value to initialize the "tmp" variable, then calls fieldFromInstruction to read the values for the remaining bits that were left unknown in TableGen.

This is mainly useful when there are variations of an instruction that differ based on what bits are set in the operands, since this change makes it possible to access those bits in a DecoderMethod. The DecoderMethod can use those bits to know how to handle the input.

Patch by Nicolas Guillemot

Reviewers: craig.topper, dsanders, fhahn

Reviewed By: dsanders

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D63741

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368458 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-09 17:30:33 +00:00
Peter Collingbourne f01b8de06d gn build: Merge r368331.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368333 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-08 20:11:23 +00:00
Tom Stellard 1b6113b7fd lit: Bump version to 0.10.0
Reviewers: hans

Subscribers: hans, delcypher, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65763

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368329 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-08 19:22:23 +00:00
Tom Stellard db4af6325a lit: Use a License classifier that pypi will accept
Summary:
'OSI Approved :: Apache-2.0 with LLVM exception' is not a valid
classifier.  'OSI Approved :: Apache Software License' is the closest
fit for the new license, so we've decided to use this one.

The classifiers seem to only be used for searching on the pypi website,
so this does not actually change the license of the code.
We still pass 'Apache-2.0 with LLVM exception' as the license to setup(),
and this appears alongside the classifier on the pypi webpage for lit.

Reviewers: chandlerc, ddunbar, joerg

Reviewed By: joerg

Subscribers: delcypher, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65762

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368315 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-08 17:23:33 +00:00
Nico Weber 5e243551ee gn build: Merge r368158
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368179 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-07 15:30:44 +00:00
Nico Weber edeb303977 gn build: Merge r368119
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368178 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-07 15:29:01 +00:00
David Bolvansky 1401bc8ab1 [UpdateTestChecks] Update tests option
Summary:
Port of new feature introduced https://reviews.llvm.org/D65610 to other update scripts.

- update_*_checks.py: add an alias -u for --update-only
- port --update-only to other update_*_test_checks.py scripts
- update script aborts if the test file was generated by another update_*_test_checks.py utility

Reviewers: lebedev.ri, RKSimon, MaskRay, reames, gbedwell

Reviewed By: MaskRay

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65793

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368174 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-07 14:44:50 +00:00
Ilya Biryukov db67465469 [unittests] Mark private gmock headers with IWYU pragmas. NFC
Summary: To prevent clangd from adding #include of those headers.

Reviewers: gribozavr

Reviewed By: gribozavr

Subscribers: kadircet, llvm-commits, cfe-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65849

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368135 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-07 08:45:38 +00:00
Craig Topper 395dbd383c [X86] Limit vpermil2pd/vpermil2ps immediates to 4 bits in the assembly parser.
The upper 4 bits of the immediate byte are used to encode a
register. We need to limit the explicit immediate to fit in the
remaining 4 bits.

Fixes PR42899.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368123 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-07 05:34:27 +00:00
Peter Collingbourne 97dccece32 gn build: Merge r368065.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368099 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-06 21:48:06 +00:00
Peter Collingbourne 036032722e gn build: Merge r368052.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368098 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-06 21:47:55 +00:00
Peter Collingbourne 1ec9a57a03 gn build: Merge r368054.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368097 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-06 21:47:46 +00:00
Peter Collingbourne 75ffbb54a9 gn build: Merge r368086.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368096 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-06 21:47:37 +00:00
Peter Collingbourne 6bbda5f6e4 gn build: Merge r368070.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368095 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-06 21:47:27 +00:00
Dmitri Gribenko 174fe1d758 Revert "gn build: Merge r368021"
This reverts commit r368025, which depends on r368021, which needs to be
reverted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368034 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-06 13:39:27 +00:00
Nico Weber 3aff5deea9 gn build: Merge r368024
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368027 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-06 13:12:26 +00:00
Nico Weber 1d19def883 gn build: Merge r368021
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368025 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-06 13:08:54 +00:00
Fangrui Song 5b528746f2 [UpdateTestChecks] Fix an incorrect %s added in r368006
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368007 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-06 09:44:18 +00:00
Fangrui Song 5e35d90495 [UpdateTestChecks] Apply some string concatenation cleanup
Some were what I suggested in D65610.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368006 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-06 09:42:00 +00:00