Jakob Stoklund Olesen
b057cf8146
Delete unused function.
...
llvm-svn: 118743
2010-11-10 23:56:02 +00:00
Jakob Stoklund Olesen
3cb87f4c31
No need to add liveness that's already there.
...
llvm-svn: 118742
2010-11-10 23:56:00 +00:00
Jakob Stoklund Olesen
868dd4e66a
Hook up AliasAnalysis in InlineSpiller. This is used for rematerializing
...
constant loads.
llvm-svn: 118741
2010-11-10 23:55:56 +00:00
Chris Lattner
3bb7aab0b0
add a note about inline asm compatibility.
...
llvm-svn: 118740
2010-11-10 23:51:50 +00:00
Johnny Chen
5d6c464f46
Some rewordings of the assert messages for process stopped due to breakpoint.
...
llvm-svn: 118739
2010-11-10 23:46:38 +00:00
Jim Grosbach
c4dd2349c7
Move LDM predicate operand encoding into base clase. Add STM missing STM
...
encoding bits.
llvm-svn: 118738
2010-11-10 23:44:32 +00:00
Greg Clayton
96d7d7453c
Added initial support to the lldb_private::SymbolFile for finding
...
namespaces by name given an optional symbol context. I might end up
dressing up the "clang::NamespaceDecl" into a lldb_private::Namespace
class if we need to do more than is currenlty required of namespaces.
Currently we only need to be able to lookup a namespace by name when
parsing expressions, so I kept it simple for now. The idea here is
even though we are passing around a "clang::NamespaceDecl *", that
we always have it be an opaque pointer (it is forward declared inside
of "lldb/Core/ClangForward.h") and we only use clang::NamespaceDecl
implementations inside of ClangASTContext, or ClangASTType when we need
to extract information from the namespace decl object.
llvm-svn: 118737
2010-11-10 23:42:09 +00:00
Jim Grosbach
cc4a491557
ARM LDM encoding for the mode (ia, ib, da, db) operand.
...
llvm-svn: 118736
2010-11-10 23:38:36 +00:00
John McCall
817d4af557
When -Wconversion computes the range of a type, it uses the (bit-)range
...
of the enumerators rather than the actual expressible range. This is
great when dealing with opaque *values* of that type, but when computing
the range of the type for purposes of converting *into* it, it produces
warnings in cases we don't care about (e.g. enum_t x = 500;). Divide
the logic into these two cases and use the more conservative range for
targets.
llvm-svn: 118735
2010-11-10 23:38:19 +00:00
Rafael Espindola
5a8d781caa
Factor some code into WriteSection.
...
llvm-svn: 118733
2010-11-10 23:36:59 +00:00
Jim Grosbach
58ef598cd1
Fix ARM encoding of non-return LDM instructions.
...
llvm-svn: 118732
2010-11-10 23:18:49 +00:00
Johnny Chen
378ed7f3e7
Slight changes to how to phrase the assert for Python API thread.GetStopReason().
...
llvm-svn: 118731
2010-11-10 23:14:41 +00:00
Jim Grosbach
e39a9fcc0e
Fix ARM encoding of LDM+Return instruction.
...
llvm-svn: 118730
2010-11-10 23:12:48 +00:00
Dan Gohman
6791936848
When clearing a non-local pointer dependency cache entry, clear
...
the reverse map too. This fixes seflhost build errors.
llvm-svn: 118729
2010-11-10 22:35:02 +00:00
Rafael Espindola
eb97f59753
Update the section index map after we add the medatada sections.
...
llvm-svn: 118728
2010-11-10 22:34:07 +00:00
Devang Patel
82abab0812
test case for r118726.
...
llvm-svn: 118727
2010-11-10 22:19:57 +00:00
Devang Patel
364bf04267
Take care of special characters while creating named MDNode name to hold function specific local variable's info.
...
This fixes radar 8653152. I am checking in testcase as a separate check-in.
llvm-svn: 118726
2010-11-10 22:19:21 +00:00
Rafael Espindola
1801410fa8
Use SectionIndexMap in WriteSymbolTable to make it a little less brittle.
...
llvm-svn: 118725
2010-11-10 22:16:43 +00:00
Bob Wilson
aeb56444f9
Add a variant of GCC-style vector types for ARM NEON.
...
NEON vector types need to be mangled in a special way to comply with ARM's ABI,
similar to some of the AltiVec-specific vector types. This patch is mostly
just renaming a bunch of "AltiVecSpecific" things, since they will no longer
be specific to AltiVec. Besides that, it just adds the new "NeonVector" enum.
llvm-svn: 118724
2010-11-10 21:56:12 +00:00
Dan Gohman
1d760ce8b3
Factor out the code for computing an AliasAnalysis::Location
...
for a given instruction into a helper function.
llvm-svn: 118723
2010-11-10 21:51:35 +00:00
Rafael Espindola
d634003ebd
Factor some code into ComputeIndexMap.
...
llvm-svn: 118722
2010-11-10 21:51:05 +00:00
Dan Gohman
2e8ca44b81
Fully invalidate cached results when a prior query's size or
...
type is insufficient for, or incompatible with, the current query.
llvm-svn: 118721
2010-11-10 21:45:11 +00:00
Nate Begeman
ca52411955
Fix an issue where we tried to turn a v2f32 build_vector into a v4i32 build vector with 2 elts
...
llvm-svn: 118720
2010-11-10 21:35:41 +00:00
Duncan Sands
8f7220e9fd
Reduce the maximum recursion depth, 5 seems pointlessly too much.
...
Probably it should just be 1, but compromise with 3.
llvm-svn: 118718
2010-11-10 20:53:24 +00:00
Dan Gohman
0a6021a54d
Enhance GVN to do more precise alias queries for non-local memory
...
references. For example, this allows gvn to eliminate the load in
this example:
void foo(int n, int* p, int *q) {
p[0] = 0;
p[1] = 1;
if (n) {
*q = p[0];
}
}
llvm-svn: 118714
2010-11-10 20:37:15 +00:00
Johnny Chen
e9ad7fecf0
Finish adding the actual stop reason as part of the assert message when asserting:
...
thread.GetStopReason() == lldb.eStopReasonBreakpoint
llvm-svn: 118713
2010-11-10 20:30:37 +00:00
Douglas Gregor
4640a18cf4
Document a language-compatibility issue with function parameter names in function prototypes in C++
...
llvm-svn: 118712
2010-11-10 20:24:21 +00:00
Johnny Chen
de0338bac9
Add the actual stop reason to an assert message for bitfields_variable_python()
...
test method when asserting:
thread.GetStopReason() == lldb.eStopReasonBreakpoint
llvm-svn: 118711
2010-11-10 20:20:06 +00:00
Benjamin Kramer
2c88643a22
Silence a bunch of clang warnings.
...
llvm-svn: 118710
2010-11-10 20:16:47 +00:00
Rafael Espindola
51d68339a2
Change the String<size> methods to take a fragment instead of a buffer.
...
llvm-svn: 118709
2010-11-10 20:02:59 +00:00
Douglas Gregor
869853eea1
Instantiate class member template partial specialization declarations
...
in the order they occur within the class template, delaying
out-of-line member template partial specializations until after the
class has been fully instantiated. This fixes a regression introduced
by r118454 (itself a fix for PR8001).
llvm-svn: 118704
2010-11-10 19:44:59 +00:00
Greg Clayton
cf7e9a0485
Don't keep appending to the current crash description with each formatted crash description call.
...
llvm-svn: 118703
2010-11-10 19:43:40 +00:00
Jakob Stoklund Olesen
6ee7d9aade
Basic rematerialization during splitting.
...
Whenever splitting wants to insert a copy, it checks if the value can be
rematerialized cheaply instead.
Missing features:
- Delete instructions when all uses have been rematerialized.
- Truncate live ranges to the remaining uses after rematerialization.
llvm-svn: 118702
2010-11-10 19:31:50 +00:00
Andrew Trick
89eb6a8b94
RABasic is nearly functionally complete. There are a few remaining
...
benchmarks hitting an assertion.
Adds LiveIntervalUnion::collectInterferingVRegs.
Fixes "late spilling" by checking for any unspillable live vregs among
all physReg aliases.
llvm-svn: 118701
2010-11-10 19:18:47 +00:00
Caroline Tice
5c2816d903
Move the embedded Python interpreter onto a separate thread, to prevent
...
main thread from having to wait on it (which was causing some I/O
hangs).
llvm-svn: 118700
2010-11-10 19:18:14 +00:00
Rafael Espindola
36ef57d2eb
Use MCSectionELF in places we know we have an ELF section.
...
llvm-svn: 118699
2010-11-10 19:05:07 +00:00
Dan Gohman
d209911642
Use getValueOperand() and getPointerOperand() on load and store
...
instructions instead of hard-coding operand numbers.
llvm-svn: 118698
2010-11-10 19:03:33 +00:00
Johnny Chen
fec456da47
Trivial fix for an error message.
...
llvm-svn: 118697
2010-11-10 19:02:11 +00:00
Dan Gohman
f899c87343
Rename AccessesArguments and AccessesArgumentsReadonly, and rewrite
...
their comments.
llvm-svn: 118696
2010-11-10 18:30:00 +00:00
Johnny Chen
b1a06f3fff
Remove @skip decorator:
...
@unittest2.skip("rdar://problem/8648070 'expression *bar_ptr' seg faults")
It has been fixed by r118672.
llvm-svn: 118695
2010-11-10 18:25:18 +00:00
Duncan Sands
f3b1bf1606
Teach InstructionSimplify how to look through PHI nodes. Since PHI
...
nodes can be used in loops, this could result in infinite looping
if there is no recursion limit, so add such a limit. It is also
used for the SelectInst case because in theory there could be an
infinite loop there too if the basic block is unreachable.
llvm-svn: 118694
2010-11-10 18:23:01 +00:00
Dan Gohman
ebfb6fb563
Fix a copy+pasto Duncan noticed.
...
llvm-svn: 118693
2010-11-10 18:18:23 +00:00
Dan Gohman
066c1bb1e9
Add a doesAccessArgPointees helper function, and update code to use
...
it, and to be consistent.
llvm-svn: 118692
2010-11-10 18:17:28 +00:00
Jim Ingham
08feef8861
Remove an obsolete reference to immediate plans.
...
llvm-svn: 118691
2010-11-10 18:17:03 +00:00
Devang Patel
13bcf4d131
Zap white spaces, test commit email.
...
llvm-svn: 118690
2010-11-10 18:11:11 +00:00
Fariborz Jahanian
a0a9d85a5d
Check for duplicate declaration of a property in current and
...
other class extensions. // rdar://7629420
llvm-svn: 118689
2010-11-10 18:01:36 +00:00
Jim Grosbach
ca21cd749e
Simplify and clean up MC symbol lookup for ARM constant pool values. This fixes
...
double quoting of ObjC symbol names in constant pool entries.
rdar://8652107
llvm-svn: 118688
2010-11-10 17:59:10 +00:00
Dan Gohman
2577580967
Factor out the code for testing whether a function accesses
...
arbitrary memory into a helper function, and adjust some comments.
llvm-svn: 118687
2010-11-10 17:34:04 +00:00
Dan Gohman
3cd9145da6
Give NonLocalDepResult a NonLocalDepEntry member, replacing
...
indivudal members holding the same data, to clarify the relationship
between NonLocalDepResult and NonLocalDepEntry.
llvm-svn: 118686
2010-11-10 17:15:52 +00:00
Tobias Grosser
61cb245436
Detect if llvm-gcc is built on dragonegg.
...
Store the flags needed to disable optimizations and to emit LLVM-IR depending on
the version of llvm-gcc used.
llvm-svn: 118684
2010-11-10 16:31:34 +00:00