|
LLVM
4.0.0
|
#include "llvm/Analysis/AssumptionCache.h"#include "llvm/Analysis/CodeMetrics.h"#include "llvm/Analysis/LoopInfo.h"#include "llvm/Analysis/TargetTransformInfo.h"#include "llvm/Analysis/ValueTracking.h"#include "llvm/IR/CallSite.h"#include "llvm/IR/DataLayout.h"#include "llvm/IR/Function.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "code-metrics" |
Functions | |
| static void | appendSpeculatableOperands (const Value *V, SmallPtrSetImpl< const Value * > &Visited, SmallVectorImpl< const Value * > &Worklist) |
| static void | completeEphemeralValues (SmallPtrSetImpl< const Value * > &Visited, SmallVectorImpl< const Value * > &Worklist, SmallPtrSetImpl< const Value * > &EphValues) |
| #define DEBUG_TYPE "code-metrics" |
Definition at line 26 of file CodeMetrics.cpp.
|
static |
Definition at line 31 of file CodeMetrics.cpp.
References llvm::dyn_cast(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::isSafeToSpeculativelyExecute(), llvm::User::operands(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by llvm::CodeMetrics::collectEphemeralValues(), and completeEphemeralValues().
|
static |
Definition at line 44 of file CodeMetrics.cpp.
References llvm::all_of(), appendSpeculatableOperands(), assert(), llvm::SmallPtrSetImpl< PtrType >::count(), llvm::dbgs(), DEBUG, i, llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::SmallVectorTemplateCommon< T, typename >::size(), and llvm::Value::users().
Referenced by llvm::CodeMetrics::collectEphemeralValues().
1.8.6