| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 44478
|
| |
|
|
| |
llvm-svn: 44477
|
| |
|
|
| |
llvm-svn: 44476
|
| |
|
|
|
|
|
|
| |
that are builtin and those that are aren't. This is a bunch
of API refactoring that will make this possible, but there is
no functionality change yet.
llvm-svn: 44473
|
| |
|
|
| |
llvm-svn: 44472
|
| |
|
|
|
|
|
| |
Modified serialization of IdentifierTable to self-register itself with
the Deserializer.
llvm-svn: 44471
|
| |
|
|
|
|
|
| |
information matching did not exactly match the underlying stream's scoping
information.
llvm-svn: 44470
|
| |
|
|
| |
llvm-svn: 44469
|
| |
|
|
| |
llvm-svn: 44468
|
| |
|
|
|
|
| |
extra load.
llvm-svn: 44467
|
| |
|
|
| |
llvm-svn: 44463
|
| |
|
|
|
|
| |
omitted. Handle this in a few more places.
llvm-svn: 44462
|
| |
|
|
| |
llvm-svn: 44460
|
| |
|
|
| |
llvm-svn: 44459
|
| |
|
|
| |
llvm-svn: 44458
|
| |
|
|
|
|
|
|
| |
attributes. While there, I noticed that not all
attribute methods returned a pointer-to-constant,
so I fixed that.
llvm-svn: 44457
|
| |
|
|
|
|
| |
by Seo Sanghyeon
llvm-svn: 44455
|
| |
|
|
| |
llvm-svn: 44454
|
| |
|
|
| |
llvm-svn: 44453
|
| |
|
|
|
|
| |
function parameters.
llvm-svn: 44452
|
| |
|
|
| |
llvm-svn: 44450
|
| |
|
|
| |
llvm-svn: 44449
|
| |
|
|
| |
llvm-svn: 44446
|
| |
|
|
|
|
|
| |
After a discussion with Ted, we both came to the conclusion that adding a "HandleTopLevelDeclaration" hook to ASConsumer is far more elegant. The default implementation of HandleTopLevelDeclaration will be responsible for iterating over the ScopedDecl (which has a chain of the decls:-).
TODO: Once Ted adds HandleTopLevelDeclaration, make sure TagDecls are chainged appropriately...
llvm-svn: 44445
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
be the new hook that ASTStreamer calls to feed top-level Decls to
ASTConsumers.
The difference between "HandleTopLevelDeclaration" and "HandleTopLevelDecl" is
that "HandleTopLevelDecl" is currently called by ASTStreamer for every
top-level declaration, including those that appear within a Decl chain. Using
the new interface, ASTStreamer would only call HandleTopLevelDeclaration for
Decls that appear that the beginning of a Decl chain (i.e., a group of related
decls).
To preserve the behavior that all subclasses of ASTConsumer currently expect,
the default implementation of HandleTopLevelDeclaration simply calls
HandleTopLevelDecl, and for decl chains it calls HandleTopLevelDecl for each
Decl* in a chain of Decls.
The advantage of this interface is that some subclasses of ASTConsumer only
really want the Decl chain, and not each individual Decl passed to them. This
extra level of indirection allows subclasses to override the default behavior
if they so desire.
llvm-svn: 44444
|
| |
|
|
| |
llvm-svn: 44443
|
| |
|
|
|
|
| |
type of the decl based on it.
llvm-svn: 44440
|
| |
|
|
|
|
| |
test suite.
llvm-svn: 44439
|
| |
|
|
| |
llvm-svn: 44438
|
| |
|
|
| |
llvm-svn: 44437
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in the middle of a split basic block, create a new live interval starting at
the def. This avoid artifically extending the live interval over a number of
cycles where it is dead. e.g.
bb1:
= vr1204 (use / kill) <= new interval starts and ends here.
...
...
vr1204 = (new def) <= start a new interval here.
= vr1204 (use)
llvm-svn: 44436
|
| |
|
|
| |
llvm-svn: 44435
|
| |
|
|
| |
llvm-svn: 44434
|
| |
|
|
| |
llvm-svn: 44433
|
| |
|
|
| |
llvm-svn: 44432
|
| |
|
|
|
|
| |
exponent but no decimal point.
llvm-svn: 44431
|
| |
|
|
|
|
|
| |
initialized with a value if they want, by specializing the
StringMapEntryInitializer class.
llvm-svn: 44430
|
| |
|
|
|
|
|
|
|
| |
ASTs
both before and after serialization/deserialization. If the CFGs between the pre-
and post- serialized/deserialized ASTs differ, the serialization has failed.
llvm-svn: 44429
|
| |
|
|
| |
llvm-svn: 44428
|
| |
|
|
| |
llvm-svn: 44427
|
| |
|
|
|
|
| |
Removed redundant test case.
llvm-svn: 44426
|
| |
|
|
|
|
|
|
|
| |
can be
represented exactly and inexactly by APFloats. For the former, we do not emit a
warning.
llvm-svn: 44425
|
| |
|
|
|
|
|
|
|
|
| |
floating-point literals that are represented exactly by the APFloat in
FloatingLiteral. For such literals, we do not emit a warning since such checks are
often performed in real code to see if a variable has changed from its original
value. This heuristic clearly can lead to false negatives, but the hope is it will
significantly reduce false positives to help make the compiler flag more useful.
llvm-svn: 44424
|
| |
|
|
|
|
|
|
| |
the APFloat representing the parsed literal can represent the literal value
exactly. This is useful when performing various semantic checks on the code,
and issuing appropriate warnings to users.
llvm-svn: 44423
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
NumericLiteralParser
converts a parsed literal into an APFloat. We are still performing a copy of the
string, which hopefully will be removed eventually for performance reasons. This
version now is at least safe.
Changed rounding in APFloat construction in NumericLiteralParser from rmTowardsZero
to rmNearestTiesToEven.
llvm-svn: 44422
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The following code...
typedef struct cssm_data {} CSSM_DATA, *CSSM_DATA_PTR;
struct Y { int A; };
struct X { int A; } D;
struct X E, F;
...now produces the following output...
> ../../Debug/bin/clang xx.c -ast-print
Read top-level tag decl: 'cssm_data'
typedef struct cssm_data CSSM_DATA;
typedef struct cssm_data *CSSM_DATA_PTR;
Read top-level tag decl: 'Y'
Read top-level tag decl: 'X'
Read top-level variable decl: 'D'
Read top-level variable decl: 'E'
Read top-level variable decl: 'F'
...which is much more accurate than the previous -ast-print output...
typedef struct cssm_data CSSM_DATA;
typedef struct cssm_data CSSM_DATA;
Read top-level variable decl: 'D'
Read top-level variable decl: 'E'
Read top-level variable decl: 'E'
llvm-svn: 44421
|
| |
|
|
| |
llvm-svn: 44418
|
| |
|
|
|
|
|
|
|
| |
a bug where the statement pretty-printer used iostreams but the AST printer
did not. This was an issue when dumping ASTs to something other than stderr.
Updated SerializationTest to use the new iostreams interface for the AST printer.
llvm-svn: 44417
|
| |
|
|
|
|
| |
test/Sema.
llvm-svn: 44416
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
unsigned char *llvm_cbe_X;
...
llvm_cbe_X = 0; *((void**)&llvm_cbe_X) = __builtin_stack_save();
instead of:
llvm_cbe_X = __builtin_stack_save();
See PR1809 for details.
llvm-svn: 44415
|