Eric Christopher
22738d00a3
Add support for the OpenBSD for Bitrig.
...
Patch by David Hill.
llvm-svn: 161344
2012-08-06 20:52:18 +00:00
Eric Christopher
84864018c2
Add a configure flag for enabling -Werror on the command line
...
while building as requested by Lang.
llvm-svn: 161253
2012-08-03 19:58:20 +00:00
Eric Christopher
c807c53ef6
Add support for detecting libxml for Dmitri's work. He'll
...
commit code in clang that uses this shortly.
llvm-svn: 161252
2012-08-03 19:47:19 +00:00
Eric Christopher
04e35970f5
Add a configure option to pass -std=c++11 on the command line.
...
rdar://11366674
llvm-svn: 161251
2012-08-03 19:47:14 +00:00
Eric Christopher
46342fecd0
Revert previous patch here, we should instead configure in specific
...
packages for particular uses.
llvm-svn: 161246
2012-08-03 17:45:31 +00:00
Eric Christopher
caa3e7a0ef
Add a BUILD_FLAGS variable so that autoconf checks have a place
...
to store additional flag options since too many things can
and do override CPPFLAGS. Also, this is exported, unlike CPPFLAGS
so it can be actually used elsewhere. This should enable us
to remove the AC_SUBSTs in the intel checks, but I have no way
of testing it.
llvm-svn: 161233
2012-08-03 05:18:00 +00:00
NAKAMURA Takumi
43652ae0de
autoconf: Re-introduce LLVM_HOSTTRIPLE since r143500, as rework of PR11060.
...
cmake: Add LLVM_HOSTTRIPLE. For now, it is same as TARGET_TRIPLE.
llvm-svn: 160609
2012-07-22 03:04:52 +00:00
Tom Stellard
95bd0be903
Revert "Build script changes for R600/SI Codegen v6"
...
This reverts commit e3013202259ed1e006c21817c63cf25d75982721.
llvm-svn: 160301
2012-07-16 18:19:46 +00:00
Tom Stellard
812e652b43
Build script changes for R600/SI Codegen v6
...
llvm-svn: 160272
2012-07-16 14:17:16 +00:00
Eric Christopher
b74220d64e
Regenerate.
...
llvm-svn: 159374
2012-06-28 20:35:00 +00:00
Justin Holewinski
907f7606f2
Remove the PTX back-end and all of its artifacts (triple, etc.)
...
This back-end was deprecated in favor of the NVPTX back-end.
NV_CONTRIB
llvm-svn: 157417
2012-05-24 21:38:21 +00:00
Danil Malyshev
7c5db45350
- Added ExecutionEngine/MCJIT tests
...
- Added HOST_ARCH to Makefile.config.in
The HOST_ARCH will be used by MCJIT tests filter, because MCJIT supported only x86 and ARM architectures now.
llvm-svn: 157015
2012-05-17 21:07:47 +00:00
Daniel Dunbar
d18888242e
Revert r156393, "[tests] Remove some remaining DejaGNU related cruft.", this
...
patch wasn't ready yet.
llvm-svn: 156395
2012-05-08 18:26:07 +00:00
Daniel Dunbar
898f02a613
[tests] Remove some remaining DejaGNU related cruft.
...
llvm-svn: 156393
2012-05-08 18:11:49 +00:00
Daniel Dunbar
149c04a5cf
Regenerate configure.
...
llvm-svn: 156390
2012-05-08 17:48:32 +00:00
Daniel Dunbar
407a85e7a6
[build] Add build check for ::arc4random().
...
llvm-svn: 156236
2012-05-05 16:36:16 +00:00
Justin Holewinski
ae556d3ef7
This patch adds a new NVPTX back-end to LLVM which supports code generation for NVIDIA PTX 3.0. This back-end will (eventually) replace the current PTX back-end, while maintaining compatibility with it.
...
The new target machines are:
nvptx (old ptx32) => 32-bit PTX
nvptx64 (old ptx64) => 64-bit PTX
The sources are based on the internal NVIDIA NVPTX back-end, and
contain more functionality than the current PTX back-end currently
provides.
NV_CONTRIB
llvm-svn: 156196
2012-05-04 20:18:50 +00:00
Sebastian Pop
e29a6c72ff
fix typo
...
Thanks to "Gabor Greif" <ggreif@gmail.com> for reporting this problem.
The configure flag should be --with-default-sysroot as documented, and
not --with-sysroot. The reason we don't want to define --with-sysroot
is that GCC has a configure flag by that name and it has a different
semantics.
llvm-svn: 155844
2012-04-30 20:06:58 +00:00
Benjamin Kramer
fbb9f485f8
Kick off 3.2 cycle for LLVM trunk.
...
llvm-svn: 155211
2012-04-20 18:15:07 +00:00
Sebastian Pop
5c9e18443d
add configure flag --with-default-sysroot
...
llvm-svn: 154791
2012-04-16 04:11:45 +00:00
Jean-Daniel Dupas
1332038a8f
Remove a remaining reference to the obsolete C backend in configure
...
llvm-svn: 154587
2012-04-12 12:02:39 +00:00
Sylvestre Ledru
e8235fef31
Fix a problem in the target detection for Debian GNU/HURD
...
llvm-svn: 154117
2012-04-05 19:34:15 +00:00
Sylvestre Ledru
4cf7dae516
Fix a problem in the target detection for Debian GNU/kFreeBSD
...
llvm-svn: 154114
2012-04-05 18:53:09 +00:00
Eric Christopher
8e52bdce7b
Fix CXXFLAGS for huge_val.m4.
...
Patch by Jeremy Huddleston!
llvm-svn: 153862
2012-04-02 06:54:01 +00:00
Eric Christopher
56079c1e72
Add InitializeNativeTargetDisassembler function.
...
Patch by Ojab.
llvm-svn: 153476
2012-03-26 21:56:56 +00:00
Eric Christopher
eb75cc26af
Add some fixes to the configure script for isInf and add
...
--enable-libcpp to projects/sample.
Patch by Dmitri Shubin with additional fixes by me.
llvm-svn: 153425
2012-03-26 02:09:01 +00:00
Eric Christopher
64a232343a
Remove the C backend.
...
llvm-svn: 153307
2012-03-23 05:50:46 +00:00
Eli Bendersky
5262ad2afa
Add profiling support for Intel Parallel Amplifier XE (VTune) for JITted code in LLVM.
...
Also refactor the existing OProfile profiling code to reuse the same interfaces with the VTune profiling code.
In addition, unit tests for the profiling interfaces were added.
This patch was prepared by Andrew Kaylor and Daniel Malea, and reviewed in the llvm-commits list by Jim Grosbach
llvm-svn: 152620
2012-03-13 08:33:15 +00:00
Benjamin Kramer
e815db6140
configure: Don't require a perl interpreter to be present, LLVM's buildsystem doesn't depend on perl anymore.
...
llvm-svn: 152234
2012-03-07 17:07:20 +00:00
Daniel Dunbar
9370ecff74
autoconf: Set LLVM_CONFIGTIME to a stable value when using --disable-timestamps.
...
llvm-svn: 151921
2012-03-02 16:24:21 +00:00
Rafael Espindola
42e94d11a1
Enable -Wcovered-switch-default again, but add -Werror to the checks to make
...
sure we don't use it with compilers that don't support it.
llvm-svn: 151665
2012-02-28 23:32:06 +00:00
Chandler Carruth
0bd3913d96
Temporarily revert r151609, which enabled a new warning for LLVM and
...
Clang builds. The detection logic for compilers that support the warning
isn't working. Rafael is going to investigate it, but didn't want people
to have to wade through build spam until then.
llvm-svn: 151649
2012-02-28 19:26:56 +00:00
Charles Davis
e56294dbc6
Strip extraneous information, if present, from the linker version string on
...
Mac OS X. Patch by Fabian Groffen, with a slight tweak by me.
llvm-svn: 151612
2012-02-28 02:55:41 +00:00
Rafael Espindola
334eaeae8e
Enable -Wcovered-switch-default as it matches the switch style used in llvm.
...
llvm-svn: 151609
2012-02-28 02:01:55 +00:00
NAKAMURA Takumi
652e0139da
autoconf/m4/visibility_inlines_hidden.m4: Tweak for cygwin-g++-4.5.3. It folded conftest regardress of attributge((noinline)) with >=O1 .
...
llvm-svn: 150920
2012-02-19 12:05:12 +00:00
Dylan Noblesmith
c6c7a5819d
add LLVM_VERSION_MAJOR and _MINOR defines
...
This is useful for clients that want to maintain compatibility
across multiple releases of LLVM. Currently users like Klee and
Mesa all have to roll their own 'parse llvm-config --version
output and generate defines' solution.
Also reuse the new macros so that version information is less
redundant/likely to fall out of sync again in the future.
llvm-svn: 150405
2012-02-13 18:48:10 +00:00
Dylan Noblesmith
a7a29c17e0
autoconf: put generated clang files in build dir
...
It was writing generated files to the clang srcdir when
'--with-clang-srcdir' was specified.
llvm-svn: 149756
2012-02-04 03:00:50 +00:00
Dylan Noblesmith
e21a3b20e5
autoconf: fix clang detection
...
Now this works with and without --with-clang-srcdir, with and
without an out-of-tree build.
llvm-svn: 149749
2012-02-04 02:41:36 +00:00
Rafael Espindola
ec217f6ad6
Replace the old --with-cxx-* configure options with a single --with-gcc-toolchain
...
that just uses the new toolchain probing logic. This fixes linking with -m32 on
64 bit systems (the /32 dir was not being added to the search).
llvm-svn: 149651
2012-02-03 00:59:30 +00:00
Eric Christopher
dc51a5d8f3
Regen one last time.
...
llvm-svn: 149576
2012-02-02 01:11:30 +00:00
Eric Christopher
7f977de4e9
Regenerate again.
...
llvm-svn: 149569
2012-02-02 00:19:05 +00:00
Eric Christopher
f1329897b1
Regenerate configure.
...
llvm-svn: 149567
2012-02-02 00:16:55 +00:00
Dylan Noblesmith
57f439cb9e
autoconf: generate clang's private config.h header
...
The CMake build already generated one. Follows clang r149497.
This brings us one step closer to compiling and configuring clang
separately from LLVM using the autoconf build, too.
(I lack the right version of autoconf et al. to regen, but it
was a simple change, so I just updated configure manually.)
llvm-svn: 149498
2012-02-01 14:06:21 +00:00
Rafael Espindola
fbd1d8be54
Regenerate configure.
...
llvm-svn: 149391
2012-01-31 17:18:47 +00:00
Sebastian Pop
99ab273a77
revert r147542 after comments from Joerg Sonnenberger
...
llvm-svn: 147608
2012-01-05 18:28:46 +00:00
Sebastian Pop
0f357d6c22
use getHostTriple instead of getDefaultTargetTriple in getClosestTargetForJIT
...
Get back getHostTriple.
For JIT compilation, use the host triple instead of the default
target: this fixes some JIT testcases that used to fail when the
compiler has been configured as a cross compiler.
llvm-svn: 147542
2012-01-04 19:47:22 +00:00
NAKAMURA Takumi
e9d3d21988
Happy new year 2012!
...
llvm-svn: 147395
2012-01-01 08:16:56 +00:00
Rafael Espindola
e46f096a16
Add support for mipsel in configure. Fixes PR11669. Patch by Sylvestre Ledru.
...
llvm-svn: 147312
2011-12-28 17:08:00 +00:00
Benjamin Kramer
54671a787c
Attempt #2 to fix mingw crossbuild. This time with more ugly hacks!
...
llvm-svn: 147196
2011-12-22 22:50:44 +00:00
Benjamin Kramer
942b28759d
Make the -fvisibility-inlines-hidden check more thorough in a hopeless attempt to fix mingw cross-compiles.
...
llvm-svn: 147191
2011-12-22 22:25:26 +00:00
Rafael Espindola
4977edd33d
Add configure support for kfreebsd and hurd. Patch by Sylvestre Ledru.
...
Fixes pr11620.
llvm-svn: 147143
2011-12-22 14:01:18 +00:00
Eric Christopher
afbe7520a6
Regenerate.
...
llvm-svn: 147027
2011-12-21 00:52:44 +00:00
Tony Linthicum
1213a7a57f
Hexagon backend support
...
llvm-svn: 146412
2011-12-12 21:14:40 +00:00
Daniel Dunbar
7ce849d495
configure: Don't warn about compiler-rt checked out into projects/.
...
llvm-svn: 146084
2011-12-07 22:07:03 +00:00
Daniel Dunbar
ab0ad4ed1e
llvm-config: Replace with C++ version (was llvm-config-2).
...
- Another reapply of r144300, with hopefully one last fix.
llvm-svn: 145623
2011-12-01 20:18:09 +00:00
Duncan Sands
b8e6cee9ca
Revert commit 145449 (ddunbar) since it is breaking the dragonegg buildbots.
...
Original commit message:
llvm-config: Replace with C++ version (was llvm-config-2).
- Reapply of r144300, with lots of fixes/migration easement in between.
llvm-svn: 145582
2011-12-01 10:50:19 +00:00
Daniel Dunbar
8d5cc33ad8
llvm-config: Replace with C++ version (was llvm-config-2).
...
- Reapply of r144300, with lots of fixes/migration easement in between.
llvm-svn: 145449
2011-11-29 22:56:31 +00:00
Bob Wilson
3f35470fc7
Add an optional separate install prefix for internal components. rdar://10217046
...
Some files installed by clang are not relevant for general users and we'd like
to be able to install them to a different location. This adds a new
--with-internal-prefix configure option and a corresponding PROJ_internal_prefix
makefile variable, which defaults to the standard prefix. A tool makefile
can specify that it should be installed to this internal prefix by defining
INTERNAL_TOOL.
llvm-svn: 145234
2011-11-28 07:59:52 +00:00
NAKAMURA Takumi
4ad52a54b9
configure, config.h.in: Regenerate.
...
config.h.cmake: Synchronize to config.h.in.
llvm-svn: 145217
2011-11-28 01:07:19 +00:00
Benjamin Kramer
e1effb0da2
Add configure checking for pread(2) and use it to save a syscall when reading files.
...
llvm-svn: 145061
2011-11-22 12:31:53 +00:00
Eric Christopher
1094ded6f3
Add an option '--enable-libcpp' that will have the compiler pass on
...
options to use libc++ as the default c++ library.
llvm-svn: 144413
2011-11-11 22:51:42 +00:00
Daniel Dunbar
933b43f188
Revert r144300 "llvm-config: Replace with C++ version (was llvm-config-2).",
...
which didn't appear ready for prime time.
llvm-svn: 144309
2011-11-10 19:59:35 +00:00
Daniel Dunbar
166c804893
llvm-config: Replace with C++ version (was llvm-config-2).
...
llvm-svn: 144300
2011-11-10 18:49:59 +00:00
Sebastian Pop
ec2fb226d8
rename LLVM_HOSTTRIPLE into LLVM_DEFAULT_TARGET_TRIPLE
...
llvm-svn: 143501
2011-11-01 21:31:44 +00:00
Sebastian Pop
f29a9b8c0b
derive LLVM_HOSTTRIPLE from target
...
llvm-svn: 143500
2011-11-01 21:30:04 +00:00
Dan Gohman
4c9fca99c9
Remove the Alpha backend.
...
llvm-svn: 143164
2011-10-27 22:56:32 +00:00
Charles Davis
bc47545073
Revert 142997. It doesn't work on Mac OS or the BSDs, which all use the BSD
...
version of the install program, which does not have the --strip-program
switch.
llvm-svn: 143009
2011-10-26 02:28:32 +00:00
Eric Christopher
0db256834d
Search for and use the strip program and pass it to install for it
...
to use for stripping final executables.
Patch by Simon Atanasyan!
llvm-svn: 142997
2011-10-26 00:52:13 +00:00
Eric Christopher
49709ad6d0
Handle newer cases for freebsd which is approaching 10.0 and not 1.0.
...
Patch by Dimitry Andric!
llvm-svn: 142995
2011-10-26 00:42:12 +00:00
Dan Gohman
e9482d3b7c
Really remove Blackfin from the configure script.
...
llvm-svn: 142889
2011-10-25 00:36:31 +00:00
Dan Gohman
b43c36f391
Remove the Blackfin backend.
...
llvm-svn: 142880
2011-10-25 00:05:42 +00:00
Dan Gohman
dfc96aea90
Remove the SystemZ backend.
...
llvm-svn: 142878
2011-10-24 23:48:32 +00:00
NAKAMURA Takumi
914f1924e0
autoconf: Introduce --with-clang-srcdir, to build out-of-tree clang as tools/clang on tools/Makefile.
...
llvm-svn: 142102
2011-10-16 02:54:26 +00:00
Bill Wendling
3d19eefd4e
ToT is now for 3.1.
...
llvm-svn: 142044
2011-10-15 02:09:17 +00:00
Torok Edwin
229f8d7a9f
ocaml bindings: add findlib META support
...
This makes it easier to link against LLVM libs, especially if you are using
_oasis.
llvm-svn: 141992
2011-10-14 20:38:02 +00:00
NAKAMURA Takumi
d5a9a3afaf
configure: [cygming] Set --disable-embed-stdcxx by default on --enable-shared.
...
Many distros provide stdc++.dll recently. --enable-embed-stdcxx might confuse people.
llvm-svn: 141875
2011-10-13 18:04:52 +00:00
Eric Christopher
b9a11322b1
We're no longer going to bother supporting platforms that don't
...
support C89.
We probably didn't support them anyways.
llvm-svn: 140361
2011-09-23 00:53:10 +00:00
Eric Christopher
f16d2447e1
Remove the rest of the compiler checking from the top level configure
...
script. Only the testsuite project needs to know this information.
llvm-svn: 140220
2011-09-21 00:53:42 +00:00
Eric Christopher
155137bd10
Remove llvm-gcc and various compiler handling from llvm. It's not needed
...
here anymore and has been migrated to the test-suite project.
llvm-svn: 140216
2011-09-20 23:58:15 +00:00
Eric Christopher
4b0ae48614
Remove llvmc and assorted build machinery for it.
...
The problems that llvmc solved have largely been subsumed with the
tasks that the clang driver can accomplish, but llvmc lacks flexibility
and depends too heavily on the EOL'd llvm-gcc.
llvm-svn: 140093
2011-09-19 23:22:41 +00:00
Eric Christopher
66ad57b04e
Regenerate configure.
...
llvm-svn: 140065
2011-09-19 20:46:12 +00:00
Eric Christopher
4418a60272
Rename LLVM_MULTITHREADED define and fix build without threads.
...
Patch by Arrowdodger.
llvm-svn: 140064
2011-09-19 20:43:23 +00:00
Eric Christopher
5883971d00
Move the AC_PROG_CC checks earlier in the configure file. The lateness
...
of the original check meant that configure was caching the default
CC check and using that instead of the result of AC_PROG_CC in both
configure checks and during compilation.
This wasn't affecting C++ so it was hard to notice.
Regenerate configure.
llvm-svn: 139937
2011-09-16 20:36:25 +00:00
Eric Christopher
a7077b6f7e
Have the llvm configure process look for clang, then llvm-gcc, and then gcc
...
on all platforms.
llvm-svn: 139934
2011-09-16 20:36:16 +00:00
Ivan Krasin
05e609331c
Update config.sub, config.guess and configure.
...
The motivation to do that:
1. Now, llvm would use the stock config.sub. Before that we had an
uncommitted FreeBSD-related patch. Now, it has been upstreamed and
comes back. It means that it would be easier to update these files in
the next time (less magic knowledge)
2. Fix a typo for pseudo-CPUs: 32e[lb] -> [lb]e32, 64e[lb]->[lb]64.
One of these CPUs is used for PNaCl and it was not really convenient
to have a CPU that starts with a digit.
llvm-svn: 138323
2011-08-23 06:43:49 +00:00
Ivan Krasin
44306e2e5f
Add NativeClient operating system support.
...
This patch adds support of NativeClient (*-*-nacl) OS support to LLVM.
It's already supported in autoconf/config.sub.
The motivation for this change is to start upstreaming PNaCl work. The
whole set of patches include llvm backends (i686, x86_64, ARM),
llvm-gcc (probably, would not be upstreamed because it's deprecated)
and clang (the work has been just started, the amount of changes is
going to be low and the most of the work is expected to be done close
to the mainline).
llvm-svn: 138005
2011-08-18 22:54:21 +00:00
NAKAMURA Takumi
818a22be13
configure: Update since r136721.
...
llvm-svn: 137412
2011-08-12 01:50:43 +00:00
Evan Cheng
8c886a40d2
Combine all MC initialization routines into one. e.g. InitializeX86MCAsmInfo,
...
InitializeX86MCInstrInfo, etc. are combined into InitializeX86TargetMC.
llvm-svn: 135812
2011-07-22 21:58:54 +00:00
Bruno Cardoso Lopes
d1d9c78650
Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir
...
Stefanovic. I removed the part that actually emits the instructions cause
I want that to get in better shape first and in incremental steps. This
also makes it easier to review the upcoming parts.
llvm-svn: 135678
2011-07-21 16:28:51 +00:00
Eric Christopher
65080cc55c
Regenerate configure and friends for Chad.
...
llvm-svn: 135592
2011-07-20 17:04:49 +00:00
Evan Cheng
2129f59637
Introduce MCCodeGenInfo, which keeps information that can affect codegen
...
(including compilation, assembly). Move relocation model Reloc::Model from
TargetMachine to MCCodeGenInfo so it's accessible even without TargetMachine.
llvm-svn: 135468
2011-07-19 06:37:02 +00:00
Evan Cheng
1705ab00ab
Rename createAsmInfo to createMCAsmInfo and move registration code to MCTargetDesc to prepare for next round of changes.
...
llvm-svn: 135219
2011-07-14 23:50:31 +00:00
Douglas Gregor
de3c92674e
Add initial *-*-rtems* target, from Joel Sherrill
...
llvm-svn: 134282
2011-07-01 22:41:06 +00:00
Daniel Dunbar
3b95df8d08
Regenerate configure.
...
llvm-svn: 133207
2011-06-16 22:30:41 +00:00
Benjamin Kramer
820a947fe1
Happy new year.
...
Only 163 days late!
llvm-svn: 132895
2011-06-12 15:26:54 +00:00
Duncan Sands
f0f143e31d
The dragonegg option to disable LLVM optimizations changed.
...
llvm-svn: 131903
2011-05-23 16:50:29 +00:00
Peter Collingbourne
5ac59df9fb
Re-add the autoconf rule for the docs/doxygen.cfg file.
...
For some reason this was not reverted when r103213 was.
At the same time, add an optional rule for clang's doxygen.cfg.
llvm-svn: 131279
2011-05-13 03:27:56 +00:00
NAKAMURA Takumi
4471f82e91
Windows/DynamicLibrary.inc: Clean up ELM_Callback. We may check the decl instead of the versions of individual libraries.
...
autoconf: Add checking ELM_Callback decl for mingw32 and mingw-w64.
cmake/config-ix.cmake: Add checking ELM_Callback decl for win32.
llvm-svn: 130657
2011-05-01 13:29:49 +00:00
Chris Lattner
0ab5e2cded
Fix a ton of comment typos found by codespell. Patch by
...
Luis Felipe Strano Moraes!
llvm-svn: 129558
2011-04-15 05:18:47 +00:00
Jan Sjödin
c9a16d581d
Check that the AsmParser exists for the native target to enable initialization
...
function.
llvm-svn: 127626
2011-03-14 22:12:35 +00:00