Eric Christopher
950d8703b1
Remove the CellSPU port.
...
Approved by Chris Lattner.
llvm-svn: 167984
2012-11-14 22:09:20 +00:00
Chad Rosier
379574fd20
Revert 167755/167760. We don't want to emit crash diagnostics on command-line syntax errors.
...
llvm-svn: 167849
2012-11-13 16:42:19 +00:00
Chad Rosier
2b2b38d336
Revert r167620; this can be implemented using an existing CL option.
...
llvm-svn: 167755
2012-11-12 21:32:44 +00:00
Benjamin Kramer
08be41adbf
Drop the limitation to IEEE floating point types from the fdiv of pow2 -> fmul transform.
...
This is safe for x87 long doubles and ppc double doubles too.
llvm-svn: 167582
2012-11-08 13:58:10 +00:00
Daniel Dunbar
e2d25c2731
MemoryBuffer: Windows doesn't define S_IFIFO.
...
llvm-svn: 167467
2012-11-06 17:08:09 +00:00
Daniel Dunbar
43a172d935
MemoryBuffer: Support reading named pipes in getFile().
...
- We only support this when the client didn't claim to know the file size.
llvm-svn: 167407
2012-11-05 21:55:40 +00:00
Rafael Espindola
2f92f61098
XLC supports the same atomic functions as GCC, use them.
...
Patch by Kai.
llvm-svn: 167309
2012-11-02 20:54:45 +00:00
Michael J. Spencer
be6f003275
[Support] Fix StrError on Windows to actually return the error string...
...
llvm-svn: 167191
2012-11-01 00:34:09 +00:00
Rafael Espindola
27783bc9c1
Remove Triple::getArchTypeForDarwinArchName. I lives on the clang driver now.
...
llvm-svn: 167157
2012-10-31 18:52:25 +00:00
James Molloy
3ebe7a5a5b
Add support for Cortex-A15 host recognition.
...
No testcase, as this is only testable on a C-A15 board.
llvm-svn: 167108
2012-10-31 09:07:37 +00:00
Ulrich Weigand
908c936fa9
APFloat cleanup: Remove now unused "arithmeticOK" logic.
...
llvm-svn: 166954
2012-10-29 18:18:44 +00:00
Ulrich Weigand
e1d62f9c0a
APFloat cleanup: Remove now unused fields "sign2" and "exponent2".
...
llvm-svn: 166952
2012-10-29 18:17:42 +00:00
Ulrich Weigand
d9f7e259aa
Implement arithmetic on APFloat with PPCDoubleDouble semantics by
...
treating it as if it were an IEEE floating-point type with 106-bit
mantissa.
This makes compile-time arithmetic on "long double" for PowerPC
in clang (in particular parsing of floating point constants)
work, and fixes all "long double" related failures in the test
suite.
llvm-svn: 166951
2012-10-29 18:09:01 +00:00
Joerg Sonnenberger
7dcded6b11
Don't explicitly require RTTI and EH.
...
llvm-svn: 166772
2012-10-26 12:15:29 +00:00
Daniel Dunbar
511479ddb4
Support: Don't remove special files on signals.
...
- Similar to Path::eraseFromDisk(), we don't want LLVM to remove things like
/dev/null, even if it has the permission.
llvm-svn: 166105
2012-10-17 16:30:54 +00:00
Duncan Sands
d5772de0eb
Add powerpc-ibm-aix to Triple. Patch by Kai.
...
llvm-svn: 165792
2012-10-12 11:08:57 +00:00
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