summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Clang/PNaCl: Improve test coverage for PNaClTargetInfo (type aligns), fixes ↵Ivan Krasin2011-08-291-0/+2
| | | | | | | | | | nits: - wrong alignment for double (it was 4, but 8 is desired), - added checks for _REENTRANT define, - fixed the issue that defines were not tested (because the check for inside #ifdef). llvm-svn: 138775
* PNaClTargetInfo: add __ELF__, _REENTRANT and _GNU_SOURCE defines and update ↵Ivan Krasin2011-08-251-0/+7
| | | | | | the test llvm-svn: 138607
* Follow up to r138470 (Add PNaCl TargetInfo). I've occasionally submitted ↵Ivan Krasin2011-08-241-1/+6
| | | | | | wrong patch. llvm-svn: 138489
* Add PNaCl TargetInfo.Ivan Krasin2011-08-241-0/+72
| | | | llvm-svn: 138470
* "-mavx" should also enable all other SSE levels.Bruno Cardoso Lopes2011-08-181-1/+2
| | | | llvm-svn: 137905
* Additional comments and whitespace.Chad Rosier2011-08-041-1/+2
| | | | llvm-svn: 136892
* Add partial support for using anonymous bitfields (e.g., int : 0) to enforce Chad Rosier2011-08-041-0/+10
| | | | | | | | | | | | | | | | alignment. This fixes cases where the anonymous bitfield is followed by a non-bitfield member. E.g., struct t4 { int foo : 1; long : 0; char bar; }; Part of rdar://9859156 llvm-svn: 136858
* Remove dead code flagged by GCC's -Wunused-but-set-variable.Benjamin Kramer2011-07-311-3/+0
| | | | llvm-svn: 136581
* Add support for the 'Q' arm memory constraint.Eric Christopher2011-07-291-1/+4
| | | | | | Fixes rdar://9866494 llvm-svn: 136524
* After further discussion it has been determined that alignof should report Chad Rosier2011-07-261-4/+2
| | | | | | the preferred alignment. Thus, revert r135934, r135935, and r135940. llvm-svn: 136062
* Allow target to specify about using minimum alignment vs preferred. Takes ↵Chad Rosier2011-07-251-2/+4
| | | | | | | | | care of FIXME: Override "preferred align" for double and long long for ARM apcs-gnu ABI. Also part of rdar://9802874 llvm-svn: 135940
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-12/+12
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* Define the _MIPS_SIM builtin macro on MIPS platforms. Patch by Robert Millan!Bruno Cardoso Lopes2011-07-211-1/+19
| | | | llvm-svn: 135675
* Refactor r135502 to avoid an empty if else condition, per Eric's suggestion ↵Chad Rosier2011-07-191-4/+8
| | | | | | (good call!). llvm-svn: 135510
* Clang asserts "Invalid environment!" when using -ccc-host-triple Chad Rosier2011-07-191-0/+4
| | | | | | | | arch-pc-win32-macho (e.g., x86_64-pc-win32-macho), which appears to be a false positive. rdar://9786307 llvm-svn: 135502
* simplifyChris Lattner2011-07-141-1/+1
| | | | llvm-svn: 135170
* StringMap::first() is about to start returning a StringRef, adapt.Chris Lattner2011-07-141-1/+2
| | | | llvm-svn: 135166
* Disable avx feature from corei7-avx, and use -mavx for now. Right now, if ↵Bruno Cardoso Lopes2011-07-111-1/+1
| | | | | | | | | -mavx is specified, 128 avx code is used and we're not sure yet if this the behavior we want (and if it does, some improvements are needed before relying on it). llvm-svn: 134939
* Enable "avx" feature, so it can be seen by llvmBruno Cardoso Lopes2011-07-111-1/+1
| | | | llvm-svn: 134935
* Change -mno-mmx to be more compatible with gcc. Specifically, -mno-mmx ↵Eli Friedman2011-07-081-37/+53
| | | | | | | | | | | | should not imply -mno-sse. Note that because we don't usually touch the MMX registers anyway, all -mno-mmx needs to do is tweak the x86-32 calling convention a little for vectors that look like MMX vectors, and prevent the definition of __MMX__. clang doesn't actually stop the user from using MMX inline asm operands or MMX builtins in -mno-mmx mode; as a QOI issue, it would be nice to diagnose, but I doubt it really matters much. <rdar://problem/9694837> llvm-svn: 134770
* Fix a FIXME in clang ARM driver that was exposed as a bug with ARM backendEvan Cheng2011-07-081-11/+2
| | | | | | | | | | | | | change. Previously clang was passing the following feature strings to the ARM backend when CPU is cortex-a8: +neon,-vfp2,-vfp3 This used to work because -vfp2,-vfp3 had no effect after +neon. Now that the features are controlled by individual bits (with implied hierarchy), the net effect is all three features will be turned off. llvm-svn: 134691
* Fix a typo in the fpsr register and add the fpcr register.Eric Christopher2011-07-071-5/+5
| | | | | | Fixes PR10299 and rdar://9740322 llvm-svn: 134654
* FreeBSD gets FreeBSD target, just mipsel.Joerg Sonnenberger2011-07-071-1/+1
| | | | llvm-svn: 134619
* Fix C&P errorJoerg Sonnenberger2011-07-061-1/+1
| | | | llvm-svn: 134490
* Remove unused member of Builtin::Info.Eli Friedman2011-07-051-8/+8
| | | | llvm-svn: 134443
* Hook up mipsel-netbsd and mipsel-freebsd for OS specific handling.Joerg Sonnenberger2011-07-051-4/+11
| | | | llvm-svn: 134425
* Use OS-specific configuration for mips-netbsd and mips-freebsd.Joerg Sonnenberger2011-07-051-4/+11
| | | | llvm-svn: 134422
* Don't define _BIG_ENDIAN for NetBSD/PowerPC.Joerg Sonnenberger2011-07-051-1/+2
| | | | llvm-svn: 134411
* Fix indentationJoerg Sonnenberger2011-07-051-3/+3
| | | | llvm-svn: 134410
* Add explicit default case for -Wswitch-enum.Joerg Sonnenberger2011-07-041-0/+2
| | | | llvm-svn: 134399
* Use switch(os) style consistently. Add a bunch of NetBSD branches.Joerg Sonnenberger2011-07-041-10/+27
| | | | llvm-svn: 134393
* On PowerPC, both FreeBSD and NetBSD use ints for (s)size_tJoerg Sonnenberger2011-07-041-1/+5
| | | | llvm-svn: 134392
* Update for llvm commit r134291.Eric Christopher2011-07-021-1/+2
| | | | | | Fixes rdar://9714064 llvm-svn: 134292
* Add initial *-*-rtems* target, from Joel SherrillDouglas Gregor2011-07-011-0/+73
| | | | llvm-svn: 134283
* Use preferred 64-bit alignment for i64 & f64 for Thumb targets. Radar 9695134.Bob Wilson2011-06-291-1/+1
| | | | llvm-svn: 134070
* Move additional register names to their own lookup, separate fromEric Christopher2011-06-211-13/+17
| | | | | | | | register aliases. Fixes unnecessary renames of clobbers. Fixes part of rdar://9425559 llvm-svn: 133485
* As a hopefully temporary workaround for a header mistake, treatJohn McCall2011-06-171-0/+1
| | | | | | __bridge_retain as a synonym for __bridge_retained. llvm-svn: 133295
* Add some more memory constraints for ARM.Eric Christopher2011-06-171-0/+6
| | | | | | Part of rdar://9197685 llvm-svn: 133225
* On ARM make sure that we continue translating 'p' to 'r' for theEric Christopher2011-06-171-0/+3
| | | | | | | | constraints. rdar://9618597 llvm-svn: 133222
* Stylistic fix: move virtual keyword before return type.Evan Cheng2011-06-161-2/+1
| | | | llvm-svn: 133181
* Unconditionally #define the ARC ownership qualifiers, instead of #definingJohn McCall2011-06-161-8/+1
| | | | | | them only on Darwin tool chains. llvm-svn: 133112
* Automatic Reference Counting.John McCall2011-06-151-8/+28
| | | | | | | | | | Language-design credit goes to a lot of people, but I particularly want to single out Blaine Garst and Patrick Beard for their contributions. Compiler implementation credit goes to Argyrios, Doug, Fariborz, and myself, in no particular order. llvm-svn: 133103
* Followup to 132737; make two-character string explicit, add someStuart Hastings2011-06-081-1/+1
| | | | | | comments. rdar://problem/9037836 llvm-svn: 132752
* Clang support for ARM Uv/Uy/Uq inline-asm constraints.Stuart Hastings2011-06-071-4/+26
| | | | | | rdar://problem/9037836 llvm-svn: 132737
* Add stuff for o32 ABI conformance.Akira Hatanaka2011-06-021-2/+4
| | | | llvm-svn: 132443
* sandybridge is now called corei7-avxBenjamin Kramer2011-05-201-1/+1
| | | | llvm-svn: 131729
* Define __ARM_NEON__ in both ARM and Thumb modes. Radar 9431992.Bob Wilson2011-05-131-3/+3
| | | | llvm-svn: 131301
* __builtin_va_list is void* on ARM, not char*.John McCall2011-05-091-1/+1
| | | | | | rdar://problem/9391966 llvm-svn: 131080
* Revert r130750, "Make the mno flags match GCC. Patch by Alexander Best!", it ↵Daniel Dunbar2011-05-031-45/+29
| | | | | | breaks tests. llvm-svn: 130753
* Make the mno flags match GCC. Patch by Alexander Best!Michael J. Spencer2011-05-031-29/+45
| | | | llvm-svn: 130750
OpenPOWER on IntegriCloud