oota-llvm.git
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

22 years agoSeveral bug fixes in printing constants, particularly with unsized
Vikram S. Adve [Sat, 10 Nov 2001 02:03:06 +0000 (02:03 +0000)]
Several bug fixes in printing constants, particularly with unsized
arrays and multi-dimensional arrays.

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

22 years agoMust generate an instruction for GetElementPtr if single user is not
Vikram S. Adve [Sat, 10 Nov 2001 01:05:26 +0000 (01:05 +0000)]
Must generate an instruction for GetElementPtr if single user is not
a memory instruction!

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

22 years agoDisabled some debuggin messages
Ruchira Sasanka [Sat, 10 Nov 2001 00:26:55 +0000 (00:26 +0000)]
Disabled some debuggin messages

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

22 years agoCoalesing bug fix - now checks for the same regType instead of the same
Ruchira Sasanka [Sat, 10 Nov 2001 00:20:24 +0000 (00:20 +0000)]
Coalesing bug fix - now checks for the same regType instead of the same
regClass since FP class has two reg Types.

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

22 years agoNo major change
Ruchira Sasanka [Fri, 9 Nov 2001 23:49:42 +0000 (23:49 +0000)]
No major change

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

22 years agoAdded code for correct reordering of call arguments
Ruchira Sasanka [Fri, 9 Nov 2001 23:49:14 +0000 (23:49 +0000)]
Added code for correct reordering of call arguments

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

22 years agoAdd hooks for the FindUsedTypes pass
Chris Lattner [Fri, 9 Nov 2001 05:27:34 +0000 (05:27 +0000)]
Add hooks for the FindUsedTypes pass

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

22 years agoNew pass to find types in use by a program
Chris Lattner [Fri, 9 Nov 2001 05:27:21 +0000 (05:27 +0000)]
New pass to find types in use by a program

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

22 years agoNew pass to figure out what types are in use by a program
Chris Lattner [Fri, 9 Nov 2001 05:27:10 +0000 (05:27 +0000)]
New pass to figure out what types are in use by a program

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

22 years agoAdded function LL__main.
Vikram S. Adve [Fri, 9 Nov 2001 02:21:38 +0000 (02:21 +0000)]
Added function LL__main.

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

22 years agoAdded class MachineCacheInfo.
Vikram S. Adve [Fri, 9 Nov 2001 02:20:18 +0000 (02:20 +0000)]
Added class MachineCacheInfo.

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

22 years agoAdd support to print constant arrays and structures.
Vikram S. Adve [Fri, 9 Nov 2001 02:19:29 +0000 (02:19 +0000)]
Add support to print constant arrays and structures.
Align data larger than an L1 cache line on L1 cache line boundary.

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

22 years agoDo the same for float->int that we did for int->float earlier.
Vikram S. Adve [Fri, 9 Nov 2001 02:18:16 +0000 (02:18 +0000)]
Do the same for float->int that we did for int->float earlier.
Also check IsPointerType() in addition to IsIntegral() in several places.

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

22 years agoAdded function UltraSparcInstrInfo::CreateCodeToCopyFloatToInt.
Vikram S. Adve [Fri, 9 Nov 2001 02:16:40 +0000 (02:16 +0000)]
Added function UltraSparcInstrInfo::CreateCodeToCopyFloatToInt.

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

22 years agoAdded class UltraSparcCacheInfo.
Vikram S. Adve [Fri, 9 Nov 2001 02:16:04 +0000 (02:16 +0000)]
Added class UltraSparcCacheInfo.

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

22 years agoBug fix: Need to include the stack offset "bias" in assembly code itself.
Vikram S. Adve [Fri, 9 Nov 2001 02:15:52 +0000 (02:15 +0000)]
Bug fix: Need to include the stack offset "bias" in assembly code itself.
Added class UltraSparcCacheInfo.
Added function to convert float to int by copying via memory.

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

22 years agoUse node->getOpCode() instead of node->getMachineInstr()->getOpCode().
Vikram S. Adve [Fri, 9 Nov 2001 02:14:20 +0000 (02:14 +0000)]
Use node->getOpCode() instead of node->getMachineInstr()->getOpCode().
Much nicer.

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

22 years agoCache parameters for target machine.
Vikram S. Adve [Fri, 9 Nov 2001 02:11:25 +0000 (02:11 +0000)]
Cache parameters for target machine.

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

22 years agoAdded class MachineCacheInfo.
Vikram S. Adve [Fri, 9 Nov 2001 02:11:03 +0000 (02:11 +0000)]
Added class MachineCacheInfo.
Also added function to convert float to int by copying via memory.

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

22 years agoRemove false optimization that basically broke everything
Chris Lattner [Fri, 9 Nov 2001 01:08:10 +0000 (01:08 +0000)]
Remove false optimization that basically broke everything

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

22 years ago* Add better caching of data to avoid silly recusions
Chris Lattner [Thu, 8 Nov 2001 22:06:31 +0000 (22:06 +0000)]
* Add better caching of data to avoid silly recusions
* Only check to see if uses of instructions can be converted for expressions... so we don't look at all of the uses of a constant.  This was making the code unnecessarily conservative

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

22 years agoAdd method decl
Chris Lattner [Thu, 8 Nov 2001 20:55:05 +0000 (20:55 +0000)]
Add method decl

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

22 years agoRemove unneeded forward decl
Chris Lattner [Thu, 8 Nov 2001 20:54:51 +0000 (20:54 +0000)]
Remove unneeded forward decl

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

22 years agoImprove raising significantly
Chris Lattner [Thu, 8 Nov 2001 20:19:56 +0000 (20:19 +0000)]
Improve raising significantly

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

22 years agoPrint the method that makes an instruction invalid
Chris Lattner [Thu, 8 Nov 2001 19:29:51 +0000 (19:29 +0000)]
Print the method that makes an instruction invalid

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

22 years agocorrected insertCode4Spilled ... bug.
Ruchira Sasanka [Thu, 8 Nov 2001 19:11:30 +0000 (19:11 +0000)]
corrected insertCode4Spilled ...  bug.

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

22 years agoEliminate cleaning step for individual %.bc files created by our gcc.
Vikram S. Adve [Thu, 8 Nov 2001 18:42:08 +0000 (18:42 +0000)]
Eliminate cleaning step for individual %.bc files created by our gcc.

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

22 years agoTook out .clean.bc target.
Vikram S. Adve [Thu, 8 Nov 2001 18:25:05 +0000 (18:25 +0000)]
Took out .clean.bc target.

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

22 years agoRun cleaning pass only when linking multiple files.
Vikram S. Adve [Thu, 8 Nov 2001 18:14:20 +0000 (18:14 +0000)]
Run cleaning pass only when linking multiple files.

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

22 years agoAdd cleaning pass after linking.
Vikram S. Adve [Thu, 8 Nov 2001 18:13:17 +0000 (18:13 +0000)]
Add cleaning pass after linking.

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

22 years agoUncommented LR spill code insertion
Ruchira Sasanka [Thu, 8 Nov 2001 16:43:25 +0000 (16:43 +0000)]
Uncommented LR spill code insertion

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

22 years agoKeep *.s files while we're debugging the native code.
Vikram S. Adve [Thu, 8 Nov 2001 14:31:05 +0000 (14:31 +0000)]
Keep *.s files while we're debugging the native code.
Also, fix rule for $(LLCLIBS).

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

22 years agoBug fix: need to use .reserve for uninitialized data.
Vikram S. Adve [Thu, 8 Nov 2001 14:29:57 +0000 (14:29 +0000)]
Bug fix: need to use .reserve for uninitialized data.

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

22 years agoAdd rule for %.clean.bc.
Vikram S. Adve [Thu, 8 Nov 2001 05:28:08 +0000 (05:28 +0000)]
Add rule for %.clean.bc.

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

22 years agoBug fix: cannot modify Phi operands while iterating over them!
Vikram S. Adve [Thu, 8 Nov 2001 05:25:33 +0000 (05:25 +0000)]
Bug fix: cannot modify Phi operands while iterating over them!

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

22 years agoAdd handle to object MachineFrameInfo.
Vikram S. Adve [Thu, 8 Nov 2001 05:23:45 +0000 (05:23 +0000)]
Add handle to object MachineFrameInfo.

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

22 years agoInclude handle to TargetMachine in each Machine...Info class.
Vikram S. Adve [Thu, 8 Nov 2001 05:22:43 +0000 (05:22 +0000)]
Include handle to TargetMachine in each Machine...Info class.

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

22 years agoAdd method CreateCodeToCopyIntToFloat.
Vikram S. Adve [Thu, 8 Nov 2001 05:22:15 +0000 (05:22 +0000)]
Add method CreateCodeToCopyIntToFloat.
Include handle to TargetMachine in each Machine...Info object.

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

22 years agoMajor change to how defs are found when adding dependences (they
Vikram S. Adve [Thu, 8 Nov 2001 05:20:23 +0000 (05:20 +0000)]
Major change to how defs are found when adding dependences (they
are now found as part of the initial walk of the machine code).
Also memory load/store instructions can be generated for non-memory
LLVM instructions, which wasn't handled before.  It is now.

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

22 years agoMachineCodeForMethod is now an annotation on class Method.
Vikram S. Adve [Thu, 8 Nov 2001 05:18:18 +0000 (05:18 +0000)]
MachineCodeForMethod is now an annotation on class Method.

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

22 years agoAdd handle to TargetMachine object in all Machine...Info classes.
Vikram S. Adve [Thu, 8 Nov 2001 05:15:08 +0000 (05:15 +0000)]
Add handle to TargetMachine object in all Machine...Info classes.

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

22 years agoAdded support for bitwise logical operators. Use different labels for
Vikram S. Adve [Thu, 8 Nov 2001 05:14:02 +0000 (05:14 +0000)]
Added support for bitwise logical operators.  Use different labels for
for these than for boolean logicals to avoid making Burg diverge.
See Burg manual for more information.

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

22 years agoFixed function getEscapedString to follow the Sparc assembly rules
Vikram S. Adve [Thu, 8 Nov 2001 05:12:37 +0000 (05:12 +0000)]
Fixed function getEscapedString to follow the Sparc assembly rules
for symbol names!  (And renamed it to getValidSymbolName).
Fixed format for float and other constants.

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

22 years agoFix bugs in FITOS/D instruction generation.
Vikram S. Adve [Thu, 8 Nov 2001 05:04:09 +0000 (05:04 +0000)]
Fix bugs in FITOS/D instruction generation.
The space for optional args in the stack frame is now being computed,
so finish the code generation for the variable `alloca'.
Finally, made a major overhaul of how stack frame is managed.

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

22 years agoAdded new function UltraSparcInstrInfo::CreateCodeToCopyIntToFloat.
Vikram S. Adve [Thu, 8 Nov 2001 04:57:53 +0000 (04:57 +0000)]
Added new function UltraSparcInstrInfo::CreateCodeToCopyIntToFloat.
Also major overhaul of how stack frame is managed.

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

22 years agoRemoved class RegStackOffsets and used class MachineCodeForMethod
Vikram S. Adve [Thu, 8 Nov 2001 04:56:41 +0000 (04:56 +0000)]
Removed class RegStackOffsets and used class MachineCodeForMethod
directly to manage stack frame.

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

22 years agoUse MachineFrameInfo as base class of UltraSparcFrameInfo, and made
Vikram S. Adve [Thu, 8 Nov 2001 04:55:13 +0000 (04:55 +0000)]
Use MachineFrameInfo as base class of UltraSparcFrameInfo, and made
a major overhaul of this class and how stack frames are managed.

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

22 years agoMachine-independent interface to target's stack frame layout parameters.
Vikram S. Adve [Thu, 8 Nov 2001 04:52:27 +0000 (04:52 +0000)]
Machine-independent interface to target's stack frame layout parameters.

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

22 years agoUse different op labels for bitwise logical operations and boolean logical
Vikram S. Adve [Thu, 8 Nov 2001 04:51:39 +0000 (04:51 +0000)]
Use different op labels for bitwise logical operations and boolean logical
operations in BURG input trees.

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

22 years agoAdded a second constructor for and improved class TmpInstruction.
Vikram S. Adve [Thu, 8 Nov 2001 04:50:33 +0000 (04:50 +0000)]
Added a second constructor for and improved class TmpInstruction.

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

22 years agoAdded two minor methods.
Vikram S. Adve [Thu, 8 Nov 2001 04:49:52 +0000 (04:49 +0000)]
Added two minor methods.

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

22 years agoRemoved class RegStackOffsets and used class MachineCodeForMethod
Vikram S. Adve [Thu, 8 Nov 2001 04:48:50 +0000 (04:48 +0000)]
Removed class RegStackOffsets and used class MachineCodeForMethod
directly to manage stack frame.

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

22 years agoMajor overhaul of stack frame management.
Vikram S. Adve [Thu, 8 Nov 2001 04:47:06 +0000 (04:47 +0000)]
Major overhaul of stack frame management.

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

22 years agoOld file which was moved to include/llvm/Target some time back.
Vikram S. Adve [Thu, 8 Nov 2001 04:46:08 +0000 (04:46 +0000)]
Old file which was moved to include/llvm/Target some time back.

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

22 years agoRemoved MachineCodeForMethod object and made it an annotation.
Vikram S. Adve [Thu, 8 Nov 2001 04:38:58 +0000 (04:38 +0000)]
Removed MachineCodeForMethod object and made it an annotation.

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

22 years agoAdd analysis pass.
Chris Lattner [Wed, 7 Nov 2001 21:16:29 +0000 (21:16 +0000)]
Add analysis pass.

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

22 years agoInitial checkin of pointer safety checker
Chris Lattner [Wed, 7 Nov 2001 21:16:12 +0000 (21:16 +0000)]
Initial checkin of pointer safety checker

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

22 years agoCorrect problem that allows indirect function calls
Chris Lattner [Wed, 7 Nov 2001 20:12:30 +0000 (20:12 +0000)]
Correct problem that allows indirect function calls

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

22 years ago* Switch to operation on pointers with PointerTy more consistently
Chris Lattner [Wed, 7 Nov 2001 19:46:27 +0000 (19:46 +0000)]
* Switch to operation on pointers with PointerTy more consistently
* Fix misspeling
* Catch SIGFPE for traps
* info XXX now prints the raw contents of the GenericValue
* Switch to calloc instead of malloc (temporarily I hope) to bandaid Olden benchmarks
* Implement binary And & Or
* Convert expressions like this:
     PointerTy SrcPtr = getOperandValue(I->getPtrOperand(), SF).PointerVal;
  to:
    GenericValue SRC = getOperandValue(I->getPtrOperand(), SF);
    PointerTy SrcPtr = SRC.PointerVal;
  because the prior way confuses purify.
* Taint the initial values of the value planes
* Handling 'print bb4' in the interpreter without crashing
* Print nicer stack frames with concise return type
* printf doesn't suck nearly as badly as it used to

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

22 years ago1. -Winline emits spurious warnings that aren't useful right now
Chris Lattner [Wed, 7 Nov 2001 14:50:58 +0000 (14:50 +0000)]
1. -Winline emits spurious warnings that aren't useful right now
2. Fix the "rebuild everything if I change one file" problem

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

22 years agoKilling warnings
Chris Lattner [Wed, 7 Nov 2001 14:01:59 +0000 (14:01 +0000)]
Killing warnings

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

22 years agoAdd #includes to enable buiding in Release mode
Chris Lattner [Wed, 7 Nov 2001 13:49:45 +0000 (13:49 +0000)]
Add #includes to enable buiding in Release mode

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

22 years agoSquelch warnings about not returning a value
Chris Lattner [Wed, 7 Nov 2001 13:49:12 +0000 (13:49 +0000)]
Squelch warnings about not returning a value

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

22 years agoRoll back all these changes that have broken Makefile.target again.
Vikram S. Adve [Wed, 7 Nov 2001 12:29:40 +0000 (12:29 +0000)]
Roll back all these changes that have broken Makefile.target again.

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

22 years agoOkay, so this is a huge hack. Fixme later
Chris Lattner [Wed, 7 Nov 2001 05:31:53 +0000 (05:31 +0000)]
Okay, so this is a huge hack.  Fixme later

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

22 years ago*Print Stack traces better.
Chris Lattner [Wed, 7 Nov 2001 05:31:27 +0000 (05:31 +0000)]
*Print Stack traces better.
* Use the cache writer for all it's problems.
* print arguments to methods in stack traces.
*Print the current stack from for up/down commands.

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

22 years ago* Use cached writer to speed up printing and get symbolic types more consistently
Chris Lattner [Wed, 7 Nov 2001 04:23:00 +0000 (04:23 +0000)]
* Use cached writer to speed up printing and get symbolic types more consistently
* When a segfault or bus error occurs, stop the program, print a stack trace, and dump the user in the debugger mode

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

22 years agoImplement CachedWriter class to allow module level printing of various components...
Chris Lattner [Wed, 7 Nov 2001 04:21:57 +0000 (04:21 +0000)]
Implement CachedWriter class to allow module level printing of various components very quickly

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

22 years agoNew class to provide high performance writing.
Chris Lattner [Wed, 7 Nov 2001 04:20:50 +0000 (04:20 +0000)]
New class to provide high performance writing.

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

22 years agoAdd %p format to printf, which MUST be used when printing pointer values.
Chris Lattner [Wed, 7 Nov 2001 02:57:33 +0000 (02:57 +0000)]
Add %p format to printf, which MUST be used when printing pointer values.

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

22 years agoImplement log and drand48 for TSP bm
Chris Lattner [Tue, 6 Nov 2001 22:53:25 +0000 (22:53 +0000)]
Implement log and drand48 for TSP bm

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

22 years agoMinor fixes
Chris Lattner [Tue, 6 Nov 2001 22:53:17 +0000 (22:53 +0000)]
Minor fixes

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

22 years agoAdd notes
Chris Lattner [Tue, 6 Nov 2001 22:53:11 +0000 (22:53 +0000)]
Add notes

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

22 years agoImplement sqrt, implement printf better, simpler.
Chris Lattner [Tue, 6 Nov 2001 21:52:18 +0000 (21:52 +0000)]
Implement sqrt, implement printf better, simpler.

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

22 years agoFix minor bug for shifts
Chris Lattner [Tue, 6 Nov 2001 21:51:48 +0000 (21:51 +0000)]
Fix minor bug for shifts

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

22 years agoPrint out the abridged form of the call instruction.
Chris Lattner [Tue, 6 Nov 2001 21:28:12 +0000 (21:28 +0000)]
Print out the abridged form of the call instruction.

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

22 years agoBuild .bc from .c better.
Chris Lattner [Tue, 6 Nov 2001 20:44:15 +0000 (20:44 +0000)]
Build .bc from .c better.

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

22 years agoDon't forget to make the clean version.
Chris Lattner [Tue, 6 Nov 2001 20:23:50 +0000 (20:23 +0000)]
Don't forget to make the clean version.

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

22 years agoReally fix Makefile to compile individual tests and Olden codes.
Vikram S. Adve [Tue, 6 Nov 2001 17:09:49 +0000 (17:09 +0000)]
Really fix Makefile to compile individual tests and Olden codes.
by using a better naming scheme.

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

22 years agoMoved *.c files into subdirectory TestSources to avoid overwriting
Vikram S. Adve [Tue, 6 Nov 2001 17:06:06 +0000 (17:06 +0000)]
Moved *.c files into subdirectory TestSources to avoid overwriting
corresponding *.ll files.

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

22 years agoFixed bug - added code in pushUnconstrainedIGNodes() to check whether a node
Ruchira Sasanka [Tue, 6 Nov 2001 15:25:38 +0000 (15:25 +0000)]
Fixed bug - added code in pushUnconstrainedIGNodes() to check whether a node
is already pushed to stack by a previous call to the same method.

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