25 : VoidTy(C,
Type::VoidTyID),
26 LabelTy(C,
Type::LabelTyID),
27 HalfTy(C,
Type::HalfTyID),
30 MetadataTy(C,
Type::MetadataTyID),
31 TokenTy(C,
Type::TokenTyID),
32 X86_FP80Ty(C,
Type::X86_FP80TyID),
33 FP128Ty(C,
Type::FP128TyID),
34 PPC_FP128Ty(C,
Type::PPC_FP128TyID),
35 X86_MMXTy(C,
Type::X86_MMXTyID),
53 I->dropAllReferences();
54 #define HANDLE_MDNODE_LEAF_UNIQUABLE(CLASS) \
55 for (auto *I : CLASS##s) \
56 I->dropAllReferences();
57 #include "llvm/IR/Metadata.def"
61 Pair.second->dropUsers();
63 Pair.second->dropUse();
66 for (
MDNode *
I : DistinctMDNodes)
67 I->deleteAsSubclass();
68 #define HANDLE_MDNODE_LEAF_UNIQUABLE(CLASS) \
69 for (CLASS * I : CLASS##s) \
71 #include "llvm/IR/Metadata.def"
75 I->dropAllReferences();
77 I->dropAllReferences();
79 I->dropAllReferences();
81 I->dropAllReferences();
82 ExprConstants.freeConstants();
83 ArrayConstants.freeConstants();
84 StructConstants.freeConstants();
85 VectorConstants.freeConstants();
95 delete CDSConstant.second;
123 MDVs.
reserve(MetadataAsValues.size());
124 for (
auto &Pair : MetadataAsValues)
126 MetadataAsValues.clear();
132 for (
auto &Pair : ValuesAsMetadata)
143 if (
C->use_empty()) {
145 C->destroyConstant();
181 "Expected hash of MDOperand to equal hash of Metadata*");
199 Tags[
T.second] =
T.first();
211 "Hit the maximum number of synchronization scopes allowed!");
218 for (
const auto &SSE :
SSC)
219 SSNs[SSE.second] = SSE.first();
static unsigned calculateHash(MDNode *N, unsigned Offset=0)
void push_back(const T &Elt)
Tracking metadata reference owned by Metadata.
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
FoldingSet< AttributeImpl > AttrsSet
DenseMap< Value *, ValueAsMetadata * > ValuesAsMetadata
iterator find(StringRef Key)
op_iterator op_begin() const
static const Metadata * get_hashable_data(const MDOperand &X)
Make MDOperand transparent for hashing.
void reserve(size_type N)
void dropTriviallyDeadConstantArrays()
Destroy the ConstantArrays if they are not used.
op_iterator op_end() const
OptBisect & getOptBisect()
Access the object which manages optimization bisection for failure analysis.
std::vector< MDNode * > DistinctMDNodes
ConstantUniqueMap< InlineAsm > InlineAsms
LLVMContextImpl(LLVMContext &C)
const Type::TypeID FloatTyID
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
ArrayConstantsTy ArrayConstants
StringMap< SyncScope::ID > SSC
A set of interned synchronization scopes.
DenseMap< PointerType *, std::unique_ptr< ConstantPointerNull > > CPNConstants
This class implements a mechanism to disable passes and individual optimizations at compile time base...
The instances of the Type class are immutable: once they are created, they are never changed...
This is an important class for using LLVM in a threaded context.
StringMapEntry< uint32_t > * getOrInsertBundleTag(StringRef Tag)
void getSyncScopeNames(SmallVectorImpl< StringRef > &SSNs) const
getSyncScopeNames - Populates client supplied SmallVector with synchronization scope names registered...
StringMap< uint32_t > BundleTagCache
A set of interned tags for operand bundles.
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang","erlang-compatible garbage collector")
LLVM_NODISCARD bool empty() const
uint32_t getOperandBundleTagID(StringRef Tag) const
VectorConstantsTy VectorConstants
LLVMContextImpl *const pImpl
DenseMap< Metadata *, MetadataAsValue * > MetadataAsValues
void dropTriviallyDeadConstantArrays()
Destroy ConstantArrays in LLVMContext if they are not used.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
Module.h This file contains the declarations for the Module class.
FoldingSet< AttributeListImpl > AttrsLists
This file declares the interface for bisecting optimizations.
bool insert(MapEntryTy *KeyValue)
insert - Insert the specified key/value pair into the map.
SmallPtrSet< Module *, 4 > OwnedModules
OwnedModules - The set of modules instantiated in this context, and which will be automatically delet...
hash_code hash_combine_range(InputIteratorT first, InputIteratorT last)
Compute a hash_code for a sequence of values.
SyncScope::ID getOrInsertSyncScopeID(StringRef SSN)
getOrInsertSyncScopeID - Maps synchronization scope name to synchronization scope ID...
DenseMap< Type *, std::unique_ptr< ConstantAggregateZero > > CAZConstants
ConstantUniqueMap< ConstantExpr > ExprConstants
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
const Type::TypeID DoubleTyID
StructConstantsTy StructConstants
DenseMap< Type *, std::unique_ptr< UndefValue > > UVConstants
static ManagedStatic< OptBisect > OptBisector
Singleton instance of the OptBisect class.
FoldingSet< AttributeSetNode > AttrsSetNodes
void getOperandBundleTags(SmallVectorImpl< StringRef > &Tags) const
StringRef - Represent a constant reference to a string, i.e.
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on...
StringMap< ConstantDataSequential * > CDSConstants