LLVM 24.0.0git
MetadataUtils.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Compiler.h"
#include <utility>

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Functions

LLVM_ABI void llvm::combineMetadataForCSE (Instruction *K, const Instruction *J, bool DoesKMove)
 Combine the metadata of two instructions so that K can replace J.
LLVM_ABI void llvm::combineAAMetadata (Instruction *K, const Instruction *J)
 Combine metadata of two instructions, where instruction J is a memory access that has been merged into K.
LLVM_ABI void llvm::copyMetadataForLoad (LoadInst &Dest, const LoadInst &Source)
 Copy the metadata from the source instruction to the destination (the replacement for the source instruction).
LLVM_ABI void llvm::copyNonnullMetadata (const LoadInst &OldLI, MDNode *N, LoadInst &NewLI)
 Copy a nonnull metadata node to a new load instruction.
LLVM_ABI void llvm::copyRangeMetadata (const DataLayout &DL, const LoadInst &OldLI, MDNode *N, LoadInst &NewLI)
 Copy a range metadata node to a new load instruction.
LLVM_ABI MDNode * llvm::uniteAccessGroups (MDNode *AccGroups1, MDNode *AccGroups2)
 Compute the union of two access-group lists.
LLVM_ABI MDNode * llvm::intersectAccessGroups (const Instruction *Inst1, const Instruction *Inst2)
 Compute the access-group list of access groups that Inst1 and Inst2 are both in.
LLVM_ABI void llvm::getMetadataForVectorization (Instruction *Inst, SmallVectorImpl< std::pair< unsigned, MDNode * > > &Metadata)
 Add metadata from Inst to Metadata, if it can be preserved after vectorization.
LLVM_ABI Instruction * llvm::propagateMetadataForVectorization (Instruction *I, ArrayRef< Value * > VL)
 Propagate metadata that can be preserved after vectorization from VL to I, retaining only information valid for all sources and the destination.