- Apr 15, 2011
-
-
Chris Lattner authored
Luis Felipe Strano Moraes! llvm-svn: 129559
-
- Mar 23, 2011
-
-
Douglas Gregor authored
which versions of an OS provide a certain facility. For example, void foo() __attribute__((availability(macosx,introduced=10.2,deprecated=10.4,obsoleted=10.6))); says that the function "foo" was introduced in 10.2, deprecated in 10.4, and completely obsoleted in 10.6. This attribute ties in with the deployment targets (e.g., -mmacosx-version-min=10.1 specifies that we want to deploy back to Mac OS X 10.1). There are several concrete behaviors that this attribute enables, as illustrated with the function foo() above: - If we choose a deployment target >= Mac OS X 10.4, uses of "foo" will result in a deprecation warning, as if we had placed attribute((deprecated)) on it (but with a better diagnostic) - If we choose a deployment target >= Mac OS X 10.6, uses of "foo" will result in an "unavailable" warning (in C)/error (in C++), as if we had placed attribute((unavailable)) on it - If we choose a deployment target prior to 10.2, foo() is weak-imported (if it is a kind of entity that can be weak imported), as if we had placed the weak_import attribute on it. Naturally, there can be multiple availability attributes on a declaration, for different platforms; only the current platform matters when checking availability attributes. The only platforms this attribute currently works for are "ios" and "macosx", since we already have -mxxxx-version-min flags for them and we have experience there with macro tricks translating down to the deprecated/unavailable/weak_import attributes. The end goal is to open this up to other platforms, and even extension to other "platforms" that are really libraries (say, through a #pragma clang define_system), but that hasn't yet been designed and we may want to shake out more issues with this narrower problem first. Addresses <rdar://problem/6690412>. As a drive-by bug-fix, if an entity is both deprecated and unavailable, we only emit the "unavailable" diagnostic. llvm-svn: 128127
-
- Mar 18, 2011
-
-
Peter Collingbourne authored
add support for the OpenCL __private, __local, __constant and __global address spaces, as well as the __read_only, _read_write and __write_only image access specifiers. Patch originally by ARM; language-specific address space support by myself. llvm-svn: 127915
-
- Feb 10, 2011
-
-
Roman Divacky authored
llvm-svn: 125282
-
- Jan 06, 2011
-
-
Roman Divacky authored
Fix the width and align of bool type on Darwin to be 32bits while keeping it 8 everywhere else. Change the definition of va_list to default to SV4 ABI one and let darwin subtarget override this. Both changes submitted by Nathan Whitehorn and reviewed by Rafael Espindola. llvm-svn: 122956
-
- Dec 26, 2010
-
-
Chris Lattner authored
16-bits in size. Implement this by splitting WChar into two enums, like we have for char. This fixes a miscompmilation of XULRunner, PR8856. llvm-svn: 122558
-
- Dec 19, 2010
-
-
Nick Lewycky authored
llvm-svn: 122194
-
- Nov 03, 2010
-
-
Anders Carlsson authored
When setting a tied check if it's already tied. If it's tied to another constraint it's invalid. Fixes PR3905. llvm-svn: 118146
-
Anders Carlsson authored
llvm-svn: 118145
-
- Oct 18, 2010
-
-
Michael J. Spencer authored
llvm-svn: 116699
-
- Sep 22, 2010
-
-
John Thompson authored
llvm-svn: 114490
-
- Sep 18, 2010
-
-
John Thompson authored
Added '|' delimiter to separate inline asm multiple alternative constraints for Clang side of support. llvm-svn: 114253
-
- Sep 07, 2010
-
-
Dale Johannesen authored
Allow '<' and '>' as constraints for input or output. llvm-svn: 113246
-
- Aug 22, 2010
-
-
John McCall authored
it deserves its own enumerator. Obviously the implementations should closely follow the Itanium ABI except in cases of divergence. llvm-svn: 111749
-
- Aug 12, 2010
-
-
Eli Friedman authored
llvm-svn: 110870
-
- Aug 11, 2010
-
-
John Thompson authored
llvm-svn: 110764
-
- Aug 10, 2010
-
-
John Thompson authored
llvm-svn: 110706
-
- Jul 15, 2010
-
-
Daniel Dunbar authored
whether to use objc_msgSend_fpret; the choice is target dependent, not Obj-C ABI dependent. - <rdar://problem/8139758> arm objc _objc_msgSend_fpret bug llvm-svn: 108379
-
- Jul 10, 2010
-
-
John Thompson authored
llvm-svn: 108028
-
- Jun 05, 2010
-
-
Rafael Espindola authored
llvm-svn: 105500
-
- May 27, 2010
-
-
Daniel Dunbar authored
llvm-svn: 104789
-
- Apr 23, 2010
-
-
Chris Lattner authored
variants. This fixes neon inline asm which my patch for PR6780 broke. llvm-svn: 102181
-
- Apr 15, 2010
-
-
Daniel Dunbar authored
llvm-svn: 101370
-
Daniel Dunbar authored
llvm-svn: 101369
-
Daniel Dunbar authored
- Used to determine whether the alignment of the type in a bit-field is respected when laying out structures. The default is true, targets can override this as needed. - This is designed to correspond to the PCC_BITFIELD_TYPE_MATTERS macro in gcc. The AST/Sema implementation only affects one line, unless I have forgotten something. I'd appreciate further review. - IRgen still needs to be updated to fully support this (which is effectively PR5591). llvm-svn: 101356
-
- Jan 30, 2010
-
-
Anders Carlsson authored
llvm-svn: 94917
-
- Dec 16, 2009
-
-
Nuno Lopes authored
llvm-svn: 91540
-
- Nov 21, 2009
-
-
Edward O'Callaghan authored
llvm-svn: 89520
-
- Nov 12, 2009
-
-
Chris Lattner authored
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
-
- Nov 07, 2009
-
-
Chris Lattner authored
llvm-svn: 86395
-
- Nov 05, 2009
-
-
John Thompson authored
llvm-svn: 86183
-
Chris Lattner authored
llvm-svn: 86177
-
John Thompson authored
llvm-svn: 86167
-
- Oct 25, 2009
-
-
Chris Lattner authored
llvm-svn: 85076
-
- Oct 21, 2009
-
-
Chris Lattner authored
patch by Ken Dyck! llvm-svn: 84746
-
Chris Lattner authored
llvm-svn: 84740
-
- Oct 13, 2009
-
-
Chris Lattner authored
previously we only recognized it on inputs. llvm-svn: 83939
-
- Sep 09, 2009
-
-
Mike Stump authored
llvm-svn: 81346
-
- Jul 14, 2009
-
-
Alisdair Meredith authored
llvm-svn: 75622
-
- Jul 01, 2009
-
-
Eli Friedman authored
Note that I'm guessing that *BSD and Solaris do the same thing as Linux here, but it's quite possible I'm wrong; if the following testcase gives an error on x86-64 with gcc for any of those operating systems, please tell me: #include <stdint.h> int64_t x; long x; llvm-svn: 74583
-