|
LLVM
3.7.0
|
#include "llvm/Transforms/Utils/ValueMapper.h"#include "llvm/IR/CallSite.h"#include "llvm/IR/Constants.h"#include "llvm/IR/Function.h"#include "llvm/IR/InlineAsm.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/Metadata.h"Go to the source code of this file.
|
static |
Map a distinct MDNode.
Distinct nodes are not uniqued, so they must always recreated.
Definition at line 222 of file ValueMapper.cpp.
References llvm::MDNode::clone(), llvm::MDNode::isDistinct(), llvm::MDNode::isResolved(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), remap(), and llvm::MDNode::replaceWithDistinct().
Referenced by MapMetadataImpl().
|
static |
Definition at line 262 of file ValueMapper.cpp.
References llvm::ValueAsMetadata::get(), llvm::MDNode::isDistinct(), llvm::MDNode::isResolved(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::lookup(), mapDistinctNode(), mapToMetadata(), mapToSelf(), mapUniquedNode(), llvm::MapValue(), llvm::ValueMap< KeyT, ValueT, Config >::MD(), llvm::RF_IgnoreMissingEntries, and llvm::RF_NoModuleLevelChanges.
Referenced by llvm::MapMetadata(), and mapMetadataOp().
|
static |
Definition at line 164 of file ValueMapper.cpp.
References MapMetadataImpl(), and llvm::RF_IgnoreMissingEntries.
Referenced by remap().
|
static |
Definition at line 148 of file ValueMapper.cpp.
References llvm::ValueMap< KeyT, ValueT, Config >::MD().
Referenced by MapMetadataImpl(), mapToSelf(), mapUniquedNode(), and remap().
|
static |
Definition at line 154 of file ValueMapper.cpp.
References mapToMetadata().
Referenced by MapMetadataImpl(), and mapUniquedNode().
|
static |
Map a uniqued MDNode.
Uniqued nodes may not need to be recreated (they may map to themselves).
Definition at line 244 of file ValueMapper.cpp.
References llvm::MDNode::clone(), llvm::MDNode::get(), llvm::MDNode::isUniqued(), mapToMetadata(), mapToSelf(), remap(), and llvm::MDNode::replaceWithUniqued().
Referenced by MapMetadataImpl().
|
static |
Remap nodes.
Insert NewNode in the value map, and then remap OldNode's operands. Assumes that NewNode is already a clone of OldNode.
NewNode is a clone of OldNode. Definition at line 191 of file ValueMapper.cpp.
References llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), I, llvm::MDNode::isResolved(), llvm::MDNode::isUniqued(), mapMetadataOp(), mapToMetadata(), and llvm::MDNode::replaceOperandWith().
Referenced by mapDistinctNode(), and mapUniquedNode().
1.8.6