summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
Commit message (Collapse)AuthorAgeFilesLines
* long long is 64 bits on msp430Anton Korobeynikov2010-01-141-1/+2
| | | | llvm-svn: 93451
* Predefine __weak attribute when doing objective-cFariborz Jahanian2010-01-131-4/+0
| | | | | | rewriting for any target. (refixes radar 7530235). llvm-svn: 93331
* Define __weak attribute for objective-c pointers inFariborz Jahanian2010-01-121-0/+4
| | | | | | win32 targets. Fixes radar 7530235. Daniel please review. llvm-svn: 93246
* Hopefully unbreak build with g++ >= 4.3.Benjamin Kramer2010-01-091-0/+1
| | | | llvm-svn: 93060
* Use MacroBuilder for TargetDefines instead of std::vector.Benjamin Kramer2010-01-091-233/+217
| | | | llvm-svn: 93058
* improve support for dragonfly, patch by Sascha Wildner!Chris Lattner2010-01-091-0/+2
| | | | llvm-svn: 93044
* move a few more symbols to .rodata/.data.rel.roNuno Lopes2009-12-231-1/+1
| | | | llvm-svn: 92012
* ARM: Remove a FIXME, it's not actually more complicated than that.Daniel Dunbar2009-12-221-1/+0
| | | | llvm-svn: 91924
* ARM: Honor -mfpu= and set __VFP_FP__ and __ARM_NEON__ "correctly".Daniel Dunbar2009-12-211-9/+59
| | | | | | | | - Correctly is in quotes, because we are following what I interpreted as GCC's intent (which diverges from practice, naturally). - Also, fix the arch define for arm1136jf-s. llvm-svn: 91855
* ARM: Use front-end specific target features "soft-float" and ↵Daniel Dunbar2009-12-191-4/+36
| | | | | | "soft-float-abi" to communicate FP mode to target; __SOFTFP__ is set correctly now. llvm-svn: 91755
* Targets: Allow CreateTargetInfo to mutate the target features.Daniel Dunbar2009-12-191-7/+6
| | | | | | | - In particular, it can claim features for itself instead of always passing them on to LLVM. - This allows using the target features as a generic mechanism for passing target specific options to the TargetInfo instance, which may need them for initializing preprocessor defines, etc. llvm-svn: 91753
* Add f80 entry for windows targetsAnton Korobeynikov2009-12-191-2/+2
| | | | llvm-svn: 91746
* Use proper alignment for i16/i32 on msp430. This fixes PR5815.Anton Korobeynikov2009-12-191-1/+1
| | | | llvm-svn: 91739
* ARM: Define __thumb2__ for V6T2 targets and only defineDaniel Dunbar2009-12-181-5/+4
| | | | | | __USING_SJLJ_EXCEPTIONS__ on Darwin. llvm-svn: 91705
* ARM: Fix predefines (__ARM_ARCH_..., __REGISTER_PREFIX).Daniel Dunbar2009-12-181-54/+59
| | | | | | | - This should be done leveraging the backend, but I'm a little refactored out. I'll fix it one day, I promise. llvm-svn: 91700
* Tweaks for PS3 target.John Thompson2009-12-181-0/+3
| | | | llvm-svn: 91685
* Add SigAtomicType to TargetInfo, Needed for MSP and PIC Targets, Credit to ↵Edward O'Callaghan2009-11-211-0/+2
| | | | | | Ken Dyck. llvm-svn: 89520
* Added preliminary support step for PS3John Thompson2009-11-191-0/+47
| | | | llvm-svn: 89362
* Eliminate TargetInfo::getDefaultLangOptions, this kind of logic is better doneDaniel Dunbar2009-11-171-24/+0
| | | | | | in the driver. llvm-svn: 89073
* Move -fnext-runtime defaulting to driver (and change clang-cc default toDaniel Dunbar2009-11-171-2/+0
| | | | | | -fnext-runtime), instead of using getDefaultLangOptions. llvm-svn: 89058
* Move -fms-extensions defaulting to driver, instead of using ↵Daniel Dunbar2009-11-171-9/+0
| | | | | | getDefaultLangOptions. llvm-svn: 89057
* Move char-is-signed defaulting to driver, instead of usingDaniel Dunbar2009-11-171-13/+0
| | | | | | getDefaultLangOptions. llvm-svn: 89053
* Add MIPS support to Triple for Linux and the PSP. Credit to Bruno Cardoso Lopes.Edward O'Callaghan2009-11-151-0/+163
| | | | llvm-svn: 88850
* Add TargetOptions and use it when constructing targets.Daniel Dunbar2009-11-151-5/+56
| | | | | | | | - This ended up being hard to factor, sorry for the large diff. - Some post-commit cleanup to come. llvm-svn: 88833
* do not store wchar/char16/char32/intmax width/alignment infoChris Lattner2009-11-121-6/+0
| | | | | | | into TargetInfo, just derive this based on the underlying type. This prevents them from getting out of synch, patch by Ken Dyck! llvm-svn: 86976
* Simplifiy target feature handling by coalescing all the logic intoDaniel Dunbar2009-11-111-17/+22
| | | | | | InitializeCompileOptions. llvm-svn: 86826
* teach the various targets what native integer types they have.Chris Lattner2009-11-071-17/+18
| | | | llvm-svn: 86395
* Add a preprocessor define for adding a "near" section attribute for allowing Sanjiv Gupta2009-10-241-0/+2
| | | | | | objects to be placed at shared memory. llvm-svn: 85007
* The AuroraUX toolchain has conflicting wchar_t between the system stdlib.h ↵Edward O'Callaghan2009-10-181-0/+35
| | | | | | header and the clang stddef.h header where clang was defining as int where we use long. llvm-svn: 84416
* Disallow arbitrary custom inline asm constraints for msp430.Anton Korobeynikov2009-10-151-2/+2
| | | | llvm-svn: 84219
* fix some cfstring related issues: Chris Lattner2009-10-141-4/+0
| | | | | | | | | | | | | 1) -fwritable-string does affect the non-utf16 version of cfstrings just not the utf16 ones. 2) utf16 strings should always be marked constant, as the __TEXT segment is readonly. 3) The name of the global doesn't matter, remove it from TargetInfo. 4) Trust the asmprinter to drop cstrings into the right section, like llvmgcc does now. This fixes rdar://7115750 llvm-svn: 84077
* "Someone pointed out that in my previous Targets.cpp patch I didn'tMike Stump2009-10-081-0/+1
| | | | | | | handle the long size difference for one of the Windows targets." Patch by John Thompson. llvm-svn: 83592
* Handle Eli remark on mingw __declspec macro definitionCedric Venet2009-09-271-1/+1
| | | | llvm-svn: 82894
* Factor Windows target into VS, MinGW and Cygwin variants.Daniel Dunbar2009-09-231-11/+128
| | | | | | - Patch by John Thompson! llvm-svn: 82621
* implement support for __builtin_eh_return_data_regno on x86-32 and x86-64.Chris Lattner2009-09-231-0/+12
| | | | | | This implements PR5034 and rdar://6836445. llvm-svn: 82614
* Reconcile Clang/ARM target data string with llvm-gcc (module eabi weirdness).Daniel Dunbar2009-09-221-3/+20
| | | | llvm-svn: 82578
* Fix typo.Mike Stump2009-09-171-1/+1
| | | | llvm-svn: 82164
* ARM: Incremental improvement to preprocessor defines.Daniel Dunbar2009-09-171-13/+38
| | | | | | - Based on patch by Shantonu. llvm-svn: 82147
* Add ARM register names and aliases.Daniel Dunbar2009-09-171-75/+107
| | | | | | | | - Patch by Shantonu Sen! <rdar://problem/6922650> clang doesn't know about ARM registers for inline asm clobber lists llvm-svn: 82132
* fix some ppc register name issues, patch by Richard Pennington!Chris Lattner2009-09-161-45/+78
| | | | llvm-svn: 82009
* Add TargetInfo::getABI(), and base ARM APCS vs AAPCS choice on that.Daniel Dunbar2009-09-141-1/+9
| | | | llvm-svn: 81735
* ARM target tweaks.Daniel Dunbar2009-09-141-2/+24
| | | | | | | - Change TargetData string to match llvm-gcc. - Some -target-abi support for 'apcs-gnu', most importantly the alignment of double and long long changes. llvm-svn: 81732
* Swizzle the target triple based on -mthumb, and update clang-cc to recognizeDaniel Dunbar2009-09-111-0/+1
| | | | | | thumb-foo-bar as an ARM target. llvm-svn: 81497
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-37/+37
| | | | llvm-svn: 81346
* Add basic support for -pthread.Daniel Dunbar2009-09-031-0/+9
| | | | | | - Patch by David Chisnall, with PCH and Darwin support mixed in. llvm-svn: 80883
* Remove TargetInfo::getTargetPrefix().Daniel Dunbar2009-08-241-27/+9
| | | | llvm-svn: 79907
* Switch TargetInfo to store an llvm::Triple.Daniel Dunbar2009-08-241-27/+27
| | | | | | - Primarily to discourage clients form making decisions based on the string. llvm-svn: 79901
* Issue an error if the user specifies parameters in a function marked as ISR.Sanjiv Gupta2009-08-201-2/+7
| | | | llvm-svn: 79544
* Add TCE target to clang; patch by Mikael Lepistö.Eli Friedman2009-08-191-0/+67
| | | | llvm-svn: 79462
* Switch to SmallString::str from SmallString::c_str.Daniel Dunbar2009-08-191-6/+7
| | | | | | - Several FIXMEs due to non-Twinification of IRBuilder. llvm-svn: 79455
OpenPOWER on IntegriCloud