Sean Silva
c399c753d9
Revert r165652: "Remove unnecessary RTTI from the build."
...
... Apparently the RTTI is still necessary for some reason.
llvm-svn: 165654
2012-10-10 20:50:36 +00:00
Sean Silva
9b72524e54
Remove unnecessary RTTI from the build.
...
llvm-svn: 165652
2012-10-10 20:27:20 +00:00
Rafael Espindola
be5613c0a7
Enable response files in all tools. Patch by Liu, Yaxun (Sam). I have simplified
...
the test.
llvm-svn: 165535
2012-10-09 19:52:10 +00:00
Nick Kledzik
35c79da3f8
Improve overflow detection in StringRef::getAsUnsignedInteger().
...
llvm-svn: 165038
2012-10-02 20:01:48 +00:00
Andrew Kaylor
feb805fcf2
Support for generating ELF objects on Windows.
...
This adds 'elf' as a recognized target triple environment value and overrides the default generated object format on Windows platforms if that value is present. This patch also enables MCJIT tests on Windows using the new environment value.
llvm-svn: 165030
2012-10-02 18:38:34 +00:00
Micah Villmow
48c8ddc039
Add in support for SPIR to LLVM core. This adds a new target and two new calling conventions.
...
llvm-svn: 164948
2012-10-01 17:01:31 +00:00
Dmitri Gribenko
91c06da5f1
Replace the use of strncpy() and sprintf() with std::string and LLVM streams.
...
Patch by Martinez, Javier E.
llvm-svn: 164822
2012-09-28 14:15:28 +00:00
Benjamin Kramer
5651cbdc13
Make backtraces work again with both the configure and cmake build.
...
llvm-svn: 164817
2012-09-28 10:10:46 +00:00
Sylvestre Ledru
91ce36c986
Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164767
...
llvm-svn: 164768
2012-09-27 10:14:43 +00:00
Sylvestre Ledru
721cffd53a
Fix a typo 'iff' => 'if'
...
llvm-svn: 164767
2012-09-27 09:59:43 +00:00
Benjamin Kramer
9d6063ab55
Add support for detecting some corei7-class Xeons.
...
llvm-svn: 164714
2012-09-26 18:21:47 +00:00
Benjamin Kramer
8fb58f6bf0
YAMLParser: Fix invalid reads when encountering incorrectly quoted scalar.
...
Fixes PR12632.
llvm-svn: 164701
2012-09-26 15:52:15 +00:00
Benjamin Kramer
c38fab2013
APFloat::roundToIntegral: Special values don't keep the exponent value up to date, don't rely on it.
...
Add a couple of unit tests for special floats. Fixes 13929, found by MemorySanitizer.
llvm-svn: 164698
2012-09-26 14:06:58 +00:00
Sylvestre Ledru
12c44e57f5
The assumption that /proc/self/exe always exists is incorrect.
...
For example, under a Linux chroot, /proc/ might not be mounted.
Therefor, we test if this file exist. If it is the case, use it (the current
behavior). Otherwise, we fall back to the detection used by *BSD.
The issue has been reported initially on the Debian bug tracker:
http://bugs.debian.org/674588
llvm-svn: 164676
2012-09-26 08:30:35 +00:00
Nico Weber
eada11bb13
Fix a -Wparentheses warning in the mingw build
...
llvm-svn: 164587
2012-09-25 05:24:16 +00:00
Craig Topper
3186c01fec
Add LLVM_OVERRIDE to methods that override their base classes.
...
llvm-svn: 164471
2012-09-23 02:12:10 +00:00
Eric Christopher
9fafe07da0
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
Andrew Kaylor
1f66100755
This patch adds memory support functions which will later be used to implement section-specific protection handling in MCJIT.
...
llvm-svn: 164249
2012-09-19 20:46:12 +00:00
Craig Topper
a60c0f1163
Use LLVM_DELETED_FUNCTION in place of 'DO NOT IMPLEMENT' comments.
...
llvm-svn: 163974
2012-09-15 17:09:36 +00:00
Dmitri Gribenko
5485acd440
Fix Doxygen issues:
...
* wrap code blocks in \code ... \endcode;
* refer to parameter names in paragraphs correctly (\arg is not what most
people want -- it starts a new paragraph);
* use \param instead of \arg to document parameters in order to be consistent
with the rest of the codebase.
llvm-svn: 163902
2012-09-14 14:57:36 +00:00
Roman Divacky
fd69009419
Add support for AMD Geode.
...
llvm-svn: 163710
2012-09-12 14:36:02 +00:00
Chandler Carruth
a699b6a44c
Add support for finding cacheflush on OpenBSD/mips64 platforms.
...
Patch by Brad Smith!
llvm-svn: 163584
2012-09-11 01:17:24 +00:00
Ted Kremenek
0b3e805e4b
Add operator< for FoldingSetNodeID.
...
llvm-svn: 163454
2012-09-08 04:25:29 +00:00
NAKAMURA Takumi
ffa157177e
Whitespace.
...
llvm-svn: 163289
2012-09-06 03:02:56 +00:00
NAKAMURA Takumi
8a54d812c5
Unix/Signals.inc: Fix a typo. Thanks to Dani Berg!
...
llvm-svn: 163288
2012-09-06 03:01:43 +00:00
Evgeniy Stepanov
c439a42649
Fix Android build of gtest and lib/Support.
...
llvm-svn: 163131
2012-09-04 09:14:45 +00:00
Logan Chien
9ab55b8d59
Rename ANDROIDEABI to Android.
...
Most of the code guarded with ANDROIDEABI are not
ARM-specific, and having no relation with arm-eabi.
Thus, it will be more natural to call this
environment "Android" instead of "ANDROIDEABI".
Note: We are not using ANDROID because several projects
are using "-DANDROID" as the conditional compilation
flag.
llvm-svn: 163087
2012-09-02 09:29:46 +00:00
Benjamin Kramer
ffa24e0438
Add some __builtin_expect magic to StringMap.
...
Tombstones and full hash collisions are rare, mark the "empty"
and "no collision" paths as likely. The bug in simplifycfg
that prevented the hints from being picked during selfhost
up was fixed recently :)
llvm-svn: 162874
2012-08-29 22:57:04 +00:00
Benjamin Kramer
bd7f8d0260
Replace the BUILTIN_EXPECT macro with a less horrible LLVM_LIKELY/LLVM_UNLIKELY interface.
...
llvm-svn: 162873
2012-08-29 22:57:00 +00:00
Hal Finkel
b5d177e5b0
Add the Freescale vendor to Triple.
...
Adds the vendor 'fsl' (used by Freescale SDK) to Triple. This will allow
clang support for Freescale cross-compile configurations.
Patch by Tobias von Koch.
llvm-svn: 162726
2012-08-28 02:10:30 +00:00
Richard Smith
228e6d4cf3
Fix integer undefined behavior due to signed left shift overflow in LLVM.
...
Reviewed offline by chandlerc.
llvm-svn: 162623
2012-08-24 23:29:28 +00:00
Richard Smith
156d92037a
Fix undefined behavior (signed integer overflow) when Clang parses a hexfloat with an enormous exponent. Caught by an existing unit test + -ftrapv.
...
llvm-svn: 162505
2012-08-24 00:01:19 +00:00
Richard Smith
24f09cc82d
Reduce alignment of SmallVector<T> to the required amount, rather than forcing 16-byte alignment. This fixes misaligned SmallVector accesses via ExtractValueInst's SmallVector data member.
...
llvm-svn: 162331
2012-08-22 00:11:07 +00:00
Benjamin Kramer
1b07ab51e4
DataExtractor: Fix integer truncation issues in LEB128 extraction.
...
llvm-svn: 162201
2012-08-20 10:52:11 +00:00
Michael J. Spencer
1d2d12deb1
Properly test the LLVM_USE_RVALUE_REFERENCES macro.
...
llvm-svn: 161978
2012-08-15 19:16:27 +00:00
Michael J. Spencer
ef2284fbad
[PathV2] Add mapped_file_region. Implementation for Windows and POSIX.
...
llvm-svn: 161976
2012-08-15 19:05:47 +00:00
Owen Anderson
352dfff447
Fix another roundToIntegral bug where very large values could become infinity. Problem and solution identified by Steve Canon.
...
llvm-svn: 161969
2012-08-15 18:28:45 +00:00
Owen Anderson
be7e297b6d
Fix typo in comment.
...
llvm-svn: 161956
2012-08-15 16:42:53 +00:00
Owen Anderson
1ff74b0d2d
Fix a problem with APFloat::roundToIntegral where it would return incorrect results for negative inputs to trunc. Add unit tests to verify this behavior.
...
llvm-svn: 161929
2012-08-15 05:39:46 +00:00
Owen Anderson
0b35722533
Fix the construction of the magic constant for roundToIntegral to be 64-bit safe. Fixes c-torture/execute/990826-0.c
...
llvm-svn: 161885
2012-08-14 18:51:15 +00:00
Owen Anderson
a40319b7f1
Add a roundToIntegral method to APFloat, which can be parameterized over various rounding modes. Use this to implement SelectionDAG constant folding of FFLOOR, FCEIL, and FTRUNC.
...
llvm-svn: 161807
2012-08-13 23:32:49 +00:00
Joerg Sonnenberger
c0697304c9
stdcxx's cstdio doesn't include stdio.h, but the code using PathV2.inc
...
includes both. Deal with feof and ferror potentially being macros.
llvm-svn: 161658
2012-08-10 10:56:09 +00:00
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
Nick Kledzik
5fce8c4ffe
Initial commit of new FileOutputBuffer support class.
...
Since the llvm::sys::fs::map_file_pages() support function it relies on
is not yet implemented on Windows, the unit tests for FileOutputBuffer
are currently conditionalized to run only on unix.
llvm-svn: 161099
2012-08-01 02:29:50 +00:00
Chad Rosier
bd9f2ba4d6
Typos.
...
llvm-svn: 160897
2012-07-27 21:41:59 +00:00
Chad Rosier
7c427c40cb
Make comments in Debug.cpp and Debug.h consistent. Rename SetCurrentDebugType;
...
Function names should be camel case, and start with a lower case letter. No
functional change intended.
llvm-svn: 160813
2012-07-26 20:38:52 +00:00
David Blaikie
70fdf72a48
Don't add null characters to the end of the APFloat string buffer.
...
Report/patch inspiration by Olaf Krzikalla.
llvm-svn: 160744
2012-07-25 18:04:24 +00:00
Nuno Lopes
eb9d2755b2
make ConstantRange::zeroExtend() optimal
...
llvm-svn: 160643
2012-07-23 20:33:29 +00:00
Benjamin Kramer
5be8f60126
Remove unused private member variables uncovered by the recent changes to clang's -Wunused-private-field.
...
llvm-svn: 160583
2012-07-20 22:05:57 +00:00
Benjamin Kramer
dfaa0f3a81
Try to unbreak the windows build.
...
llvm-svn: 160567
2012-07-20 19:49:33 +00:00