158c5be9867f1c021e2138a046c9c947f1360fe8
[oota-llvm.git] / docs / ChrisNotes.txt
1 * grep '[A-Za-z][A-Za-z]*\*)' `./getsrcs.sh ` | & less
2
3
4 * Need to implement getelementptr, load, and store for indirection through
5   arrays and multidim arrays
6 * Rewrite the llvm parser/lexer in http://www.antlr.org when time permits.
7   They actually do C++.  Imagine that.
8 * Fix DCE to elminate br <c>, %L1, %L1 so that it can optimize the main of
9   fib.ll better.  Currently I have to do this to get best results:
10      as < fib.ll | opt -inline -sccp -dce -sccp -dce |dis
11 * fix the constprop   br <x> <dst1> <dst1> case.  Must handle PHI nodes correctly
12 * Fix DCE to work better, so that SCCP can show it's true value.
13 * Implement ADCE
14 * Fix the const pool printer to print out constants in some sort of "sorted"
15   order.  Then enable TestOptimizer.sh to diff -sccp output.  Currently it 
16   doesn't work because the diff fails because of ordering of the constant 
17   pool. :(
18 * Think about whether edge split SSA form would be useful to do.
19 * Inlining should attempt to give block names the same name in the inlined 
20   method (using SymbolTable::getUniqueName)
21 * The dropAllReferences code can be a noop when NDEBUG!!!
22 * Finish xvcg output
23 * pred/succ iterators on basic blocks don't handle switch statements correctly
24 * Provide a pass that eliminates critical edges from the CFG
25 * I need to provide an option to the bytecode loader to ignore memory 
26   dependance edges.  Instead, the VM would just treat memory operations 
27   (load, store, getfield, putfield, call) as pinned instructions.
28 * Need a way to attach bytecode block info at various levels of asm code.
29 * Recognize and save comments in assembly and bytecode format
30 * Encode line number table in bytecode (like #line), optional table
31
32 * Encode negative relative offsets in the bytecode file
33
34 * Implement switch to switch on a constant pool array of type: 
35   [{ label, int }] or [label]   (lookup vs index switch)
36 * Apparently bison has a %pure_parser option.  Maybe useful for Assembly/Parser
37
38 * Implement a header file that can read either assembly or bytecode, implement 
39   a writer that can output either based on what is read with this reader..
40 * Implement the following derived types:
41   * "packed format", like this:    [4 x sbyte]: Packed SIMD datatype
42 * Maybe 'tailcall' also?
43 * Include a method level bytecode block that defines a mapping between values 
44   and registers that defines a minimally register allocated code.  This can
45   make me finally address how to encode extensions in assembly.
46 * Bytecode reader should use extensions that may or may not be linked into the
47   application to read blocks.  Thus an easy way to ignore symbol table info
48   would be to not link in that reader into the app.