Sebastian Redl
67604aeedf
Test commit
...
llvm-svn: 58099
2008-10-24 17:45:08 +00:00
Steve Naroff
614c490866
Add another file to VC++ project.
...
llvm-svn: 58098
2008-10-24 16:53:41 +00:00
Douglas Gregor
70dc759f14
Make QualTypeOrdering::operator() const
...
llvm-svn: 58097
2008-10-24 16:48:10 +00:00
Douglas Gregor
cea4e74340
Some cleanups for the ambiguous derived-to-base conversion checks
...
llvm-svn: 58096
2008-10-24 16:17:19 +00:00
Douglas Gregor
08d918a6c3
Semantic analysis for C++ reinterpret_cast and const_cast. Patch by Sebastian Redl.
...
llvm-svn: 58094
2008-10-24 15:36:09 +00:00
Ted Kremenek
196922b4a1
Fix scan-build's processing of clang's analysis arguments. Patch by Nikita Zhuk!
...
llvm-svn: 58093
2008-10-24 15:11:58 +00:00
Duncan Sands
014f5bbaad
Fix translateX86CC: if SetCCOpcode is SETULE and
...
LHS is a foldable load, then LHS and RHS are swapped
and SetCCOpcode is changed to SETUGT. But the later
code is expecting operands to be the wrong way round
for SETUGT, but they are not in this case, resulting
in an inverted compare. The solution is to move the
load normalization before the correction for SETUGT.
This bug was tickled by LegalizeTypes which happened
to legalize the testcase slightly differently to
LegalizeDAG.
llvm-svn: 58092
2008-10-24 13:03:10 +00:00
Steve Naroff
d706e8d62c
Yet another update to the VC++ proj.
...
llvm-svn: 58091
2008-10-24 12:40:20 +00:00
Cedric Venet
a00d112486
Modify the cmake build system so that if it doesn't find bison, it will use the pregenerated file in from the svn (.cvs). Work only for windows for the moment. Tested on Vista64 with MSVC2008express.
...
llvm-svn: 58090
2008-10-24 11:24:33 +00:00
Steve Naroff
7fb14b0cd0
Add a file to VC++ proj.
...
llvm-svn: 58089
2008-10-24 10:38:57 +00:00
Zhongxing Xu
e834fc1249
The Decl of an array region can be VarDecl or FieldDecl. Handle this in RegionStoreManager::ArrayToPointer().
...
llvm-svn: 58086
2008-10-24 09:06:51 +00:00
Zhongxing Xu
d2f0c7b37b
Add random array and struct test code for SCA.
...
llvm-svn: 58085
2008-10-24 08:51:58 +00:00
Daniel Dunbar
5043549666
Use #define trickery to de-XFAIL test/Coverage/codegen-gnu.m while
...
still getting coverage for non-IRgen cases.
llvm-svn: 58084
2008-10-24 08:42:52 +00:00
Zhongxing Xu
729518be3a
Implement struct initialization. Make it into a recursive function. Also make
...
the array initialization code into a function.
llvm-svn: 58083
2008-10-24 08:42:28 +00:00
Daniel Dunbar
15fadeb9cf
Use #define trickery to de-XFAIL test/Coverage/codegen-next.m while
...
still getting coverage for non-IRgen cases.
llvm-svn: 58082
2008-10-24 08:39:46 +00:00
Daniel Dunbar
dec8a89d37
Don't crash on invalid source locations in
...
CGDebugInfo::getOrCreateCompileUnit.
llvm-svn: 58081
2008-10-24 08:38:36 +00:00
Daniel Dunbar
c86b825d5f
svn:ignore test/SemaCXX/Output
...
llvm-svn: 58080
2008-10-24 08:18:23 +00:00
Daniel Dunbar
d7be95d60a
PR2919: __builtin_types_compatible_p strips CRV qualifiers.
...
llvm-svn: 58079
2008-10-24 08:07:57 +00:00
Chris Lattner
b2d68310cb
add a missing file to project, alphabeticalize.
...
llvm-svn: 58078
2008-10-24 06:52:28 +00:00
Zhongxing Xu
a14262862f
Add printing method to ElementRegion.
...
llvm-svn: 58077
2008-10-24 06:30:07 +00:00
Daniel Dunbar
d3963f7f25
Use LINK_COMPONENTS instead of hard coding LLVM libraries.
...
llvm-svn: 58076
2008-10-24 06:24:13 +00:00
Nick Lewycky
730d5dade6
Don't try to create a mask when we don't need one. Fixes a crash.
...
llvm-svn: 58075
2008-10-24 06:14:27 +00:00
Zhongxing Xu
1359e00f9c
Add printing method to RegionStoreManager.
...
llvm-svn: 58074
2008-10-24 06:01:33 +00:00
Zhongxing Xu
509bd9e30a
Add printing with llvm::raw_ostream methods to SVals.
...
llvm-svn: 58073
2008-10-24 06:00:12 +00:00
Evan Cheng
f8b09d424d
Fix a end() dereference; remove an abort() that wasn't meant to be left in.
...
llvm-svn: 58072
2008-10-24 05:53:44 +00:00
Douglas Gregor
39c16d445e
First non-embarrassing cut at checking for ambiguous derived-to-base
...
conversions.
Added PerformImplicitConversion, which follows an implicit conversion sequence
computed by TryCopyInitialization and actually performs the implicit
conversions, including the extra check for ambiguity mentioned above.
llvm-svn: 58071
2008-10-24 04:54:22 +00:00
Zhongxing Xu
c7796d347d
Fix 80-col violation.
...
llvm-svn: 58070
2008-10-24 04:33:15 +00:00
Nick Lewycky
f6e4dca67e
Add value range analyzing of Add and Sub.
...
Understand that mul %x, 1 = %x.
llvm-svn: 58069
2008-10-24 04:00:26 +00:00
Evan Cheng
4bac4d0a16
Avoid splitting an interval multiple times; avoid splitting re-materializable val# (for now).
...
llvm-svn: 58068
2008-10-24 02:05:00 +00:00
Zhongxing Xu
c156be31a6
Fix linking error.
...
llvm-svn: 58067
2008-10-24 02:03:36 +00:00
Dan Gohman
712886f561
Fix constant-offset emission for x86-64 absolute addresses. This
...
fixes a bunch of test-suite JIT failures on x86-64 in
-relocation-model=static mode.
llvm-svn: 58066
2008-10-24 01:57:54 +00:00
Zhongxing Xu
cebb741f68
Add a bunch of dummy methods to make RegionStoreManager non-virtual.
...
llvm-svn: 58061
2008-10-24 01:38:55 +00:00
Steve Naroff
886b5193a7
Add file to VC++ project.
...
llvm-svn: 58060
2008-10-24 01:21:47 +00:00
Steve Naroff
57d00c056a
Add file to VC++ project.
...
llvm-svn: 58059
2008-10-24 01:19:59 +00:00
Zhongxing Xu
a8d2cbe47f
Added getLValueElement() to RegionStore. Only handle constant array for now.
...
llvm-svn: 58058
2008-10-24 01:09:32 +00:00
Dale Johannesen
8b531d2754
Initialize uninitialized variable.
...
llvm-svn: 58057
2008-10-24 01:06:58 +00:00
Ted Kremenek
6779f893b9
Make the analyzer store (memory model) a command line option.
...
llvm-svn: 58056
2008-10-24 01:04:59 +00:00
Daniel Dunbar
607f67b16c
Map compilation units using FileEntry pointers instead of
...
FileIDs. This seems better conceptually and lets the SourceManager
handle details of mapping the location to a file ID.
- In practice, fixes an assert because this code wasn't using
getPhysicalLoc.
llvm-svn: 58055
2008-10-24 00:46:51 +00:00
Ted Kremenek
1507dbfbfc
Use llvm::errs() instead of cerr.
...
llvm-svn: 58054
2008-10-23 23:55:40 +00:00
Ted Kremenek
40fcc594b8
Convert InheritanceHierarchyWriter to use llvm::raw_ostream instead of std::ostream.
...
llvm-svn: 58053
2008-10-23 23:51:23 +00:00
Ted Kremenek
3c6de496b0
Added raw_fd_ostream::close().
...
llvm-svn: 58052
2008-10-23 23:49:09 +00:00
Ted Kremenek
45e2b90d3d
Added driver option "-cxx-inheritance-view" for viewing the C++ hierarchy of a class in GraphViz.
...
llvm-svn: 58051
2008-10-23 23:36:29 +00:00
Ted Kremenek
f000308467
Added iterators for types.
...
llvm-svn: 58050
2008-10-23 23:35:43 +00:00
Daniel Dunbar
340b5ddcf9
Fix regression in comparison of qualified id; == operator was being
...
created with LHS and RHS whose types didn't match.
llvm-svn: 58049
2008-10-23 23:30:52 +00:00
Steve Naroff
a6090204a1
Changes to make the Windows build work...
...
- Add a file to the VC++ project.
- Make sure the clang driver links against the Transforms library.
- Incorporate changes from patch by Dan Gohman.
llvm-svn: 58048
2008-10-23 23:28:23 +00:00
Steve Naroff
e5d0011007
Add some files to VC++ project.
...
llvm-svn: 58047
2008-10-23 23:20:50 +00:00
Ted Kremenek
8c2b94b787
Updated Xcode project.
...
llvm-svn: 58046
2008-10-23 23:15:03 +00:00
Ted Kremenek
049ba7fbb1
For Radar reporting, null dereferences should be default classified as "Crash/Hang/Data loss" <rdar://problem/6315624>
...
llvm-svn: 58045
2008-10-23 21:36:52 +00:00
Evan Cheng
d0d0317b9a
Committing a good chunk of the pre-register allocation live interval splitting pass. It's handling simple cases and appear to do good things. Next: avoid splitting an interval multiple times; renumber registers when possible; record stack slot live intervals for coloring; rematerialize defs when possible.
...
llvm-svn: 58044
2008-10-23 20:43:13 +00:00
Dale Johannesen
e395d78657
Mark defs and uses of CTR and LR correctly.
...
Prevents DeadMachineInstructionElim from thinking
things like MTCTR are dead (fixes massive
testsuite breakage at -O0).
llvm-svn: 58043
2008-10-23 20:41:28 +00:00