llvm-6502/lib
Dan Gohman 4fbd796a12 Change ConstantSDNode and ConstantFPSDNode to use ConstantInt* and
ConstantFP* instead of APInt and APFloat directly.

This reduces the amount of time to create ConstantSDNode
and ConstantFPSDNode nodes when ConstantInt* and ConstantFP*
respectively are already available, as is the case in
SelectionDAGBuild.cpp. Also, it reduces the amount of time
to legalize constants into constant pools, and the amount of
time to add ConstantFP operands to MachineInstrs, due to
eliminating ConstantInt::get and ConstantFP::get calls.

It increases the amount of work needed to create new constants
in cases where the client doesn't already have a ConstantInt*
or ConstantFP*, such as legalize expanding 64-bit integer constants
to 32-bit constants. And it adds a layer of indirection for the
accessor methods. But these appear to be outweight by the benefits
in most cases.

It will also make it easier to make ConstantSDNode and
ConstantFPNode more consistent with ConstantInt and ConstantFP.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56162 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-12 18:08:03 +00:00
..
Analysis Rather than marking all internal globals "Ref" 2008-09-12 07:29:58 +00:00
Archive Fold the useful features of alist and alist_node into ilist, and 2008-07-28 21:51:04 +00:00
AsmParser Update generated files. 2008-09-09 01:13:24 +00:00
Bitcode Temporarily disable vector select in the bitcode reader. The 2008-09-09 02:08:49 +00:00
CodeGen Change ConstantSDNode and ConstantFPSDNode to use ConstantInt* and 2008-09-12 18:08:03 +00:00
Debugger Add #include 2008-08-23 21:34:34 +00:00
ExecutionEngine Make safer variant of alias resolution routine to be default 2008-09-09 20:05:04 +00:00
Linker Make safer variant of alias resolution routine to be default 2008-09-09 20:05:04 +00:00
Support Updating VC++ project. 2008-08-24 11:56:40 +00:00
System add a helper method to sys::Path for clang, patch by 2008-08-11 23:39:47 +00:00
Target Rename ConstantSDNode::getValue to getZExtValue, for consistency 2008-09-12 16:56:44 +00:00
Transforms On 64-bit targets, change 32-bit getelementptr indices to be 64-bit 2008-09-11 23:06:38 +00:00
VMCore Add assertion check. 2008-09-09 21:38:40 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00