oota-llvm.git
22 years agoSupport Composite's, not just structs
Chris Lattner [Mon, 26 Nov 2001 17:00:13 +0000 (17:00 +0000)]
Support Composite's, not just structs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1344 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agolosslessCastableTypes is moved to Type class
Chris Lattner [Mon, 26 Nov 2001 16:59:47 +0000 (16:59 +0000)]
losslessCastableTypes is moved to Type class
getStructOffsetType supports array indexing

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1343 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoSupport selectable structure transformations
Chris Lattner [Mon, 26 Nov 2001 16:59:10 +0000 (16:59 +0000)]
Support selectable structure transformations

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1342 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoSupport mutation of array indexing
Chris Lattner [Mon, 26 Nov 2001 16:58:33 +0000 (16:58 +0000)]
Support mutation of array indexing

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1341 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoClean up code, implement array indexing stuff
Chris Lattner [Mon, 26 Nov 2001 16:58:14 +0000 (16:58 +0000)]
Clean up code, implement array indexing stuff

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1340 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoImplement array indexing reverse engineering
Chris Lattner [Mon, 26 Nov 2001 16:57:31 +0000 (16:57 +0000)]
Implement array indexing reverse engineering

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1339 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoThe old getIndices has been deprecated, because it no longer works. It now
Chris Lattner [Mon, 26 Nov 2001 16:56:19 +0000 (16:56 +0000)]
The old getIndices has been deprecated, because it no longer works.  It now
is named getIndicesBROKEN() and shall be removed when the codebase is updated
to not call it

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1338 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoImplement array indexing
Chris Lattner [Mon, 26 Nov 2001 16:54:55 +0000 (16:54 +0000)]
Implement array indexing

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1337 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoImplement array indexing with uints
Chris Lattner [Mon, 26 Nov 2001 16:54:11 +0000 (16:54 +0000)]
Implement array indexing with uints

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1336 91177308-0d34-0410-b5e6-96231b3b80d8

22 years ago* Implement more powerful expr analysis of cast instructions
Chris Lattner [Mon, 26 Nov 2001 16:53:50 +0000 (16:53 +0000)]
* Implement more powerful expr analysis of cast instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1335 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoRearrange code
Chris Lattner [Mon, 26 Nov 2001 16:49:49 +0000 (16:49 +0000)]
Rearrange code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1334 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAllow array indexing
Chris Lattner [Mon, 26 Nov 2001 16:49:12 +0000 (16:49 +0000)]
Allow array indexing

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1333 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoBe more const correct
Chris Lattner [Mon, 26 Nov 2001 16:48:56 +0000 (16:48 +0000)]
Be more const correct

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1332 91177308-0d34-0410-b5e6-96231b3b80d8

22 years ago* Remove the indexVec stuff which gets out of sync with the operands of the
Chris Lattner [Mon, 26 Nov 2001 16:48:41 +0000 (16:48 +0000)]
* Remove the indexVec stuff which gets out of sync with the operands of the
  instruction.
* Change the indices to take a vector of Value's instead of ConstPoolVal's
  for array indexing
* Add new idx_ iterator support for iterating over indices

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1331 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoNew Method isLosslesslyConvertableTo
Chris Lattner [Mon, 26 Nov 2001 16:47:10 +0000 (16:47 +0000)]
New Method isLosslesslyConvertableTo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1330 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdd new CompositeType shared baseclass of ArrayType and StructType
Chris Lattner [Mon, 26 Nov 2001 16:46:45 +0000 (16:46 +0000)]
Add new CompositeType shared baseclass of ArrayType and StructType

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1329 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdd casts
Chris Lattner [Mon, 26 Nov 2001 16:46:09 +0000 (16:46 +0000)]
Add casts

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1328 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agocommented out popAllTempValues since it leads to a bug - see code
Ruchira Sasanka [Thu, 15 Nov 2001 22:03:04 +0000 (22:03 +0000)]
commented out popAllTempValues since it leads to a bug - see code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1327 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoCommented some popTempArg.. since it leads to a bug
Ruchira Sasanka [Thu, 15 Nov 2001 22:02:06 +0000 (22:02 +0000)]
Commented some popTempArg.. since it leads to a bug

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1326 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdded naming to inserted phi copy values - for easy debugging
Ruchira Sasanka [Thu, 15 Nov 2001 20:46:40 +0000 (20:46 +0000)]
Added naming to inserted phi copy values - for easy debugging

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1325 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agochanged since names of some methods in PhyRegAlloc changed
Ruchira Sasanka [Thu, 15 Nov 2001 20:25:07 +0000 (20:25 +0000)]
changed since names of some methods in PhyRegAlloc changed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1324 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFixed a bug in setReLRegsUsedByMI
Ruchira Sasanka [Thu, 15 Nov 2001 20:23:19 +0000 (20:23 +0000)]
Fixed a bug in setReLRegsUsedByMI

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1323 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoChanged some names of methods, added const etc.
Ruchira Sasanka [Thu, 15 Nov 2001 20:22:37 +0000 (20:22 +0000)]
Changed some names of methods, added const etc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1322 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFix protection probs
Chris Lattner [Thu, 15 Nov 2001 15:24:31 +0000 (15:24 +0000)]
Fix protection probs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1321 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoModify method AllocateLocalVar to take size argument.
Vikram S. Adve [Thu, 15 Nov 2001 15:23:02 +0000 (15:23 +0000)]
Modify method AllocateLocalVar to take size argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1320 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFix use of AllocateLocalVar for alloca instruction!
Vikram S. Adve [Thu, 15 Nov 2001 15:22:39 +0000 (15:22 +0000)]
Fix use of AllocateLocalVar for alloca instruction!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1319 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoModify AllocateLocalVar method to take a size argument.
Vikram S. Adve [Thu, 15 Nov 2001 15:22:26 +0000 (15:22 +0000)]
Modify AllocateLocalVar method to take a size argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1318 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agofixed setUsedRegAtMI
Ruchira Sasanka [Thu, 15 Nov 2001 15:00:53 +0000 (15:00 +0000)]
fixed setUsedRegAtMI

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1317 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoBug fix for Chris.
Vikram S. Adve [Thu, 15 Nov 2001 15:00:48 +0000 (15:00 +0000)]
Bug fix for Chris.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1316 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoPrint incoming arguments and return values.
Vikram S. Adve [Thu, 15 Nov 2001 15:00:16 +0000 (15:00 +0000)]
Print incoming arguments and return values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1315 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFix int->float conversion.
Vikram S. Adve [Thu, 15 Nov 2001 14:59:56 +0000 (14:59 +0000)]
Fix int->float conversion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1314 91177308-0d34-0410-b5e6-96231b3b80d8

22 years ago-cleangcc pass now remove type names that are never referenced and type names for...
Chris Lattner [Thu, 15 Nov 2001 04:34:46 +0000 (04:34 +0000)]
-cleangcc pass now remove type names that are never referenced and type names for pointers to primitive types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1312 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoChanged phi elimination code
Ruchira Sasanka [Thu, 15 Nov 2001 00:27:14 +0000 (00:27 +0000)]
Changed phi elimination code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1311 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFix cute little bug that was causing the last
Vikram S. Adve [Wed, 14 Nov 2001 21:24:44 +0000 (21:24 +0000)]
Fix cute little bug that was causing the last
structure offset to be ignored in computing an offset!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1310 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoSmall changed to printing a machine operand - It the operand is a def, it prints
Ruchira Sasanka [Wed, 14 Nov 2001 20:05:23 +0000 (20:05 +0000)]
Small changed to printing a machine operand - It the operand is a def, it prints
a star after it - only for debugging

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1309 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoDon't assume constant operand can only be in position 1!
Vikram S. Adve [Wed, 14 Nov 2001 18:49:45 +0000 (18:49 +0000)]
Don't assume constant operand can only be in position 1!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1308 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdd function returning which operand holds immediate constant
Vikram S. Adve [Wed, 14 Nov 2001 18:48:36 +0000 (18:48 +0000)]
Add function returning which operand holds immediate constant
for a given opcode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1307 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoIdiotic error in last fix.
Vikram S. Adve [Wed, 14 Nov 2001 17:55:02 +0000 (17:55 +0000)]
Idiotic error in last fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1306 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoDon't need to load a NULL pointer constant from memory!
Vikram S. Adve [Wed, 14 Nov 2001 17:24:49 +0000 (17:24 +0000)]
Don't need to load a NULL pointer constant from memory!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1305 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoChange latency of SETX to improve schedule -- just a hack.
Vikram S. Adve [Wed, 14 Nov 2001 15:54:44 +0000 (15:54 +0000)]
Change latency of SETX to improve schedule -- just a hack.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1304 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdded support method for setting interference for pseudo instructions
Ruchira Sasanka [Wed, 14 Nov 2001 15:37:13 +0000 (15:37 +0000)]
Added support method for setting interference for pseudo instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1303 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoadded isPseudoInstr()
Ruchira Sasanka [Wed, 14 Nov 2001 15:35:51 +0000 (15:35 +0000)]
added isPseudoInstr()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1302 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdded M_PSEUDO_FLAG for SETX .. instr
Ruchira Sasanka [Wed, 14 Nov 2001 15:35:13 +0000 (15:35 +0000)]
Added M_PSEUDO_FLAG for SETX .. instr

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1301 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdded interference for args in pseudo instructions
Ruchira Sasanka [Wed, 14 Nov 2001 15:33:58 +0000 (15:33 +0000)]
Added interference for args in pseudo instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1300 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoRename cruft
Chris Lattner [Wed, 14 Nov 2001 11:28:18 +0000 (11:28 +0000)]
Rename cruft

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1299 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoRemove much cruft from the MemAccessInst instruction
Chris Lattner [Wed, 14 Nov 2001 11:27:58 +0000 (11:27 +0000)]
Remove much cruft from the MemAccessInst instruction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1298 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFix link prob
Chris Lattner [Wed, 14 Nov 2001 11:03:17 +0000 (11:03 +0000)]
Fix link prob

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1297 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoBetter heuristics for handling arrays
Chris Lattner [Wed, 14 Nov 2001 11:02:49 +0000 (11:02 +0000)]
Better heuristics for handling arrays

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1296 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agocommented out lines printing code after scheduling
Ruchira Sasanka [Tue, 13 Nov 2001 23:12:53 +0000 (23:12 +0000)]
commented out lines printing code after scheduling

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1295 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFixed a bug concering LR spilling. Earlier, added spilled code was not inserted
Ruchira Sasanka [Tue, 13 Nov 2001 23:09:30 +0000 (23:09 +0000)]
Fixed a bug concering LR spilling. Earlier, added spilled code was not inserted
into the instruction stream correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1294 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoChanged checking for invalid register number - earlier it was uisng a contant
Ruchira Sasanka [Tue, 13 Nov 2001 23:08:19 +0000 (23:08 +0000)]
Changed checking for invalid register number - earlier it was uisng a contant

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1293 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoOnly use one form of printVal per program to avoid spurious link errors
Chris Lattner [Tue, 13 Nov 2001 06:27:19 +0000 (06:27 +0000)]
Only use one form of printVal per program to avoid spurious link errors

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1292 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoImplement some more rand functions for em3d benchmark
Chris Lattner [Tue, 13 Nov 2001 05:46:08 +0000 (05:46 +0000)]
Implement some more rand functions for em3d benchmark

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1291 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoOverwrite files when linked
Chris Lattner [Tue, 13 Nov 2001 05:44:27 +0000 (05:44 +0000)]
Overwrite files when linked
Remove native files when cleaned

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1289 91177308-0d34-0410-b5e6-96231b3b80d8

22 years ago* Change ExpressionConvertableToType to more closely match map behavior of
Chris Lattner [Tue, 13 Nov 2001 05:01:36 +0000 (05:01 +0000)]
* Change ExpressionConvertableToType to more closely match map behavior of
  ConvertExpressionToType
* Make ValueHandle's remove instruction from maps when they are deleted so that
  no false map hits occur if a subsequent instruction is allocated to the same
  space in memory.  This was a VERY VERY VERY EVIL NASTY BUG to track down. :-P

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1288 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoMinor style cleanups
Chris Lattner [Tue, 13 Nov 2001 04:59:58 +0000 (04:59 +0000)]
Minor style cleanups

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1287 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAvoid assertion failure when taking size of unsized array. Todo item herE
Chris Lattner [Tue, 13 Nov 2001 04:59:41 +0000 (04:59 +0000)]
Avoid assertion failure when taking size of unsized array.  Todo item herE

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1286 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoDo the same for allocating spills to get their alignment right too.
Vikram S. Adve [Mon, 12 Nov 2001 23:40:22 +0000 (23:40 +0000)]
Do the same for allocating spills to get their alignment right too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1285 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoWhen allocating space on stack for writing a register,
Vikram S. Adve [Mon, 12 Nov 2001 23:26:35 +0000 (23:26 +0000)]
When allocating space on stack for writing a register,
use the size of the register, not the size of the Value type,
to get the right alignment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1284 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoBug fix in offset alignment computations: don't subtract the padding
Vikram S. Adve [Mon, 12 Nov 2001 23:26:23 +0000 (23:26 +0000)]
Bug fix in offset alignment computations: don't subtract the padding
value from size *before* subtracting size from offset!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1283 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoDistinguish LOCAL_LDFLAGS and LOCAL_LCFLAGS from LOCAL_CFLAGS.
Vikram S. Adve [Mon, 12 Nov 2001 23:10:29 +0000 (23:10 +0000)]
Distinguish LOCAL_LDFLAGS and LOCAL_LCFLAGS from LOCAL_CFLAGS.
In particular, never put -lm in LOCAL_[L]CFLAGS because it
disables an implicit rule that has LOCAL_CFLAGS as a prerequisite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1281 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoRemove debug info :(
Chris Lattner [Mon, 12 Nov 2001 21:52:57 +0000 (21:52 +0000)]
Remove debug info :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1280 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFix bug in new assertion
Chris Lattner [Mon, 12 Nov 2001 21:48:38 +0000 (21:48 +0000)]
Fix bug in new assertion

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1279 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFixed a bug with pervious ColorCallArg
Ruchira Sasanka [Mon, 12 Nov 2001 20:54:19 +0000 (20:54 +0000)]
Fixed a bug with pervious ColorCallArg

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1278 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoCanged ColorCallArg so that when a call arg is directly pushed on to stack
Ruchira Sasanka [Mon, 12 Nov 2001 20:31:47 +0000 (20:31 +0000)]
Canged ColorCallArg so that when a call arg is directly pushed on to stack
for argument passing, that instruction is directly added to the InstructionsBefore
set of the called machine instruction - i.e., it is not reordered.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1277 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdd an assertion check
Chris Lattner [Mon, 12 Nov 2001 20:30:32 +0000 (20:30 +0000)]
Add an assertion check

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1276 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoI don't know what I was thinking
Chris Lattner [Mon, 12 Nov 2001 20:30:12 +0000 (20:30 +0000)]
I don't know what I was thinking

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1275 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoPrint percentages for profiling info better
Chris Lattner [Mon, 12 Nov 2001 20:13:14 +0000 (20:13 +0000)]
Print percentages for profiling info better

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1274 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFix minor bug
Chris Lattner [Mon, 12 Nov 2001 20:13:04 +0000 (20:13 +0000)]
Fix minor bug

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1273 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFor phi elimination, now we are generating only one instruction
Ruchira Sasanka [Mon, 12 Nov 2001 19:42:27 +0000 (19:42 +0000)]
For phi elimination, now we are generating only one instruction
using cpValue2Value instead of
passing vector to createCopyInstructionByType.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1272 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoChanged insert instructions only for CONSTANTS - back to original
Ruchira Sasanka [Mon, 12 Nov 2001 19:32:04 +0000 (19:32 +0000)]
Changed insert instructions only for CONSTANTS - back to original

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1271 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoDisable use of the Phi machine instruction which is no longer needed
Vikram S. Adve [Mon, 12 Nov 2001 18:54:11 +0000 (18:54 +0000)]
Disable use of the Phi machine instruction which is no longer needed
for register allocation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1270 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoEliminate most uses of the machine instruction vector for each LLVM instr,
Vikram S. Adve [Mon, 12 Nov 2001 18:53:43 +0000 (18:53 +0000)]
Eliminate most uses of the machine instruction vector for each LLVM instr,
since some m. instr. may be generated by LLVM instrs. in other blocks.
Handle non-SSA (anti and output) edges and true edges uniformly by
working with machine instructions alone.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1269 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoPrint profile info if exit() is called
Chris Lattner [Mon, 12 Nov 2001 16:28:48 +0000 (16:28 +0000)]
Print profile info if exit() is called

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1268 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoHack a structure profiling option together
Chris Lattner [Mon, 12 Nov 2001 16:19:45 +0000 (16:19 +0000)]
Hack a structure profiling option together

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1267 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoChanged for adding Phi Elimination code
Ruchira Sasanka [Mon, 12 Nov 2001 14:46:00 +0000 (14:46 +0000)]
Changed for adding Phi Elimination code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1266 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdded phi elimination code
Ruchira Sasanka [Mon, 12 Nov 2001 14:45:33 +0000 (14:45 +0000)]
Added phi elimination code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1265 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdded phi elimination code - not final
Ruchira Sasanka [Mon, 12 Nov 2001 14:44:50 +0000 (14:44 +0000)]
Added phi elimination code - not final

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1264 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoImproved printing routines.
Vikram S. Adve [Mon, 12 Nov 2001 14:19:47 +0000 (14:19 +0000)]
Improved printing routines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1263 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoMajor improvement to how nodes are built for a BB.
Vikram S. Adve [Mon, 12 Nov 2001 14:18:01 +0000 (14:18 +0000)]
Major improvement to how nodes are built for a BB.
LLVM instruction is no longer recorded in each node, but BB is.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1262 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdjust all stack variable offsets to be aligned by size.
Vikram S. Adve [Mon, 12 Nov 2001 05:17:23 +0000 (05:17 +0000)]
Adjust all stack variable offsets to be aligned by size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1261 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFix dumb bug in alignment adjustment code!
Vikram S. Adve [Mon, 12 Nov 2001 05:16:39 +0000 (05:16 +0000)]
Fix dumb bug in alignment adjustment code!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1260 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFix bogus code that was eliminating needed args.
Vikram S. Adve [Sun, 11 Nov 2001 23:11:36 +0000 (23:11 +0000)]
Fix bogus code that was eliminating needed args.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1259 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFixed FP and SP usage. SP for outgoing args - for everything else FP
Ruchira Sasanka [Sun, 11 Nov 2001 22:37:51 +0000 (22:37 +0000)]
Fixed FP and SP usage. SP for outgoing args - for everything else FP

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1258 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agocahnged StackPointer accesses to FramePointer
Ruchira Sasanka [Sun, 11 Nov 2001 21:49:37 +0000 (21:49 +0000)]
cahnged StackPointer accesses to FramePointer

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1257 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoFix errors in computing downgrowing offsets, and in
Vikram S. Adve [Sun, 11 Nov 2001 21:23:33 +0000 (21:23 +0000)]
Fix errors in computing downgrowing offsets, and in
computing size of extra outgoing args.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1256 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoDown-growing offsets from FP should start at 0, not -1.
Vikram S. Adve [Sun, 11 Nov 2001 21:22:11 +0000 (21:22 +0000)]
Down-growing offsets from FP should start at 0, not -1.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1255 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoOnly add true dep. edges from an earlier to a later instruction.
Vikram S. Adve [Sun, 11 Nov 2001 01:23:27 +0000 (01:23 +0000)]
Only add true dep. edges from an earlier to a later instruction.
This wasn't a problem until we started putting copies for Phi values
that produced cycles in the SchedGraph!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1254 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoChanged code to ignore Phi Nodes in PhyRegAlloc
Ruchira Sasanka [Sat, 10 Nov 2001 21:21:36 +0000 (21:21 +0000)]
Changed code to ignore Phi Nodes in PhyRegAlloc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1253 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoCorrected reodering code for instructions inserted before calls
Ruchira Sasanka [Sat, 10 Nov 2001 21:20:43 +0000 (21:20 +0000)]
Corrected reodering code for instructions inserted before calls

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1252 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoMade isPhi const
Ruchira Sasanka [Sat, 10 Nov 2001 20:58:58 +0000 (20:58 +0000)]
Made isPhi const

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1251 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoUse cc instead of gcc to compile *.native
Vikram S. Adve [Sat, 10 Nov 2001 14:23:54 +0000 (14:23 +0000)]
Use cc instead of gcc to compile *.native

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1250 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoInitail checking of structure swapper
Chris Lattner [Sat, 10 Nov 2001 07:28:25 +0000 (07:28 +0000)]
Initail checking of structure swapper

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1248 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoTestcase for structure field reordering
Chris Lattner [Sat, 10 Nov 2001 07:26:59 +0000 (07:26 +0000)]
Testcase for structure field reordering

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1247 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoInitial checkin of structure mutator
Chris Lattner [Sat, 10 Nov 2001 07:26:31 +0000 (07:26 +0000)]
Initial checkin of structure mutator

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1246 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoInitial checkin of Structure mutator
Chris Lattner [Sat, 10 Nov 2001 07:26:22 +0000 (07:26 +0000)]
Initial checkin of Structure mutator

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1245 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoAdd hooks to call the new swap structcontents pass
Chris Lattner [Sat, 10 Nov 2001 07:16:10 +0000 (07:16 +0000)]
Add hooks to call the new swap structcontents pass

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1243 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoadd Yet Another Instance of a Static Library
Chris Lattner [Sat, 10 Nov 2001 07:15:53 +0000 (07:15 +0000)]
add Yet Another Instance of a Static Library

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1242 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoProvide const version of function with the name the other will be eventually renamed to
Chris Lattner [Sat, 10 Nov 2001 06:48:14 +0000 (06:48 +0000)]
Provide const version of function with the name the other will be eventually renamed to

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1241 91177308-0d34-0410-b5e6-96231b3b80d8

22 years agoRefactor some functionality to expose more useful stuff
Chris Lattner [Sat, 10 Nov 2001 06:47:45 +0000 (06:47 +0000)]
Refactor some functionality to expose more useful stuff

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1240 91177308-0d34-0410-b5e6-96231b3b80d8