Dan Gohman
5e79a6108f
Use correct parentheses with the '&& "..."' idiom in an assert.
...
llvm-svn: 42750
2007-10-08 15:13:30 +00:00
Dan Gohman
fadf40a655
In -debug mode, dump SelectionDAGs both before and after the
...
optimization passes.
llvm-svn: 42749
2007-10-08 15:12:17 +00:00
Dan Gohman
ea3c73629f
Fix grammar in a comment.
...
llvm-svn: 42748
2007-10-08 15:10:04 +00:00
Dan Gohman
13ab93efde
Add explicit keywords.
...
llvm-svn: 42747
2007-10-08 15:08:41 +00:00
Neil Booth
49c6aab7b8
Use APInt::tcExtract. It's cleaner, and works :)
...
llvm-svn: 42746
2007-10-08 14:39:42 +00:00
Neil Booth
b618216e56
Add a new function tcExtract for extracting a bignum from an
...
arbitrary range of bits embedded in the middle of another bignum.
This kind of operation is desirable in many cases of software
floating point, e.g. converting bignum integers to floating point
numbers of fixed precision (you want to extract the precision most
significant bits).
Elsewhere, add an assertion, and exit the shift functions early if
the shift count is zero.
llvm-svn: 42745
2007-10-08 13:47:12 +00:00
Gordon Henriksen
acf684315e
Fixed downrev Ocaml compatibility.
...
llvm-svn: 42744
2007-10-08 12:16:59 +00:00
Owen Anderson
74529b7d5f
Begin the process of allowing DomTree on MBB's. Step One: template DomTreeNode by making it a typedef of a templated DomTreeNodeBase.
...
llvm-svn: 42743
2007-10-08 07:44:39 +00:00
Evan Cheng
21a58a72c5
Kill cycle of an live range is always the last use index + 1.
...
llvm-svn: 42742
2007-10-08 06:59:30 +00:00
Chris Lattner
bcd30bb0cd
Allow passes to just pass up "FunctionPass(&ID)" instead of "FunctionPass((intptr_t)&ID)"
...
llvm-svn: 42741
2007-10-08 03:45:44 +00:00
Gordon Henriksen
783f7bbabd
C and Objective Caml bindings for getFunction and getNamedGlobal. Also enhanced
...
the Objective Caml 'declare_*' functions to behave more or less like
getOrInsertFunction.
llvm-svn: 42740
2007-10-08 03:45:09 +00:00
Chris Lattner
b20757d578
disable this entirely: it is causing use of invalidated iterators and infinite looping.
...
llvm-svn: 42739
2007-10-07 22:00:31 +00:00
Chris Lattner
8dd66ab3b2
Fix many regressions on x86 by avoiding dereferencing the end iterator.
...
llvm-svn: 42738
2007-10-07 21:53:12 +00:00
Chris Lattner
7cdae91966
Finish off PR1723, by working around some strange compiler bug.
...
llvm-svn: 42737
2007-10-07 17:57:10 +00:00
Gordon Henriksen
751ebf7b9a
C and Objective Caml bindings for GlobalVariable::isConstant.
...
llvm-svn: 42736
2007-10-07 17:31:42 +00:00
Neil Booth
03f58ab706
Add back convertFromSignExtendedInteger.
...
llvm-svn: 42735
2007-10-07 12:15:41 +00:00
Neil Booth
ba205229e7
Now that convertFromUnsignedParts has a sane, constant interface,
...
convertFromZeroExtendedInteger can be simplified as it doesn't need
to make a copy of the source bignum.
llvm-svn: 42734
2007-10-07 12:10:57 +00:00
Neil Booth
6c1c8588ae
Reimplement convertFromUnsignedInteger so it is passed a const bignum.
...
It used to modify its argument in-place.
This interface is saner and the implementation more efficient. It will
be needed for decimal->binary conversion.
llvm-svn: 42733
2007-10-07 12:07:53 +00:00
Neil Booth
5f00973393
convertFromInteger, as originally written, expected sign-extended
...
input. APInt unfortunately zero-extends signed integers, so Dale
modified the function to expect zero-extended input. Make this
assumption explicit in the function name.
llvm-svn: 42732
2007-10-07 11:45:55 +00:00
Chris Lattner
c330d008f4
remove unneeded #include
...
llvm-svn: 42731
2007-10-07 08:59:27 +00:00
Chris Lattner
ef6b136781
move IdentifierTable.h from liblex to libbasic.
...
llvm-svn: 42730
2007-10-07 08:58:51 +00:00
Neil Booth
d3985924f4
combineLostFractions does not need to be a member function
...
llvm-svn: 42729
2007-10-07 08:51:21 +00:00
Chris Lattner
4894f485c7
implement the Token class in the Lexer.cpp file instead of IdentifierInfo.cpp
...
llvm-svn: 42728
2007-10-07 08:47:24 +00:00
Chris Lattner
c43ddc84a3
improve layering:
...
Now instead of IdentifierInfo knowing anything about MacroInfo,
only the preprocessor knows. This makes MacroInfo truly private
to the Lex library (and its direct clients) instead of being
accessed in the Basic library.
llvm-svn: 42727
2007-10-07 08:44:20 +00:00
Chris Lattner
259716a6e1
change calls to getMacroInfo into hasMacroDefinition() where possible.
...
llvm-svn: 42726
2007-10-07 08:04:56 +00:00
Chris Lattner
d7b971bf3d
add a hasMacroDefinition() method to IdentifierInfo, strength reduce a
...
call to getMacroInfo to call it.
llvm-svn: 42725
2007-10-07 07:57:27 +00:00
Chris Lattner
f49523d6ea
update comment.
...
llvm-svn: 42724
2007-10-07 07:54:23 +00:00
Chris Lattner
ff067ce555
Remove the PPID bitfield from IdentifierInfo, shrinking it by a word
...
(because all bitfields now fit in 32 bits). This shrinks the identifier
table for carbon.h from 1634428 to 1451424 bytes (12%) and has no impact
on compile time.
llvm-svn: 42723
2007-10-07 07:52:34 +00:00
Chris Lattner
a441ca651f
First step to fixing a long lived layering violation: this
...
moves the MacroInfo pointer to a side hash table (which currently
lives in IdentifierTable.cpp). This removes a pointer from
Identifier info, but doesn't shrink it, as it requires a new bit
be added. This strange approach with the 'hasmacro' bit is needed
to not lose preprocessor performance.
llvm-svn: 42722
2007-10-07 07:09:52 +00:00
Chris Lattner
65cc87ffc2
The identifier shouldn't be added to the scope, the decl should.
...
This fixes strange assertions that just started triggering.
llvm-svn: 42721
2007-10-07 07:05:08 +00:00
Chris Lattner
65fc0f1fca
classof isn't right. This is causing assertion failures somehow now.
...
llvm-svn: 42720
2007-10-07 07:04:41 +00:00
Chris Lattner
730160d32f
Shrink the builtinID down by 3 bits, allowing all the bitfields to
...
fit in 32-bits, shrinking IdentifierInfo by a word.
This shrinks the total size of the identifier pool from
1817264 to 1634428 bytes (11%) on carbon.h.
llvm-svn: 42719
2007-10-07 06:29:32 +00:00
Chris Lattner
d1cdee7d1f
Rename ASTStreamers.* -> ASTConsumers.*
...
llvm-svn: 42718
2007-10-07 06:04:32 +00:00
Daniel Berlin
fb6a79cdd5
Some more problems noticed by Curtis
...
llvm-svn: 42717
2007-10-07 04:47:57 +00:00
Chris Lattner
5700fab189
simplify the interfaces to create selectors: getSelector can take any
...
number of arguments now and does the right thing, but the nullary/unary
accessors are preserved as convenience functions. This allows us to
slightly simplify clients.
llvm-svn: 42716
2007-10-07 02:00:24 +00:00
Chris Lattner
f7f34d09e4
simplify some Selector interfaces.
...
llvm-svn: 42715
2007-10-07 01:33:16 +00:00
Chris Lattner
ee2d84133c
move ImplementationClassInfo out of ASTContext into Sema.
...
llvm-svn: 42714
2007-10-07 01:13:46 +00:00
Gordon Henriksen
ffb4876cfb
C and Objective Caml bindings for PATypeHolder.
...
llvm-svn: 42713
2007-10-07 00:13:35 +00:00
Chris Lattner
efc0b5e372
add comments.
...
llvm-svn: 42712
2007-10-06 23:30:21 +00:00
Chris Lattner
6a2b09ecd9
switch ObjcCategoryImplDecl over to being a NamedDecl, remove dead ctor argument.
...
llvm-svn: 42711
2007-10-06 23:12:31 +00:00
Chris Lattner
a4016555d2
introduce a new NamedDecl class, switch a couple of things over to using it.
...
NamedDecl is a Decl that has an IdentifierInfo (for example, ScopedDecl),
but not ObjcMethodDecl.
Simplify some code in ActOnAddMethodsToObjcDecl, by doing the cast from
DeclTy to Decl at the start of the method.
llvm-svn: 42710
2007-10-06 22:53:46 +00:00
Chris Lattner
18d3a13bef
Every decl has a SourceLocation, move the location info into the Decl class instead of being in subclasses.
...
llvm-svn: 42709
2007-10-06 22:16:01 +00:00
Kevin
6261e98ea8
future notes & minor changes
...
llvm-svn: 42708
2007-10-06 21:28:47 +00:00
Gordon Henriksen
c3d661a0ee
Bindings for the verifier.
...
llvm-svn: 42707
2007-10-06 21:00:36 +00:00
Chris Lattner
ae0ec1d09f
simplify the interface to create ObjcClassDecl's.
...
llvm-svn: 42706
2007-10-06 20:08:36 +00:00
Chris Lattner
11eca782a3
simplify the interface for creating ObjcForwardProtocolDecl
...
llvm-svn: 42705
2007-10-06 20:05:59 +00:00
Chris Lattner
f0d15d470f
add a missing ;
...
llvm-svn: 42704
2007-10-06 19:08:22 +00:00
Chris Lattner
5ccf60fc44
stub out some printing of objc decls.
...
llvm-svn: 42703
2007-10-06 18:52:10 +00:00
Gordon Henriksen
8689fa69e2
Deleting some unnecessary glue.
...
llvm-svn: 42702
2007-10-06 17:10:44 +00:00
Gordon Henriksen
fc560cef9a
Adopting a uniform naming convention for type constructors in
...
bindings (part le deux).
llvm-svn: 42701
2007-10-06 16:56:09 +00:00