| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
field to memcpy, memmove, and memset.
llvm-svn: 100305
|
|
|
|
| |
llvm-svn: 100200
|
|
|
|
|
|
| |
field to memcpy, memmove, and memset.
llvm-svn: 100193
|
|
|
|
| |
llvm-svn: 99949
|
|
|
|
|
|
| |
memmove, and memset
llvm-svn: 99930
|
|
|
|
|
|
|
|
| |
This introduces FunctionType::ExtInfo to hold the calling convention and the
noreturn attribute. The next patch will extend it to include the regparm
attribute and fix the bug.
llvm-svn: 99920
|
|
|
|
|
|
| |
VTableInfo class.
llvm-svn: 99250
|
|
|
|
|
|
|
|
| |
fixing up a few callers that thought they were propagating NoReturn
information but were in fact saying something about exception
specifications.
llvm-svn: 96766
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix some bugs with function-try-blocks and simplify normal try-block
code generation.
This implementation excludes a deleting destructor's call to
operator delete() from the function-try-block, which I believe
is correct but which I can't find straightforward support for at
a moment's glance.
llvm-svn: 96670
|
|
|
|
|
|
|
|
| |
calling them as subroutines. This triggers whenever the alias optimization
doesn't, i.e. when the dtor has linkonce linkage or there are virtual bases
or it's the deleting dtor.
llvm-svn: 96605
|
|
|
|
|
|
| |
change.
llvm-svn: 96564
|
|
|
|
|
|
|
|
| |
repeatedly reloading from an alloca. We still need to create the alloca
for debug info purposes (although we currently create it in all cases
because of some abstraction boundaries that're hard to break down).
llvm-svn: 96403
|
|
|
|
| |
llvm-svn: 96376
|
|
|
|
|
|
|
|
|
|
| |
At the moment the inlinehint attribute is ignored by the Inliner unless you
pass a -respect-inlinehint option. This will soon be the default.
The inlinehint attribute is set if the inline keyword is explicitly specified
on any declaration.
llvm-svn: 95623
|
|
|
|
| |
llvm-svn: 95525
|
|
|
|
|
|
|
|
|
|
|
|
| |
follows (as conservatively as possible) gcc's current behavior: attributes
written on return types that don't apply there are applied to the function
instead, etc. Only parse CC attributes as type attributes, not as decl attributes;
don't accepet noreturn as a decl attribute on ValueDecls, either (it still
needs to apply to other decls, like blocks). Consistently consume CC/noreturn
information throughout codegen; enforce this by removing their default values
in CodeGenTypes::getFunctionInfo().
llvm-svn: 95436
|
|
|
|
|
|
| |
BeginConditionalBranch/EndConditionalBranch.
llvm-svn: 95308
|
|
|
|
|
|
| |
some cases.
llvm-svn: 94341
|
|
|
|
|
|
| |
if it matches regular name.
llvm-svn: 93383
|
|
|
|
|
|
|
|
|
|
| |
"ASTContext::getTypeSize() / 8". Replace [u]int64_t variables with CharUnits
ones as appropriate.
Also rename RawType, fromRaw(), and getRaw() in CharUnits to QuantityType,
fromQuantity(), and getQuantity() for clarity.
llvm-svn: 93153
|
|
|
|
|
|
| |
aren't yet used in the ctors/dtors, but that will follow.
llvm-svn: 92409
|
|
|
|
|
|
| |
since the context is available in the Decl
llvm-svn: 91862
|
|
|
|
|
|
| |
instead of abort to improve codesize and codegen.
llvm-svn: 91374
|
|
|
|
| |
llvm-svn: 91341
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This implements a new flag -fcatch-undefined-behavior. The flag turns
on additional runtime checks for:
T a[I];
a[i] abort when i < 0 or i >= I.
Future stuff includes shifts by >= bitwidth amounts.
llvm-svn: 91198
|
|
|
|
| |
llvm-svn: 91041
|
|
|
|
| |
llvm-svn: 90998
|
|
|
|
| |
llvm-svn: 90940
|
|
|
|
| |
llvm-svn: 90856
|
|
|
|
| |
llvm-svn: 90817
|
|
|
|
| |
llvm-svn: 90622
|
|
|
|
|
|
|
| |
directly into the sret pointer. This is an optimization in C, but is required
for correctness in C++ for classes with a non-trivial copy constructor.
llvm-svn: 90526
|
|
|
|
|
|
|
|
|
|
|
| |
Highlights include:
Add a helper to generate __cxa_free_exception and _ZSt9terminatev.
Add a region to handle EH object deallocation for ctor failures for throw.
Add a terminate handler for __cxa_end_catch.
A framework for adding cleanup actions for the exceptional edges only.
llvm-svn: 90305
|
|
|
|
|
|
| |
yet).
llvm-svn: 89835
|
|
|
|
| |
llvm-svn: 89467
|
|
|
|
| |
llvm-svn: 86256
|
|
|
|
|
|
| |
initializer it needs to be destroyed at the end of the constructor.
llvm-svn: 86230
|
|
|
|
| |
llvm-svn: 86222
|
|
|
|
|
|
| |
of array objects on block exit. Patch is by Anders Calrsson.
llvm-svn: 86032
|
|
|
|
|
|
|
|
| |
using the new LLVM support for this. This is temporarily hiding
behind horrible and ugly #ifdefs until the time when the optimizer
is stable (hopefully a week or so). Until then, lets make it "opt in" :)
llvm-svn: 85446
|
|
|
|
| |
llvm-svn: 85422
|
|
|
|
| |
llvm-svn: 84922
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. CGF now has fewer bytes of state (one pointer instead of a vector).
2. The generated code is determinstic, instead of getting labels in
'map order' based on pointer addresses.
3. Clang now emits one 'indirect goto switch' for each function, instead
of one for each indirect goto. This fixes an M*N = N^2 IR size issue
when there are lots of address-taken labels and lots of indirect gotos.
4. This also makes the default cause do something useful, reducing the
size of the jump table needed (by one).
llvm-svn: 83952
|
|
|
|
|
|
|
| |
for a null pointer. In other words, "&&foo != NULL" will always work out to
true.
llvm-svn: 83948
|
|
|
|
|
|
| |
more places in clang codegen now.
llvm-svn: 83947
|
|
|
|
|
|
| |
destructor body still calls the epilogue.
llvm-svn: 83397
|
|
|
|
|
|
|
|
|
|
|
| |
functions when they are explicitly declared, e.g., via a function
template specialization or explicit template instantiation
declaration. Don't try to synthesize bodies for the special member
functions in this case; rather, check whether we have an implicit
declaration and, if so, synthesize the appropriate function
body. Fixes PR5084.
llvm-svn: 83212
|
|
|
|
| |
llvm-svn: 83039
|
|
|
|
| |
llvm-svn: 83037
|
|
|
|
| |
llvm-svn: 82782
|