LLVM: llvm::GlobalsAAResult::FunctionInfo Class Reference (original) (raw)
The mod/ref information collected for a particular function. More...
| Public Member Functions | |
|---|---|
| FunctionInfo ()=default | |
| Checks to document the invariants of the bit packing here. | |
| ~FunctionInfo () | |
| FunctionInfo (const FunctionInfo &Arg) | |
| FunctionInfo (FunctionInfo &&Arg) | |
| FunctionInfo & | operator= (const FunctionInfo &RHS) |
| FunctionInfo & | operator= (FunctionInfo &&RHS) |
| ModRefInfo | globalClearMayReadAnyGlobal (int I) const |
| This method clears MayReadAnyGlobal bit added by GlobalsAAResult to return the corresponding ModRefInfo. | |
| ModRefInfo | getModRefInfo () const |
| Returns the ModRefInfo info for this function. | |
| void | addModRefInfo (ModRefInfo NewMRI) |
| Adds new ModRefInfo for this function to its state. | |
| bool | mayReadAnyGlobal () const |
| Returns whether this function may read any global variable, and we don't know which global. | |
| void | setMayReadAnyGlobal () |
| Sets this function as potentially reading from any global. | |
| ModRefInfo | getModRefInfoForGlobal (const GlobalValue &GV) const |
| Returns the ModRefInfo info for this function w.r.t. | |
| void | addFunctionInfo (const FunctionInfo &FI) |
| Add mod/ref info from another function into ours, saturating towards ModRef. | |
| void | addModRefInfoForGlobal (const GlobalValue &GV, ModRefInfo NewMRI) |
| void | eraseModRefInfoForGlobal (const GlobalValue &GV) |
| Clear a global's ModRef info. |
The mod/ref information collected for a particular function.
We collect information about mod/ref behavior of a function here, both in general and as pertains to specific globals. We only have this detailed information when we know something useful about the behavior. If we saturate to fully general mod/ref, we remove the info for the function.
Definition at line 63 of file GlobalsModRef.cpp.
| llvm::GlobalsAAResult::FunctionInfo::FunctionInfo ( ) | default |
|---|
◆ ~FunctionInfo()
| llvm::GlobalsAAResult::FunctionInfo::~FunctionInfo ( ) | inline |
|---|
◆ FunctionInfo() [2/3]
◆ FunctionInfo() [3/3]
| llvm::GlobalsAAResult::FunctionInfo::FunctionInfo ( FunctionInfo && Arg) | inline |
|---|
◆ addFunctionInfo()
| void llvm::GlobalsAAResult::FunctionInfo::addFunctionInfo ( const FunctionInfo & FI) | inline |
|---|
Add mod/ref info from another function into ours, saturating towards ModRef.
Definition at line 169 of file GlobalsModRef.cpp.
References addModRefInfo(), addModRefInfoForGlobal(), FunctionInfo(), G, getModRefInfo(), llvm::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info >::getPointer(), mayReadAnyGlobal(), P, and setMayReadAnyGlobal().
◆ addModRefInfo()
| void llvm::GlobalsAAResult::FunctionInfo::addModRefInfo ( ModRefInfo NewMRI) | inline |
|---|
◆ addModRefInfoForGlobal()
◆ eraseModRefInfoForGlobal()
| void llvm::GlobalsAAResult::FunctionInfo::eraseModRefInfoForGlobal ( const GlobalValue & GV) | inline |
|---|
Clear a global's ModRef info.
Should be used when a global is being deleted.
Definition at line 192 of file GlobalsModRef.cpp.
References P.
◆ getModRefInfo()
| ModRefInfo llvm::GlobalsAAResult::FunctionInfo::getModRefInfo ( ) const | inline |
|---|
◆ getModRefInfoForGlobal()
◆ globalClearMayReadAnyGlobal()
| ModRefInfo llvm::GlobalsAAResult::FunctionInfo::globalClearMayReadAnyGlobal ( int I) const | inline |
|---|
◆ mayReadAnyGlobal()
| bool llvm::GlobalsAAResult::FunctionInfo::mayReadAnyGlobal ( ) const | inline |
|---|
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setMayReadAnyGlobal()
| void llvm::GlobalsAAResult::FunctionInfo::setMayReadAnyGlobal ( ) | inline |
|---|
The documentation for this class was generated from the following file:
- lib/Analysis/GlobalsModRef.cpp