Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <subexpr-elimination.h>
Public Member Functions | |
SubExprElimination (LlvmCodeGen *codegen) | |
bool | Run (llvm::Function *function) |
Perform subexpr elimination on function. More... | |
Private Attributes | |
LlvmCodeGen * | codegen_ |
Parent codegen object. More... | |
Optimization pass to remove redundant exprs. TODO: make this into a llvm function pass (i.e. implement FunctionPass interface).
Definition at line 26 of file subexpr-elimination.h.
SubExprElimination::SubExprElimination | ( | LlvmCodeGen * | codegen | ) |
Definition at line 41 of file subexpr-elimination.cc.
bool SubExprElimination::Run | ( | llvm::Function * | function | ) |
Perform subexpr elimination on function.
Definition at line 126 of file subexpr-elimination.cc.
References codegen_, impala::LlvmCodeGen::InlineCallSites(), CachedExprResult::is_null_value, impala::LlvmCodeGen::registered_exprs_, and CachedExprResult::result.
|
private |