13#ifndef LLVM_EXECUTIONENGINE_ORC_SHARED_MANGLER_H
14#define LLVM_EXECUTIONENGINE_ORC_SHARED_MANGLER_H
38 : MM(fromTriple(TT, ABIName)) {}
44 template <
typename HandlerFn>
54 if (NameSpec.
getName()[0] ==
'\1')
57 if (NameSpec.
getName()[0] ==
'?' && doNotMangleLeadingQuestionMark())
74 [](
StringRef MangledName) {
return MangledName.
str(); }, Name);
80 bool doNotMangleLeadingQuestionMark()
const {
static cl::opt< RegAllocEvictionAdvisorAnalysisLegacy::AdvisorMode > Mode("regalloc-enable-advisor", cl::Hidden, cl::init(RegAllocEvictionAdvisorAnalysisLegacy::AdvisorMode::Default), cl::desc("Enable regalloc advisor mode"), cl::values(clEnumValN(RegAllocEvictionAdvisorAnalysisLegacy::AdvisorMode::Default, "default", "Default"), clEnumValN(RegAllocEvictionAdvisorAnalysisLegacy::AdvisorMode::Release, "release", "precompiled"), clEnumValN(RegAllocEvictionAdvisorAnalysisLegacy::AdvisorMode::Development, "development", "for training")))
This file defines the SmallString class.
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
void append(StringRef RHS)
Append from a StringRef.
Represent a constant reference to a string, i.e.
std::string str() const
Get the contents as an std::string.
constexpr StringRef substr(size_t Start, size_t N=npos) const
Return a reference to the substring from [Start, Start + N).
constexpr bool empty() const
Check if the string is empty.
Triple - Helper class for working with autoconf configuration names.
Mode
The linker name-mangling scheme for a target, determined by its object format.
Mangler(const Triple &TT, StringRef ABIName="")
decltype(auto) withMangledNameDo(HandlerFn &&H, const SymbolNameSpec &NameSpec) const
Calls the given callback with the mangled version of NameSpec as a StringRef.
std::string mangledCopy(const SymbolNameSpec &Name) const
Construct a mangled version of the given name as a std::string.
A symbol name together with the naming level (SymbolNameKind) it is expressed in, so that a Mangler /...
constexpr StringRef getName() const
constexpr SymbolNameKind getKind() const
This is an optimization pass for GlobalISel generic memory operations.