LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
Metadata.cpp File Reference
#include "llvm/IR/Metadata.h"
#include "LLVMContextImpl.h"
#include "SymbolTableListTraitsImpl.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/ConstantRange.h"
#include "llvm/Support/LeakDetector.h"
#include "llvm/Support/ValueHandle.h"
Include dependency graph for Metadata.cpp:

Go to the source code of this file.

Classes

class  llvm::MDNodeOperand
 

Namespaces

 llvm
 List of target independent CodeGen pass IDs.
 

Functions

static MDNodeOperandgetOperandPtr (MDNode *N, unsigned Op)
 
static const FunctiongetFunctionForValue (Value *V)
 
static const FunctionassertLocalFunction (const MDNode *N)
 
static bool isFunctionLocalValue (Value *V)
 
static bool isContiguous (const ConstantRange &A, const ConstantRange &B)
 
static bool canBeMerged (const ConstantRange &A, const ConstantRange &B)
 
static bool tryMergeRange (SmallVectorImpl< Value * > &EndPoints, ConstantInt *Low, ConstantInt *High)
 
static void addRange (SmallVectorImpl< Value * > &EndPoints, ConstantInt *Low, ConstantInt *High)
 
static SmallVector< TrackingVH
< MDNode >, 4 > & 
getNMDOps (void *Operands)
 

Function Documentation

static void addRange ( SmallVectorImpl< Value * > &  EndPoints,
ConstantInt Low,
ConstantInt High 
)
static
static const Function* assertLocalFunction ( const MDNode N)
static
static bool canBeMerged ( const ConstantRange A,
const ConstantRange B 
)
static
static const Function* getFunctionForValue ( Value V)
static

Definition at line 149 of file Metadata.cpp.

References llvm::ARM_PROC::A, llvm::BasicBlock::getParent(), and I.

Referenced by assertLocalFunction(), and llvm::MDNode::getFunction().

static SmallVector<TrackingVH<MDNode>, 4>& getNMDOps ( void *  Operands)
static
static MDNodeOperand* getOperandPtr ( MDNode N,
unsigned  Op 
)
static

getOperandPtr - Helper function to get the MDNodeOperand's coallocated on the end of the MDNode.

Definition at line 102 of file Metadata.cpp.

Referenced by llvm::MDNode::getOperand(), and llvm::MDNode::replaceOperandWith().

static bool isContiguous ( const ConstantRange A,
const ConstantRange B 
)
static

Definition at line 419 of file Metadata.cpp.

References llvm::ConstantRange::getLower(), and llvm::ConstantRange::getUpper().

Referenced by canBeMerged().

static bool isFunctionLocalValue ( Value V)
static

isFunctionLocalValue - Return true if this is a value that would require a function-local MDNode.

Definition at line 212 of file Metadata.cpp.

static bool tryMergeRange ( SmallVectorImpl< Value * > &  EndPoints,
ConstantInt Low,
ConstantInt High 
)
static