Merge pull request #1 from xiehuc/master

pathced vresion
add know lib call info

Signed-off-by: xiehuc <xiehuc@gmail.com>
update KnowLibCallInfo add some standard function

Signed-off-by: xiehuc <xiehuc@gmail.com>
add basic resolved function

Signed-off-by: xiehuc <xiehuc@gmail.com>
update memdep search for unresolved value

Signed-off-by: xiehuc <xiehuc@gmail.com>
add find_dependency

Signed-off-by: xiehuc <xiehuc@gmail.com>
add pass manager

Signed-off-by: xiehuc <xiehuc@gmail.com>
change function pass manager to pass manager

似乎PassManager比FunctionPassManager范围更广泛一些。

Signed-off-by: xiehuc <xiehuc@gmail.com>
add find global variable dependencies

Signed-off-by: xiehuc <xiehuc@gmail.com>
finish global dependencies analysis

Signed-off-by: xiehuc <xiehuc@gmail.com>
move lle::Loop to LoopPass

add LLVMPred.so to contain all passes

Signed-off-by: xiehuc <xiehuc@gmail.com>
add LoopCycle::print method

Signed-off-by: xiehuc <xiehuc@gmail.com>
move LoopPrintPass to lle::LoopCycleSimplify

Signed-off-by: xiehuc <xiehuc@gmail.com>
move LoopCycleSimplify pretty-print to print method

Signed-off-by: xiehuc <xiehuc@gmail.com>
add statictics NumUnfoundCycle

Signed-off-by: xiehuc <xiehuc@gmail.com>
support value profiling for opt

Signed-off-by: xiehuc <xiehuc@gmail.com>
fix some bugs

stats was disabled in release build llvm, so we need think another way

Signed-off-by: xiehuc <xiehuc@gmail.com>
add print unfound cycles

Signed-off-by: xiehuc <xiehuc@gmail.com>
fix analysis dependence order

also fix getLoopCycle() out_of_range exception

Signed-off-by: xiehuc <xiehuc@gmail.com>
refine output format

Signed-off-by: xiehuc <xiehuc@gmail.com>