Commit Graph

  • cc3a0dbb85 Corrected the compilation error by making the ValOperator class a friend of MachineOperand class - Ruchira Ruchira Sasanka 2001-08-13 16:54:48 +00:00
  • 149977b48a Always set isDef for operand in position resultPos. Vikram S. Adve 2001-08-13 16:32:45 +00:00
  • b0cdcda42a Changed SetMachineOpernad calls in Set3OperandsFromInstr so that the result position is a def (i.e., added true to the end of call) -- Ruchira Ruchira Sasanka 2001-08-13 16:26:28 +00:00
  • 81cb20775a Changed case 64 to make the first arg of phi a defintion Ruchira Sasanka 2001-08-13 16:24:01 +00:00
  • 4f01c1ee99 Can't use ref to stack value! Vikram S. Adve 2001-08-09 20:14:22 +00:00
  • 98f2f8053b Needed old conditions as well as new in skipToNextVal()! Vikram S. Adve 2001-08-09 19:18:33 +00:00
  • 7c02601b58 Bug fix in ValOpIterator: not moving past operand with NULL Value. Vikram S. Adve 2001-08-08 00:15:42 +00:00
  • 0b03c6a492 *** empty log message *** Ruchira Sasanka 2001-08-07 21:01:23 +00:00
  • 45c171ee25 added a default isDef arg to SetMachineOperand method - Ruchira Ruchira Sasanka 2001-08-07 20:16:52 +00:00
  • 773fc471bd Added isDef field to MachineOperand class - Ruchira Ruchira Sasanka 2001-08-07 20:14:30 +00:00
  • 98a9c979e2 Add CC operand as 4th operand of SUBcc, and mark it as a def. Vikram S. Adve 2001-08-06 21:06:10 +00:00
  • 6a0c6d82a9 Use extra operand for instructions that set a CC register that was not explicit before. Vikram S. Adve 2001-08-06 21:05:39 +00:00
  • 0fae90e3a2 Also, move burg rule to Makefile.common. Vikram S. Adve 2001-08-06 19:06:56 +00:00
  • bedbcf65e2 And add rule to create a .cpp source file from burg input file! Vikram S. Adve 2001-08-06 19:06:43 +00:00
  • 811aad97c1 Better still, lets move pathname for Burg to Makefile.common. Vikram S. Adve 2001-08-06 19:01:45 +00:00
  • dba59efd43 Add path and options for burg. Vikram S. Adve 2001-08-06 19:01:20 +00:00
  • 735c4ce808 Use full pathname for burg. Vikram S. Adve 2001-08-06 18:53:26 +00:00
  • 3929cf6779 Allow numOperands of -1 for variable #operands. Vikram S. Adve 2001-07-31 21:55:51 +00:00
  • 960066ad75 Simplify command line options, and add option for printing machine instructions without debugging info. Vikram S. Adve 2001-07-31 21:53:25 +00:00
  • cf8a5f899b Had used the wrong option. Vikram S. Adve 2001-07-31 21:52:28 +00:00
  • 769939dbde Added tree nodes for Phi instructions. Vikram S. Adve 2001-07-31 21:50:29 +00:00
  • e4e77f9efc Generate tree nodes for Phi instructions. Vikram S. Adve 2001-07-31 21:49:53 +00:00
  • 1885da4f49 Allow machine instructions with variable numbers of arguments. This is used only by Phi for now. Vikram S. Adve 2001-07-31 21:49:28 +00:00
  • 0a229ed79a Added dummy Phi instruction. Vikram S. Adve 2001-07-31 21:48:23 +00:00
  • 74f4a130d2 Generate dummy Phi machine instruction, plus a bug fix for BrCond(boolreg). Vikram S. Adve 2001-07-31 21:46:57 +00:00
  • 35fc0b172e Added support for testing instruction selection on all but 2 tests. Vikram S. Adve 2001-07-31 21:45:56 +00:00
  • f6445837e9 Added class MachineCodeForBasicBlock. Vikram S. Adve 2001-07-30 18:49:07 +00:00
  • 76d3520f3e Record machine instructions in the vector for each basic block. Vikram S. Adve 2001-07-30 18:48:43 +00:00
  • b63933975f Added vector of machine instructions for the basic block. Vikram S. Adve 2001-07-30 18:47:24 +00:00
  • 877fbcd8d7 New test cases Chris Lattner 2001-07-28 18:04:10 +00:00
  • ca112b361e Remove some gross stuff Chris Lattner 2001-07-28 17:52:53 +00:00
  • 3868521e22 Allow vararg method types with 0 fixed types Chris Lattner 2001-07-28 17:52:35 +00:00
  • 36e4b8aec4 Make error msg nicer Chris Lattner 2001-07-28 17:52:14 +00:00
  • ee7cb29866 Enable the elimination of method prototypes that are not referenced Chris Lattner 2001-07-28 17:51:49 +00:00
  • 7c5014767f * Make sure that the size of the type field can also control the output instruction pattern. Chris Lattner 2001-07-28 17:51:21 +00:00
  • 3d3f289eac * Add calls to failure template so that it is actually possible to debug why bytecode parsing is failing. Just put a breakpoint in the failure templates. Chris Lattner 2001-07-28 17:50:18 +00:00
  • 81e29632f7 * Fix bugs Chris Lattner 2001-07-28 17:49:02 +00:00
  • 93750fa4f8 * Enable the use of escaped literal strings * Unresolved variable names now have the correct line number for their error messages * Rename Def* to Value* * Check for symbol table collisions before inserting values * Remove the STRING keyword * Enable the use of string literals to initialize constant arrays * Enable the use of extended constants in more locations: eg ret [int] [4, 5] * Allow method prototypes to appear in the constant pool of the program * Support varargs methods better. Enable varargs methods with 0 fixed arguments * Allow the entire method prototype to optionally be specified in a call inst Chris Lattner 2001-07-28 17:48:55 +00:00
  • 0add2d33e4 Modify var names to make it apparant that the code is really generic Chris Lattner 2001-07-28 17:43:45 +00:00
  • dc693b8965 Changes to make test scripts more reliable Chris Lattner 2001-07-28 17:40:15 +00:00
  • e17303dc9b Add test of string constants Chris Lattner 2001-07-28 17:39:46 +00:00
  • 7d2a2518e8 Added function printIndent. Vikram S. Adve 2001-07-28 04:41:27 +00:00
  • bf2b7e8beb Added a pointer hash function object for use in pointer maps. Vikram S. Adve 2001-07-28 04:41:10 +00:00
  • 8b6821732e Make a function const. Vikram S. Adve 2001-07-28 04:40:15 +00:00
  • 588f14855f Remove lib/LLC library. Vikram S. Adve 2001-07-28 04:39:27 +00:00
  • 670d0abe49 Added several SPARC instructions including conditional move and SETHI. Added MachineInstrInfo class and subclass UltraSparcInstrInfo. Added several fields to MachineInstrDescriptor (and renamed it from MachineInstrInfo). Latency fields are to support scheduling. Vikram S. Adve 2001-07-28 04:26:42 +00:00
  • 2e4d108495 Remove redundant and unused functions. Vikram S. Adve 2001-07-28 04:20:33 +00:00
  • 3c3b713d55 Added UltraSparcInstrInfo class to specialize class MachineInstrInfo. Relevant changes elsewhere: Added MachineInstrInfo class and moved instruction-related members there. Added several fields to MachineInstrDescriptor (and renamed it from MachineInstrInfo. Latency fields are to support scheduling. Vikram S. Adve 2001-07-28 04:19:10 +00:00
  • 9b0b1ec1ec Eliminate unused function. Vikram S. Adve 2001-07-28 04:15:45 +00:00
  • 4f23166133 Bug fixes: Store bool result in register after SetCC if the bool value is used by anything other than a branch. Forward-substitute operand of a VM instruction for which no machine instruction is generated (e.g., Cast). Other changes due to changes to classes TargetMachine and MachineInstr. Vikram S. Adve 2001-07-28 04:15:15 +00:00
  • 44a853cc53 Added MachineInstrInfo class and moved instruction-related members there. Added several fields to MachineInstrDescriptor (and renamed it from MachineInstrInfo. Latency fields are to support scheduling. Vikram S. Adve 2001-07-28 04:09:37 +00:00
  • 6a175e01eb Eliminate separate enum for operand register type. Use union for alternative data for different operand types. Add iterator over Value* operands in a MachineInstr. Vikram S. Adve 2001-07-28 04:06:37 +00:00
  • 8ce0669a56 Work around a few 'sorting issues' with the bytecode output that causes the bytecode not to be bit for bit identical. This is a hack and should be fixed in the future Chris Lattner 2001-07-26 16:30:18 +00:00
  • 1333ed5b4f Don't write out constants that do not have a name, they will be inlined. Chris Lattner 2001-07-26 16:29:38 +00:00
  • bcbf6baf10 Refactor some of the constant stuff so that we can return complex constant values directly. This was causing test failures. :( Chris Lattner 2001-07-26 16:29:15 +00:00
  • 9b50c1578d Add an arg to insertVal to allow us to prevent builtin types from being ignored when they are inserted. Chris Lattner 2001-07-26 16:28:37 +00:00
  • a25809dda4 Add an arg to insertVal to allow us to prevent builtin types from being ignored when they are inserted Chris Lattner 2001-07-26 16:28:18 +00:00
  • c628b1790d New test for varargs functions Chris Lattner 2001-07-25 22:49:12 +00:00
  • 0c4897e5c5 Add library dep Chris Lattner 2001-07-25 22:48:43 +00:00
  • da5cfa369f Parenthesize output for expranalyze so that pointer stuff being multiplied isn't confusing Chris Lattner 2001-07-25 22:48:37 +00:00
  • f3a5981663 Build as before dis Chris Lattner 2001-07-25 22:48:09 +00:00
  • e5a57ee363 Add support for extern varargs methods & varargs method calls Chris Lattner 2001-07-25 22:47:55 +00:00
  • 8b81bf5046 Add support for extern varargs methods & varargs method calls Remove tool generated files Chris Lattner 2001-07-25 22:47:46 +00:00
  • 793d678316 Fix a bug when compiling 'shl ubyte * %var, ubyte 2' Chris Lattner 2001-07-25 22:47:32 +00:00
  • 50f98f0702 Filter out noncore stuff Chris Lattner 2001-07-25 22:46:22 +00:00
  • 3805e4ccfa Fixed a bug exposed when doing something like this: <program> -notanoption --help Chris Lattner 2001-07-25 18:40:49 +00:00
  • b2d11bad7e Changed printValue() to print constant value if the value is a constant. Ruchira Sasanka 2001-07-24 18:21:21 +00:00
  • 683847fb75 *** empty log message *** Ruchira Sasanka 2001-07-24 17:14:13 +00:00
  • 2233a07b68 Doh! Wrong Optional flag. :( Chris Lattner 2001-07-23 23:14:23 +00:00
  • 03fe1bd149 Add a comment indicating that there is documentation of the library Chris Lattner 2001-07-23 23:04:07 +00:00
  • 209c7f41f9 Initial checking of some rough documentation for commandline library Chris Lattner 2001-07-23 23:03:12 +00:00
  • afb0cbb9f8 Change option name slightly Chris Lattner 2001-07-23 23:02:51 +00:00
  • dc4693dbcf Minor changes to implementation of CommandLine library to let users override options forced by different subclasses of Option Chris Lattner 2001-07-23 23:02:45 +00:00
  • 7ae36bbe06 Add a missing </a> tag Chris Lattner 2001-07-23 20:40:41 +00:00
  • a8e1fd30ed Use the new Alias command line option Chris Lattner 2001-07-23 20:22:30 +00:00
  • 1e78f36127 CommandLine library cleanup. No longer use getValue/setValue, instead, just treat the commandline args as the objects they represent and the "right thing" will happen Chris Lattner 2001-07-23 19:27:24 +00:00
  • b49ff5c5ee Doh! Wrong accessor. Caused 'can not read bytecode' errors. :( Chris Lattner 2001-07-23 18:51:23 +00:00
  • e2aad23855 -help is verbose enough that we don't need this anymore Chris Lattner 2001-07-23 18:31:02 +00:00
  • 4bc3daaa3f Eliminated the Unique class in favor of NonCopyable and NonCopyableV Chris Lattner 2001-07-23 18:26:21 +00:00
  • 57dbb3ad63 Moved inline/llvm/Tools/* to include/llvm/Support/* Chris Lattner 2001-07-23 17:46:59 +00:00
  • dbab15a2c9 Initial checkin Chris Lattner 2001-07-23 17:17:47 +00:00
  • 50d89859e2 Fix coding style issues to actually attempt to be somewhat uniform Chris Lattner 2001-07-23 05:03:15 +00:00
  • d8fa8e2aa1 Nonpolymorphic class, doesn't need a virtual dtor! Chris Lattner 2001-07-23 03:57:05 +00:00
  • 75279ccc75 Clean up hash table usage Remove opaque pointer used for C compatibility which isn't an issue Chris Lattner 2001-07-23 03:50:57 +00:00
  • 6c5a32d545 Removal of the redundant CompileContext wrapper Chris Lattner 2001-07-23 03:09:03 +00:00
  • 0f68368fd8 Verbosify descriptions Chris Lattner 2001-07-23 02:54:25 +00:00
  • 8f367bd3c0 Large scale changes to implement new command line argument facility Chris Lattner 2001-07-23 02:35:57 +00:00
  • a28504313d Remove dependence on command line library. Silly anyway. Chris Lattner 2001-07-22 18:36:00 +00:00
  • 86b5f3c524 Make it pickier Chris Lattner 2001-07-22 05:45:46 +00:00
  • 3fcf6ec1e9 Add flag for emacs so it realizes it's C++ code Chris Lattner 2001-07-22 05:15:16 +00:00
  • 90147816f6 New test case Chris Lattner 2001-07-22 05:00:34 +00:00
  • aceb9132b7 Privatize LLCOptions. It had no business being visible to the entire program. Chris Lattner 2001-07-22 04:40:02 +00:00
  • c21d4fcb20 Move private header into private directory Chris Lattner 2001-07-22 03:59:25 +00:00
  • 953e0d7076 Convert from using C style char*'s to strings. Chris Lattner 2001-07-22 03:57:31 +00:00
  • 29f921ca75 Remove String file some more Chris Lattner 2001-07-22 00:46:48 +00:00
  • c03520210c Remove stringutils.h file Chris Lattner 2001-07-22 00:18:33 +00:00
  • 7ac1040ece Destroy the StringUtils.h file Chris Lattner 2001-07-22 00:18:10 +00:00
  • 68498cefe6 Eliminate lots of unnecessary #includes and forward decls there are probably more to kill Chris Lattner 2001-07-21 23:24:48 +00:00
  • 942d99e4c8 Eliminate many unneccesary #includes Chris Lattner 2001-07-21 22:59:56 +00:00
  • 51a9ad93af Make code fit in 80 columns more Chris Lattner 2001-07-21 22:57:05 +00:00