ΒΆOptional<llvm::VFInfo> tryDemangleForVFABI(
    llvm::StringRef MangledName,
    const llvm::Module& M)

Description

Function to construct 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 extension (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 >: * AArch64: https://developer.arm.com/docs/101129/latest * x86 (libmvec): https://sourceware.org/glibc/wiki/libmvec and https://sourceware.org/glibc/wiki/libmvec?action=AttachFile &do =view &target =VectorABI.txt

Declared at: llvm/include/llvm/Analysis/VectorUtils.h:167

Parameters

llvm::StringRef MangledName
-> input string in the format _ZGV <isa > <mask > <vlen > <parameters >_ <scalarname >[( <redirection >)].
const llvm::Module& M
-> Module used to retrieve informations about the vector function that are not possible to retrieve from the mangled name. At the moment, this parameter is needed only to retrieve the Vectorization Factor of scalable vector functions from their respective IR declarations.