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

Method CreateGlobalStringPtr

cpp/src/gandiva/engine.cc:367–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367llvm::Constant* Engine::CreateGlobalStringPtr(const std::string& string) {
368 auto gloval_variable = ir_builder()->CreateGlobalString(string);
369 auto zero = llvm::ConstantInt::get(llvm::Type::getInt32Ty(*context()), 0);
370 llvm::Constant* indices[] = {zero, zero};
371 return llvm::ConstantExpr::getInBoundsGetElementPtr(gloval_variable->getValueType(),
372 gloval_variable, indices);
373}
374
375/// factory method to construct the engine.
376Result<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