| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
| |
Mostly trailing whitespace so that me editor nuking it doesn't muddy the
waters of subsequent commits that do change functionality.
Also nukes a stray statement that was harmless but redundant that
I introduced in r130666.
llvm-svn: 130667
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a bitfield in the base class. DREs weren't using any bits here past the
normal Expr bits, so we have plenty of room. This makes the common case
of getting a Decl out of a DRE no longer need to do any masking etc.
Also, while here, clean up code to use the accessor methods rather than
directly poking these bits, and provide a nice comment for DREs that
includes the information previously attached to the bits going into the
pointer union.
No functionality changed here, but DREs should be a tad faster now.
llvm-svn: 130666
|
| |
|
|
|
|
| |
some code.
llvm-svn: 130665
|
| |
|
|
|
|
|
| |
Also fix several misspellings in my comments. I cannot spell, and cannot
even be trusted to ask my editor how to spell apparently.
llvm-svn: 130662
|
| |
|
|
|
|
| |
problem reported on cfe-dev.
llvm-svn: 130661
|
| |
|
|
| |
llvm-svn: 130660
|
| |
|
|
| |
llvm-svn: 130659
|
| |
|
|
| |
llvm-svn: 130658
|
| |
|
|
|
|
|
|
|
| |
instead of the versions of individual libraries.
autoconf: Add checking ELM_Callback decl for mingw32 and mingw-w64.
cmake/config-ix.cmake: Add checking ELM_Callback decl for win32.
llvm-svn: 130657
|
| |
|
|
|
|
|
|
|
|
|
| |
3 lines of code and improve a bunch of information in the libclang view
of the code.
Updates the two tests that exercise this with the new data, checking
that each new source location actually points back to the declared
template parameter.
llvm-svn: 130656
|
| |
|
|
|
|
| |
already present in the AST, and I added the ones that weren't.
llvm-svn: 130655
|
| |
|
|
|
|
| |
duplicating its logic.
llvm-svn: 130654
|
| |
|
|
|
|
|
|
|
|
| |
instead of 'int'.
The Embarcadero spec says 'unsigned int', not 'int'. That's what
'size_t' is on Windows, but for Clang using a 'size_t' that can be
larger than int seems more appropriate.
llvm-svn: 130653
|
| |
|
|
|
|
| |
fact 'bool'.
llvm-svn: 130652
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
functions already precluded dependent types from reaching them.
Also change one of the callers to not error when a trait is applied to
a dependent type. This is a perfectly reasonable pattern, and both Unary
and Binary type traits already support dependent types (by populating
the AST with a nonce value).
Remove the actual diagnostic, since these aren't errors.
llvm-svn: 130651
|
| |
|
|
| |
llvm-svn: 130650
|
| |
|
|
|
|
| |
Completely remove a switch which selected between the same two types.
llvm-svn: 130649
|
| |
|
|
|
|
|
|
|
| |
a switch with any default case. This both warns when an enumerator is
missing and asserts if a value sneaks through despite the warning.
While in there fix a bunch of coding style issues with this code.
llvm-svn: 130648
|
| |
|
|
|
|
|
| |
adding an unreachable annotation. Remarkably this one was already
enumarting every trait.
llvm-svn: 130647
|
| |
|
|
|
|
|
|
|
| |
enumerators.
Also remove a default that led to llvm_unreachable to make another
switch warn if any enumerators fail to be covered.
llvm-svn: 130646
|
| |
|
|
|
|
|
|
| |
over type traits.
Add the missing trait from this switch that Clang's warning uncovered.
llvm-svn: 130645
|
| |
|
|
|
|
|
|
| |
case returning a value.
Silences a GCC warning.
llvm-svn: 130644
|
| |
|
|
|
|
|
|
|
|
|
| |
As might be surmised from their names, these aren't type traits, they're
expression traits. Amazingly enough, they're expression traits that we
have, and fully implement. These "type" traits are even parsed from the
same tokens as the expression traits. Luckily, the parser only tried the
expression trait parsing for these tokens, so this was all just a pile
of dead code.
llvm-svn: 130643
|
| |
|
|
|
|
|
|
|
|
| |
As far as I know, this implementation is complete but might be missing a
few optimizations. Exceptions and virtual bases are handled correctly.
Because I'm an optimist, the web page has appropriately been updated. If
I'm wrong, feel free to downgrade its support categories.
llvm-svn: 130642
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Moved the completeness checking routine above the evaluation routine
so the reader sees that we do in fact check for complete types when
necessary.
2) Remove the FIXME comment about not doing this.
3) Make the arguments to the evaluate function agree in order with those
to the completeness checking function.
4) Completely specify the enumerators for the completeness checking
function rather than relying on a default.
5) Remove a check for the Borland language to only require complete
types in a few places. Borland's own documentation doesn't agree with
this: some of the previously unspecified traits *do* require
a complete type, some don't.
6) Correctly split the traits which do not require complete types from
those that do, clarifying comments and citations to the standard or
other documentation where relevant.
llvm-svn: 130641
|
| |
|
|
|
|
| |
likely a result of copy/paste.
llvm-svn: 130640
|
| |
|
|
|
|
|
|
|
| |
traits where possible. For the rest, group them and add some
documentation regarding their origins.
No functionality change intended.
llvm-svn: 130639
|
| |
|
|
|
|
| |
a single pattern for implementing each.
llvm-svn: 130638
|
| |
|
|
|
|
| |
-fno-dwarf2-cfi-asm. Implement the same behavior.
llvm-svn: 130637
|
| |
|
|
|
|
| |
unsigned with the i686-pc-win32 triple.
llvm-svn: 130636
|
| |
|
|
| |
llvm-svn: 130635
|
| |
|
|
|
|
|
|
|
|
| |
for all symbol differences and can drop the old EmitPCRelSymbolValue
method.
This also make getExprForFDESymbol on ELF equal to the one on MachO, and it
can be made non-virtual.
llvm-svn: 130634
|
| |
|
|
|
|
| |
stop considering whether I can compress them. :)
llvm-svn: 130633
|
| |
|
|
|
|
|
| |
devirtualize Decl (because bits can't get laid out in base
classes if the base is POD).
llvm-svn: 130632
|
| |
|
|
| |
llvm-svn: 130631
|
| |
|
|
|
|
|
|
|
|
|
| |
SubstTemplateTypeParmType to be 'getIdentifier' instead of 'getName' as
it returns an identifier. This makes them more consistent with the
NamedDecl interface.
Also, switch back to using this interface to acquire the indentifier in
TypePrinter.cpp. I missed this in r130628.
llvm-svn: 130629
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
accompanying fixes to make it work today.
The core of this patch is to provide a link from a TemplateTypeParmType
back to the TemplateTypeParmDecl node which declared it. This in turn
provides much more precise information about the type, where it came
from, and how it functions for AST consumers.
To make the patch work almost a year after its first attempt, it needed
serialization support, and it now retains the old getName() interface.
Finally, it requires us to not attempt to instantiate the type in an
unsupported friend decl -- specifically those coming from template
friend decls but which refer to a specific type through a dependent
name.
A cleaner representation of the last item would be to build
FriendTemplateDecl nodes for these, storing their template parameters
etc, and to perform proper instantation of them like any other template
declaration. They can still be flagged as unsupported for the purpose of
access checking, etc.
This passed an asserts-enabled bootstrap for me, and the reduced test
case mentioned in the original review thread no longer causes issues,
likely fixed at somewhere amidst the 24k revisions that have elapsed.
llvm-svn: 130628
|
| |
|
|
|
|
| |
less agressive about disabling cfi on linux :-(
llvm-svn: 130627
|
| |
|
|
|
|
| |
less agressive about disabling cfi on linux :-(
llvm-svn: 130626
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
after folding ADD32ri to ADD32mi, so don't do that.
This only happens when the greedy register allocator gets itself in trouble and
spills %vreg9 here:
16L %vreg9<def> = MOVPC32r 0, %ESP<imp-use>; GR32:%vreg9
48L %vreg9<def> = ADD32ri %vreg9, <es:_GLOBAL_OFFSET_TABLE_>[TF=1], %EFLAGS<imp-def,dead>; GR32:%vreg9
That should never happen, the live range should be split instead.
llvm-svn: 130625
|
| |
|
|
| |
llvm-svn: 130624
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently the output should be almost identical to the one produced by CodeGen
to make the transition easier.
The only two differences I know of are:
* Some files get an extra advance loc of size 0. This will be fixed when
relaxations are enabled.
* The optimization of declaring an EH symbol as an external variable is not
implemented. This is a subset of adding the nounwind attribute, so we if really
this at -O0 we should probably do it at the IL level.
llvm-svn: 130623
|
| |
|
|
| |
llvm-svn: 130622
|
| |
|
|
| |
llvm-svn: 130621
|
| |
|
|
|
|
| |
wchar_t is an unsigned type.
llvm-svn: 130620
|
| |
|
|
|
|
|
|
| |
range covers the entire block.
The live range can't be terminated at a random instruction.
llvm-svn: 130619
|
| |
|
|
|
|
| |
particular, make sure to handle WCHAR_MIN correctly.
llvm-svn: 130618
|
| |
|
|
| |
llvm-svn: 130617
|
| |
|
|
| |
llvm-svn: 130616
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
urem or constant B.
This obviously helps a lot if the division would be turned into a libcall
(think i64 udiv on i386), but div is also one of the few remaining instructions
on modern CPUs that become more expensive when the bitwidth gets bigger.
This also helps register pressure on i386 when dividing chars, divb needs
two 8-bit parts of a 16 bit register as input where divl uses two registers.
int foo(unsigned char a) { return a/10; }
int bar(unsigned char a, unsigned char b) { return a/b; }
compiles into (x86_64)
_foo:
imull $205, %edi, %eax
shrl $11, %eax
ret
_bar:
movzbl %dil, %eax
divb %sil, %al
movzbl %al, %eax
ret
llvm-svn: 130615
|