Commit Graph

  • 2ce0cbbbe1 Add new base class ConstPoolInt, useful for dealing with integral constants Chris Lattner 2001-07-20 19:13:28 +00:00
  • 646ffa4919 Add new method, ensureTypeAvailable Chris Lattner 2001-07-20 19:13:04 +00:00
  • edde66d9e0 Change is*Type to be a casting convertion operator Add a new isIntegral virtual function Chris Lattner 2001-07-20 19:12:34 +00:00
  • 781532e45b Add an function to BinaryOperator to swap the two operands Chris Lattner 2001-07-20 19:09:33 +00:00
  • 94572e0c93 Add short forms of the get*Type methods. Chris Lattner 2001-07-20 19:09:11 +00:00
  • 7f6330c743 Fix nasty typo Chris Lattner 2001-07-20 04:39:07 +00:00
  • a3c8916228 Fix clean target Chris Lattner 2001-07-18 23:43:53 +00:00
  • febb11f9af Compile source files in alphabetical order Chris Lattner 2001-07-18 23:43:37 +00:00
  • 083735d582 Fixed typo in comment Chris Lattner 2001-07-16 16:17:18 +00:00
  • bc7135f5c0 Support external methods Chris Lattner 2001-07-15 21:43:45 +00:00
  • 21341d3108 New test case for prototype support Chris Lattner 2001-07-15 21:43:17 +00:00
  • 416ae8da19 Reordered link line for correct static linking. Vikram S. Adve 2001-07-15 21:13:29 +00:00
  • 112a72ce80 Changed default to building library archives instead of shared objects. Added support for compiling *.c files. Vikram S. Adve 2001-07-15 13:16:47 +00:00
  • 739a56d26d Implement forward/external declarations for methods. Chris Lattner 2001-07-15 06:35:59 +00:00
  • e181564419 Implement forward/external declarations for methods. Also, emit an error if a method is defined more than once, instead of crashing. Chris Lattner 2001-07-15 06:35:53 +00:00
  • 52f2750ddb Rename 'isMethodExternal' to 'isExternal' Chris Lattner 2001-07-15 06:35:24 +00:00
  • f5a0892324 Add notes on instruction selection pass Chris Lattner 2001-07-15 00:23:59 +00:00
  • 9674104416 New testcase from GCC doing array operations Chris Lattner 2001-07-15 00:18:50 +00:00
  • a59c266d84 Add support for assembly printing fp constants Chris Lattner 2001-07-15 00:18:39 +00:00
  • ff5eccef96 Add support to the bytecode writer to recognize floating point constants Chris Lattner 2001-07-15 00:17:23 +00:00
  • a137530341 Add support to the bytecode reader to recognize floating point constants Chris Lattner 2001-07-15 00:17:18 +00:00
  • 3d52b2fdcc Add support to the parser to recognize floating point constants Chris Lattner 2001-07-15 00:17:01 +00:00
  • 2e35bedc82 Add a function to convert a double to a string Chris Lattner 2001-07-15 00:16:38 +00:00
  • d2fdd91c66 Add support to write and read a fixed amount of raw data Chris Lattner 2001-07-15 00:16:22 +00:00
  • bb1604c931 Add a note Chris Lattner 2001-07-15 00:16:02 +00:00
  • a3d3c2b645 * ValueHolder now takes 3 arguments * Added a few methods to ConstantPool * ConstPoolVal no longer derives from Value * Method & Module multiply inherit from SymTabValue & Value now * Added a GetElementPtrInst::isStructSelector() method Chris Lattner 2001-07-14 06:13:19 +00:00
  • 3b7bfdb201 Add knowledge about the struct form of the GetElementPtr instruction Chris Lattner 2001-07-14 06:11:51 +00:00
  • 20a155f5ab Remove dependency on the structure of ValueHolder. Chris Lattner 2001-07-14 06:11:26 +00:00
  • e545981a6a * The parent of a constant pool is a symtabvalue, not a value. Chris Lattner 2001-07-14 06:10:49 +00:00
  • 54d56e3a99 The parent of a constant pool is a symtabvalue, not a value. Chris Lattner 2001-07-14 06:10:33 +00:00
  • e98dda6d42 Added some comments, preparing to add global variables and method prototypes Chris Lattner 2001-07-14 06:10:16 +00:00
  • 644dc172f5 * The parent of a constant pool is a SymTabValue, not a value. Chris Lattner 2001-07-14 06:08:51 +00:00
  • dc4c3f2f5f Made the following changes: * ValueHolder became a 3 argument template. This allows for BasicBlock to use the value holder arg as a typesafe parent pointer. * SymTabValue no longer inherits from Value * Method does not inherit from only SymTabValue. Now it inherits from both STV & Value. * Module does not inherit from only SymTabValue. Now it inherits from both STV & Value. * Updated the SymTabValue.h file to reference SymTabValue instead of STDef in several places * Added isArraySelector & isStructSelector to GetElementPtr instruction Chris Lattner 2001-07-14 06:07:58 +00:00
  • 49fec9638b Added more todo's. Don't I ever accomplish anything? Chris Lattner 2001-07-14 06:04:27 +00:00
  • d8c2e42aef Add DebugValue member. Chris Lattner 2001-07-12 23:35:26 +00:00
  • ec0c497877 Made it not inline Chris Lattner 2001-07-12 23:35:11 +00:00
  • b144fb872c Add DebugValue global function Chris Lattner 2001-07-12 23:33:53 +00:00
  • c262f7298f Don't clean out the type plane of the constant pool... this is a hack. FIXME Chris Lattner 2001-07-09 19:38:52 +00:00
  • 8896eda9a9 Make sure that types go in the constant pool if they are used. Chris Lattner 2001-07-09 19:38:36 +00:00
  • 282072869e hasSideEffects should be marked virtual stores and free's have sideeffects Chris Lattner 2001-07-09 19:38:26 +00:00
  • 1fedd5ae6c Modify notes Chris Lattner 2001-07-09 19:38:08 +00:00
  • fb3f24fd57 Fix stupid typo Chris Lattner 2001-07-09 16:54:29 +00:00
  • d80c43c747 Initial checkin of coding standards Chris Lattner 2001-07-09 03:27:08 +00:00
  • 33ba0d91ab Updated documentation for load, store & getelementptr Chris Lattner 2001-07-09 00:26:23 +00:00
  • 91e1596c16 add coverage of newly implemented instructions. Chris Lattner 2001-07-08 23:23:30 +00:00
  • ab5ac6bb38 Implementation of Store & GetElementPtr Chris Lattner 2001-07-08 23:22:50 +00:00
  • 0bd654a049 Implement checking for new instructions Chris Lattner 2001-07-08 21:18:49 +00:00
  • 8b9f7c0a65 Add note Chris Lattner 2001-07-08 21:18:41 +00:00
  • 027dcc5b22 Implemented shl, shl, & load instructions Chris Lattner 2001-07-08 21:10:27 +00:00
  • 71496b3b50 Moved Cast from being a Unary instruction to being an "Other" instruction Chris Lattner 2001-07-08 19:03:27 +00:00
  • 72f1e9929a Use the CDG to mark branches alive on demand. Chris Lattner 2001-07-08 18:38:36 +00:00
  • cbab0f7edd Add a new "addOperand" method to User. Chris Lattner 2001-07-08 18:38:18 +00:00
  • 3590830cef Fixed post dominator frontiers! Yaay! Chris Lattner 2001-07-08 05:54:09 +00:00
  • 0908309e3c Neg instruction removed. Cast instruction implemented. Chris Lattner 2001-07-08 04:57:15 +00:00
  • f22696f209 Neg instruction removed. TODO item fulfilled. Chris Lattner 2001-07-08 04:56:59 +00:00
  • 6bcc03143b Removing unnecesary file Chris Lattner 2001-07-07 20:54:19 +00:00
  • 9f3d27654a Convert BinaryOperand and UnaryOperator to only take instruction types of the appropriate enum Chris Lattner 2001-07-07 20:17:23 +00:00
  • a41f50dea8 Broad superficial changes: * Renamed getOpcode to getOpcodeName * Changed getOpcodeName to return a const char * instead of string * Added a getOpcode method to replace getInstType * Changed code to use getOpcode instead of getInstType Chris Lattner 2001-07-07 19:24:15 +00:00
  • 30f24a402c Devirtualize User::dropAllReferences Chris Lattner 2001-07-07 19:00:36 +00:00
  • f229ed5248 Remove dtor's that simply call dropAllReferences Chris Lattner 2001-07-07 18:42:52 +00:00
  • c8b25d40cb Changed the fundemental architecture of Operands for Instructions. Now Operands are maintained as a vector<Use> in the User class, and operator iterators are provided as before. Getting an operand no longer requires a virtual function call. Chris Lattner 2001-07-07 08:36:50 +00:00
  • f0d0e9c262 Changed memory reference instructions to store the result as the implicit type of the instruction. Chris Lattner 2001-07-07 08:36:30 +00:00
  • 3fa0bc4408 Fixed some error messages to be nicer Chris Lattner 2001-07-07 08:36:05 +00:00
  • 0aa1d5e02f Add note about nuking Instruction::neg Chris Lattner 2001-07-07 08:33:39 +00:00
  • 6475bdfc71 Initial checkin Chris Lattner 2001-07-06 22:00:42 +00:00
  • c13aff657e Add better support for post dominator information. Print method name for each analysis. Chris Lattner 2001-07-06 16:59:10 +00:00
  • 63a0b2a9b4 Add method to unify all exit nodes of a method Chris Lattner 2001-07-06 16:58:36 +00:00
  • 94108ab8a3 Implement support for postdominators, except in dom frontiers Chris Lattner 2001-07-06 16:58:22 +00:00
  • 87d0461d5b New file, includes method to merge exit nodes together Chris Lattner 2001-07-06 16:57:52 +00:00
  • c348d21bf6 * Add a DominatorBase base class to maintain root of Dominator info * Implement post dominator support Chris Lattner 2001-07-06 16:57:21 +00:00
  • 18c9f915f2 * Added comments * Made iterators inherit from appropriate iterator base class * Abstracted out graphs from depth first iterator * Add "Inverse" traversal of CFG Chris Lattner 2001-07-06 16:56:17 +00:00
  • d818312d09 Update to include right file Chris Lattner 2001-07-06 16:32:07 +00:00
  • f3dc2c9a07 Initial checkin of analyze tool. Chris Lattner 2001-07-03 15:30:38 +00:00
  • 9aa97849a0 Build new analyze tool Chris Lattner 2001-07-03 15:30:21 +00:00
  • acd257efee Added analyze to path for SetupOpt script Chris Lattner 2001-07-03 15:30:10 +00:00
  • ad1bb04eec Add analyze tool to path for Setup script Chris Lattner 2001-07-03 15:29:48 +00:00
  • e6850235f5 IntervalPartition was changed to inherit from vector<Interval*> instead of contain it so that it would have full iterator access without much work. Chris Lattner 2001-07-03 15:28:35 +00:00
  • a49e015180 IntervalPartition was changed to inherit from vector<Interval*> instead of contain it so that it would have full iterator access without much work. Chris Lattner 2001-07-03 15:28:08 +00:00
  • 3ea734986e *** empty log message *** Chris Lattner 2001-07-03 15:27:41 +00:00
  • 1a46243e7f Checkin of new Analysis result printing header Chris Lattner 2001-07-03 05:37:26 +00:00
  • 3d98049e38 Code got moved from the lib/Assembly/Writer/IntervalWriter.cpp file to here. Updates to correct description n stuff. Chris Lattner 2001-07-03 05:36:34 +00:00
  • d1ee90f1a5 Remove code for printing out Analysis data structures. It got moved Chris Lattner 2001-07-03 05:35:52 +00:00
  • 953932d779 Update documentation a bit, correct #include guard Chris Lattner 2001-07-03 05:35:23 +00:00
  • 100efcbce9 Add note about tool idea. Change command line of note to be more specific Chris Lattner 2001-07-03 05:35:04 +00:00
  • 347bfdad7f Add printing code for dominator info Chris Lattner 2001-07-02 05:46:47 +00:00
  • 1715229db9 Checkin of new dominator calculation routines. These will be improved in the future to do post dominators and stuff Chris Lattner 2001-07-02 05:46:38 +00:00
  • f50b952b93 Enable printing of dominator related information. Chris Lattner 2001-07-02 05:45:30 +00:00
  • 70b6337d68 Add new anaysis routines for building dominator related information Chris Lattner 2001-07-02 05:45:17 +00:00
  • 577b15f70e Addition of 'deleter' function. Chris Lattner 2001-07-02 01:09:41 +00:00
  • bd4996ad68 Moved deleter to include/llvm/Tools/STLExtras.h Chris Lattner 2001-07-02 01:08:08 +00:00
  • 02e90d59c8 Initial checkin. Should print dead instructions, except it doesn't do control dependencies. :( Chris Lattner 2001-06-30 06:39:11 +00:00
  • 95781b6ca9 Include ADCE pass, rename include/Opt directory to llvm/Optimizations Optimizations now in opt namespace. Rename SCCP pass to DoSCCP Chris Lattner 2001-06-30 06:38:31 +00:00
  • 49c8f64747 Rename DoSparseConditionalConstantProp -> DoSCCP Chris Lattner 2001-06-30 06:37:43 +00:00
  • 05b9a7f7b8 Add note Chris Lattner 2001-06-30 06:37:33 +00:00
  • 8ea0755f98 Add prototypes for ADCE pass Chris Lattner 2001-06-30 06:37:16 +00:00
  • d8d8c836e7 Rename DoSparseConditionalConstantProp to DoSCCP Chris Lattner 2001-06-30 06:37:01 +00:00
  • 7e02b7e600 Optimizations got their own header files Optimizations now live in the 'opt' namespace include/llvm/Opt was renamed include/llvm/Optimizations Chris Lattner 2001-06-30 04:36:40 +00:00
  • 28bf86ac00 Implement reduceApply method Chris Lattner 2001-06-30 04:35:40 +00:00
  • a7e26118a2 Add a new pop_back() method Chris Lattner 2001-06-30 04:35:21 +00:00
  • b9b8959091 The ConstRules class got moved to the opt namespace Chris Lattner 2001-06-30 04:35:01 +00:00