LLVM 20.0.0git
|
#include "llvm/Analysis/CodeMetrics.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/InstructionCost.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) |
static bool | extendsConvergenceOutsideLoop (const Instruction &I, const Loop *L) |
#define DEBUG_TYPE "code-metrics" |
Definition at line 23 of file CodeMetrics.cpp.
|
static |
Definition at line 28 of file CodeMetrics.cpp.
References I, llvm::SmallPtrSetImpl< PtrType >::insert(), and llvm::SmallVectorTemplateBase< T, bool >::push_back().
Referenced by llvm::CodeMetrics::collectEphemeralValues(), and completeEphemeralValues().
|
static |
Definition at line 42 of file CodeMetrics.cpp.
References llvm::all_of(), appendSpeculatableOperands(), assert(), llvm::SmallPtrSetImpl< PtrType >::count(), llvm::dbgs(), llvm::SmallPtrSetImpl< PtrType >::insert(), LLVM_DEBUG, and llvm::SmallVectorBase< Size_T >::size().
Referenced by llvm::CodeMetrics::collectEphemeralValues().
|
static |
Definition at line 115 of file CodeMetrics.cpp.
References I.
Referenced by llvm::CodeMetrics::analyzeBasicBlock().