- Feb 17, 2009
-
-
Daniel Dunbar authored
llvm-svn: 64727
-
Chris Lattner authored
llvm-svn: 64725
-
Chris Lattner authored
possible future "data loss" warnings, and b) makes it intensely obvious to the user what the impl of these functions do in a ambiguity error. llvm-svn: 64724
-
Chris Lattner authored
llvm-svn: 64723
-
Chris Lattner authored
Now no candidates are printed because the 'notes' are in a system header. :( #include <tgmath-sofar.h> double foo2(short *x) { return acos(x); } t.c:10:10: error: no matching function for call to '__tg_acos'; candidates are: return acos(x); ^~~~ 1 diagnostic generated. llvm-svn: 64722
-
Chris Lattner authored
all the integer types other than char/short to avoid overload ambiguities. llvm-svn: 64721
-
Chris Lattner authored
produces really horrible diagnostics when overload ambiguities happen: t.c:10:10: error: call to '__tg_acos' is ambiguous; candidates are: return acos(x); ^~~~ In file included from t.c:1: /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ A possible fix is to just not use macros for this, which I'll probably go for, but it would be nice to emit the type at the call, so we know what we asked for! llvm-svn: 64720
-
Chris Lattner authored
instance in Sema be a pimpl. llvm-svn: 64718
-
Douglas Gregor authored
CXXRecordDecl that is used to represent class template specializations. These are canonical declarations that can refer to either an actual class template specialization in the code, e.g., template<> class vector<bool> { }; or to a template instantiation. However, neither of these features is actually implemented yet, so really we're just using (and uniqing) the declarations to make sure that, e.g., A<int> is a different type from A<float>. Note that we carefully distinguish between what the user wrote in the source code (e.g., "A<FLOAT>") and the semantic entity it represents (e.g., "A<float, int>"); the former is in the sugared Type, the latter is an actual Decl. llvm-svn: 64716
-
Chris Lattner authored
llvm-svn: 64712
-
Chris Lattner authored
llvm-svn: 64711
-
Chris Lattner authored
makes -emit-html do nice things for code like: #define FOO(X) y int FOO(4 ); highlighting the FOO instance as well as the ) on the next line properly. llvm-svn: 64710
-
Daniel Dunbar authored
llvm-svn: 64701
-
Daniel Dunbar authored
llvm-svn: 64700
-
- Feb 16, 2009
-
-
Anders Carlsson authored
llvm-svn: 64692
-
Fariborz Jahanian authored
nonfragile abi. llvm-svn: 64690
-
Daniel Dunbar authored
- Define pow[lf]?, sqrt[lf]? as builtins. - Add -fmath-errno option which binds to LangOptions.MathErrno - Add new builtin flag Builtin::Context::isConstWithoutErrno for functions which can be marked as const if errno isn't respected for math functions. Sema automatically marks these functions as const when they are defined, if MathErrno=0. - IRgen uses const attribute on sqrt and pow library functions to decide if it can use the llvm intrinsic. llvm-svn: 64689
-
Daniel Dunbar authored
Doug: please verify that it is expected that LastIdx can be less that NumInits. And perhaps add a comment so that Chris doesn't break your code. :) llvm-svn: 64688
-
Douglas Gregor authored
extensions). This caught a couple bugs in our test suite :) llvm-svn: 64686
-
Chris Lattner authored
llvm-svn: 64684
-
Chris Lattner authored
emit two volatile loads for: typedef __attribute__(( ext_vector_type(4) )) float float4; float test(volatile float4 *P) { return P->x+P->y; } llvm-svn: 64683
-
Chris Lattner authored
llvm-svn: 64681
-
Fariborz Jahanian authored
llvm-svn: 64680
-
Chris Lattner authored
We now pass all the deprecation tests in the objc.dg suite. llvm-svn: 64679
-
Douglas Gregor authored
llvm-svn: 64676
-
Daniel Dunbar authored
- Fix test case to not only have negative tests. llvm-svn: 64674
-
Chris Lattner authored
llvm-svn: 64673
-
Fariborz Jahanian authored
llvm-svn: 64672
-
Chris Lattner authored
llvm-svn: 64671
-
Chris Lattner authored
llvm-svn: 64670
-
Chris Lattner authored
dubious, but at least mark it as an invalid decl. llvm-svn: 64668
-
Chris Lattner authored
llvm-svn: 64667
-
Douglas Gregor authored
prototype, synthesize ParmVarDecls for prototype-less FunctionDecl. llvm-svn: 64666
-
Fariborz Jahanian authored
llvm-svn: 64660
-
Chris Lattner authored
whose declaration was declared as deprecated. llvm-svn: 64658
-
Fariborz Jahanian authored
the same. llvm-svn: 64657
-
Douglas Gregor authored
interface for ivars before assuming that this is an unresolved function name. Fixes <rdar://problem/6590445>. llvm-svn: 64653
-
Chris Lattner authored
llvm-svn: 64652
-
Chris Lattner authored
llvm-svn: 64651
-
Chris Lattner authored
llvm-svn: 64650
-