|
LLVM
10.0.0
|
Functions | |
| Optional< VFInfo > | tryDemangleForVFABI (StringRef MangledName) |
| Function to contruct a VFInfo out of a mangled names in the following format: More... | |
| VFParamKind | getVFParamKindFromString (const StringRef Token) |
Retrieve the VFParamKind from a string token. More... | |
| void | getVectorVariantNames (const CallInst &CI, SmallVectorImpl< std::string > &VariantMappings) |
| Populates a set of strings representing the Vector Function ABI variants associated to the CallInst CI. More... | |
| void | setVectorVariantNames (CallInst *CI, const SmallVector< std::string, 8 > &VariantMappings) |
Overwrite the Vector Function ABI variants attribute with the names provide in VariantMappings. More... | |
Variables | |
| static constexpr char const * | _LLVM_ = "_LLVM_" |
| LLVM Internal VFABI ISA token for vector functions. More... | |
| static constexpr char const * | MappingsAttrName = "vector-function-abi-variant" |
| void llvm::VFABI::getVectorVariantNames | ( | const CallInst & | CI, |
| SmallVectorImpl< std::string > & | VariantMappings | ||
| ) |
Populates a set of strings representing the Vector Function ABI variants associated to the CallInst CI.
Definition at line 1164 of file VectorUtils.cpp.
References assert(), llvm::SmallVectorTemplateCommon< T >::begin(), llvm::StringRef::empty(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::AttributeList::FunctionIndex, llvm::CallBase::getAttribute(), llvm::Module::getFunction(), llvm::Instruction::getModule(), llvm::Optional< T >::getValue(), llvm::Attribute::getValueAsString(), llvm::Optional< T >::hasValue(), Info, MappingsAttrName, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::StringRef::split(), tryDemangleForVFABI(), and llvm::VFInfo::VectorName.
Referenced by addMappingsFromTLI().
| VFParamKind llvm::VFABI::getVFParamKindFromString | ( | const StringRef | Token | ) |
Retrieve the VFParamKind from a string token.
Definition at line 409 of file VFABIDemangling.cpp.
References llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), llvm_unreachable, llvm::OMP_Linear, llvm::OMP_LinearPos, llvm::OMP_LinearRef, llvm::OMP_LinearRefPos, llvm::OMP_LinearUVal, llvm::OMP_LinearUValPos, llvm::OMP_LinearVal, llvm::OMP_LinearValPos, llvm::OMP_Uniform, llvm::Unknown, and llvm::Vector.
| void llvm::VFABI::setVectorVariantNames | ( | CallInst * | CI, |
| const SmallVector< std::string, 8 > & | VariantMappings | ||
| ) |
Overwrite the Vector Function ABI variants attribute with the names provide in VariantMappings.
Definition at line 285 of file ModuleUtils.cpp.
References llvm::CallBase::addAttribute(), assert(), llvm::SmallVectorBase::empty(), llvm::StringRef::empty(), llvm::AttributeList::FunctionIndex, llvm::Attribute::get(), llvm::Module::getContext(), llvm::Instruction::getModule(), llvm::Module::getNamedValue(), llvm::Optional< T >::getValue(), llvm::Optional< T >::hasValue(), MappingsAttrName, llvm::SmallVectorTemplateBase< T, bool >::pop_back(), llvm::SmallString< InternalLen >::str(), tryDemangleForVFABI(), llvm::VFInfo::VectorName, and VI.
Referenced by addMappingsFromTLI().
Function to contruct a VFInfo out of a mangled names in the following format:
<VFABI_name>{(<redirection>)}
where <VFABI_name> is the name of the vector function, mangled according to the rules described in the Vector Function ABI of the target vector extentsion (or <isa> from now on). The <VFABI_name> is in the following format:
ZGV<isa><mask><vlen><parameters><scalarname>[(<redirection>)]
This methods support demangling rules for the following <isa>:
| MangledName | -> input string in the format ZGV<isa><mask><vlen><parameters><scalarname>[(<redirection>)]. |
Definition at line 294 of file VFABIDemangling.cpp.
References assert(), llvm::SmallVectorTemplateCommon< T >::back(), llvm::SmallVectorTemplateCommon< T >::begin(), llvm::StringRef::consume_back(), llvm::StringRef::consume_front(), llvm::count_if(), llvm::SmallVectorBase::empty(), llvm::StringRef::empty(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::Error, llvm::GlobalPredicate, llvm::tgtok::In, IsMasked(), llvm::LLVM, llvm::StringRef::ltrim(), llvm::None, llvm::SmallVectorTemplateBase< T >::push_back(), llvm::SmallVectorBase::size(), and llvm::StringRef::take_while().
Referenced by getVectorVariantNames(), and setVectorVariantNames().
LLVM Internal VFABI ISA token for vector functions.
Definition at line 133 of file VectorUtils.h.
Referenced by mangleTLIName().
Definition at line 162 of file VectorUtils.h.
Referenced by getVectorVariantNames(), and setVectorVariantNames().
1.8.13