1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 14:02:52 +02:00
Commit Graph

25818 Commits

Author SHA1 Message Date
Chris Lattner
c18c59e272 New testcase
llvm-svn: 29606
2006-08-11 16:46:38 +00:00
Chris Lattner
36f17d7909 Minor cleanups
llvm-svn: 29605
2006-08-11 16:37:02 +00:00
Evan Cheng
6053206580 Match tablegen changes.
llvm-svn: 29604
2006-08-11 09:08:15 +00:00
Evan Cheng
34a49551f5 CALLSEQ_* produces chain even if that's not needed.
llvm-svn: 29603
2006-08-11 09:03:33 +00:00
Evan Cheng
5950c56f73 - Prevent some functions from being inlined to eliminate the code size bloat
introduced by previous commit.
- SelectCode now returns a SDNode*. If it is not null, the selected node
  produces the same number of results as the input node. The seletion loop
  is responsible for calling ReplaceAllUsesWith() to replace the input node
  with the output target node. For other cases, e.g. when load is folded,
  the selection code is responsible for calling ReplaceAllUsesOfValueWith()
  and SelectCode returns NULL.
- Other clean ups.

llvm-svn: 29602
2006-08-11 08:59:35 +00:00
Evan Cheng
131c832304 Convert more calls of getNode() that takes a vector to pass in the start of an array.
llvm-svn: 29601
2006-08-11 07:35:45 +00:00
Reid Spencer
2cc0b2ef67 Fix a typo noticed by Gordon Henriksen. Thanks!
llvm-svn: 29597
2006-08-10 21:38:47 +00:00
Reid Spencer
0f80d9e432 llvm2cpp no longer reads LLVM assembly but LLVM bytecode instead. Adjust
the documentation to reflect this.

llvm-svn: 29596
2006-08-10 21:02:25 +00:00
Reid Spencer
103a306055 Add a cleaned-up version of the IRC conversation that spurred this FAQ.
llvm-svn: 29595
2006-08-10 21:01:14 +00:00
Reid Spencer
c060fa5783 Answer the most frequently asked question, about GEPs. The answer is
sufficiently long that I placed it in a separate file but it links from
the FAQ page. More might need to be added to GetElementPtr.html to
address additional confusion surrounding GEP.

llvm-svn: 29594
2006-08-10 20:15:58 +00:00
Chris Lattner
8dd142b7b7 Doxygenify some methods.
llvm-svn: 29592
2006-08-10 06:00:40 +00:00
Tanya Lattner
d432a834cf Adding notes from release experience.
llvm-svn: 29591
2006-08-10 00:23:05 +00:00
Reid Spencer
99112f11ec Fix a comment.
llvm-svn: 29590
2006-08-09 19:40:13 +00:00
Rafael Espindola
2ddcf46717 correctly set LocalAreaOffset of TargetFrameInfo
llvm-svn: 29589
2006-08-09 17:37:45 +00:00
Tanya Lattner
474a76b23f Fixed misspelling
llvm-svn: 29588
2006-08-09 17:08:27 +00:00
Chris Lattner
947ac60771 Revert previous patch
llvm-svn: 29585
2006-08-09 16:44:44 +00:00
Tanya Lattner
3707c6e4e3 Reverting back to original 1.8 version so I can manually merge in patch.
llvm-svn: 29584
2006-08-09 16:41:21 +00:00
Rafael Espindola
f0b265b48b fix the spill code
llvm-svn: 29583
2006-08-09 16:41:12 +00:00
Rafael Espindola
9e8af5c486 fix the loading of the link register in emitepilogue
llvm-svn: 29580
2006-08-09 13:15:47 +00:00
Evan Cheng
3a9bcad4c4 Merge some NightlyTest.pl changes.
llvm-svn: 29579
2006-08-09 05:45:12 +00:00
Evan Cheng
4e5d980dec Recover the lost diff between 1.221 and 1.222.
llvm-svn: 29578
2006-08-09 05:40:14 +00:00
Evan Cheng
9ddf2ccb55 Recover the lost diff between 1.5 and 1.6.
llvm-svn: 29577
2006-08-09 05:38:51 +00:00
Tanya Lattner
d746ebf304 Update credits and fix sorting issue.
llvm-svn: 29574
2006-08-09 04:18:09 +00:00
Chris Lattner
8fe24924c4 Update from Anton Korobeynikov
llvm-svn: 29573
2006-08-09 04:10:32 +00:00
Chris Lattner
76aaa8def7 Fixes from Anton Vayvod and Gabor Greif!
llvm-svn: 29572
2006-08-09 04:08:52 +00:00
Rafael Espindola
ae2d1c53c7 change the addressing mode of the str instruction to reg+imm
llvm-svn: 29571
2006-08-08 20:35:03 +00:00
Chris Lattner
3e4de53be7 First draft of the llvm 1.8 release notes.
llvm-svn: 29570
2006-08-08 17:27:28 +00:00
John Criswell
f037045e9f Describe and date modifications we made per LGPL requirements.
llvm-svn: 29569
2006-08-08 14:47:54 +00:00
John Criswell
2d50f76605 Make information more complete.
llvm-svn: 29568
2006-08-08 14:47:33 +00:00
Rafael Espindola
7bfbb91f75 initial support for variable number of arguments
llvm-svn: 29567
2006-08-08 13:02:29 +00:00
Chris Lattner
7b1362fa52 Start eliminating temporary vectors used to create DAG nodes. Instead, pass
in the start of an array and a count of operands where applicable.  In many
cases, the number of operands is known, so this static array can be allocated
on the stack, avoiding the heap.  In many other cases, a SmallVector can be
used, which has the same benefit in the common cases.

I updated a lot of code calling getNode that takes a vector, but ran out of
time.  The rest of the code should be updated, and these methods should be
removed.

We should also do the same thing to eliminate the methods that take a
vector of MVT::ValueTypes.

It would be extra nice to convert the dagiselemitter to avoid creating vectors
for operands when calling getTargetNode.

llvm-svn: 29566
2006-08-08 02:23:42 +00:00
Patrick Jenkins
b2c90ef2c6 Removed unneccesary output from nightly tester
llvm-svn: 29565
2006-08-08 02:03:53 +00:00
Chris Lattner
5f8473bc02 capacity is a pointer, not a value
llvm-svn: 29564
2006-08-08 01:54:17 +00:00
Reid Spencer
dc30910fe0 Update the instructions for writing a pass as a loadable module per the
new definition in MakefileGuilde.html and Makefile.rules.

llvm-svn: 29563
2006-08-08 01:48:17 +00:00
Chris Lattner
03c7b425a2 add a new assign method
llvm-svn: 29562
2006-08-08 01:44:16 +00:00
Chris Lattner
be2fc7b875 Eliminate some malloc traffic by allocating vectors on the stack. Change some
method that took std::vector<SDOperand> to take a pointer to a first operand
and #operands.

This speeds up isel on kc++ by about 3%.

llvm-svn: 29561
2006-08-08 01:09:31 +00:00
Chris Lattner
3bb43d2173 Add ctor that initializes from a range.
llvm-svn: 29560
2006-08-08 00:37:50 +00:00
Evan Cheng
01cd84d113 Eliminate reachability matrix. It has to be calculated before any instruction
selection is done. That's rather expensive especially in situations where it
isn't really needed.
Move back to a searching the predecessors, but make use of topological order
to trim the search space.

llvm-svn: 29559
2006-08-08 00:31:00 +00:00
Evan Cheng
443ccaa0b3 New test case.
llvm-svn: 29558
2006-08-07 23:58:47 +00:00
Reid Spencer
e63b347fb9 Fix an anchor name.
llvm-svn: 29557
2006-08-07 23:44:59 +00:00
Chris Lattner
3e1a9b0188 Remove assertions from the SmallVector class. They slow down clients of
smallvector too much in a release build.  Removing them speeds up isel 4%.

llvm-svn: 29556
2006-08-07 23:41:59 +00:00
Chris Lattner
8058dae7a7 New CSEMap datastructure impl
llvm-svn: 29555
2006-08-07 23:31:24 +00:00
Reid Spencer
2390c20f91 Make the name of the project consistent with that specified in the
configure.ac file. This fixes some case-consistency issues between the name
of the tarball created by "make dist" and the tarball used for source when
building the LLVM RPM package.

llvm-svn: 29554
2006-08-07 23:23:39 +00:00
Reid Spencer
20aee8ad5d Remove the use of "IncludeFile" from this support facility. The mechanism
to build a loadable module is now correctly defined and documented so this
workaround isn't needed any longer.

llvm-svn: 29553
2006-08-07 23:20:15 +00:00
Reid Spencer
dc0927cccf Make this example pass use some things from lib/Support (EscapeString,
SlowOperatingInfo, Statistics). Besides providing an example of how to
use these facilities, it also serves to debug problems with runtime linking
when dlopening a loadable module. These three support facilities exercise
different combinations of Text/Weak Weak/Text and Text/Text linking
between the executable and the module.

llvm-svn: 29552
2006-08-07 23:17:24 +00:00
Reid Spencer
3f5e3c843a For PR780:
1. Change the usage of LOADABLE_MODULE so that it implies all the things
   necessary to make a loadable module. This reduces the user's burdern to
   get a loadable module correctly built.
2. Document the usage of LOADABLE_MODULE in the MakefileGuide
3. Adjust the makefile for lib/Transforms/Hello to use the new specification
   for building loadable modules
4. Adjust the sample project to not attempt to build a shared library for
   its little library. This was just wasteful and not instructive at all.

llvm-svn: 29551
2006-08-07 23:12:15 +00:00
Chris Lattner
1661ffa2eb Revamp the "CSEMap" datastructure used in the SelectionDAG class. This
eliminates a bunch of std::map's in the SelectionDAG, replacing them with a
home-grown hashtable.

This is still a work in progress: not all the maps have been moved over and the
hashtable never resizes.  That said, this still speeds up llc 20% on kimwitu++
with -fast -regalloc=local using a release build.

llvm-svn: 29550
2006-08-07 23:03:03 +00:00
Evan Cheng
d18be1d9c1 Match tablegen isel changes.
llvm-svn: 29549
2006-08-07 22:28:20 +00:00
Evan Cheng
c6627fc5d7 Making TableGen'd instruction selection code non-recursive. This fixes PR805.
llvm-svn: 29548
2006-08-07 22:17:58 +00:00
Evan Cheng
a42653b7ae Move DAGSize to SelectionDAGISel; it's used in tablegen'd isel code.
llvm-svn: 29547
2006-08-07 22:16:08 +00:00