| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
- Make sure ObjCIvarDecl propagates the bitfield width.
- RewriteObjC::SynthesizeIvarOffsetComputation(): Avoid using the __OFFSETOF__ mumbo jumbo for bitfields (since it isn't legal C). This fixes <rdar://problem/5986079> clang ObjC rewriter: bitfields and ivar access don't mix.
llvm-svn: 53694
|
| |
|
|
|
|
| |
Casts from pointers remain a problem. :)
llvm-svn: 53501
|
| |
|
|
| |
llvm-svn: 53500
|
| |
|
|
|
|
| |
code. Switch to Eli's getIntWidth method.
llvm-svn: 53499
|
| |
|
|
|
|
| |
diagnosic+loc info for i-c-e evaluation.
llvm-svn: 53490
|
| |
|
|
| |
llvm-svn: 53477
|
| |
|
|
| |
llvm-svn: 53475
|
| |
|
|
|
|
| |
comparison has the right width.
llvm-svn: 53469
|
| |
|
|
| |
llvm-svn: 53468
|
| |
|
|
| |
llvm-svn: 53467
|
| |
|
|
|
|
| |
Add some accessors to APValue.
llvm-svn: 53465
|
| |
|
|
| |
llvm-svn: 53463
|
| |
|
|
|
|
| |
"adds support (de)serialization (from)to (in memory) buffer."
llvm-svn: 53425
|
| |
|
|
| |
llvm-svn: 53248
|
| |
|
|
| |
llvm-svn: 53238
|
| |
|
|
| |
llvm-svn: 53235
|
| |
|
|
| |
llvm-svn: 53234
|
| |
|
|
| |
llvm-svn: 53233
|
| |
|
|
| |
llvm-svn: 53222
|
| |
|
|
|
|
| |
binary and unary operators.
llvm-svn: 53221
|
| |
|
|
| |
llvm-svn: 53219
|
| |
|
|
|
|
| |
also fix the correspondent test (it was expecting more errors than it should. please confirm my fix is correct (at least gcc agrees with me)
llvm-svn: 53174
|
| |
|
|
| |
llvm-svn: 53074
|
| |
|
|
| |
llvm-svn: 52956
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) add a new ASTContext::getFloatTypeSemantics method.
2) Use it from SemaExpr.cpp, CodeGenTypes.cpp and other places.
3) Change the TargetInfo.h get*Format methods to return their
fltSemantics byref instead of by pointer.
4) Change CodeGenFunction::EmitBuiltinExpr to allow builtins which
sometimes expand specially and othertimes fall back to libm.
5) Add support for __builtin_nan("") to codegen, cases that don't pass
in an empty string are currently lowered to libm calls.
6) Fix codegen of __builtin_infl.
llvm-svn: 52914
|
| |
|
|
|
|
|
|
| |
integers which have the same width and different signedness work
correctly. (The testcase in PR2501 uses a comparison between long and
unsigned int).
llvm-svn: 52853
|
| |
|
|
|
|
| |
of receiver information.
llvm-svn: 52679
|
| |
|
|
|
|
| |
contain the ObjCInterfaceDecl* of the target class if it was available when the ObjCMessageExpr object was constructed. The original interfaces of the class has been preserved (requiring no functionality changes from clients), but now a "getClasSInfo" method returns both the ObjCInterfaceDecl* and IdentifierInfo* of the target class.
llvm-svn: 52676
|
| |
|
|
| |
llvm-svn: 52581
|
| |
|
|
|
|
| |
Patch by David Chisnall with objc rewriter and stmtdumper updates from me.
llvm-svn: 52580
|
| |
|
|
|
|
| |
child to parents.
llvm-svn: 52553
|
| |
|
|
|
|
| |
Patch by David Chisnall!
llvm-svn: 52422
|
| |
|
|
|
|
| |
Fix indentation of class declarations in ExprCXX.h
llvm-svn: 52380
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
clang as a Release build.
The big change is that all AST nodes (subclasses of Stmt) whose children are
Expr* store their children as Stmt* or arrays of Stmt*. This is to remove
strict-aliasing warnings when using StmtIterator. None of the interfaces of any
of the classes have changed (except those with arg_iterators, see below), as the
accessor methods introduce the needed casts (via cast<>). While this extra
casting may seem cumbersome, it actually adds some important sanity checks
throughout the codebase, as clients using StmtIterator can potentially overwrite
children that are expected to be Expr* with Stmt* (that aren't Expr*). The casts
provide extra sanity checks that are operational in debug builds to catch
invariant violations such as these.
For classes that have arg_iterators (e.g., CallExpr), the definition of
arg_iterator has been replaced. Instead of it being Expr**, it is an actual
class (called ExprIterator) that wraps a Stmt**, and provides the necessary
operators for iteration. The nice thing about this class is that it also uses
cast<> to type-checking, which introduces extra sanity checks throughout the
codebase that are useful for debugging.
A few of the CodeGen functions that use arg_iterator (especially from
OverloadExpr) have been modified to take begin and end iterators instead of a
base Expr** and the number of arguments. This matches more with the abstraction
of iteration. This still needs to be cleaned up a little bit, as clients expect
that ExprIterator is a RandomAccessIterator (which we may or may not wish to
allow for efficiency of representation).
This is a fairly large patch. It passes the tests (except CodeGen/bitfield.c,
which was already broken) on both a Debug and Release build, but it should
obviously be reviewed.
llvm-svn: 52378
|
| |
|
|
| |
llvm-svn: 52376
|
| |
|
|
| |
llvm-svn: 52375
|
| |
|
|
| |
llvm-svn: 52227
|
| |
|
|
|
|
|
| |
-ScopedDecls get chained to their DeclContext.
-DeclContext's DeclChain replaces FunctionDecl's DeclChain and EnumDecl's ElementList.
llvm-svn: 52164
|
| |
|
|
| |
llvm-svn: 52161
|
| |
|
|
|
|
|
|
|
| |
Added TagKind enum.
Added getTagKind() method.
Added convenience methods: isEnum(), isStruct(), isUnion(), isClass().
-RecordDecl/CXXRecordDecl::Create() accept a TagKind enum instead of a DeclKind one.
llvm-svn: 52160
|
| |
|
|
| |
llvm-svn: 52155
|
| |
|
|
|
|
| |
Patch by Mike Stump!
llvm-svn: 52081
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
long double X() { return 1.0L; }
as:
long double X()
(CompoundStmt 0xb06a00 <t.c:2:17, col:32>
(ReturnStmt 0xb068d0 <col:19, col:26>
(FloatingLiteral 0xb02cf0 <col:26> 'long double' 1.000000)))
llvm-svn: 52080
|
| |
|
|
| |
llvm-svn: 52075
|
| |
|
|
| |
llvm-svn: 52063
|
| |
|
|
|
|
| |
its memory and the memory of the Decls it owns.
llvm-svn: 52059
|
| |
|
|
|
|
| |
reclaim its memory and the memory of the Decls it owns.
llvm-svn: 52055
|
| |
|
|
|
|
|
| |
ObjCPropertyDecls, have TranslationUnit destroy ObjCPropertyDecls. This is a
horrible hack, and must be removed eventually.
llvm-svn: 52051
|
| |
|
|
|
|
|
|
| |
have Destroy methods of ObjcMethodDecl and ObjCInterfaceDecl which recursively
destroy their owned Decls and Stmts. There are a few cases where it is not
clear what to do (FIXMEs included in the patch).
llvm-svn: 52050
|
| |
|
|
| |
llvm-svn: 52035
|