summaryrefslogtreecommitdiffstats
path: root/llvm/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* [TableGen] Correct the shift to the proper bit width.Michael Liao2019-08-101-1/+1
| | | | | | - Replace the previous 32-bit shift with 64-bit one matching `OpInit`. llvm-svn: 368513
* gn build: Merge r368432.Peter Collingbourne2019-08-091-0/+1
| | | | llvm-svn: 368470
* gn build: Merge r368439.Peter Collingbourne2019-08-091-0/+1
| | | | llvm-svn: 368469
* gn build: Merge r368402.Peter Collingbourne2019-08-091-0/+1
| | | | llvm-svn: 368468
* gn build: Merge r368392.Peter Collingbourne2019-08-091-0/+3
| | | | llvm-svn: 368467
* gn build: Merge r368358.Peter Collingbourne2019-08-092-0/+17
| | | | llvm-svn: 368466
* [TableGen] Add "InitValue": Handle operands with set bit values in decoder ↵Daniel Sanders2019-08-091-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | 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 llvm-svn: 368458
* gn build: Merge r368331.Peter Collingbourne2019-08-081-1/+1
| | | | llvm-svn: 368333
* lit: Bump version to 0.10.0Tom Stellard2019-08-081-1/+1
| | | | | | | | | | | | Reviewers: hans Subscribers: hans, delcypher, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D65763 llvm-svn: 368329
* lit: Use a License classifier that pypi will acceptTom Stellard2019-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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 llvm-svn: 368315
* gn build: Merge r368158Nico Weber2019-08-071-1/+0
| | | | llvm-svn: 368179
* gn build: Merge r368119Nico Weber2019-08-073-8/+9
| | | | llvm-svn: 368178
* [UpdateTestChecks] Update tests optionDavid Bolvansky2019-08-076-57/+129
| | | | | | | | | | | | | | | | | | | | | 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 llvm-svn: 368174
* [unittests] Mark private gmock headers with IWYU pragmas. NFCIlya Biryukov2019-08-0713-0/+26
| | | | | | | | | | | | | | | | 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 llvm-svn: 368135
* [X86] Limit vpermil2pd/vpermil2ps immediates to 4 bits in the assembly parser.Craig Topper2019-08-071-0/+2
| | | | | | | | | | 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. llvm-svn: 368123
* gn build: Merge r368065.Peter Collingbourne2019-08-062-0/+2
| | | | llvm-svn: 368099
* gn build: Merge r368052.Peter Collingbourne2019-08-061-0/+1
| | | | llvm-svn: 368098
* gn build: Merge r368054.Peter Collingbourne2019-08-061-1/+1
| | | | llvm-svn: 368097
* gn build: Merge r368086.Peter Collingbourne2019-08-061-0/+2
| | | | llvm-svn: 368096
* gn build: Merge r368070.Peter Collingbourne2019-08-061-0/+1
| | | | llvm-svn: 368095
* Revert "gn build: Merge r368021"Dmitri Gribenko2019-08-063-9/+8
| | | | | | | This reverts commit r368025, which depends on r368021, which needs to be reverted. llvm-svn: 368034
* gn build: Merge r368024Nico Weber2019-08-061-0/+1
| | | | llvm-svn: 368027
* gn build: Merge r368021Nico Weber2019-08-063-8/+9
| | | | llvm-svn: 368025
* [UpdateTestChecks] Fix an incorrect %s added in r368006Fangrui Song2019-08-061-1/+1
| | | | llvm-svn: 368007
* [UpdateTestChecks] Apply some string concatenation cleanupFangrui Song2019-08-061-8/+8
| | | | | | Some were what I suggested in D65610. llvm-svn: 368006
* test-release.sh: Reorder sed commands for the binary comparisonHans Wennborg2019-08-061-2/+2
| | | | llvm-svn: 368004
* gn build: Add AMDGPU targetNico Weber2019-08-068-1/+404
| | | | | | Differential Revision: https://reviews.llvm.org/D65767 llvm-svn: 367972
* gn build: Leave a comment why "-gen-searchable-table" tablegen()s are not ↵Nico Weber2019-08-063-0/+3
| | | | | | called FooGenSearchableTable llvm-svn: 367971
* gn build: Merge r367917Nico Weber2019-08-061-0/+1
| | | | llvm-svn: 367970
* Robustify update_test_checks.py to non-autogened tests, and add a mode to ↵Philip Reames2019-08-051-0/+11
| | | | | | | | | | | | skip non-autogenerated ones Intended use case is: ./utils/update_test_checks.py test/Transform/PassDir/* --update-only (i.e. rapidly be able to see changes in autogened filed, before handing non-autogened tests individually) Differential Revision: https://reviews.llvm.org/D65610 llvm-svn: 367900
* gn build: run "gn format"Nico Weber2019-08-051-1/+1
| | | | llvm-svn: 367890
* gn build: Merge r367864Nico Weber2019-08-052-1/+1
| | | | llvm-svn: 367868
* test-release.sh: Perform the sed substitution on both files (PR42739)Hans Wennborg2019-08-051-3/+4
| | | | | | | | | | | The comparison would otherwise fail if Phase2 occurrs naturally in the object file. It would get replaced with Phase3 in the one .o, but not in the other. We were already running both files through sed to have them processed in this same way; this is a logical extension of that. llvm-svn: 367847
* Write the RequiredLibraries for 'all' in LibraryDependencies.inc in a ↵Hans Wennborg2019-08-051-1/+1
| | | | | | deterministic order (PR42739) llvm-svn: 367846
* gn build: Merge r367839Nico Weber2019-08-051-0/+1
| | | | llvm-svn: 367844
* build_llvm_package.bat: Set PYTHON_EXECUTABLE (PR42724)Hans Wennborg2019-08-051-5/+5
| | | | llvm-svn: 367815
* gn build: Merge r367756Nico Weber2019-08-041-0/+2
| | | | llvm-svn: 367795
OpenPOWER on IntegriCloud