aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* Drop the clang patch which added a custom vendor suffix to the versionDimitry Andric2015-12-301-3/+1
| | | | | | | | | | printed with -v. We have historically put a date stamp there (roughly corresponding to the date of import), but this has never been used for anything, and the patch has also never been upstreamed, so let's get rid of it now. Notes: svn path=/projects/clang380-import/; revision=292952
* Merge ^/head r292936 through r292950.Dimitry Andric2015-12-301-6/+0
|\ | | | | | | Notes: svn path=/projects/clang380-import/; revision=292951
| * Drop the clang patch which adds recognition of 'CC' suffixes as aliasesDimitry Andric2015-12-301-2/+0
| | | | | | | | | | | | | | | | | | | | for --driver-mode=g++, since this was never upstreamed. For backwards compatibility, add a wrapper shell script. MFC after: 1 week Notes: svn path=/head/; revision=292950
* | Update clang to trunk r256633.Dimitry Andric2015-12-30640-35303/+69608
| | | | | | | | Notes: svn path=/projects/clang380-import/; revision=292942
* | Update llvm to trunk r256633.Dimitry Andric2015-12-3063-3197/+4581
|/ | | | Notes: svn path=/projects/clang380-import/; revision=292941
* Upgrade our copies of clang and llvm to 3.7.1 release. This is aDimitry Andric2015-12-257-21/+39
| | | | | | | | | | bugfix-only release, with no new features. Please note that from 3.5.0 onwards, clang and llvm require C++11 support to build; see UPDATING for more information. Notes: svn path=/head/; revision=292735
* Don't adjust the program counter to an invalid address after reaching aAndrew Turner2015-12-221-5/+1
| | | | | | | | | | | | | breakpoint. The value doesn't need to be adjusted as it is already correctly returned from the kernel. This allows lldb to set breakpoints, and stop on them, however more work is needed, for example single stepping fails to stop. Discussed with: emaste Notes: svn path=/head/; revision=292611
* lldb(1): Document core file option -c / -coreEd Maste2015-12-161-1/+4
| | | | Notes: svn path=/head/; revision=292312
* In assembler mode, clang defaulted to DWARF3, if only -g was specified.Dimitry Andric2015-12-031-1/+1
| | | | | | | | | | | | | Change this to DWARF2, in the simplest way possible. (Upstream, this was fixed in clang trunk r250173, but this was done along with a lot of shuffling around of debug option handling, so it cannot be applied as-is.) Noticed by: des MFC after: 3 days Notes: svn path=/head/; revision=291701
* lldb: Add arm64 FreeBSD ProcessMonitor register contextEd Maste2015-10-231-0/+4
| | | | | | | | | This is an adaptation of upstream LLDB commit r251088. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=289840
* Pull in r248379 from upstream clang trunk (by Jörg Sonnenberger):Dimitry Andric2015-10-181-18/+28
| | | | | | | | | | | | | | | | | | | | | Refactor library decision for -fopenmp support from Darwin into a function for sharing with other platforms. Pull in r248424 from upstream clang trunk (by Jörg Sonnenberger): Push OpenMP linker flags after linker input on Darwin. Don't add any libraries if -nostdlib is specified. Test. Pull in r248426 from upstream clang trunk (by Jörg Sonnenberger): Support linking against OpenMP runtime on NetBSD. Pull in r250657 from upstream clang trunk (by Dimitry Andric): Support linking against OpenMP runtime on FreeBSD. Notes: svn path=/head/; revision=289523
* Pull in r244063 from upstream clang trunk (by James Y Knight):Dimitry Andric2015-09-221-3/+71
| | | | | | | | | | | | | | | | Add missing atomic libcall support. Support for emitting libcalls for __atomic_fetch_nand and __atomic_{add,sub,and,or,xor,nand}_fetch was missing; add it, and some test cases. Differential Revision: http://reviews.llvm.org/D10847 This fixes "cannot compile this atomic library call yet" errors when compiling code which calls the above builtins, on arm < v6. Notes: svn path=/projects/clang370-import/; revision=288127
* Revert merge of clang trunk r244063, which I did not intend to commitDimitry Andric2015-09-221-71/+3
| | | | | | | yet. Reminder to self: never merge to an unclean tree. Notes: svn path=/projects/clang370-import/; revision=288102
* Merge ^/head r288035 through r288099.Dimitry Andric2015-09-221-3/+71
|\ | | | | | | Notes: svn path=/projects/clang370-import/; revision=288100
* | Update llvm, clang and lldb to 3.7.0 release.Dimitry Andric2015-09-06109-1006/+11669
| | | | | | | | Notes: svn path=/projects/clang370-import/; revision=287521
* | Update lldb to upstream trunk r242221.Dimitry Andric2015-09-06245-4454/+4792
| | | | | | | | Notes: svn path=/projects/clang-trunk/; revision=287505
* | Merge ^/head r287490 through r287501.Dimitry Andric2015-09-061-2/+28
|\| | | | | | | Notes: svn path=/projects/clang-trunk/; revision=287502
| * Update lldb's FREEBSD-Xlist to match reality.Dimitry Andric2015-09-061-2/+28
| | | | | | | | Notes: svn path=/head/; revision=287501
* | Import r243925 from the upstream clang release_37 branch:Dimitry Andric2015-08-1836-47/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverting r239883 and r240720: ------------------------------------------------------------------------ r239883 | echristo | 2015-06-17 00:09:32 -0700 (Wed, 17 Jun 2015) | 16 lines Update the intel intrinsic headers to use the target attribute support. This involved removing the conditional inclusion and replacing them with target attributes matching the original conditional inclusion and checks. The testcase update removes the macro checks for each file and replaces them with usage of the __target__ attribute, e.g.: int __attribute__((__target__(("sse3")))) foo(int a) { _mm_mwait(0, 0); return 4; } This usage does require the enclosing function have the requisite __target__ attribute for inlining and code generation - also for any macro intrinsic uses in the enclosing function. There's no change for existing uses of the intrinsic headers. ------------------------------------------------------------------------ ------------------------------------------------------------------------ r240720 | silvas | 2015-06-25 16:22:11 -0700 (Thu, 25 Jun 2015) | 6 lines Remove `requires` for x86 CPU features. Ever since the target attributes change, we don't need to guard these headers with `requires`. Actually it's a bit worse, because if we do then they are included textually under the covers, causing declarations to appear in submodules they aren't supposed to be in. ------------------------------------------------------------------------ This reverts the changes to the intrinsics headers in trunk, which could result in some ports' configure scripts misdetecting SSE (and higher) support. Notes: svn path=/projects/clang-trunk/; revision=286896
* | Update llvm/clang to r242221.Dimitry Andric2015-08-12189-2805/+11855
| | | | | | | | Notes: svn path=/projects/clang-trunk/; revision=286684
* | Merge ^/head r285924 through r286421.Dimitry Andric2015-08-071-1/+1
|\| | | | | | | Notes: svn path=/projects/clang-trunk/; revision=286422
| * Remove claim that the OS is Darwin from lldb(1)Ed Maste2015-07-281-1/+1
| | | | | | | | | | | | | | Reported by: bapt Notes: svn path=/head/; revision=285955
* | Update llvm/clang to r241361.Dimitry Andric2015-07-05317-7099/+12824
| | | | | | | | Notes: svn path=/projects/clang-trunk/; revision=285181
* | Update LLDB snapshot to upstream r241361Ed Maste2015-07-04886-32388/+67366
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable upstream commits (upstream revision in parens): - Add a JSON producer to LLDB (228636) - Don't crash on bad DWARF expression (228729) - Add support of DWARFv3 DW_OP_form_tls_address (231342) - Assembly profiler for MIPS64 (232619) - Handle FreeBSD/arm64 core files (233273) - Read/Write register for MIPS64 (233685) - Rework LLDB system initialization (233758) - SysV ABI for aarch64 (236098) - MIPS software single stepping (236696) - FreeBSD/arm live debugging support (237303) - Assembly profiler for mips32 (237420) - Parse function name from DWARF DW_AT_abstract_origin (238307) - Improve LLDB prompt handling (238313) - Add real time signals support to FreeBSDSignals (238316) - Fix race in IOHandlerProcessSTDIO (238423) - MIPS64 Branch instruction emulation for SW single stepping (238820) - Improve OSType initialization in elf object file's arch_spec (239148) - Emulation of MIPS64 floating-point branch instructions (239996) - ABI Plugin for MIPS32 (239997) - ABI Plugin for MIPS64 (240123) - MIPS32 branch emulation and single stepping (240373) - Improve instruction emulation based stack unwinding on ARM (240533) - Add branch emulation to aarch64 instruction emulator (240769) Notes: svn path=/projects/clang-trunk/; revision=285116
* | Update llvm/clang to r240225.Dimitry Andric2015-06-23291-4394/+9661
| | | | | | | | Notes: svn path=/projects/clang-trunk/; revision=284734
* | Update Makefiles and other build glue for llvm/clang 3.7.0, as of trunkDimitry Andric2015-06-10138-8980/+7640
| | | | | | | | | | | | | | r239412. Notes: svn path=/projects/clang-trunk/; revision=284236
* | Update FREEBSD-Xlist files for llvm and clang.Dimitry Andric2015-05-271-0/+2
| | | | | | | | Notes: svn path=/projects/clang-trunk/; revision=283634
* | Merge clang trunk r238337 from ^/vendor/clang/dist, resolve conflicts,Dimitry Andric2015-05-27524-19537/+44193
| | | | | | | | | | | | | | and preserve our customizations, where necessary. Notes: svn path=/projects/clang-trunk/; revision=283633
* | Merge llvm trunk r238337 from ^/vendor/llvm/dist, resolve conflicts, andDimitry Andric2015-05-2785-1561/+8778
|/ | | | | | | preserve our customizations, where necessary. Notes: svn path=/projects/clang-trunk/; revision=283631
* Upgrade our copy of clang and llvm to 3.6.1 release.Dimitry Andric2015-05-2523-82/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | This release contains the following cherry-picked revisions from upstream trunk: 226124 226151 226164 226165 226166 226407 226408 226409 226652 226905 226983 227084 227087 227089 227208 227209 227210 227211 227212 227213 227214 227269 227430 227482 227503 227519 227574 227822 227986 227987 227988 227989 227990 228037 228038 228039 228040 228188 228189 228190 228273 228372 228373 228374 228403 228765 228848 228918 229223 229225 229226 229227 229228 229230 229234 229235 229236 229238 229239 229413 229507 229680 229750 229751 229752 229911 230146 230147 230235 230253 230255 230469 230500 230564 230603 230657 230742 230748 230956 231219 231237 231245 231259 231280 231451 231563 231601 231658 231659 231662 231984 231986 232046 232085 232142 232176 232179 232189 232382 232386 232389 232425 232438 232443 232675 232786 232797 232943 232957 233075 233080 233351 233353 233409 233410 233508 233584 233819 233904 234629 234636 234891 234975 234977 235524 235641 235662 235931 236099 236306 236307 Please note that from 3.5.0 onwards, clang and llvm require C++11 support to build; see UPDATING for more information. Notes: svn path=/head/; revision=283526
* Add the llvm-cov and llvm-profdata tools, when WITH_CLANG_EXTRAS isDimitry Andric2015-04-0317-0/+2370
| | | | | | | defined. These help with processing coverage and profile data. Notes: svn path=/head/; revision=281049
* Pull in r227115 from upstream clang trunk (by Ben Langmuir):Dimitry Andric2015-04-031-3/+3
| | | | | | | | | | | | | | | Fix assert instantiating string init of static variable ... when the variable's type is a typedef of a ConstantArrayType. Just look through the typedef (and any other sugar). We only use the constant array type here to get the element count. This fixes an assertion failure when building the games/redeclipse port. Reported by: amdmi3 Notes: svn path=/head/; revision=281046
* Import lldb r233478: Fix build failure on Freebsd with gcc 4.9.Ed Maste2015-03-281-1/+1
| | | | | | | | | llvm.org/pr23051 Submitted by: rodrigc Notes: svn path=/head/; revision=280789
* lldb: Move debug register output into __amd64__Ed Maste2015-03-271-2/+0
| | | | | | | | | | This debug register diagnostic is really only applicable to amd64 at present. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=280770
* Add FREEBSD-Xlist files for llvm, clang and lldb.Dimitry Andric2015-03-222-0/+317
| | | | | | | | | | | | | | | | These are generated, and not "optimized" in any way, since I am not entirely sure of the syntax or format of this type of file. Feel free to suggest ways of shortening these lists. The general idea is the same for all three files, though: * Get rid of upstream build infrastructure (CMakeLists, Makefiles, etc) * Delete tests, tools and utilities we don't want or use (including samples) * Remove various bits of upstream metadata files that we don't want or use (.arcconfig, .gitignore, etc) Notes: svn path=/head/; revision=280350
* Merge llvm 3.6.0 final from ^/vendor/llvm/dist, merge clang 3.6.0 finalDimitry Andric2015-02-251-1/+1
| | | | | | | from ^/vendor/clang/dist, and resolve conflicts. Notes: svn path=/projects/clang360-import/; revision=279295
* Merge llvm 3.6.0rc4 from ^/vendor/llvm/dist, merge clang 3.6.0rc4 fromDimitry Andric2015-02-193-13/+10
| | | | | | | ^/vendor/clang/dist, resolve conflicts, and update patches. Notes: svn path=/projects/clang360-import/; revision=279025
* Merge ^/head r278756 through r278915.Dimitry Andric2015-02-171-1/+4
|\ | | | | | | Notes: svn path=/projects/clang360-import/; revision=278916
| * lldb: workaround to permit cross-arch core file debuggingEd Maste2015-02-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD core files have no section table and thus LLDB's OS and vendor detection logic does not work. If we encounter such an ELF file, update an unknown OS to match the host. This is not really the correct way to handle this, but more extensive rework of ObjectFileELF will be needed and this change restores cross- arch core debugging until that can be completed. Notes: svn path=/head/; revision=278909
* | Merge llvm 3.6.0rc3 from ^/vendor/llvm/dist, merge clang 3.6.0rc3 fromDimitry Andric2015-02-1414-30/+65
| | | | | | | | | | | | | | ^/vendor/clang/dist, resolve conflicts, and update patches README. Notes: svn path=/projects/clang360-import/; revision=278757
* | Use FreeBSD ProcessMonitor.h on FreeBSDEd Maste2015-02-084-0/+16
| | | | | | | | | | | | | | | | | | | | There's an unfortunate layering issue between LLDB's Process/POSIX and Process/{FreeBSD,Linux}, exposed by a refactoring in upstream revision 218568. Work around it by adding explicit #if defined(__FreeBSD__) guards to include the correct header. Notes: svn path=/projects/clang360-import/; revision=278386
* | Remove undesired LLDB_DISABLE_PYTHONEd Maste2015-02-081-2/+0
| | | | | | | | | | | | | | | | It was added accidentally during the merge and it causes build warnings as it is set from the command line. Notes: svn path=/projects/clang360-import/; revision=278384
* | Revert LLDB compatibility changes for Clang 3.5 APIEd Maste2015-02-084-29/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts FreeBSD SVN r275134 and r275127, restoring the following upstream revisions: SVN git 214335 59a1f270 214340 42f16b1e 214501 26d6f063 215969 a083c0db 216603 ee9cd340 216810 f534f503 Sponsored by: DARPA, AFRL Notes: svn path=/projects/clang360-import/; revision=278380
* | Update LLDB snapshot to upstream r225923 (git 2b588ecd)Ed Maste2015-02-06665-35098/+59250
| | | | | | | | | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/projects/clang360-import/; revision=278334
* | Belatedly bump the clang repository URL for 3.6.0 RC2.Dimitry Andric2015-02-011-1/+1
| | | | | | | | Notes: svn path=/projects/clang360-import/; revision=278019
* | Merge llvm 3.6.0rc2 from ^/vendor/llvm/dist, merge clang 3.6.0rc2 fromDimitry Andric2015-01-3125-285/+210
| | | | | | | | | | | | | | ^/vendor/clang/dist, resolve conflicts, and cleanup patches. Notes: svn path=/projects/clang360-import/; revision=278002
* | Merge ^/head r277719 through 277776.Dimitry Andric2015-01-262-0/+7
|\| | | | | | | Notes: svn path=/projects/clang360-import/; revision=277778
| * Pull in r227062 from upstream clang trunk (by Renato Golin):Dimitry Andric2015-01-262-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows Clang to use LLVM's fixes-x18 option This patch allows clang to have llvm reserve the x18 platform register on AArch64. FreeBSD will use this in the kernel for per-cpu data but has no need to reserve this register in userland so will need this flag to reserve it. This uses llvm r226664 to allow this register to be reserved. Patch by Andrew Turner. Requested by: andrew Notes: svn path=/head/; revision=277775
* | Merge ^/head r277327 through r277718.Dimitry Andric2015-01-251-0/+11
|\| | | | | | | Notes: svn path=/projects/clang360-import/; revision=277719
| * Allow clang to be built for mips/mips64 backend types by adding our mipsSean Bruno2015-01-201-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | triple ids This only allows testing and does not change the defaults for mips/mips64. They still build/use gcc by default. Differential Revision: https://reviews.freebsd.org/D1190 Reviewed by: dim Notes: svn path=/head/; revision=277423