class RewriteDescriptor
Declaration
class RewriteDescriptor { /* full declaration omitted */ };
Description
The basic entity representing a rewrite operation. It serves as the base class for any rewrite descriptor. It has a certain set of specializations which describe a particular rewrite. The RewriteMapParser can be used to parse a mapping file that provides the mapping for rewriting the symbols. The descriptors individually describe whether to rewrite a function, global variable, or global alias. Each of these can be selected either by explicitly providing a name for the ones to be rewritten or providing a (posix compatible) regular expression that will select the symbols to rewrite. This descriptor list is passed to the SymbolRewriter pass.
Declared at: llvm/include/llvm/Transforms/Utils/SymbolRewriter.h:68
Method Overview
- public RewriteDescriptor(const llvm::SymbolRewriter::RewriteDescriptor &)
- protected RewriteDescriptor(llvm::SymbolRewriter::RewriteDescriptor::Type T)
- public llvm::SymbolRewriter::RewriteDescriptor::Type getType() const
- public virtual bool performOnModule(llvm::Module & M)
- public virtual ~RewriteDescriptor()
Methods
¶RewriteDescriptor(const llvm::SymbolRewriter::
RewriteDescriptor&)
RewriteDescriptor(const llvm::SymbolRewriter::
RewriteDescriptor&)
Declared at: llvm/include/llvm/Transforms/Utils/SymbolRewriter.h:77
Parameters
¶RewriteDescriptor(
llvm::SymbolRewriter::RewriteDescriptor::Type
T)
RewriteDescriptor(
llvm::SymbolRewriter::RewriteDescriptor::Type
T)
Declared at: llvm/include/llvm/Transforms/Utils/SymbolRewriter.h:86
Parameters
- llvm::SymbolRewriter::RewriteDescriptor::Type T
¶llvm::SymbolRewriter::RewriteDescriptor::Type
getType() const
llvm::SymbolRewriter::RewriteDescriptor::Type
getType() const
Declared at: llvm/include/llvm/Transforms/Utils/SymbolRewriter.h:81
¶virtual bool performOnModule(llvm::Module& M)
virtual bool performOnModule(llvm::Module& M)
Declared at: llvm/include/llvm/Transforms/Utils/SymbolRewriter.h:83
Parameters
- llvm::Module& M
¶virtual ~RewriteDescriptor()
virtual ~RewriteDescriptor()
Declared at: llvm/include/llvm/Transforms/Utils/SymbolRewriter.h:79