LLVM  3.7.0
Public Types | Public Member Functions | Protected Member Functions | List of all members
llvm::SymbolRewriter::RewriteDescriptor Class Referenceabstract

The basic entity representing a rewrite operation. More...

#include <SymbolRewriter.h>

Inheritance diagram for llvm::SymbolRewriter::RewriteDescriptor:
[legend]
Collaboration diagram for llvm::SymbolRewriter::RewriteDescriptor:
[legend]

Public Types

enum  Type { Type::Invalid, Type::Function, Type::GlobalVariable, Type::NamedAlias }
 

Public Member Functions

virtual ~RewriteDescriptor ()
 
Type getType () const
 
virtual bool performOnModule (Module &M)=0
 
- Public Member Functions inherited from llvm::ilist_node< RewriteDescriptor >
RewriteDescriptor * getPrevNode ()
 Get the previous node, or 0 for the list head. More...
 
const RewriteDescriptor * getPrevNode () const
 Get the previous node, or 0 for the list head. More...
 
RewriteDescriptor * getNextNode ()
 Get the next node, or 0 for the list tail. More...
 
const RewriteDescriptor * getNextNode () const
 Get the next node, or 0 for the list tail. More...
 

Protected Member Functions

 RewriteDescriptor (Type T)
 
- Protected Member Functions inherited from llvm::ilist_node< RewriteDescriptor >
 ilist_node ()
 

Detailed 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.

Definition at line 62 of file SymbolRewriter.h.

Member Enumeration Documentation

Enumerator
Invalid 
Function 

invalid

GlobalVariable 

function - descriptor rewrites a function

NamedAlias 

global variable - descriptor rewrites a global variable

Definition at line 69 of file SymbolRewriter.h.

Constructor & Destructor Documentation

virtual llvm::SymbolRewriter::RewriteDescriptor::~RewriteDescriptor ( )
inlinevirtual

Definition at line 76 of file SymbolRewriter.h.

llvm::SymbolRewriter::RewriteDescriptor::RewriteDescriptor ( Type  T)
inlineexplicitprotected

Definition at line 83 of file SymbolRewriter.h.

Member Function Documentation

Type llvm::SymbolRewriter::RewriteDescriptor::getType ( ) const
inline

Definition at line 78 of file SymbolRewriter.h.

virtual bool llvm::SymbolRewriter::RewriteDescriptor::performOnModule ( Module M)
pure virtual

The documentation for this class was generated from the following file: