summaryrefslogtreecommitdiff
path: root/lib/Basic/Targets.cpp
Commit message (Collapse)AuthorAge
...
* Don't explicitly force utf strings into the __TEXT,__ustringChris Lattner2010-02-01
| | | | | | | | | | | | by setting the section of the generated global. This is an optimization done by the code generator, and the code being removed didn't handle the case when the string contained an embedded nul (which the code generator does correctly handle). This is rdar://7589850 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95003 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify FreeBSD version parsing.Benjamin Kramer2010-01-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94919 91177308-0d34-0410-b5e6-96231b3b80d8
* StringRef-ize the TargetInfo::ConstraintInfo constructor.Anders Carlsson2010-01-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94916 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix alignment for msp430 integer types.Anton Korobeynikov2010-01-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94879 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM/APCS: Fix alignment of long double.Daniel Dunbar2010-01-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94685 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for 3dnow and 3dnowa, and define the target macros accordingly. ↵Anders Carlsson2010-01-27
| | | | | | (This is needed in order to build Qt). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94658 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver/Darwin: Stuff iPhoneOS into environment portion of the (llvm/clang) ↵Daniel Dunbar2010-01-26
| | | | | | triple instead of keying off architecture. Also, fix version define to properly include the revision/micro component of the version number. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94487 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the MacroBuilder utilitiy to its own header. Update references.Chandler Carruth2010-01-20
| | | | | | | Comments and/or improvements to the documentation are welcome. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93982 91177308-0d34-0410-b5e6-96231b3b80d8
* Actually remove the include that r93974 made unnecessary.Chandler Carruth2010-01-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93975 91177308-0d34-0410-b5e6-96231b3b80d8
* long long is 64 bits on msp430Anton Korobeynikov2010-01-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93451 91177308-0d34-0410-b5e6-96231b3b80d8
* Predefine __weak attribute when doing objective-cFariborz Jahanian2010-01-13
| | | | | | | | rewriting for any target. (refixes radar 7530235). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93331 91177308-0d34-0410-b5e6-96231b3b80d8
* Define __weak attribute for objective-c pointers inFariborz Jahanian2010-01-12
| | | | | | | | win32 targets. Fixes radar 7530235. Daniel please review. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93246 91177308-0d34-0410-b5e6-96231b3b80d8
* Hopefully unbreak build with g++ >= 4.3.Benjamin Kramer2010-01-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93060 91177308-0d34-0410-b5e6-96231b3b80d8
* Use MacroBuilder for TargetDefines instead of std::vector.Benjamin Kramer2010-01-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93058 91177308-0d34-0410-b5e6-96231b3b80d8
* improve support for dragonfly, patch by Sascha Wildner!Chris Lattner2010-01-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93044 91177308-0d34-0410-b5e6-96231b3b80d8
* move a few more symbols to .rodata/.data.rel.roNuno Lopes2009-12-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92012 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM: Remove a FIXME, it's not actually more complicated than that.Daniel Dunbar2009-12-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91924 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM: Honor -mfpu= and set __VFP_FP__ and __ARM_NEON__ "correctly".Daniel Dunbar2009-12-21
| | | | | | | | - 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91855 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM: Use front-end specific target features "soft-float" and ↵Daniel Dunbar2009-12-19
| | | | | | "soft-float-abi" to communicate FP mode to target; __SOFTFP__ is set correctly now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91755 91177308-0d34-0410-b5e6-96231b3b80d8
* Targets: Allow CreateTargetInfo to mutate the target features.Daniel Dunbar2009-12-19
| | | | | | | - 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91753 91177308-0d34-0410-b5e6-96231b3b80d8
* Add f80 entry for windows targetsAnton Korobeynikov2009-12-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91746 91177308-0d34-0410-b5e6-96231b3b80d8
* Use proper alignment for i16/i32 on msp430. This fixes PR5815.Anton Korobeynikov2009-12-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91739 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM: Define __thumb2__ for V6T2 targets and only defineDaniel Dunbar2009-12-18
| | | | | | __USING_SJLJ_EXCEPTIONS__ on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91705 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM: Fix predefines (__ARM_ARCH_..., __REGISTER_PREFIX).Daniel Dunbar2009-12-18
| | | | | | | - This should be done leveraging the backend, but I'm a little refactored out. I'll fix it one day, I promise. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91700 91177308-0d34-0410-b5e6-96231b3b80d8
* Tweaks for PS3 target.John Thompson2009-12-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91685 91177308-0d34-0410-b5e6-96231b3b80d8
* Add SigAtomicType to TargetInfo, Needed for MSP and PIC Targets, Credit to ↵Edward O'Callaghan2009-11-21
| | | | | | Ken Dyck. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89520 91177308-0d34-0410-b5e6-96231b3b80d8
* Added preliminary support step for PS3John Thompson2009-11-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89362 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate TargetInfo::getDefaultLangOptions, this kind of logic is better doneDaniel Dunbar2009-11-17
| | | | | | in the driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89073 91177308-0d34-0410-b5e6-96231b3b80d8
* Move -fnext-runtime defaulting to driver (and change clang-cc default toDaniel Dunbar2009-11-17
| | | | | | -fnext-runtime), instead of using getDefaultLangOptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89058 91177308-0d34-0410-b5e6-96231b3b80d8
* Move -fms-extensions defaulting to driver, instead of using ↵Daniel Dunbar2009-11-17
| | | | | | getDefaultLangOptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89057 91177308-0d34-0410-b5e6-96231b3b80d8
* Move char-is-signed defaulting to driver, instead of usingDaniel Dunbar2009-11-17
| | | | | | getDefaultLangOptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89053 91177308-0d34-0410-b5e6-96231b3b80d8
* Add MIPS support to Triple for Linux and the PSP. Credit to Bruno Cardoso Lopes.Edward O'Callaghan2009-11-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88850 91177308-0d34-0410-b5e6-96231b3b80d8
* Add TargetOptions and use it when constructing targets.Daniel Dunbar2009-11-15
| | | | | | | | - This ended up being hard to factor, sorry for the large diff. - Some post-commit cleanup to come. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88833 91177308-0d34-0410-b5e6-96231b3b80d8
* do not store wchar/char16/char32/intmax width/alignment infoChris Lattner2009-11-12
| | | | | | | | | into TargetInfo, just derive this based on the underlying type. This prevents them from getting out of synch, patch by Ken Dyck! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86976 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplifiy target feature handling by coalescing all the logic intoDaniel Dunbar2009-11-11
| | | | | | InitializeCompileOptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86826 91177308-0d34-0410-b5e6-96231b3b80d8
* teach the various targets what native integer types they have.Chris Lattner2009-11-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86395 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a preprocessor define for adding a "near" section attribute for allowing Sanjiv Gupta2009-10-24
| | | | | | | objects to be placed at shared memory. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85007 91177308-0d34-0410-b5e6-96231b3b80d8
* The AuroraUX toolchain has conflicting wchar_t between the system stdlib.h ↵Edward O'Callaghan2009-10-18
| | | | | | header and the clang stddef.h header where clang was defining as int where we use long. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84416 91177308-0d34-0410-b5e6-96231b3b80d8
* Disallow arbitrary custom inline asm constraints for msp430.Anton Korobeynikov2009-10-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84219 91177308-0d34-0410-b5e6-96231b3b80d8
* fix some cfstring related issues: Chris Lattner2009-10-14
| | | | | | | | | | | | | | | 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84077 91177308-0d34-0410-b5e6-96231b3b80d8
* "Someone pointed out that in my previous Targets.cpp patch I didn'tMike Stump2009-10-08
| | | | | | | | handle the long size difference for one of the Windows targets." Patch by John Thompson. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83592 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle Eli remark on mingw __declspec macro definitionCedric Venet2009-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82894 91177308-0d34-0410-b5e6-96231b3b80d8
* Factor Windows target into VS, MinGW and Cygwin variants.Daniel Dunbar2009-09-23
| | | | | | - Patch by John Thompson! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82621 91177308-0d34-0410-b5e6-96231b3b80d8
* implement support for __builtin_eh_return_data_regno on x86-32 and x86-64.Chris Lattner2009-09-23
| | | | | | | This implements PR5034 and rdar://6836445. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82614 91177308-0d34-0410-b5e6-96231b3b80d8
* Reconcile Clang/ARM target data string with llvm-gcc (module eabi weirdness).Daniel Dunbar2009-09-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82578 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo.Mike Stump2009-09-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82164 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM: Incremental improvement to preprocessor defines.Daniel Dunbar2009-09-17
| | | | | | - Based on patch by Shantonu. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82147 91177308-0d34-0410-b5e6-96231b3b80d8
* Add ARM register names and aliases.Daniel Dunbar2009-09-17
| | | | | | | | - Patch by Shantonu Sen! <rdar://problem/6922650> clang doesn't know about ARM registers for inline asm clobber lists git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82132 91177308-0d34-0410-b5e6-96231b3b80d8
* fix some ppc register name issues, patch by Richard Pennington!Chris Lattner2009-09-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82009 91177308-0d34-0410-b5e6-96231b3b80d8
* Add TargetInfo::getABI(), and base ARM APCS vs AAPCS choice on that.Daniel Dunbar2009-09-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81735 91177308-0d34-0410-b5e6-96231b3b80d8