summaryrefslogtreecommitdiffstats
path: root/llvm/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* gn build: Add support for cross-compiling the builtins and profile runtimes ↵Peter Collingbourne2019-10-316-74/+99
| | | | | | for Android aarch64 and arm. Differential Revision: https://reviews.llvm.org/D69681
* [update_cc_test_checks.py] Pass the builtin include dir to clangAlex Richardson2019-10-311-0/+12
| | | | | | | | | | | | | | | | | | | Summary: This is required to update tests that make use of builtin headers. To fix this use the same command expansion as lit does for %clang_cc1. I tested this by updating clang/test/CodeGen/arm-mve-intrinsics/scalar-shifts.c. %clang_cc1 will now expand to `clang -cc1 -internal-isystem $LLVM_BUILD/lib/clang/$VERSION/include -nostdsysteminc`. Reviewers: MaskRay Reviewed By: MaskRay Subscribers: kristof.beyls, dmgreen, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D69611
* gn build: s/target_/current_/g in compiler-rt/lib/{builtins,profile}.Peter Collingbourne2019-10-312-20/+20
| | | | | | Fixes stage2 cross compilation. Differential Revision: https://reviews.llvm.org/D69680
* Revert "gn build: (manually) merge ec66603ac7"Nico Weber2019-10-311-0/+1
| | | | | This reverts commit df899f2272330ef42739500b2f7f25d17d2c8dcb. Looks like ec66603ac7 was reverted recently.
* gn build: (manually) merge ec66603ac7Nico Weber2019-10-311-1/+0
|
* [Utils][FIX] Unbreak update_XXX_test_checks after 3598b810029dJohannes Doerfert2019-10-312-3/+3
| | | | | The users of build_function_body_dictionary and add_checks need to be adjusted after the changes in UpdateTestChecks/common.py.
* [lit] Extract Display.print_header functionJulian Lettner2019-10-313-16/+19
|
* [lit] Always print newline before test time/summaryJulian Lettner2019-10-311-2/+1
| | | | Slightly decreases the time I need to parse the test summary.
* [lit] Fix internal env calling other internal commandsJoel E. Denny2019-10-318-63/+95
| | | | | | | | | | | | | | | | | | Without this patch, when using lit's internal shell, if `env` on a lit RUN line calls `cd`, `mkdir`, or any of the other in-process shell builtins that lit implements, lit accidentally searches for the latter as an external executable. This patch puts such builtins in a map so that boilerplate for them need be implemented only once. This patch moves that handling after processing of `env` so that `env` calling such a builtin can be detected. Finally, because such calls appear to be useless, this patch takes the safe approach of diagnosing them rather than supporting them. Reviewed By: probinson, mgorny, rnk Differential Revision: https://reviews.llvm.org/D66506
* [lit] Rename ProgressDisplay -> DisplayJulian Lettner2019-10-311-21/+23
|
* gn build: (manually) merge cd24a00 moreNico Weber2019-10-311-4/+0
|
* gn build: (manually) merge b32bae6f760Nico Weber2019-10-311-0/+3
|
* [Utils] Allow update_test_checks to check function informationJohannes Doerfert2019-10-304-14/+52
| | | | | | | | | | | | | | | | | | | Summary: This adds a switch to the update_test_checks that triggers arguments and other function annotations, e.g., personality, to be present in the check line. If not set, the behavior should be the same as before. If arguments are recorded, their names are scrubbed from the IR to allow merging. This patch includes D68153. Reviewers: lebedev.ri, greened, spatel, xbolva00, RKSimon, mehdi_amini Subscribers: bollu, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68819
* [lit] Add missing importReid Kleckner2019-10-301-0/+1
| | | | Apparently llvm-lit.py does not execute this path
* [lit] Silence warning about importing the resource module on WindowsReid Kleckner2019-10-301-1/+3
| | | | | lit was printing this warning on every test run on Windows, and that is not necessary.
* gn build: Merge 33a745e6fe7LLVM GN Syncbot2019-10-301-0/+1
|
* [lit] Change progress bar color to red on first failureJulian Lettner2019-10-302-3/+8
|
* [lit] Add helper for `test.result.code.isFailure`Julian Lettner2019-10-303-12/+13
|
* [lit] Extract `_install_win32_signal_handler` functionJulian Lettner2019-10-301-9/+12
|
* gn build: Merge cd24a00bd32LLVM GN Syncbot2019-10-301-2/+0
|
* gn build: Merge b9d8e23b806LLVM GN Syncbot2019-10-301-0/+1
|
* gn build: Merge 29dc0b17de6LLVM GN Syncbot2019-10-301-0/+1
|
* gn build: (manually) merge 67474c60d34Nico Weber2019-10-301-0/+2
|
* gn build: Merge 6bf55804924LLVM GN Syncbot2019-10-301-0/+1
|
* [UpdateTestChecks] Fix invalid python string escapesAlex Richardson2019-10-301-3/+3
|
* [update_cc_test_checks.py] Fix invalid python string escape sequenceAlex Richardson2019-10-301-1/+1
| | | | This works with current python version but will be an error with 3.9
* gn build: (manually) merge a34680a3Nico Weber2019-10-292-2/+11
|
* [lit] Refactor ordering of testsJulian Lettner2019-10-292-22/+28
|
* [lit] Small improvements in cl_arguments.pyJulian Lettner2019-10-292-58/+32
| | | | | | *) `--max-tests` should be positive integer *) `--max-time` should be positive integer *) Remove unnecessary defaults for command line option parsing
* [lit] Extend internal diff to support `-` argumentJoel E. Denny2019-10-297-5/+146
| | | | | | | | | | | | | | | | | | | | When using lit's internal shell, RUN lines like the following accidentally execute an external `diff` instead of lit's internal `diff`: ``` # RUN: program | diff file - ``` Such cases exist now, in `clang/test/Analysis` for example. We are preparing patches to ensure lit's internal `diff` is called in such cases, which will then fail because lit's internal `diff` doesn't recognize `-` as a command-line option. This patch adds support for `-` to mean stdin. Reviewed By: probinson, rnk Differential Revision: https://reviews.llvm.org/D67643
* [lit] Make internal diff work in pipelinesJoel E. Denny2019-10-299-271/+313
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using lit's internal shell, RUN lines like the following accidentally execute an external `diff` instead of lit's internal `diff`: ``` # RUN: program | diff file - # RUN: not diff file1 file2 | FileCheck %s ``` Such cases exist now, in `clang/test/Analysis` for example. We are preparing patches to ensure lit's internal `diff` is called in such cases, which will then fail because lit's internal `diff` cannot currently be used in pipelines and doesn't recognize `-` as a command-line option. To enable pipelines, this patch moves lit's `diff` implementation into an out-of-process script, similar to lit's `cat` implementation. A follow-up patch will implement `-` to mean stdin. Also, when lit's `diff` prints differences to stdout in Windows, this patch ensures it always terminate lines with `\n` not `\r\n`. That way, strict FileCheck directives checking the `diff` output succeed in both Linux and Windows. This wasn't an issue when `diff` was internal to lit because `diff` didn't then write to the true stdout, which is where the `\n` -> `\r\n` conversion happened in Python. Reviewed By: probinson, stella.stamenova Differential Revision: https://reviews.llvm.org/D66574
* [lit] Remove callback indirectionJulian Lettner2019-10-281-3/+3
| | | | | The callback provides no benefits since `run.execute()` does not take any arguments anymore.
* gn build: Merge 38839d08b8eLLVM GN Syncbot2019-10-291-1/+0
|
* gn build: fix bad merge of 75f72f6b done in 3431f1baNico Weber2019-10-281-1/+1
|
* gn build: (manually) merge 75f72f6bNico Weber2019-10-284-1/+28
|
* [lit] Refactor merging of user parametersJulian Lettner2019-10-282-13/+11
|
* gn build: (manually) merge d157a9bcNico Weber2019-10-285-0/+16
| | | | While here, also merge r335850 / r366396.
* [lit] Remove redundant comments from main functionJulian Lettner2019-10-281-19/+9
| | | | | Hopefully the functionality is now clear due to the use of small, well-named helper functions.
* [lit] Make main.py a pure Python moduleJulian Lettner2019-10-282-9/+3
| | | | Running it directly as a tool, that is what lit.py is for.
* gn build: Merge 5ab9a850f6bLLVM GN Syncbot2019-10-281-0/+1
|
* TableGen: Use enum names in composeSubRegIndices tableMatt Arsenault2019-10-271-1/+1
| | | | | I'm not sure why this is using the raw enum value. This makes reading the generated table comprehensible.
* [lit] Drop the user-site packages directory from search paths when running testsAlex Lorenz2019-10-271-0/+4
| | | | | | | Do not add user-site packages directory to the python search path. This avoids test failures if there's an incompatible lit module installed inside the user-site packages directory, as it gets prioritized over the lit from the PYTHONPATH.
* [lit] Move sharding logic into separate functionJulian Lettner2019-10-254-23/+36
|
* [lit] Don't fail when printing test output with special charsJoel E. Denny2019-10-254-3/+35
| | | | | | | | | This addresses a UnicodeEncodeError when using Python 3.6.5 in Windows 10. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D69207
* [gicombiner] Add parse failure tests for defs/matchDaniel Sanders2019-10-251-0/+3
|
* gn build: Merge 8e567b0730fLLVM GN Syncbot2019-10-251-1/+0
|
* gn build: Merge 74d39a42f10LLVM GN Syncbot2019-10-251-0/+1
|
* git-llvm: Drop dependency on github moduleTom Stellard2019-10-251-11/+5
| | | | | This was required for blocking merge commits, but now that we have branch protections, we don't need this.
* git-llvm: Push to master branch by defaultTom Stellard2019-10-241-0/+1
| | | | | This allows pushing without specifying a branch, which is what the documentations says to do.
* gn build: Merge ffa214ef228LLVM GN Syncbot2019-10-251-0/+1
|
OpenPOWER on IntegriCloud