MCPcopy Create free account
hub / github.com/apache/impala / InlineConstFnAttrs

Method InlineConstFnAttrs

be/src/exprs/expr-codegen-test.cc:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 FnAttr fn_type_attr_;
96
97 int InlineConstFnAttrs(const Expr* expr, LlvmCodeGen* codegen, llvm::Function* fn) {
98 FunctionContext::TypeDesc ret_type = AnyValUtil::ColumnTypeToTypeDesc(expr->type());
99 vector<FunctionContext::TypeDesc> arg_types;
100 for (const Expr* child : expr->children()) {
101 arg_types.push_back(AnyValUtil::ColumnTypeToTypeDesc(child->type()));
102 }
103 return codegen->InlineConstFnAttrs(ret_type, arg_types, fn);
104 }
105
106 Status CreateFromFile(const string& filename, scoped_ptr<LlvmCodeGen>* codegen) {
107 RETURN_IF_ERROR(LlvmCodeGen::CreateFromFile(fragment_state_,

Callers 2

Calls 3

childrenMethod · 0.80
push_backMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected