Bill Wendling
e38c7400c9
Remove empty test.
...
llvm-svn: 61095
2008-12-16 19:07:17 +00:00
Bill Wendling
a397baea88
Temporarily revert r61019, r61030, and r61040. These were breaking LLVM Release
...
builds.
llvm-svn: 61094
2008-12-16 19:06:48 +00:00
Dan Gohman
4476ef810b
Preserve SourceValue information when lowering produces multiple loads from
...
different offsets within the same stack slot.
llvm-svn: 61093
2008-12-16 18:25:36 +00:00
Evan Cheng
c35fc49477
We have decided not to support inline asm where an output operand with a matching input operand with incompatible type (i.e. either one is a floating point and the other is an integer or the sizes of the types differ). SelectionDAGBuild will catch these and exit with an error.
...
llvm-svn: 61092
2008-12-16 18:21:39 +00:00
Fariborz Jahanian
3a1bb22178
Patch to check for ObjC's property type.
...
llvm-svn: 61090
2008-12-16 17:51:01 +00:00
Steve Naroff
61d879e424
Fix <rdar://problem/6445502> clang ObjC rewriter: _Block_release has wrong parameter type in preamble
...
llvm-svn: 61088
2008-12-16 15:50:30 +00:00
Oscar Fuentes
4f9b3efd1e
CMake: Added DbgInfoPrinter.cpp to lib/Analysis/CMakeFiles.txt.
...
llvm-svn: 61087
2008-12-16 12:25:04 +00:00
Torok Edwin
01a1e37154
add testcase for -print-dbginfo
...
llvm-svn: 61086
2008-12-16 10:10:23 +00:00
Torok Edwin
8fa6e63cf9
Add -print-dbginfo pass that prints LLVM IR with comments inserted to show
...
which source/line a certain BB/instruction comes from, original variable names,
and original (unmangled) C++ name of functions.
llvm-svn: 61085
2008-12-16 09:09:19 +00:00
Torok Edwin
8926139252
Add utility functions to search for DbgStopPointInst corresponding to an
...
instruction or BasicBlock, and to search for DbgDeclareInst corresponding to a
variable.
llvm-svn: 61084
2008-12-16 09:07:36 +00:00
Torok Edwin
f49b028780
use different name for parameter to make it clear that we set DIDescriptor::GV
...
llvm-svn: 61083
2008-12-16 09:06:01 +00:00
Nick Lewycky
69c9aa4ce5
Generalize support for analyzing loops to include SLE/SGE loop exit conditions
...
and support for non-unit strides with signed exit conditions.
llvm-svn: 61082
2008-12-16 08:30:01 +00:00
Chris Lattner
6ddde53783
switch some std::set/std::map to SmallPtrSet/DenseMap.
...
llvm-svn: 61081
2008-12-16 07:34:30 +00:00
Chris Lattner
8b4be37275
fix PR3217: fully cached queries need to be verified against the
...
visited set before they are used. If used, their blocks need to be
added to the visited set so that subsequent queries don't use conflicting
pointer values in the cache result blocks.
llvm-svn: 61080
2008-12-16 07:10:09 +00:00
Douglas Gregor
195002917e
Partial fix for qualified name lookup, such that the lookup of N in
...
N::X only skips those entities specified in C++ [basic.lookup.qual]p1.
Note that both EDG and GCC currently get this wrong. EDG has confirmed
that the bug will be fixed in a future version.
llvm-svn: 61079
2008-12-16 06:37:47 +00:00
Dan Gohman
51559185f1
Enable anti-dependence breaking by default when post-RA scheduling is enabled.
...
llvm-svn: 61078
2008-12-16 06:21:45 +00:00
Dan Gohman
4302b4a63c
When breaking an anti-dependency, don't use a register which has seen
...
one of its aliases defined. This is conservative, but tricky subreg
corner cases are outside the primary aim of this pass.
llvm-svn: 61077
2008-12-16 06:20:58 +00:00
Dan Gohman
b9a012156b
Add initial support for back-scheduling address computations,
...
especially in the case of addresses computed from loop induction
variables.
llvm-svn: 61075
2008-12-16 03:35:01 +00:00
Dan Gohman
405f2197a4
Remove some special-case logic in ScheduleDAGSDNodes's
...
latency computation code that is no longer needed with the
new method for handling latencies.
llvm-svn: 61074
2008-12-16 03:31:11 +00:00
Dan Gohman
dddc1ac7ea
Fix some register-alias-related bugs in the post-RA scheduler liveness
...
computation code. Also, avoid adding output-depenency edges when both
defs are dead, which frequently happens with EFLAGS defs.
Compute Depth and Height lazily, and always in terms of edge latency
values. For the schedulers that don't care about latency, edge latencies
are set to 1.
Eliminate Cycle and CycleBound, and LatencyPriorityQueue's Latencies array.
These are all subsumed by the Depth and Height fields.
llvm-svn: 61073
2008-12-16 03:25:46 +00:00
Misha Brukman
7fda6f6b18
* Comply with HTML 4.01 Strict
...
* Added code-region markings to code sections to make them stand out
* Added pre.doc_code class to llvm.css to simplify marking code regions
llvm-svn: 61072
2008-12-16 03:07:49 +00:00
Misha Brukman
39dcddf827
* Comply with HTML 4.01 Strict standard
...
* Converted absolute links to llvm.org/docs to relative links
* Fixed spelling and s/;/:/, as needed
llvm-svn: 61071
2008-12-16 02:54:22 +00:00
Dan Gohman
8f782bbb28
Add a simple target-independent heuristic to allow targets with no
...
instruction itinerary data to back-schedule loads.
llvm-svn: 61070
2008-12-16 02:38:22 +00:00
Zhongxing Xu
c4a4c5f02d
Implement RegionStoreManager::Remove().
...
llvm-svn: 61069
2008-12-16 02:36:30 +00:00
Fariborz Jahanian
a599c1352b
Diagnose that ivars in current and super class may not
...
be duplicates and a test case.
llvm-svn: 61068
2008-12-16 01:08:35 +00:00
Dan Gohman
e3a6351f34
Move addPred and removePred out-of-line.
...
llvm-svn: 61067
2008-12-16 01:05:52 +00:00
Dan Gohman
17214e633d
Make addPred and removePred return void, since the return value is not
...
currently used by anything.
llvm-svn: 61066
2008-12-16 01:00:55 +00:00
Dan Gohman
cb6accfea9
This getEdgeAttributes doesn't need a template argument.
...
llvm-svn: 61065
2008-12-16 00:55:00 +00:00
Dan Gohman
d050b95ada
Add a getSDep() access function to SUnitIterator to return the
...
current SDep.
llvm-svn: 61064
2008-12-16 00:51:33 +00:00
Dan Gohman
600cec38ab
Reorder some SDep methods. No functionality change.
...
llvm-svn: 61063
2008-12-16 00:48:53 +00:00
Dan Gohman
30204c2019
SDep's operator== should compare the Latency field too.
...
llvm-svn: 61062
2008-12-16 00:47:19 +00:00
Bill Wendling
160a416fc0
Change so that buildit won't need a parent directory with only the build scripts in them.
...
llvm-svn: 61061
2008-12-16 00:42:25 +00:00
Douglas Gregor
29e174cc58
Make name lookup when we're inside a declarator's scope, such as ClassName::func, work with the new unqualified name lookup code. Test it with default arguments in out-of-line member definitions
...
llvm-svn: 61060
2008-12-16 00:38:16 +00:00
Douglas Gregor
dd12c786a0
Added a test for default arguments added to out-of-line member
...
functions. They work except that name lookup within the default
arguments needs to be deferred until the class definition is complete
(see FIXME in the test).
llvm-svn: 61059
2008-12-16 00:08:34 +00:00
Douglas Gregor
ad590506a7
Diagnose erroneous uses of out-of-line member definitions and scope
...
specifiers. Specifically:
* Determine when an out-of-line function definition does not match
any declaration within the class or namespace (including coping
with overloaded functions).
* Complain about typedefs and parameters that have scope specifiers.
* Complain about out-of-line declarations that aren't also
definitions.
* Complain about non-static data members being declared out-of-line.
* Allow cv-qualifiers on out-of-line member function definitions.
llvm-svn: 61058
2008-12-15 23:53:10 +00:00
Eli Friedman
254a1a285c
Fix for PR3212: don't descend into C++ operator overloading code for C
...
programs.
llvm-svn: 61056
2008-12-15 22:34:21 +00:00
Eli Friedman
bb2b3be9e1
Make error handling for va_start a bit more robust. Fixes PR3213.
...
llvm-svn: 61055
2008-12-15 22:05:35 +00:00
Fariborz Jahanian
48ee658562
Name of addLayoutToClass is confusing as no layout calculation
...
is done. Layout is calculated lazily at code gen type.
This patch changes the name.
llvm-svn: 61054
2008-12-15 21:58:08 +00:00
Chris Lattner
590b10dba2
add testcase for r61051
...
llvm-svn: 61052
2008-12-15 21:46:23 +00:00
Chris Lattner
49e3bdc165
enhance heap-sra to apply to fixed sized array allocations, not just
...
variable sized array allocations.
llvm-svn: 61051
2008-12-15 21:44:34 +00:00
Mon P Wang
580f2c7b61
Added support for splitting and scalarizing vector shifts.
...
llvm-svn: 61050
2008-12-15 21:44:00 +00:00
Douglas Gregor
1349b457ee
Place constructors and destructors into the DeclContext of the class,
...
just like all other members, and remove the special variables in
CXXRecordDecl to store them. This eliminates a lot of special-case
code for constructors and destructors, including
ActOnConstructor/ActOnDeclarator and special lookup rules in
LookupDecl. The result is far more uniform and manageable.
Diagnose the redeclaration of member functions.
llvm-svn: 61048
2008-12-15 21:24:18 +00:00
Chris Lattner
1c731fa86f
Use stripPointerCasts.
...
llvm-svn: 61047
2008-12-15 21:20:32 +00:00
Chris Lattner
f0eb568021
minor tweaks for formatting, allow bitcast in ValueIsOnlyUsedLocallyOrStoredToOneGlobal.
...
llvm-svn: 61046
2008-12-15 21:08:54 +00:00
Chris Lattner
c4274a71d5
refactor some code into a new TryToOptimizeStoreOfMallocToGlobal function.
...
Use GetElementPtrInst::hasAllZeroIndices where possible.
llvm-svn: 61045
2008-12-15 21:02:25 +00:00
Fariborz Jahanian
cfac794a5c
And a test case for my previous patch.
...
llvm-svn: 61044
2008-12-15 20:39:58 +00:00
Fariborz Jahanian
b517e90662
Code gen. for ivar references; including bitfield
...
ivars.
llvm-svn: 61043
2008-12-15 20:35:07 +00:00
Ted Kremenek
6c7ea11300
Preprocessor: Allocate MacroInfo objects using a BumpPtrAllocator instead using new/delete. This speeds up -Eonly on Cocoa.h using the regular lexer by 1.8% and the PTHLexer by 3%.
...
llvm-svn: 61042
2008-12-15 19:56:42 +00:00
Chris Lattner
3cdf0a8a2e
add a basic test for heap-sra
...
llvm-svn: 61041
2008-12-15 19:42:05 +00:00
Chris Lattner
e3401db1f3
Teach basicaa to use the nocapture attribute when possible. When the
...
intrinsics are properly marked nocapture, the fixme should be addressed.
llvm-svn: 61040
2008-12-15 18:59:22 +00:00