Guy Benyei
a4d31a33b5
Add support for SPIR64 target - the 64bit counterpart of SPIR.
...
The new OpenCL SPIR extension spec will define separate SPIR for 32 and 64 bit architectures.
llvm-svn: 168036
2012-11-15 10:35:47 +00:00
Eric Christopher
950d8703b1
Remove the CellSPU port.
...
Approved by Chris Lattner.
llvm-svn: 167984
2012-11-14 22:09:20 +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
Duncan Sands
d5772de0eb
Add powerpc-ibm-aix to Triple. Patch by Kai.
...
llvm-svn: 165792
2012-10-12 11:08:57 +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
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
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
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
Benjamin Kramer
ae3c300625
Enable automatic GCC<->LLVM intrinsic translation for mips.
...
llvm-svn: 159367
2012-06-28 19:09:53 +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
Chad Rosier
9d7b1cee39
Set the default iOS version to 3.0.
...
llvm-svn: 156492
2012-05-09 18:23:00 +00:00
Chad Rosier
2778cbc880
Don't return true on a function with a void return type.
...
llvm-svn: 156484
2012-05-09 17:38:47 +00:00
Chad Rosier
d84eaac673
Add Triple::getiOSVersion.
...
This new function provides a way to get the iOS version number from ios triples.
Part of rdar://11409204
llvm-svn: 156483
2012-05-09 17:23:48 +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
Hal Finkel
f208af02a4
Add triple support for the IBM BG/P and BG/Q supercomputers.
...
llvm-svn: 153882
2012-04-02 18:31:33 +00:00
Anton Korobeynikov
f32638d77c
Add support for r600 (AMD GPUs HD2XXX - HD6XXX) target triplet.
...
Patch by Tom Stellard!
llvm-svn: 152400
2012-03-09 10:09:36 +00:00
Chandler Carruth
0c7a7cc711
Support was removed from LLVM's MIPS backend for the PSP variant of that
...
chip in r139383, and the PSP components of the triple are really
annoying to parse. Let's leave this chapter behind. There is no reason
to expect LLVM to see a PSP-related triple these days, and so no
reasonable motivation to support them.
It might be reasonable to prune a few of the older MIPS triple forms in
general, but as those at least cause no burden on parsing (they aren't
both a chip and an OS!), I'm happy to leave them in for now.
llvm-svn: 151156
2012-02-22 11:32:54 +00:00
Chandler Carruth
362087bcba
Tiny cosmetic change to use the same style for all of the while loops in
...
the normalize routine, especially the empty while loops.
llvm-svn: 151050
2012-02-21 09:29:14 +00:00
Chandler Carruth
6ea6de7cad
Replace a hand rolled loop with a lovely StringRef helper we have these
...
days. No functionality changed.
llvm-svn: 151048
2012-02-21 09:12:48 +00:00
Chandler Carruth
aec9708988
Pull the parsing helper functions out of the Triple interface entirely.
...
They're private static methods but we can just make them static
functions in the implementation. It makes the implementations a touch
more wordy, but takes another chunk out of the header file.
Also, take the opportunity to switch the names to the new coding
conventions.
No functionality changed here.
llvm-svn: 151047
2012-02-21 08:53:32 +00:00
Chandler Carruth
1f3325a6d9
Clean up comments that I missed when changing the triple representation.
...
Somehow, I even missed the ones I wrote just the other day...
Thanks to Matt for the code review.
llvm-svn: 151045
2012-02-21 08:31:18 +00:00
Chandler Carruth
2d27b0f0ed
Switch the llvm::Triple class to immediately parse the triple string on
...
construction. Simplify its interface, implementation, and users
accordingly as there is no longer an 'uninitialized' state to check for.
Also, fixes a bug lurking in the interface as there was one method that
didn't correctly check for initialization.
llvm-svn: 151024
2012-02-21 03:39:36 +00:00
Chandler Carruth
0d887dd0b9
Move constructors out-of-line and flesh out their documentation. No
...
functionality changed. This is in preparation for some refactoring of
how this class behaves.
llvm-svn: 150941
2012-02-20 00:02:47 +00:00
Chandler Carruth
b54950bef4
Trivial cleanup to group the generic 'armvN' cases with the 'arm' case,
...
etc. No functionality changed.
llvm-svn: 150867
2012-02-18 04:34:17 +00:00
Benjamin Kramer
22a0fdf24b
StringSwitchify the rest of Triple.cpp.
...
llvm-svn: 150332
2012-02-12 10:56:52 +00:00
Chandler Carruth
ff6f356b95
Switch a bunch of manual if-chains to use StringSwitch. Clean them up in
...
the process. Some of these are still a bit gross.
Still, this cuts 80 some lines out of this ridiculous file. ;]
llvm-svn: 150331
2012-02-12 09:27:38 +00:00
Craig Topper
a2886c21d9
Convert assert(0) to llvm_unreachable
...
llvm-svn: 149967
2012-02-07 05:05:23 +00:00
Chandler Carruth
07cfb4b696
Introduce helpers to compute the 32-bit varaints and 64-bit variants of
...
some architectures. These are useful for interacting with multiarch or
bi-arch GCC (or GCC-based) toolchains.
llvm-svn: 149895
2012-02-06 20:46:33 +00:00
Bob Wilson
aa30aff4f7
Add Triple::getMacOSXVersion to replace crufty code in the clang driver.
...
This new function provides a way to get the Mac OS X version number from
either generic "darwin" triples of macosx triples.
llvm-svn: 149438
2012-01-31 22:32:29 +00:00
Chandler Carruth
b90c102a52
Add various coarse bit-width architecture predicates to llvm::Triple.
...
These are very useful for frontends and other utilities reasoning about
or selecting between triples.
llvm-svn: 149353
2012-01-31 04:52:32 +00:00
David Blaikie
46a9f016c5
More dead code removal (using -Wunreachable-code)
...
llvm-svn: 148578
2012-01-20 21:51:11 +00:00
Rafael Espindola
f5e78fa8d1
Add support for the gnueabihf environment. Patch by Sylvestre Ledru.
...
llvm-svn: 148434
2012-01-18 23:35:29 +00:00
Chandler Carruth
9a7510af46
Teach the triple library about the androideabi environment.
...
Patch by Evgeniy Stepanov.
llvm-svn: 147871
2012-01-10 19:46:00 +00:00
Tony Linthicum
1213a7a57f
Hexagon backend support
...
llvm-svn: 146412
2011-12-12 21:14:40 +00:00
Dan Gohman
4c9fca99c9
Remove the Alpha backend.
...
llvm-svn: 143164
2011-10-27 22:56:32 +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
Akira Hatanaka
6c3ad65288
Add mips64 & mips64el to Triple. Patch by Liu with modifications.
...
llvm-svn: 140157
2011-09-20 18:09:37 +00:00
Tobias Grosser
516dbb24b5
Add AMDIL as valid target triple to LLVM.
...
Submitted by: Villmow, Micah <Micah.Villmow@amd.com>
llvm-svn: 138734
2011-08-29 15:44:55 +00:00
Ivan Krasin
771ef8c66a
This patch adds support of le32 pseudo-cpu that stands for generic
...
32-bit little-endian CPU. Used by PNaCl and Emscripten.
llvm-svn: 138335
2011-08-23 16:59:00 +00:00
Ivan Krasin
b296790bb6
Add NativeClient support to Triple::ParseOS.
...
llvm-svn: 138291
2011-08-22 23:08:53 +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
Sean Callanan
147c83ed4d
Added several architecture names.
...
llvm-svn: 136552
2011-07-30 01:29:54 +00:00
Duncan Sands
fe44f67d43
Teach the Triple class about kfreebsd (FreeBSD kernel with
...
a GNU userspace).
llvm-svn: 136085
2011-07-26 15:30:04 +00:00
Chris Lattner
d757d3f5c2
switch Triple to take twines instead of stringrefs.
...
llvm-svn: 135889
2011-07-24 20:45:08 +00:00
NAKAMURA Takumi
af8d50ddb3
lib/Support/Triple.cpp: Recognize "-march=ppc32" to llc properly, as quick hack.
...
FIXME: There is an inconsistency. llvm::Triple does not understand "ppc32" and PowerPC/TargetInfo holds "ppc32".
llvm-svn: 135745
2011-07-22 04:02:22 +00:00
Joerg Sonnenberger
e0cbf7409c
Recognize mipseb as alias for mips for symmetry with mipsel.
...
llvm-svn: 134617
2011-07-07 16:53:52 +00:00
Eli Friedman
499647bfc3
Fix missing triple support for RTEMS target.
...
llvm-svn: 134532
2011-07-06 20:56:26 +00:00
Douglas Gregor
de3c92674e
Add initial *-*-rtems* target, from Joel Sherrill
...
llvm-svn: 134282
2011-07-01 22:41:06 +00:00