llvm/llvm-project

Move JITLink from StringRefs to SymbolStringPtrs

Open

#55.533 aberto em 17 de mai. de 2022

Ver no GitHub
 (11 comments) (0 reactions) (1 assignee)C++ (10.782 forks)batch import
good first issuejitlinkorcjit

Métricas do repositório

Stars
 (26.378 stars)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (1.000 fundiu PRs em 30d)

Description

JITLink is using the lllvm::StringRef type in many places where llvm::orc::SymbolStringPtr would result in better performance and memory footprint, e.g. https://github.com/llvm/llvm-project/blob/77480556c41fbca36b918323c69cb77f8e02b56c/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h#L648-L649

In such cases the string should be interned in a llvm::orc::SymbolStringPool and referenced via llvm::orc::SymbolStringPtr.

Guia do colaborador