Reid Kleckner
f8fb974cda
Check for _strtoi64 in the cmake build if strtoll is missing
...
Previously this check was guarded by MSVC, which doesn't distinguish
between the compiler and the headers/library. This enables clang to
compile more of LLVM on Windows with Microsoft headers.
Remove some unused macros while I'm here: error_t and LTDL stuff.
llvm-svn: 187839
2013-08-07 00:29:15 +00:00
Bob Wilson
313eeb0a47
Link with -rdynamic instead of -Wl,-export-dynamic.
...
Recent versions of the OS X linker support this but follow the existing
OS X linker convention of using an underscore in the option name, i.e.,
-export_dynamic. Rather than changing our configure scripts to check for
that alternate spelling, it is simpler to just use the compiler's -rdynamic
option and let it deal with translating that to the appropriate linker
option. One potential disadvantage of this approach is that the compiler
will typically ignore -rdynamic on platforms where it is not supported, so
the HAVE_LINK_EXPORT_DYNAMIC in config.h will not necessarily show whether
that option has any effect or not. I don't see any in-tree uses of that
macro, so I'm assuming it is OK.
llvm-svn: 187686
2013-08-02 22:51:06 +00:00
Eric Christopher
63b1423ae5
Regenerate.
...
llvm-svn: 187217
2013-07-26 17:13:47 +00:00
Reid Kleckner
221b8484c7
Remove dead or useless header checks from cmake and autoconf
...
On Windows, this improves clean cmake configuration time on my
workstation from 1m58s to 1m32s, which is pretty significant. There's
probably more that can be done here, but this is the low hanging fruit.
Eric volunteered to regenerate ./configure for me.
llvm-svn: 187209
2013-07-26 16:54:23 +00:00
Matt Arsenault
0a992db587
Find xdot or xdot.py.
...
Ubuntu installs this as xdot, so finding xdot.py would fail.
llvm-svn: 185860
2013-07-08 20:24:54 +00:00
Eric Christopher
f5e8037cf3
Reapply r185601 with a fix for the cmake build.
...
llvm-svn: 185605
2013-07-04 01:10:38 +00:00
Eric Christopher
c31256808e
Temporarily revert 185601 as it caused cmake build regressions.
...
llvm-svn: 185603
2013-07-04 00:51:26 +00:00
Eric Christopher
f92d25bdca
Add support for futimens for platforms that don't support futimes.
...
Patch by pashev.igor.
llvm-svn: 185601
2013-07-04 00:47:09 +00:00
Rafael Espindola
0ff7ea94a2
Don't define LTDL_SHLIBPATH_VAR.
...
llvm-svn: 183771
2013-06-11 19:04:13 +00:00
Rafael Espindola
bafac8bf69
Don't define LLVM_LIBDIR, it is not used anymore.
...
llvm-svn: 183769
2013-06-11 18:52:11 +00:00
Tim Northover
f5d9c9ba13
Allow host triple to be correctly overridden in CMake builds
...
The intended semantics mirror autoconf, where the user is able to
specify a host triple, but if it's left to the build system then
"config.guess" is invoked for the default.
This also renames the LLVM_HOSTTRIPLE define to LLVM_HOST_TRIPLE to
fit in with the style of the surrounding defines.
llvm-svn: 181112
2013-05-04 07:36:23 +00:00
Eric Christopher
5eefad4587
Regen.
...
llvm-svn: 180685
2013-04-27 22:23:16 +00:00
Joerg Sonnenberger
3486008857
Only use cxxabi.h's demangler, if it is actually available.
...
llvm-svn: 180684
2013-04-27 22:12:32 +00:00
Alexey Samsonov
31d66490c8
Add more guards around zlib-dependent code
...
llvm-svn: 180084
2013-04-23 08:57:30 +00:00
Alexey Samsonov
30f0410c39
Add basic zlib support to LLVM. This would allow to use compression/uncompression in selected LLVM tools.
...
llvm-svn: 180083
2013-04-23 08:28:39 +00:00
Joerg Sonnenberger
d2fdae5765
Refine fenv.h handling: check if the desired macros exist, before using
...
it. NetBSD/ARM and TILE-Gx are examples for platforms that have an
unusable fenv.h and this avoids the need for a blacklist.
llvm-svn: 177865
2013-03-25 13:13:33 +00:00
Evgeniy Stepanov
be7d518073
Fix MSan annotations inclusion guard.
...
#cmakedefine does not behave the way I though it was.
llvm-svn: 175050
2013-02-13 10:40:01 +00:00
Owen Anderson
09e506b2be
Fix CMake detection of various cmath functions, and XFAIL the test on platforms that are known to be missing them.
...
llvm-svn: 174564
2013-02-07 00:54:05 +00:00
Owen Anderson
4d8f6634c5
Conditionalize constant folding of math intrinsics on the availability of an implementation on the host. This is a little bit unfortunate, but until someone decides to implement a full libm for APFloat, we don't have a better way to get this functionality.
...
llvm-svn: 174561
2013-02-07 00:21:34 +00:00
Evgeniy Stepanov
389e9dd213
More MSan/ASan annotations.
...
This change lets us bootstrap LLVM/Clang under ASan and MSan. It contains
fixes for 2 issues:
- X86JIT reads return address from stack, which MSan does not know is
initialized.
- bugpoint tests run binaries with RLIMIT_AS. This does not work with certain
Sanitizers.
We are no longer including config.h in Compiler.h with this change.
llvm-svn: 174306
2013-02-04 07:03:24 +00:00
Evgeniy Stepanov
51eee1f016
Annotate BumpPtrAllocator for MemorySanitizer.
...
This change adds MemorySanitizer annotations to BumpPtrAllocator to
improve report quality.
llvm-svn: 174051
2013-01-31 09:58:59 +00:00
NAKAMURA Takumi
546831d369
[autoconf]: Fix description in HAVE_CRASHREPORTER_INFO.
...
http://llvm-reviews.chandlerc.com/D332
Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
llvm-svn: 173879
2013-01-30 01:38:03 +00:00
NAKAMURA Takumi
bdad03688b
[CMake] Move libxml2 stuff from clang to llvm/cmake.
...
llvm-svn: 170225
2012-12-14 18:30:20 +00:00
NAKAMURA Takumi
8645aedb70
JITEventListener.h: Use llvm-config.h instead of config.h.
...
llvm-svn: 170129
2012-12-13 15:03:38 +00:00
NAKAMURA Takumi
3857058610
llvm/Config/config.h.cmake: Good bye, Kevin! We won't honor authors in comments.
...
llvm-svn: 166934
2012-10-29 16:07:28 +00:00
Benjamin Kramer
f358e32d89
Make backtraces work again with both the configure and cmake build.
...
llvm-svn: 164817
2012-09-28 10:10:46 +00:00
Eric Christopher
8172c32318
Add an --enable-backtraces option to configure to determine
...
whether or not we want to print out backtrace information. Useful
for libraries that don't need backtrace information on a crash.
rdar://11844710
llvm-svn: 164426
2012-09-21 23:03:29 +00:00
Nuno Lopes
01ff1931d7
replace a couple of single-line comments with /* */ to fix the build of stuff depending on the C headers
...
llvm-svn: 163095
2012-09-02 14:19:21 +00:00
Benjamin Kramer
b0f40f5deb
PR13689: Check for backtrace(3) in the cmake build.
...
llvm-svn: 163074
2012-09-01 20:50:18 +00:00
Eric Christopher
f0a677b9e8
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
NAKAMURA Takumi
d79a015152
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
NAKAMURA Takumi
a47d2967c0
Update config.h.cmake corresponding to config.h.in.
...
llvm-svn: 160431
2012-07-18 09:17:02 +00:00
Eric Christopher
7c10305e52
Regenerate.
...
llvm-svn: 160134
2012-07-12 17:59:12 +00:00
Jim Grosbach
f7461026c2
Nuke a few dead remnants of the CBE.
...
llvm-svn: 156241
2012-05-05 17:45:12 +00:00
Daniel Dunbar
c69f7c9234
[build] Add build check for ::arc4random().
...
llvm-svn: 156236
2012-05-05 16:36:16 +00:00
Ted Kremenek
c3352fa310
Add rudimentary CMake logic for detecting Graphviz.
...
llvm-svn: 156108
2012-05-03 21:51:05 +00:00
Sebastian Pop
d60bf3baf0
add configure flag --with-default-sysroot
...
llvm-svn: 154791
2012-04-16 04:11:45 +00:00
Eric Christopher
1ba37ca43c
Add InitializeNativeTargetDisassembler function.
...
Patch by Ojab.
llvm-svn: 153476
2012-03-26 21:56:56 +00:00
Eric Christopher
3839c1ffd3
Remove the C backend.
...
llvm-svn: 153307
2012-03-23 05:50:46 +00:00
Eli Bendersky
18a6065211
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
Dylan Noblesmith
d07dd21f5c
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
Rafael Espindola
3440cd1895
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
Sebastian Pop
53d6e3b9d3
revert r147542 after comments from Joerg Sonnenberger
...
llvm-svn: 147608
2012-01-05 18:28:46 +00:00
Sebastian Pop
4f82b3a13f
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
1e7305dc9b
configure, config.h.in: Regenerate.
...
config.h.cmake: Synchronize to config.h.in.
llvm-svn: 145217
2011-11-28 01:07:19 +00:00
Dylan Noblesmith
9751c17d0d
rename ENABLE_THREADS to LLVM_ENABLE_THREADS
...
Now that it needs to be exported in a public header (Valgrind.h)
it should be prefixed to avoid collision with other projects.
Add it to llvm-config.h as well.
This'll require regenerating the configure script after this
commit, but I don't have the required autoconf version.
llvm-svn: 145214
2011-11-28 00:48:58 +00:00
Dylan Noblesmith
d438218614
update description of LLVM_DEFAULT_TARGET_TRIPLE
...
It was out of sync with the description in configure.ac/config.h.in.
Also re-alphabetize it from its position when it was LLVM_HOST_TRIPLE.
llvm-svn: 145213
2011-11-28 00:48:53 +00:00
Benjamin Kramer
7120c3ef01
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
Daniel Dunbar
c2bd09b47b
Fix typo.
...
llvm-svn: 144334
2011-11-10 23:33:18 +00:00
Sebastian Pop
69b2b86143
rename LLVM_HOSTTRIPLE into LLVM_DEFAULT_TARGET_TRIPLE
...
llvm-svn: 143501
2011-11-01 21:31:44 +00:00
Eric Christopher
b14f867444
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
Eric Christopher
f79f875df9
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
NAKAMURA Takumi
4c7dbf17cc
include/llvm/Config/llvm-config.h.in: Add the entry LLVM_PATH_XDOT_PY, for consistency against llvm-config.h.cmake.
...
llvm-svn: 140137
2011-09-20 03:54:11 +00:00
NAKAMURA Takumi
b4fb714301
include/llvm/Config: Reorder LLVM_HAS_ATOMICS along config.h.in for consistency.
...
llvm-svn: 140136
2011-09-20 03:54:05 +00:00
NAKAMURA Takumi
bfa21dba17
include/llvm/Config/config.h.cmake: Unbreak CMake build to tweak LLVM_HAS_ATOMICS.
...
llvm-svn: 140135
2011-09-20 03:53:57 +00:00
Eric Christopher
cd8b37ee52
Regenerate configure.
...
llvm-svn: 140065
2011-09-19 20:46:12 +00:00
Eric Christopher
9f7d25652d
Rename LLVM_MULTITHREADED define and fix build without threads.
...
Patch by Arrowdodger.
llvm-svn: 140064
2011-09-19 20:43:23 +00:00
NAKAMURA Takumi
20a1b348b6
include/llvm/Config/config.h.cmake: Reorder to follow config.h.in, and import stuff from llvm-config.h.cmake and clang/config.h.
...
llvm-svn: 137424
2011-08-12 03:27:54 +00:00
NAKAMURA Takumi
4836113d85
CMake: Eliminate unused checks and #undef(s) as below;
...
STACK_DIRECTION
YYTEXT_POINTER
HAVE_NAMESPACES
HAVE_STD_ITERATOR
HAVE_FWD_ITERATOR
HAVE_BI_ITERATOR
HAVE_GLOBAL_HASH_MAP
HAVE_GLOBAL_HASH_SET
HAVE_GNU_EXT_HASH_MAP
HAVE_GNU_EXT_HASH_SET
HAVE_STD_EXT_HASH_MAP
HAVE_STD_EXT_HASH_SET
llvm-svn: 137423
2011-08-12 03:27:48 +00:00
NAKAMURA Takumi
57d496a7d6
include/llvm/Config/llvm-config.h: Reorder and reword to follow (generated) config.h.in.
...
llvm-svn: 137413
2011-08-12 01:50:50 +00:00
NAKAMURA Takumi
212fb11994
configure: Update since r136721.
...
llvm-svn: 137412
2011-08-12 01:50:43 +00:00
NAKAMURA Takumi
0912faa08f
CMake: Fix LLVM_NATIVE_TARGETMC in config.h.cmake.
...
llvm-svn: 135832
2011-07-23 00:45:23 +00:00
NAKAMURA Takumi
e8c8f7fe0e
config.h.cmake: Reorder along config.h.in.
...
llvm-svn: 135831
2011-07-23 00:45:16 +00:00
Oscar Fuentes
260c1b0c41
Teach cmake configured headers about LLVM_NATIVE_TARGETMC
...
llvm-svn: 135820
2011-07-22 22:21:47 +00:00
Evan Cheng
7b4cb12a95
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
Eric Christopher
a7456220ba
Regenerate configure and friends for Chad.
...
llvm-svn: 135592
2011-07-20 17:04:49 +00:00
Evan Cheng
bfc0cac54d
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
9e8f90a020
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
Dylan Noblesmith
4a1d03f633
remove CMake mode_t define
...
It's now replaced with a simple ifdef _MSC_VER in the one
place it's needed (clang's FileManager.h header).
llvm-svn: 133711
2011-06-23 12:21:33 +00:00
Frits van Bommel
271d62cbd3
Fix warning in the CMake build about redefining LLVM_PATH_XDOT_PY by making sure both definitions are identical. This used to produce warnings like
...
In file included from .../llvm/trunk/tools/lto/LTOCodeGenerator.cpp:45:
In file included from .../llvm/trunk/include/llvm/Support/system_error.h:225:
.../include/llvm/Config/config.h:591:9: warning: 'LLVM_PATH_XDOT_PY' macro redefined
#define LLVM_PATH_XDOT_PY ".../bin/xdot.py"
^
.../include/llvm/Config/llvm-config.h:98:9: note: previous definition is here
#define LLVM_PATH_XDOT_PY ""
^
1 warning generated.
(Paths edited for clarity)
Note: This only affected people who had xdot.py installed.
llvm-svn: 132050
2011-05-25 06:32:23 +00:00
NAKAMURA Takumi
3788ada5db
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
Jan Sjödin
7962eba596
Add InitializeNativeAsmParser function.
...
llvm-svn: 127341
2011-03-09 17:25:46 +00:00
Tobias Grosser
7cb4ec5d69
cmake: Add xdot.py support as it already exists in autoconf.
...
llvm-svn: 126563
2011-02-27 04:11:05 +00:00
NAKAMURA Takumi
55dd89bf51
lib/Support/Errno.cpp: Check strerror_s() with HAVE_DECL_STRERROR_S in config.h.*.
...
AC_CHECK_FUNCS seeks a symbol only in libs. We should check the declaration in string.h.
FIXME: I have never seen mingw(s) have strerror_s() (not _strerror_s()).
FIXME: Autoconf/CMake may seek strerror_s() with the definition MINGW_HAS_SECURE_API in future.
llvm-svn: 125172
2011-02-09 04:18:48 +00:00
NAKAMURA Takumi
aa8b506820
Windows/DynamicLibrary.inc: Split explicit symbols into explicit_symbols.inc.
...
config.h.* have conditions whether each symbol is defined or not.
Autoconf and CMake may check symbols in libgcc.a for JIT on Mingw.
llvm-svn: 124950
2011-02-05 15:11:53 +00:00
Oscar Fuentes
e8f760372e
Moved to Clang's source tree its configuration options and associated
...
macros.
llvm-svn: 124824
2011-02-03 22:47:59 +00:00
Oscar Fuentes
c0fc5216b4
Platform tests for sys/uio.h' header and
writev' function.
...
This is the cmake equivalent for r124769.
llvm-svn: 124775
2011-02-03 04:23:07 +00:00
Daniel Dunbar
5d4703a1dd
Regenerate configure.
...
llvm-svn: 124770
2011-02-03 02:40:02 +00:00
Oscar Fuentes
d79df5b7c8
Adds some platform checks to cmake/config-ix.cmake and fixes checking
...
for dlopen/dlerror.
Patch by arrowdodger!
llvm-svn: 124590
2011-01-31 18:25:25 +00:00
NAKAMURA Takumi
826d7183d5
CMake: Fix a few definition to suppress warnings.
...
llvm-svn: 124583
2011-01-31 09:41:20 +00:00
Oscar Fuentes
da69ba084d
Handles libffi on the CMake build.
...
Patch by arrowdodger!
llvm-svn: 123976
2011-01-21 15:42:54 +00:00
Oscar Fuentes
512d8eb82a
Add some platform checks. Also fix a typo on a Makefile.
...
Patch by arrowdodger!
llvm-svn: 123659
2011-01-17 16:35:14 +00:00
Oscar Fuentes
c9265ce51e
Make config.h.cmake similar to config.h.in
...
Patch by arrowdodger!
llvm-svn: 123539
2011-01-15 13:35:37 +00:00
Oscar Fuentes
2e491f8d47
Reorder macros on config.h.cmake to easily compare it against
...
config.h.in.
Patch by arrowdodger!
llvm-svn: 123445
2011-01-14 16:41:03 +00:00
Oscar Fuentes
9618cded65
Add some platform tests.
...
Patch by arrowdodger!
llvm-svn: 123388
2011-01-13 19:17:28 +00:00
Oscar Fuentes
f975a7423b
Platform tests for argz_* functions.
...
Patch by arrowdodger!
llvm-svn: 123376
2011-01-13 15:06:32 +00:00
Oscar Fuentes
82cc1fb69c
Add to the CMake build some options and platform tests supported by
...
the traditional build.
Patch by arrowdodger!
llvm-svn: 123233
2011-01-11 12:31:54 +00:00
Oscar Fuentes
184f5d0911
Rewrite handling of LLVM_ENABLE_PIC. It was being processed after
...
config.h was generated, so it had no effect on it.
Thanks to arrowdodger for pointing out this and a tentative patch.
llvm-svn: 123119
2011-01-09 14:34:39 +00:00
Michael J. Spencer
ce950c50c4
Support/FileSystem: Fix MinGW build. It doesn't have _chsize_s.
...
llvm-svn: 120826
2010-12-03 18:48:56 +00:00
Eric Christopher
25f7b89a9e
Apparently OS X 10.4 doesn't have __crashreporter_info__.
...
Try to fix building on the wayback machine.
llvm-svn: 120801
2010-12-03 07:45:22 +00:00
Michael J. Spencer
8daaefa006
Endian: Get rid of LLVM_IS_HOST_BIG_ENDIAN.
...
llvm-svn: 117124
2010-10-22 18:45:12 +00:00
Michael J. Spencer
93269f7395
Rename LLVM_IS_TARGET_BIG_ENDIAN to LLVM_IS_HOST_BIG_ENDIAN to reflect what it actually means.
...
llvm-svn: 117092
2010-10-22 08:47:28 +00:00
Michael J. Spencer
b9734a5b12
Support: Add Endian.h
...
llvm-svn: 117057
2010-10-21 20:28:21 +00:00
Chandler Carruth
3f16e8b729
First step to allowing the resource directory of Clang to be adjusted for
...
strange packaging environments. The primary result of this is to expose
a (normally empty) CLANG_RESOURCE_DIR string in the autoconf and CMake builds.
This will in turn be used by a subsequent commit to Clang.
Regenerated configure and config.h.in thanks to Nick. =D
llvm-svn: 116802
2010-10-19 08:21:25 +00:00
Dan Gohman
773c8a1c76
Add support for viewing graphviz graphs with xdot.py.
...
llvm-svn: 114832
2010-09-27 16:28:34 +00:00
Dan Gohman
8058e1b851
Attempt to support platforms which don't have fenv.h.
...
llvm-svn: 114196
2010-09-17 20:06:27 +00:00
Eric Christopher
da5541e56d
Fix LLVM target initialization to deal with sociopathic outside projects
...
that like to randomly define things like "X86", regenerate autoconf bits
and update cmake.
Fixes PR7852.
Patch by Xerxes Rånby!
llvm-svn: 112499
2010-08-30 18:34:48 +00:00
Eric Christopher
d0404930db
Regenerate.
...
llvm-svn: 112042
2010-08-25 08:45:06 +00:00
Daniel Dunbar
cb6029f089
configure: Add detection of the linker version string.
...
- Review appreciated, as long as you understand that I understand that this is
a horrible hack.
llvm-svn: 110883
2010-08-11 23:53:59 +00:00
Oscar Fuentes
32d28f5432
Avoid multiple definition warnings when both config.h and
...
llvm-config.h are included.
This is the cmake counterpart of r110547. See bug #7809 .
llvm-svn: 110753
2010-08-10 23:48:22 +00:00