LLVM API Documentation
#include <FindUnsafePointerTypes.h>
Inheritance diagram for llvm::FindUnsafePointerTypes:
Public Member Functions | |
const std::set< PointerType * > & | getUnsafeTypes () const |
virtual bool | runOnModule (Module &M) |
void | print (std::ostream &o, const Module *Mod) const |
virtual void | getAnalysisUsage (AnalysisUsage &AU) const |
Public Attributes | |
std::set< PointerType * > | UnsafeTypes |
Definition at line 34 of file FindUnsafePointerTypes.h.
|
getAnalysisUsage - Of course, we provide ourself... Reimplemented from llvm::Pass. Definition at line 55 of file FindUnsafePointerTypes.h. References llvm::AnalysisUsage::setPreservesAll(). |
|
Definition at line 39 of file FindUnsafePointerTypes.h. References UnsafeTypes. Referenced by print(). |
|
print - Loop over the results of the analysis, printing out unsafe types. Reimplemented from llvm::Pass. Definition at line 89 of file FindUnsafePointerTypes.cpp. References E, getUnsafeTypes(), I, and UnsafeTypes. |
|
run - Inspect the operations that the specified module does on values of various types. If they are deemed to be 'unsafe' note that the type is not safe to transform. Implements llvm::ModulePass. Definition at line 61 of file FindUnsafePointerTypes.cpp. References llvm::Module::begin(), E, llvm::Module::end(), F, llvm::Value::getName(), llvm::GlobalValue::getParent(), I, llvm::inst_begin(), llvm::inst_end(), isSafeInstruction(), PrintFailures, and UnsafeTypes. |
|
Definition at line 36 of file FindUnsafePointerTypes.h. Referenced by getUnsafeTypes(), print(), and runOnModule(). |