#include "codegen/llvm-codegen.h"
#include <fstream>
#include <iostream>
#include <sstream>
#include <boost/thread/mutex.hpp>
#include <llvm/ADT/Triple.h>
#include <llvm/Analysis/InstructionSimplify.h>
#include <llvm/Analysis/Passes.h>
#include <llvm/Bitcode/ReaderWriter.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/ExecutionEngine/JIT.h>
#include <llvm/IR/DataLayout.h>
#include <llvm/Linker.h>
#include <llvm/PassManager.h>
#include <llvm/Support/DynamicLibrary.h>
#include <llvm/Support/Host.h>
#include <llvm/Support/MemoryBuffer.h>
#include <llvm/Support/NoFolder.h>
#include <llvm/Support/TargetRegistry.h>
#include <llvm/Support/TargetSelect.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Support/system_error.h>
#include <llvm/Target/TargetLibraryInfo.h>
#include <llvm/Transforms/IPO.h>
#include <llvm/Transforms/IPO/PassManagerBuilder.h>
#include <llvm/Transforms/Scalar.h>
#include <llvm/Transforms/Utils/BasicBlockUtils.h>
#include <llvm/Transforms/Utils/Cloning.h>
#include "common/logging.h"
#include "codegen/codegen-anyval.h"
#include "codegen/subexpr-elimination.h"
#include "codegen/instruction-counter.h"
#include "impala-ir/impala-ir-names.h"
#include "runtime/hdfs-fs-cache.h"
#include "util/cpu-info.h"
#include "util/hdfs-util.h"
#include "util/path-builder.h"
#include "common/names.h"
Go to the source code of this file.
|
| impala |
| This file contains type definitions that are used throughout the code base.
|
|
|
| DEFINE_bool (print_llvm_ir_instruction_count, false,"if true, prints the instruction counts of all JIT'd functions") |
|
| DEFINE_bool (disable_optimization_passes, false,"if true, disables llvm optimization passes (used for testing)") |
|
| DEFINE_bool (dump_ir, false,"if true, output IR after optimization passes") |
|
| DEFINE_string (unopt_module_dir,"","if set, saves unoptimized generated IR modules to the specified directory.") |
|
| DEFINE_string (opt_module_dir,"","if set, saves optimized generated IR modules to the specified directory.") |
|
| DECLARE_string (local_library_dir) |
|
void | impala::DebugTrace (const char *str) |
|
static Function * | impala::GetLenOptimizedHashFn (LlvmCodeGen *codegen, IRFunction::Type f, int len) |
|
DECLARE_string |
( |
local_library_dir |
| ) |
|
DEFINE_bool |
( |
print_llvm_ir_instruction_count |
, |
|
|
false |
, |
|
|
"if |
true, |
|
|
prints the instruction counts of all JIT'd functions" |
|
|
) |
| |
DEFINE_bool |
( |
disable_optimization_passes |
, |
|
|
false |
, |
|
|
"if |
true, |
|
|
disables llvm optimization passes(used for testing)" |
|
|
) |
| |
DEFINE_bool |
( |
dump_ir |
, |
|
|
false |
, |
|
|
"if |
true, |
|
|
output IR after optimization passes" |
|
|
) |
| |
DEFINE_string |
( |
unopt_module_dir |
, |
|
|
"" |
, |
|
|
"if |
set, |
|
|
saves unoptimized generated IR modules to the specified directory." |
|
|
) |
| |
DEFINE_string |
( |
opt_module_dir |
, |
|
|
"" |
, |
|
|
"if |
set, |
|
|
saves optimized generated IR modules to the specified directory." |
|
|
) |
| |