MCPcopy Create free account
hub / github.com/apache/arrow / CreateGlobalStringPtr

Method CreateGlobalStringPtr

cpp/src/gandiva/engine.cc:388–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388llvm::Constant* Engine::CreateGlobalStringPtr(const std::string& string) {
389 auto gloval_variable = ir_builder()->CreateGlobalString(string);
390 auto zero = llvm::ConstantInt::get(llvm::Type::getInt32Ty(*context()), 0);
391 llvm::Constant* indices[] = {zero, zero};
392 return llvm::ConstantExpr::getInBoundsGetElementPtr(gloval_variable->getValueType(),
393 gloval_variable, indices);
394}
395
396/// factory method to construct the engine.
397Result<std::unique_ptr<Engine>> Engine::Make(

Callers

nothing calls this directly

Calls 3

getValueTypeMethod · 0.80
ir_builderFunction · 0.70
contextFunction · 0.70

Tested by

no test coverage detected