|
LLVM
10.0.0
|
Data structure to hold cached (LLVM-IR) information. More...
#include "llvm/Transforms/IPO/Attributor.h"
Public Types | |
| using | OpcodeInstMapTy = DenseMap< unsigned, SmallVector< Instruction *, 32 > > |
| A map type from opcodes to instructions with this opcode. More... | |
| using | InstructionVectorTy = std::vector< Instruction * > |
| A vector type to hold instructions. More... | |
Public Member Functions | |
| InformationCache (const Module &M, AnalysisGetter &AG) | |
| OpcodeInstMapTy & | getOpcodeInstMapForFunction (const Function &F) |
Return the map that relates "interesting" opcodes with all instructions with that opcode in F. More... | |
| InstructionVectorTy & | getReadOrWriteInstsForFunction (const Function &F) |
Return the instructions in F that may read or write memory. More... | |
| MustBeExecutedContextExplorer & | getMustBeExecutedContextExplorer () |
| Return MustBeExecutedContextExplorer. More... | |
| TargetLibraryInfo * | getTargetLibraryInfoForFunction (const Function &F) |
Return TargetLibraryInfo for function F. More... | |
| AAResults * | getAAResultsForFunction (const Function &F) |
Return AliasAnalysis Result for function F. More... | |
| template<typename AP > | |
| AP::Result * | getAnalysisResultForFunction (const Function &F) |
Return the analysis result from a pass AP for function F. More... | |
| unsigned | getSccSize (const Function &F) |
Return SCC size on call graph for function F. More... | |
| const DataLayout & | getDL () |
| Return datalayout used in the module. More... | |
Friends | |
| struct | Attributor |
| Give the Attributor access to the members so Attributor::identifyDefaultAbstractAttributes(...) can initialize them. More... | |
Data structure to hold cached (LLVM-IR) information.
All attributes are given an InformationCache object at creation time to avoid inspection of the IR by all of them individually. This default InformationCache will hold information required by 'default' attributes, thus the ones deduced when Attributor::identifyDefaultAbstractAttributes(..) is called.
If custom abstract attributes, registered manually through Attributor::registerAA(...), need more information, especially if it is not reusable, it is advised to inherit from the InformationCache and cast the instance down in the abstract attributes.
Definition at line 563 of file Attributor.h.
| using llvm::InformationCache::InstructionVectorTy = std::vector<Instruction *> |
A vector type to hold instructions.
Definition at line 589 of file Attributor.h.
| using llvm::InformationCache::OpcodeInstMapTy = DenseMap<unsigned, SmallVector<Instruction *, 32> > |
A map type from opcodes to instructions with this opcode.
Definition at line 580 of file Attributor.h.
|
inline |
Definition at line 564 of file Attributor.h.
References llvm::AnalysisGetter::getAnalysis(), I, llvm::scc_begin(), and llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::size().
Return AliasAnalysis Result for function F.
Definition at line 607 of file Attributor.h.
References F().
Referenced by llvm::IRPosition::getAttrs().
|
inline |
Return the analysis result from a pass AP for function F.
Definition at line 613 of file Attributor.h.
References F().
Referenced by llvm::IRPosition::getAttrs(), AAValueConstantRangeImpl::getConstantRangeFromLVI(), AAValueConstantRangeImpl::getConstantRangeFromSCEV(), and AAValueConstantRangeImpl::getSCEV().
|
inline |
Return datalayout used in the module.
Definition at line 625 of file Attributor.h.
Referenced by llvm::IRPosition::getAttrs().
|
inline |
Return MustBeExecutedContextExplorer.
Definition at line 597 of file Attributor.h.
Referenced by llvm::IRPosition::getAttrs().
|
inline |
Return the map that relates "interesting" opcodes with all instructions with that opcode in F.
Definition at line 584 of file Attributor.h.
References F().
Referenced by llvm::IRPosition::getAttrs().
|
inline |
Return the instructions in F that may read or write memory.
Definition at line 592 of file Attributor.h.
References F().
Return SCC size on call graph for function F.
Definition at line 618 of file Attributor.h.
Referenced by llvm::IRPosition::getAttrs().
|
inline |
Return TargetLibraryInfo for function F.
Definition at line 602 of file Attributor.h.
References F().
Referenced by llvm::IRPosition::getAttrs().
|
friend |
Give the Attributor access to the members so Attributor::identifyDefaultAbstractAttributes(...) can initialize them.
Definition at line 655 of file Attributor.h.
1.8.13