summaryrefslogtreecommitdiffstats
path: root/llvm/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* Reland "gn build: (manually) merge r373551"Nico Weber2019-10-034-0/+23
| | | | | | 373551 relanded in 373651. llvm-svn: 373654
* [gicombiner] Add a CodeExpander to handle C++ fragments with variable expansionDaniel Sanders2019-10-036-0/+206
| | | | | | | | | | | | | | | | | | | | | | | Summary: This will handle expansion of C++ fragments in the declarative combiner including custom predicates, and escapes into C++ to aid the migration effort. Fixed the -DLLVM_LINK_LLVM_DYLIB=ON using DISABLE_LLVM_LINK_LLVM_DYLIB when creating the library. Apparently it automatically links to libLLVM.dylib and we don't want that from tablegen. Reviewers: bogner, volkan Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68288 > llvm-svn: 373551 llvm-svn: 373651
* gn build: (manually) merge r373622Nico Weber2019-10-031-0/+9
| | | | llvm-svn: 373627
* [UpdateTestChecks] add basic support for parsing msp430 asmSanjay Patel2019-10-031-0/+17
| | | | llvm-svn: 373605
* gn build: Merge r373601GN Sync Bot2019-10-031-0/+1
| | | | llvm-svn: 373603
* [llvm-locstats] Copy the script only when needed; NFCDjordje Todorovic2019-10-031-2/+7
| | | | llvm-svn: 373596
* gn build: Revert 373554 "gn build: (manually) merge r373551"Nico Weber2019-10-034-23/+0
| | | | | | r373551 was reverted in r373581. llvm-svn: 373586
* Revert 373551 (CodeExpander.cpp CMake issue)Kristina Brooks2019-10-036-206/+0
| | | | | | | | Fix buildbots and revert the CodeExpander commit. (See http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20190930/699857.html ) llvm-svn: 373581
* Revert 373555: libLLVM+modules failure with CMake 3.10.2Kristina Brooks2019-10-032-2/+2
| | | | | | | | | This reverts rL373555. I've sent an email out regarding the issue. Commit on GitHub: https://github.com/llvm/llvm-project/commit/45f682f47129c05414d4c5ae7be851772273978f llvm-svn: 373579
* gn build: Merge r373556GN Sync Bot2019-10-031-1/+0
| | | | llvm-svn: 373558
* [gicombiner] Make rL373551 compatible with older cmakesDaniel Sanders2019-10-032-2/+2
| | | | | | | Newer cmakes appear to be more flexible w.r.t object libraries. Convert to a static library so that it works with older cmakes too llvm-svn: 373555
* gn build: (manually) merge r373551Nico Weber2019-10-034-0/+23
| | | | llvm-svn: 373554
* [gicombiner] Add a CodeExpander to handle C++ fragments with variable expansionDaniel Sanders2019-10-036-0/+206
| | | | | | | | | | | | | | | | | Summary: This will handle expansion of C++ fragments in the declarative combiner including custom predicates, and escapes into C++ to aid the migration effort. Reviewers: bogner, volkan Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68288 llvm-svn: 373551
* gn build: Merge r373538GN Sync Bot2019-10-031-0/+1
| | | | llvm-svn: 373550
* [gicombiner] Fix a nullptr dereference when -combiners is given a name that ↵Daniel Sanders2019-10-021-5/+11
| | | | | | | | | isn't defined This is unlikely to be the root cause for the windows bot failures but it would explain the stack trace seen. llvm-svn: 373543
* gn build: (manually) merge r373527Nico Weber2019-10-022-0/+11
| | | | llvm-svn: 373534
* [gicombiner] Add the boring boilerplate for the declarative combinerDaniel Sanders2019-10-024-0/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This is the first of a series of patches extracted from a much bigger WIP patch. It merely establishes the tblgen pass and the way empty combiner helpers are declared and integrated into a combiner info. The tablegen pass takes a -combiners option to select the combiner helper that will be generated. This can be given multiple values to generate multiple combiner helpers at once. Doing so helps to minimize parsing overhead. The reason for creating a GlobalISel subdirectory in utils/TableGen is that there will be quite a lot of non-pass files (~15) by the time the patch series is done. Reviewers: volkan Subscribers: mgorny, hiraditya, simoncook, Petar.Avramovic, s.egerton, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68286 llvm-svn: 373527
* Fix inconsistent indentation in TableGen.cppDaniel Sanders2019-10-021-68/+64
| | | | | | | The anonymous namespace starts out (incorrectly) indented but isn't indented from the TimeRegionsOpt declaration onwards. llvm-svn: 373516
* [TableGen] Improve error reporting of overlapping definitions (NFC)Evandro Menezes2019-10-021-6/+14
| | | | llvm-svn: 373514
* gn build: Merge r373489GN Sync Bot2019-10-021-0/+1
| | | | llvm-svn: 373492
* gn build: Merge r373462GN Sync Bot2019-10-021-0/+1
| | | | llvm-svn: 373463
* gn build: (manually) merge r373425Nico Weber2019-10-021-1/+0
| | | | llvm-svn: 373438
* [IntrinsicEmitter] Add overloaded type VecOfBitcastsToInt for SVE intrinsicsKerry McLaughlin2019-10-021-1/+4
| | | | | | | | | | | | | | | | | | | | | Summary: This allows intrinsics such as the following to be defined: - declare <n x 4 x i32> @llvm.something.nxv4f32(<n x 4 x i32>, <n x 4 x i1>, <n x 4 x float>) ...where <n x 4 x i32> is derived from <n x 4 x float>, but the element needs bitcasting to int. Reviewers: c-rhodes, sdesmalen, rovka Reviewed By: c-rhodes Subscribers: tschuett, hiraditya, jdoerfert, llvm-commits, cfe-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68021 llvm-svn: 373437
* Reland "[utils] Implement the llvm-locstats tool"Djordje Todorovic2019-10-022-0/+215
| | | | | | | | | | | | | | | | | | The tool reports verbose output for the DWARF debug location coverage. The llvm-locstats for each variable or formal parameter DIE computes what percentage from the code section bytes, where it is in scope, it has location description. The line 0 shows the number (and the percentage) of DIEs with no location information, but the line 100 shows the number (and the percentage) of DIEs where there is location information in all code section bytes (where the variable or parameter is in the scope). The line 50..59 shows the number (and the percentage) of DIEs where the location information is in between 50 and 59 percentage of its scope covered. Differential Revision: https://reviews.llvm.org/D66526 The cause of the test failure was resolved. llvm-svn: 373427
* gn build: (manually) merge r373407Nico Weber2019-10-023-0/+8
| | | | llvm-svn: 373419
* gn build: Merge r373392GN Sync Bot2019-10-012-1/+1
| | | | llvm-svn: 373393
* Revert rL349624 : Let TableGen write output only if it changed, instead of ↵Simon Pilgrim2019-10-011-0/+5
| | | | | | | | | | doing so in cmake, attempt 2 Differential Revision: https://reviews.llvm.org/D55842 ----------------- As discussed on PR43385 this is causing Visual Studio msbuilds to perpetually rebuild all tablegen generated files llvm-svn: 373338
* Revert "Reland "[utils] Implement the llvm-locstats tool""Djordje Todorovic2019-10-012-215/+0
| | | | | | | This reverts commit rL373317 due to test failure on the clang-s390x-linux build bot. llvm-svn: 373336
* Reland "[utils] Implement the llvm-locstats tool"Djordje Todorovic2019-10-012-0/+215
| | | | | | | | | | | | | | | | The tool reports verbose output for the DWARF debug location coverage. The llvm-locstats for each variable or formal parameter DIE computes what percentage from the code section bytes, where it is in scope, it has location description. The line 0 shows the number (and the percentage) of DIEs with no location information, but the line 100 shows the number (and the percentage) of DIEs where there is location information in all code section bytes (where the variable or parameter is in the scope). The line 50..59 shows the number (and the percentage) of DIEs where the location information is in between 50 and 59 percentage of its scope covered. Differential Revision: https://reviews.llvm.org/D66526 llvm-svn: 373317
* [X86] Consider isCodeGenOnly in the EVEX2VEX pass to make VMAXPD/PS map to ↵Craig Topper2019-10-011-0/+1
| | | | | | | | | | the non-commutable VEX instruction. Use EVEX2VEX override to fix the scalar instructions. Previously the match was ambiguous and VMAXPS/PD and VMAXCPS/PD were mapped to the same VEX instruction. But we should keep the commutableness when change the opcode. llvm-svn: 373303
* [FileCheck] Remove implementation types from APIThomas Preud'homme2019-09-301-3/+2
| | | | | | | | | | | | | | | | | Summary: Remove use of FileCheckPatternContext and FileCheckString concrete types from FileCheck API to allow moving it and the other implementation only only declarations into a private header file. Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68186 llvm-svn: 373211
* gn build: Merge r373202GN Sync Bot2019-09-302-0/+2
| | | | llvm-svn: 373204
* Revert "Reland "[utils] Implement the llvm-locstats tool""Djordje Todorovic2019-09-302-215/+0
| | | | | | This reverts commit rL373183. llvm-svn: 373200
* Reland "[utils] Implement the llvm-locstats tool"Djordje Todorovic2019-09-302-0/+215
| | | | | | | | | | | | | | | | The tool reports verbose output for the DWARF debug location coverage. The llvm-locstats for each variable or formal parameter DIE computes what percentage from the code section bytes, where it is in scope, it has location description. The line 0 shows the number (and the percentage) of DIEs with no location information, but the line 100 shows the number (and the percentage) of DIEs where there is location information in all code section bytes (where the variable or parameter is in the scope). The line 50..59 shows the number (and the percentage) of DIEs where the location information is in between 50 and 59 percentage of its scope covered. Differential Revision: https://reviews.llvm.org/D66526 llvm-svn: 373183
* gn build: (manually) merge r373082Nico Weber2019-09-274-71/+33
| | | | llvm-svn: 373086
* gn build: Merge r373083GN Sync Bot2019-09-272-0/+2
| | | | llvm-svn: 373085
* Reland "gn build: (manually) merge r373028"Nico Weber2019-09-274-0/+21
| | | | | | This relands r373029, reverted in 373033, because r373028 relanded in r373066. llvm-svn: 373070
* [UpdateTestChecks] Fix wildcard support on DOS promptsSimon Pilgrim2019-09-271-3/+3
| | | | | | D64572 / rL365818 changed the way that the file paths were collected, which meant we lost the file pattern expansion necessary when working with DOS command prompt llvm-svn: 373062
* Revert "gn build: (manually) merge r373028"Dmitri Gribenko2019-09-264-21/+0
| | | | | | This reverts commit r373029, which depends on r373028, which I reverted. llvm-svn: 373033
* gn build: (manually) merge r373028Nico Weber2019-09-264-0/+21
| | | | llvm-svn: 373029
* [NFC][emacs] remove out-of-date comment from tablegen-mode.elBob Haarman2019-09-261-2/+0
| | | | | | | | | | | | | | | | | | | | Summary: The syntax table was originally based on and attributed to jasmin.el, but was rewritten in r45192, so the comment that says the code comes from jasmin.el is no longer accurate. This change removes the comment, shortening the code a bit. Reviewers: MaskRay, lattner Reviewed By: MaskRay Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68042 llvm-svn: 373008
* DAGISelMatcherOpt - TGParser::ParseOperation - silence static analyzer ↵Simon Pilgrim2019-09-261-4/+5
| | | | | | | | cast_or_null<CheckTypeMatcher> null dereference warning. NFCI. The static analyzer is warning about a potential null dereference, replace with an null/isa assertion and cast<CheckTypeMatcher>. llvm-svn: 373001
* build_llvm_package.bat: Bootstrap with VS 2019Hans Wennborg2019-09-261-7/+7
| | | | llvm-svn: 372984
* [emacs] simplify and improve keyword highlighting in tablegen-mode.elBob Haarman2019-09-251-3/+2
| | | | | | | | | | | | | | | | | | | | | | | Summary: The keyword and type keyword matchers in tablegen-mode.el checked for space, newline, tab, or open paren after the regular expression that matches keywords (or type keywords, respectively). This is unnecessary, because those regular expressions already include word boundaries. This change removes the extra check. This also causes "def" in "def:" to be highlighted as a keyword, which was missed before. Reviewers: lattner, MaskRay Reviewed By: MaskRay Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68002 llvm-svn: 372904
* [gn build] Fix Python DeprecationWarningMarco Antognini2019-09-251-4/+10
| | | | | | | | | | | | | | | Summary: This fixes two issues: - DeprecationWarning: invalid escape sequence \` - ResourceWarning: unclosed file Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67753 llvm-svn: 372876
* gn build: (manually) merge r372843Nico Weber2019-09-251-0/+1
| | | | llvm-svn: 372850
* gn build: Merge r372841GN Sync Bot2019-09-252-0/+2
| | | | llvm-svn: 372842
* [tblgen] Disable Leak detection for ASan/GCC and LSan/LLVMKamil Rytarowski2019-09-241-4/+9
| | | | | | | | | | | | | | | | Summary: Add support for sanitizing TableGen.cpp with ASan/GCC and LSan/LLVM. Reviewers: fjricci, kcc, aaron.ballman, mgorny Reviewed By: fjricci Subscribers: jakubjelinek, llvm-commits, #llvm Tags: #llvm Differential Revision: https://reviews.llvm.org/D67908 llvm-svn: 372731
* gn build: Merge r372712GN Sync Bot2019-09-241-0/+1
| | | | llvm-svn: 372713
* gn build: Merge r372706GN Sync Bot2019-09-241-0/+1
| | | | llvm-svn: 372707
OpenPOWER on IntegriCloud