Change variable and namespace name in BE (#268)

Change 'palo' to 'doris'
This commit is contained in:
chenhao7253886
2018-11-02 10:22:32 +08:00
committed by morningman
parent ad12d907da
commit 37b4cafe87
923 changed files with 4640 additions and 4640 deletions

View File

@ -15,8 +15,8 @@
// specific language governing permissions and limitations
// under the License.
#ifndef BDG_PALO_BE_SRC_QUERY_CODEGEN_LLVM_CODEGEN_H
#define BDG_PALO_BE_SRC_QUERY_CODEGEN_LLVM_CODEGEN_H
#ifndef DORIS_BE_SRC_QUERY_CODEGEN_LLVM_CODEGEN_H
#define DORIS_BE_SRC_QUERY_CODEGEN_LLVM_CODEGEN_H
#include <map>
#include <string>
@ -37,7 +37,7 @@
#include "runtime/primitive_type.h"
#include "exprs/expr.h"
#include "util/runtime_profile.h"
#include "palo_ir/palo_ir_functions.h"
#include "doris_ir/doris_ir_functions.h"
// Forward declare all llvm classes to avoid namespace pollution.
namespace llvm {
@ -64,7 +64,7 @@ template<bool preserveName>
class IRBuilderDefaultInserter;
}
namespace palo {
namespace doris {
class SubExprElimination;
@ -113,13 +113,13 @@ public:
// if 'load_backend', load the backend static object for llvm. This is needed
// when libbackend.so is loaded from java. llvm will be default only look in
// the current object and not be able to find the backend symbols
// TODO: this can probably be removed after Palo refactor where the java
// TODO: this can probably be removed after Doris refactor where the java
// side is not loading the be explicitly anymore.
static void initialize_llvm(bool load_backend = false);
// Loads and parses the precompiled palo IR module
// Loads and parses the precompiled doris IR module
// codegen will contain the created object on success.
static Status load_palo_ir(
static Status load_doris_ir(
ObjectPool*, const std::string& id, boost::scoped_ptr<LlvmCodeGen>* codegen);
// Removes all jit compiled dynamically linked functions from the process.
@ -217,7 +217,7 @@ public:
// compiled IR. The types we generate at runtime are unnamed.
// The name is generated by the clang compiler in this form:
// <class/struct>.<namespace>::<class name>. For example:
// "class.palo::AggregationNode"
// "class.doris::AggregationNode"
llvm::Type* get_type(const std::string& name);
/// Returns the pointer type of the type returned by GetType(name)
@ -373,7 +373,7 @@ public:
llvm::Function* get_lib_c_function(FnPrototype* prototype);
// Returns the cross compiled function. IRFunction::Type is an enum which is
// defined in 'palo-ir/palo-ir-functions.h'
// defined in 'doris-ir/doris-ir-functions.h'
llvm::Function* get_function(IRFunction::Type);
// Returns the hash function with signature:
@ -524,7 +524,7 @@ private:
static Status load_module_from_memory(LlvmCodeGen* codegen, llvm::MemoryBuffer* module_ir,
const std::string& module_name, llvm::Module** module);
// Load the intrinsics palo needs. This is a one time initialization.
// Load the intrinsics doris needs. This is a one time initialization.
// Values are stored in '_llvm_intrinsics'
Status load_intrinsics();
@ -582,14 +582,14 @@ private:
boost::mutex _jitted_functions_lock;
// Keeps track of the external functions that have been included in this module
// e.g libc functions or non-jitted palo functions.
// e.g libc functions or non-jitted doris functions.
// TODO: this should probably be FnPrototype->Functions mapping
std::map<std::string, llvm::Function*> _external_functions;
// Functions parsed from pre-compiled module. Indexed by PaloIR::Function enum
// Functions parsed from pre-compiled module. Indexed by DorisIR::Function enum
std::vector<llvm::Function*> _loaded_functions;
// Stores functions codegen'd by palo. This does not contain cross compiled
// Stores functions codegen'd by doris. This does not contain cross compiled
// functions, only function that were generated at runtime. Does not overlap
// with _loaded_functions.
std::vector<llvm::Function*> _codegend_functions;