LLVM
8.0.1
|
#include "llvm/Transforms/Utils/ValueMapper.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/IR/Argument.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/Constant.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalAlias.h"
#include "llvm/IR/GlobalObject.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/Casting.h"
#include <cassert>
#include <limits>
#include <memory>
#include <utility>
Go to the source code of this file.
Functions | |
static Metadata * | cloneOrBuildODR (const MDNode &N) |
static ConstantAsMetadata * | wrapConstantAsMetadata (const ConstantAsMetadata &CMD, Value *MappedV) |
static Mapper * | getAsMapper (void *pImpl) |
Definition at line 540 of file ValueMapper.cpp.
References assert(), llvm::MDNode::clone(), llvm::dyn_cast(), llvm::MDNode::isDistinct(), N, llvm::MDNode::replaceWithDistinct(), and llvm::RF_MoveDistinctMDs.
|
static |
Definition at line 1059 of file ValueMapper.cpp.
References assert().
Referenced by llvm::ValueMapper::registerAlternateMappingContext(), llvm::ValueMapper::scheduleMapAppendingVariable(), llvm::ValueMapper::scheduleMapGlobalAliasee(), llvm::ValueMapper::scheduleMapGlobalInitializer(), llvm::ValueMapper::scheduleRemapFunction(), and llvm::ValueMapper::~ValueMapper().
|
static |
Definition at line 560 of file ValueMapper.cpp.
References llvm::GlobalObject::addMetadata(), llvm::SmallVectorImpl< T >::append(), llvm::Function::args(), assert(), llvm::SmallVectorTemplateCommon< T >::back(), llvm::ArrayRef< T >::begin(), llvm::GlobalObject::clearMetadata(), llvm::MDNode::clone(), D, llvm::Data, llvm::ValueMap< KeyT, ValueT, Config >::disableMapMetadata(), E, llvm::SmallVectorBase::empty(), llvm::ValueMap< KeyT, ValueT, Config >::enableMapMetadata(), llvm::ArrayRef< T >::end(), F(), llvm::ArrayRef< T >::front(), G, GEP, llvm::FunctionType::get(), llvm::StructType::get(), llvm::ConstantArray::get(), llvm::ConstantStruct::get(), llvm::Constant::getAggregateElement(), llvm::GlobalObject::getAllMetadata(), llvm::Instruction::getAllMetadata(), llvm::ValueAsMetadata::getConstant(), llvm::Value::getContext(), llvm::PointerType::getElementType(), llvm::Type::getInt8Ty(), getMappedOp(), llvm::Constant::getNullValue(), llvm::MDNode::getNumOperands(), llvm::FunctionType::getNumParams(), llvm::MDNode::getOperand(), llvm::Value::getType(), llvm::GlobalValue::getType(), llvm::ConstantAsMetadata::getValue(), I, Info, llvm::detail::DenseSetImpl< ValueT, DenseMap< ValueT, detail::DenseSetEmpty, ValueInfoT, detail::DenseSetPair< ValueT > >, ValueInfoT >::insert(), llvm::MDNode::isResolved(), llvm::MDNode::isUniqued(), llvm::FunctionType::isVarArg(), llvm::makeArrayRef(), MI, llvm::Value::mutateType(), N, llvm::None, llvm::none_of(), llvm::MDNode::op_begin(), llvm::User::operands(), llvm::MDNode::operands(), llvm::FunctionType::params(), llvm::SmallVectorTemplateBase< T >::pop_back(), llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorTemplateBase< T >::push_back(), llvm::RemapFunction(), llvm::remapInstruction(), llvm::ValueMapTypeRemapper::remapType(), llvm::MDNode::replaceOperandWith(), llvm::MDNode::replaceWithUniqued(), llvm::SmallVectorImpl< T >::reserve(), llvm::SmallVectorImpl< T >::resize(), llvm::MDNode::resolveCycles(), llvm::GlobalVariable::setInitializer(), llvm::Instruction::setMetadata(), llvm::SmallVectorBase::size(), llvm::ArrayRef< T >::size(), and llvm::ARM_MB::ST.