Commit Graph

1795 Commits

Author SHA1 Message Date
Vikram S. Adve a1cbf5e076 Add function getRegClassIDOfType.
getRegClassIDOfValue is now just a wrapper around this.

llvm-svn: 1897
2002-03-18 03:18:28 +00:00
Vikram S. Adve 493b8241e0 Add support for code generation for array references.
Also, use distinct names for the three types of SetMachineOperand to
avoid painful overloading problems and errors.
Bug fix in converting-int-to-float.  Other minor stuff.

llvm-svn: 1896
2002-03-18 03:15:35 +00:00
Vikram S. Adve db1435f410 Bug fixes for not using unified reg. numbers, and for using the
wrong register class for saving CC registers.
Also, use distinct names for the three types of SetMachineOperand.

llvm-svn: 1895
2002-03-18 03:12:16 +00:00
Vikram S. Adve c87f73d64e Bug fix in setting CC register.
Also use distinct names for the three types of SetMachineOperand
to avoid painful overloading problems and errors.

llvm-svn: 1894
2002-03-18 03:10:17 +00:00
Vikram S. Adve f9ab087be7 Use distinct names for the three types of SetMachineOperand to
avoid painful overloading problems and errors.

llvm-svn: 1893
2002-03-18 03:09:15 +00:00
Vikram S. Adve 55ee12bb25 Minor fixes.
llvm-svn: 1892
2002-03-18 03:08:07 +00:00
Vikram S. Adve 270f56a085 Handling of global names was severely broken when converting to 2 passes.
Different labels were generated for the same name in different passes.
Use an annotation to hold a fixed table of names.

llvm-svn: 1891
2002-03-18 03:07:26 +00:00
Vikram S. Adve 0513e01bee Several sundry bug fixes.
llvm-svn: 1890
2002-03-18 03:02:42 +00:00
Chris Lattner f5ef05f58c Convert the top line of the header from .cpp style to .h style.
llvm-svn: 1884
2002-03-17 21:16:22 +00:00
Chris Lattner de421a7993 Make an assertion provide a more helpful error message
llvm-svn: 1883
2002-03-17 21:16:01 +00:00
Vikram S. Adve 88981d2fa4 Regression tests for live-variable analysis on machine code
generated by llc.

llvm-svn: 1882
2002-03-16 21:42:33 +00:00
Chris Lattner 205373ff74 Remove code designed to compensate for a bug in GCC. The bug has since
been fixed.

llvm-svn: 1881
2002-03-15 20:35:21 +00:00
Chris Lattner fbf5be52c3 Checkin new test for problem anand ran into
llvm-svn: 1880
2002-03-15 20:25:09 +00:00
Chris Lattner 60ab10bbef Cleanup error message output a bit
llvm-svn: 1879
2002-03-15 20:21:29 +00:00
Chris Lattner 6ba1a5f7d9 Expose dead instruction elimination pass
llvm-svn: 1877
2002-03-14 22:36:15 +00:00
Chris Lattner c47c3cce6f Fix test/Regression/Other/2002-03-14-ValueToLarge.ll. Note that this
fix could be better, but we don't have the infrastructure to find out what
size types are yet.

llvm-svn: 1876
2002-03-14 22:35:50 +00:00
Chris Lattner 96f633af95 Testcase for bug
llvm-svn: 1875
2002-03-14 22:30:39 +00:00
Chris Lattner 74f5ce7aab New testcase
llvm-svn: 1874
2002-03-14 20:16:23 +00:00
Chris Lattner 724d872ca7 New test case for long standing bug that was fixed
llvm-svn: 1873
2002-03-14 19:40:44 +00:00
Chris Lattner 96f4382c19 Forgot to check this in a long time ago
llvm-svn: 1872
2002-03-14 19:31:32 +00:00
Chris Lattner dace30004c New testcase
llvm-svn: 1871
2002-03-14 19:27:43 +00:00
Chris Lattner 7704e9f337 Add a check to ensure that only PHI nodes are self referential. Code
input to instruction combination was broken, which caused it to explode.

llvm-svn: 1870
2002-03-14 16:53:48 +00:00
Chris Lattner 4ca6cd403f Fix bug: test/Regression/Other/2002-03-14-LevelRaiseHang.ll
llvm-svn: 1869
2002-03-14 16:37:04 +00:00
Chris Lattner edef6552de New testcase for bugfx
llvm-svn: 1868
2002-03-14 16:35:50 +00:00
Chris Lattner 015bf1a6ba New testcase
llvm-svn: 1867
2002-03-12 18:56:45 +00:00
Chris Lattner 8ec585d330 New testcase
llvm-svn: 1866
2002-03-12 17:45:36 +00:00
Chris Lattner e697504611 Echo the right tool name on error
llvm-svn: 1865
2002-03-12 15:41:36 +00:00
Chris Lattner bee86626e1 Fix bug: test/Regression/Other/2002-03-11-InstCombineHang.ll
llvm-svn: 1864
2002-03-11 23:28:45 +00:00
Chris Lattner e16ff36af8 New testcase
llvm-svn: 1863
2002-03-11 23:28:11 +00:00
Chris Lattner 7e91634005 update comments
llvm-svn: 1862
2002-03-11 22:21:04 +00:00
Chris Lattner 7287d698bf * Fix bug: test/Regression/Other/2002-03-11-LevelRaiseIterInvalidate.ll
* Use more concise form of ReplaceInstWithInst to make code simpler
* Output nicer message for dead code eliminated when debugging

llvm-svn: 1861
2002-03-11 22:19:48 +00:00
Chris Lattner fbc26f3be9 New testcase
llvm-svn: 1860
2002-03-11 22:14:26 +00:00
Chris Lattner 1a8ea8ae4f Implement TODO for better diagnostic output
llvm-svn: 1859
2002-03-11 22:12:39 +00:00
Chris Lattner 477fe0845a Fix bug: test/Regression/Other/2002-03-11-ConstPropCrash.ll
llvm-svn: 1858
2002-03-11 22:11:07 +00:00
Chris Lattner 7d1c5b31b6 New testcase for failure
llvm-svn: 1857
2002-03-11 22:09:43 +00:00
Chris Lattner 26ec881062 Bugfix for test/Regression/Other/2002-03-11-ExprAssertion.ll
llvm-svn: 1856
2002-03-11 20:50:24 +00:00
Chris Lattner 6c51cb7a1b Testcase that causes an assertion failure in lib/Analysis/Expressions.cpp
llvm-svn: 1855
2002-03-11 20:28:16 +00:00
Chris Lattner 23ca4f2eb5 New testcase for broken GCCism
llvm-svn: 1854
2002-03-11 19:03:41 +00:00
Chris Lattner 0e66f3ec92 Remove runtime library in favor of users linking against real libraries.
llvm-svn: 1853
2002-03-11 17:57:13 +00:00
Chris Lattner 4cf0079e29 Do not link in runtime library anymore, assume that user manually links in
libraries.  Code should be generalized to allow lli to take -lc -lm arguments
in the future (todo)

llvm-svn: 1852
2002-03-11 17:52:43 +00:00
Chris Lattner 6f0d4531ef * Implement linking to libraries
* Pass arguments to program through shell script

llvm-svn: 1851
2002-03-11 17:49:53 +00:00
Chris Lattner 10b85921ef Add strcat function
llvm-svn: 1847
2002-03-11 17:46:50 +00:00
Chris Lattner 2a00ac1e7e Add var to find GCCLD tool
llvm-svn: 1846
2002-03-11 17:46:34 +00:00
Chris Lattner 7fd7b30727 Fix bug: test/Regression/Other/2002-03-11-LevelRaiseCalls.ll
llvm-svn: 1844
2002-03-11 17:27:34 +00:00
Chris Lattner 159033875d New testcase for crashing bug
llvm-svn: 1843
2002-03-11 17:25:50 +00:00
Chris Lattner 06eccf0f75 Checkin library infrastructure for building stuff to be linked with
gccld

llvm-svn: 1842
2002-03-08 23:20:52 +00:00
Chris Lattner 5dec460017 Implement a bunch of new functions to support the SPECINT mcf
benchmark

llvm-svn: 1841
2002-03-08 22:51:07 +00:00
Chris Lattner 9818bab2dc * Add new method localLookup
* SymbolTable::remove(Value *N) checks to see if we are internally
  inconsistent before looking for a type plane (caused a crash)
* insertEntry now does a local lookup instead of a global lookup, which was
  causing an infinite loop in the renamer logic.
* Added assertions to make sure stuff stays happy
* Now the linker correctly links the SPECINT2000 mcf benchmark

llvm-svn: 1840
2002-03-08 20:26:17 +00:00
Chris Lattner 108308aa91 Fix bug: test/Regression/2002-03-08-NameCollision2.ll
llvm-svn: 1839
2002-03-08 19:11:42 +00:00
Chris Lattner ff74b62f66 New testcase
llvm-svn: 1838
2002-03-08 19:10:09 +00:00