LLVM API Documentation
#include "ValueEnumerator.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/UseListOrder.h"
#include "llvm/IR/ValueSymbolTable.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
Go to the source code of this file.
Functions | |
static void | orderValue (const Value *V, OrderMap &OM) |
static OrderMap | orderModule (const Module *M) |
static void | predictValueUseListOrderImpl (const Value *V, const Function *F, unsigned ID, const OrderMap &OM, UseListOrderStack &Stack) |
static void | predictValueUseListOrder (const Value *V, const Function *F, OrderMap &OM, UseListOrderStack &Stack) |
static UseListOrderStack | predictUseListOrder (const Module *M) |
static bool | isIntOrIntVectorValue (const std::pair< const Value *, unsigned > &V) |
static void | IncorporateFunctionInfoGlobalBBIDs (const Function *F, DenseMap< const BasicBlock *, unsigned > &IDMap) |
static void IncorporateFunctionInfoGlobalBBIDs | ( | const Function * | F, |
DenseMap< const BasicBlock *, unsigned > & | IDMap | ||
) | [static] |
Definition at line 779 of file ValueEnumerator.cpp.
References llvm::Function::begin(), and llvm::Function::end().
Referenced by llvm::ValueEnumerator::getGlobalBasicBlockID().
Definition at line 274 of file ValueEnumerator.cpp.
static OrderMap orderModule | ( | const Module * | M | ) | [static] |
Definition at line 71 of file ValueEnumerator.cpp.
References llvm::ARM_PROC::A, llvm::Module::aliases(), F(), G, llvm::Module::globals(), I, and orderValue().
Referenced by predictUseListOrder().
static void orderValue | ( | const Value * | V, |
OrderMap & | OM | ||
) | [static] |
Definition at line 56 of file ValueEnumerator.cpp.
References llvm::CallingConv::C.
Referenced by orderModule().
static UseListOrderStack predictUseListOrder | ( | const Module * | M | ) | [static] |
Definition at line 223 of file ValueEnumerator.cpp.
References llvm::ARM_PROC::A, F(), G, llvm::Module::globals(), I, llvm::GlobalValue::isDeclaration(), orderModule(), predictValueUseListOrder(), llvm::Module::rbegin(), and llvm::Module::rend().
Referenced by llvm::ValueEnumerator::ValueEnumerator().
static void predictValueUseListOrder | ( | const Value * | V, |
const Function * | F, | ||
OrderMap & | OM, | ||
UseListOrderStack & | Stack | ||
) | [static] |
Definition at line 202 of file ValueEnumerator.cpp.
References llvm::CallingConv::C, predictValueUseListOrderImpl(), llvm::Value::use_begin(), llvm::Value::use_empty(), and llvm::Value::use_end().
Referenced by predictUseListOrder().
static void predictValueUseListOrderImpl | ( | const Value * | V, |
const Function * | F, | ||
unsigned | ID, | ||
const OrderMap & | OM, | ||
UseListOrderStack & | Stack | ||
) | [static] |
Definition at line 133 of file ValueEnumerator.cpp.
References llvm::SmallVectorTemplateCommon< T >::begin(), llvm::SmallVectorTemplateCommon< T >::end(), I, llvm::tgtok::List, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::SmallVectorTemplateCommon< T >::size(), and llvm::Value::uses().
Referenced by predictValueUseListOrder().