Evan Cheng
b5f0ec3eb7
Add TargetInstrInfo::isSafeToMoveRegisterClassDefs. It returns true if it's safe to move an instruction which defines a value in the register class. Replace pre-splitting specific IgnoreRegisterClassBarriers with this new hook.
...
llvm-svn: 63936
2009-02-06 17:17:30 +00:00
Evan Cheng
afdf90ae64
Change -1 => negative number.
...
llvm-svn: 63935
2009-02-06 17:12:56 +00:00
Dan Gohman
f4b08b4f6c
Move ScheduleDAGInstrs.h to be a private header. Front-ends
...
that used this header to select a scheduling policy should
use SchedulerRegistry.h instead (llvm-gcc and clang were
updated a while ago).
llvm-svn: 63934
2009-02-06 17:12:10 +00:00
Evan Cheng
1731125787
Document the meaning of -1 for getCopyCost.
...
llvm-svn: 63933
2009-02-06 17:01:33 +00:00
Dan Gohman
87cab1e751
Tidy up the ScheduleDAG class definition a little. Make a few
...
more member functions protected, and group all the protected
members together.
llvm-svn: 63932
2009-02-06 16:50:02 +00:00
Roman Levenstein
54e78e7446
Don't pass BitVectors by value, pass them by reference.
...
llvm-svn: 63931
2009-02-06 09:16:15 +00:00
Zhongxing Xu
4bdb124036
Put the region store specific test in a separate file.
...
llvm-svn: 63930
2009-02-06 08:56:58 +00:00
Zhongxing Xu
e42755334c
SymbolicRegions really have unknown sizes.
...
llvm-svn: 63929
2009-02-06 08:51:30 +00:00
Zhongxing Xu
dec48a50df
Create ElementRegion when the base is SymbolicRegion. This is like what we do
...
for FieldRegion. This enables us to track more values.
Simplify SymbolicRegion::getRValueType(). We assume the symbol always has
pointer type.
llvm-svn: 63928
2009-02-06 08:44:27 +00:00
Nick Lewycky
8811ecdadf
Correct strange whitespace.
...
llvm-svn: 63927
2009-02-06 07:01:00 +00:00
Chris Lattner
1630c3c4f0
Add an implementation of -dM that follows GCC closely enough to permit
...
diffing the output of:
clang -dM -o - -E -x c foo.c | sort
llvm-svn: 63926
2009-02-06 06:45:26 +00:00
Chris Lattner
5c7cd6043e
add interface for walking macro table.
...
llvm-svn: 63925
2009-02-06 06:26:42 +00:00
Chris Lattner
f302000e5c
add support for -x c++-header, update comment.
...
llvm-svn: 63924
2009-02-06 06:19:20 +00:00
Devang Patel
7cb8df4ce7
Ignore DbgInfoIntrinsics.
...
llvm-svn: 63923
2009-02-06 06:19:06 +00:00
Chris Lattner
fc001b04f8
factor some code out into a helper function.
...
llvm-svn: 63922
2009-02-06 05:56:11 +00:00
Chris Lattner
4c72665bca
file gone.
...
llvm-svn: 63921
2009-02-06 05:18:06 +00:00
Chris Lattner
bba531ce99
get __WCHAR_TYPE__ from the targetinfo hook
...
llvm-svn: 63920
2009-02-06 05:06:07 +00:00
Chris Lattner
a91c30fdb0
simplify and refactor a bunch of type definition code in Preprocessor
...
predefines buffer initialization.
llvm-svn: 63919
2009-02-06 05:04:11 +00:00
Chris Lattner
61898606dc
remove some ad-hocery and use DefineTypeSize for more things.
...
Now you too can have a 47 bit long long!
llvm-svn: 63918
2009-02-06 04:55:18 +00:00
Chris Lattner
a3dc5d8423
refactor some code into a DefineTypeSize function.
...
llvm-svn: 63917
2009-02-06 04:50:25 +00:00
Chris Lattner
bbbb74372b
fix PR3489, use bits instead of bytes.
...
llvm-svn: 63916
2009-02-06 04:34:07 +00:00
Chris Lattner
fa81669354
default diag::err_pp_file_not_found to mapping to fatal,
...
implementing PR3492: #include failures should be a fatal error
llvm-svn: 63915
2009-02-06 04:16:41 +00:00
Chris Lattner
9e03119446
don't emit any diagnostics after a fatal one.
...
llvm-svn: 63914
2009-02-06 04:16:02 +00:00
Chris Lattner
b05f49e7fd
handle fatal errors, rely on warnings to point out missing cases.
...
llvm-svn: 63913
2009-02-06 03:57:44 +00:00
Dale Johannesen
2c4cf2752d
get rid of some non-DebugLoc getTargetNode variants.
...
llvm-svn: 63909
2009-02-06 02:08:06 +00:00
Nick Lewycky
74b5ef7cae
Free the buffer.
...
llvm-svn: 63907
2009-02-06 01:58:34 +00:00
Evan Cheng
8ad4e0bb19
Fix test. It produces unexpected code if sse4.1 is on.
...
llvm-svn: 63906
2009-02-06 01:49:19 +00:00
Ted Kremenek
fe7a9601e9
Use ASTContext's allocator to deallocate Stmt objects instead of using 'delete'. This fixes <rdar://problem/6561143>.
...
llvm-svn: 63905
2009-02-06 01:42:09 +00:00
Dale Johannesen
9f3f72f144
Get rid of one more non-DebugLoc getNode and
...
its corresponding getTargetNode. Lots of
caller changes.
llvm-svn: 63904
2009-02-06 01:31:28 +00:00
Daniel Dunbar
ba3325af7b
ccc: Give explicit error on @ style argument lists (not yet supported).
...
llvm-svn: 63903
2009-02-06 01:28:59 +00:00
Owen Anderson
5a043f2cb1
Fix a crasher: we need to check that the function is non-null before using it!
...
llvm-svn: 63902
2009-02-06 00:13:43 +00:00
Daniel Dunbar
724167c280
ccc: Implement special language recognition handling for -.
...
- <rdar://problem/6551577> [ccc] require -x with -
llvm-svn: 63901
2009-02-05 23:44:44 +00:00
Owen Anderson
98a3617fba
Refactor my previous change to maintain the distinction between AliasAnalysis and BasicAliasAnalysis. This involves some wider changes because it
...
folds away some never-used methods.
llvm-svn: 63900
2009-02-05 23:36:27 +00:00
Douglas Gregor
eff93e0401
Improve the representation of template type parameters. We now
...
canonicalize by template parameter depth, index, and name, and the
unnamed version of a template parameter serves as the canonical.
TemplateTypeParmDecl no longer needs to inherit from
TemplateParmPosition, since depth and index information is present
within the type.
llvm-svn: 63899
2009-02-05 23:33:38 +00:00
Devang Patel
409b794cfe
Ignore dbg intrinsics while propagating conditional expression info. Take 2.
...
llvm-svn: 63898
2009-02-05 23:32:52 +00:00
Ted Kremenek
686a09d7b8
Updated checker build.
...
llvm-svn: 63897
2009-02-05 23:19:12 +00:00
Chris Lattner
6be3cd1073
allow mapping errors to fatal.
...
llvm-svn: 63896
2009-02-05 22:56:06 +00:00
Chris Lattner
9d6c4408d1
document fatal
...
llvm-svn: 63895
2009-02-05 22:49:08 +00:00
Chris Lattner
fbe2272fc8
add support to the diagnostics machinery for mapping warnings and
...
errors to 'fatal' error severity.
llvm-svn: 63894
2009-02-05 22:47:05 +00:00
Ted Kremenek
0ca23d3f73
Add 'AppendValue' to the list of magic CF function names that cause a tracked object to escape. Fixes <rdar://problem/6560661>.
...
llvm-svn: 63891
2009-02-05 22:34:53 +00:00
Evan Cheng
2599084ac5
isAsCheapAsMove instructions can have register src operands. Check if they are really re-materializable.
...
This fixes sse.expandfft and sse.stepfft.
llvm-svn: 63890
2009-02-05 22:24:17 +00:00
Dale Johannesen
f80493bbfd
Remove a non-DebugLoc version of getNode.
...
llvm-svn: 63889
2009-02-05 22:07:54 +00:00
Devang Patel
02f58e1e8d
Revert rev. 63876. It is causing llvm-gcc bootstrap failure.
...
llvm-svn: 63888
2009-02-05 21:46:41 +00:00
Dan Gohman
69d2cd92ba
Delete some trailing whiespaces.
...
llvm-svn: 63887
2009-02-05 21:34:56 +00:00
Dale Johannesen
3eb373f5ce
Remove 3 non-DebugLoc variants of getNode.
...
llvm-svn: 63886
2009-02-05 21:20:44 +00:00
Mike Stump
354d3de098
FIx spelling.
...
llvm-svn: 63883
2009-02-05 20:49:49 +00:00
Mike Stump
67f5ceaa82
Probe for flags before using them to try to help compiling with
...
compilers that don't support those flags. This hopefully will help
gcc 3.X compile this code. http://llvm.org/PR3487
llvm-svn: 63882
2009-02-05 20:45:27 +00:00
Fariborz Jahanian
33f66e640a
objc2's nonfragile-abi - API selection for when receiver is a class
...
llvm-svn: 63881
2009-02-05 20:41:40 +00:00
Devang Patel
58cb603d2a
Remove dead blocks in the end.
...
llvm-svn: 63880
2009-02-05 19:59:42 +00:00
Anders Carlsson
31f8649f83
Follow Eli's advice and store the VLA size with the native size_t type. Fixes PR3491.
...
llvm-svn: 63879
2009-02-05 19:43:10 +00:00