summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/XRay
Commit message (Collapse)AuthorAgeFilesLines
* [lit] Remove lit's REQUIRES-ANY directiveThomas Preud'homme2019-12-175-8/+8
| | | | | | | | | | | | | | | | | Summary: Remove REQUIRES-ANY alias lit directive since it is hardly used and can be easily implemented using an OR expression using REQUIRES. Fixup remaining testcases still using REQUIRES-ANY. Reviewers: probinson, jdenny, gparker42 Reviewed By: gparker42 Subscribers: eugenis, asb, rbar, johnrusso, simoncook, sabuasal, niosHD, delcypher, jrtc27, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, lenary, s.egerton, pzheng, sameer.abuasal, apazos, luismarques, cfe-commits, #sanitizers, llvm-commits Tags: #llvm, #clang, #sanitizers Differential Revision: https://reviews.llvm.org/D71408
* [driver][xray] fix the macOS support checker by supporting -macosAlex Lorenz2019-08-271-0/+4
| | | | | | | | | | | triple in addition to -darwin The previous check incorrectly checked for macOS support by allowing -darwin triples only, and -macos triple was not supported. Differential Revision: https://reviews.llvm.org/D61758 llvm-svn: 370093
* NFC, make XFAIL work on macOS correctly for ↵Alex Lorenz2019-05-091-1/+1
| | | | | | | | | | test/Driver/XRay/xray-instrument-os.c The test 'test/Driver/XRay/xray-instrument-os.c' is supposed to XFAIL on -darwin triples. However, LLVM can be configured to be built with a -macos triple instead, which is equivalent to -darwin. This commit updates the XFAIL condition to also XFAIL with a -macos host triple. llvm-svn: 360374
* [XRay][clang] Propagate -fxray-instrumentation-bundle to -cc1Dean Michael Berris2018-09-211-0/+11
| | | | | | | | | | | | | | | Summary: Add a test and ensure that we propagate the -fxray-instrumentation-bundle flag from the driver invocation to the -cc1 options. Reviewers: mboerger, tejohnson Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D52342 llvm-svn: 342715
* [Xray] Darwin - Enable in the driver sideDavid Carlier2018-08-272-2/+2
| | | | | | | | | | Reviewers: dberris Reviered By: dberris Differential Revision: https://reviews.llvm.org/D51269 llvm-svn: 340712
* [XRay][clang] Add more test cases of -fxray-modes= (NFC)Dean Michael Berris2018-08-141-0/+14
| | | | | | | | | | This confirms expectations for multiple values provided through the driver when selecting specific modes and the order of appearance of individual values for the `-fxray-modes=` flag. This change just adds more test cases to an existing test file. llvm-svn: 339662
* [XRay][clang] Make -fxray-modes= additiveDean Michael Berris2018-04-131-0/+12
| | | | | | | | | | | | | | | | | | | | | Summary: This allows us to do the following: clang -fxray-modes=none ... -fxray-modes=xray-basic It's important to be able to do this in cases where we'd like to specialise the configuration for the invocation of the compiler, in various scripting environments. This is related to llvm.org/PR37066, a follow-up to D45474. Reviewers: eizan, kpw, pelikan Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D45610 llvm-svn: 329989
* [XRay][clang] Only enable test for supported platformsDean Michael Berris2018-04-111-0/+2
| | | | | | This is a follow-up to D45474. llvm-svn: 329773
* [XRay][clang+compiler-rt] Support build-time mode selectionDean Michael Berris2018-04-111-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch implements the `-fxray-modes=` flag which allows users building with XRay instrumentation to decide which modes to pre-package into the binary being linked. The default is the status quo, which will link all the available modes. For this to work we're also breaking apart the mode implementations (xray-fdr and xray-basic) from the main xray runtime. This gives more granular control of which modes are pre-packaged, and picked from clang's invocation. This fixes llvm.org/PR37066. Note that in the future, we may change the default for clang to only contain the profiling implementation under development in D44620, when that implementation is ready. Reviewers: echristo, eizan, chandlerc Reviewed By: echristo Subscribers: mgorny, mgrang, cfe-commits, llvm-commits Differential Revision: https://reviews.llvm.org/D45474 llvm-svn: 329772
* [XRay][clang] Only run driver test for Linux and FreeBSDDean Michael Berris2018-04-061-0/+2
| | | | | | | | | This is a follow-up to D45354, which we should have only been running on Linux and FreeBSD for specific targets. Differential Revision: https://reviews.llvm.org/D45354 llvm-svn: 329378
* [XRay][clang] Add a flag to enable/disable linking XRay deps explicitlyDean Michael Berris2018-04-061-0/+6
| | | | | | | | | | | | | | | | | | | | Summary: This change introduces `-fxray-link-deps` and `-fnoxray-link-deps`. The `-fnoxray-link-deps` allows for directly controlling which specific XRay runtime to link. The default is for clang to link the XRay runtime that is shipped with the compiler (if there are any), but users may want to explicitly add the XRay dependencies from other locations or other means. Reviewers: eizan, echristo, chandlerc Reviewed By: eizan Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D45354 llvm-svn: 329376
* [test] Fix an XRay test on FreeBSDZhihao Yuan2018-03-291-1/+1
| | | | | | | | | | | | Summary: Fixing clang-test on FreeBSD as a follow-up of https://reviews.llvm.org/D43378 to handle the revert happened in r325749. Reviewers: devnexen, krytarowski, dberris Subscribers: emaste, dberris, cfe-commits Differential Revision: https://reviews.llvm.org/D45002 llvm-svn: 328797
* Revert part of D43378 in this fileKamil Rytarowski2018-02-221-1/+1
| | | | | | It causes failure on clang-x86_64-debian-fast. llvm-svn: 325749
* Revert part of r. 325746 D43378Kamil Rytarowski2018-02-221-1/+1
| | | | | | test/Driver/XRay/xray-shared-noxray.cpp fails on !Linux hosts. llvm-svn: 325748
* FreeBSD driver / Xray flags moving pthread to compile flags.Kamil Rytarowski2018-02-223-5/+6
| | | | | | | | | | | | | | | | | | Summary: - Using -lpthread instead, with -pthread the linkage does not work. -Warning about the -fxray-instrument usage outside of the working cases. Patch by: David CARLIER Reviewers: krytarowski, vitalybuka, dberris, emaste Reviewed By: krytarowski, emaste Subscribers: srhines, emaste, cfe-commits Differential Revision: https://reviews.llvm.org/D43378 llvm-svn: 325746
* [XRay] Avoid actual linking when testing the driverDean Michael Berris2017-09-261-5/+5
| | | | | | | | Use -### in the command to see just look for the output of -v. Follow-up to D38226. llvm-svn: 314194
* [XRay] Run command once without piping to FileCheckDean Michael Berris2017-09-261-0/+2
| | | | | | | | This allows us to debug the failures that come up from the build bots. Follow-up to D38226. llvm-svn: 314193
* [XRay] Only run shared tests when 'enable_shared' is trueDean Michael Berris2017-09-262-1/+4
| | | | | | Follow-up to D38226. llvm-svn: 314191
* [XRay] Remove -fPIC from shared build test.Dean Michael Berris2017-09-261-1/+1
| | | | | | Follow-up to D38226. llvm-svn: 314190
* [XRay] Stop running tests for 'amd64', and remove -fPIE from tests.Dean Michael Berris2017-09-262-4/+2
| | | | | | Follow-up to D38226. llvm-svn: 314189
* [XRay][Driver] Do not link in XRay runtime in shared libsDean Michael Berris2017-09-262-0/+35
| | | | | | | | | | | | | | | | | | | | Summary: This change ensures that we don't link in the XRay runtime when building shared libraries with clang. This doesn't prevent us from building shared libraris tht have XRay instrumentation sleds, but it does prevent us from linking in the static XRay runtime into a shared library. The XRay runtime currently doesn't support dynamic registration of instrumentation sleds in shared objects, which we'll start enabling in the future. That work has to happen in the back-end and in the runtime. Reviewers: rnk, pelikan Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D38226 llvm-svn: 314188
* Revert "[XRay][Driver] Do not link in XRay runtime in shared libs"Dean Michael Berris2017-09-261-14/+0
| | | | | | Reverts r314177. llvm-svn: 314178
* [XRay][Driver] Do not link in XRay runtime in shared libsDean Michael Berris2017-09-251-0/+14
| | | | | | | | | | | | | | | | | | | | Summary: This change ensures that we don't link in the XRay runtime when building shared libraries with clang. This doesn't prevent us from building shared libraris tht have XRay instrumentation sleds, but it does prevent us from linking in the static XRay runtime into a shared library. The XRay runtime currently doesn't support dynamic registration of instrumentation sleds in shared objects, which we'll start enabling in the future. That work has to happen in the back-end and in the runtime. Reviewers: rnk, pelikan Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D38226 llvm-svn: 314177
* [XRAY][MIPS] Add -fxray-instrument for mips/mipsel/mips64/mips64elSagar Thakur2017-02-151-1/+1
| | | | | | | | | Summary: Adds xray instrument option for mips/mipsel/mips64/mips64el. Reviewed by sdardis, dberris Differential: D27698 llvm-svn: 295163
* Update XFAIL line after r294781.Benjamin Kramer2017-02-111-1/+1
| | | | llvm-svn: 294820
* Revert "[test] Replace `REQUIRES-ANY: a, b, c` with `REQUIRES: a || b || c`."Greg Parker2017-01-241-1/+1
| | | | | | The underlying `lit` change needs to be better-coordinated with libc++. llvm-svn: 292898
* [test] Replace `REQUIRES-ANY: a, b, c` with `REQUIRES: a || b || c`.Greg Parker2017-01-241-1/+1
| | | | | | Requires the new `lit` boolean expressions in LLVM r292896. llvm-svn: 292897
* [XRay] Support AArch64 in ClangDean Michael Berris2016-11-212-2/+2
| | | | | | | | | | | | | | | | | | This patch adds XRay support in Clang for AArch64 target. This patch is one of a series: LLVM: https://reviews.llvm.org/D26412 compiler-rt: https://reviews.llvm.org/D26413 Author: rSerge Reviewers: rengolin, dberris Subscribers: aemerson, cfe-commits, iid_iunknown Differential Revision: https://reviews.llvm.org/D26415 llvm-svn: 287518
* [Xray] Don't generate output for xray testsBenjamin Kramer2016-10-272-2/+2
| | | | | | | | Patch by Sam McCall! Differential Revision: http://reviews.llvm.org/D26024 llvm-svn: 285276
* [XRay] Check in Clang whether XRay supports the target when ↵Dean Michael Berris2016-10-273-0/+10
-fxray-instrument is passed Summary: Added the code which explicitly emits an error in Clang in case `-fxray-instrument` is passed, but XRay is not supported for the selected target. Reviewers: rsmith, aaron.ballman, rnk, dberris Differential Revision: https://reviews.llvm.org/D24799 llvm-svn: 285266
OpenPOWER on IntegriCloud