Changeset View
Changeset View
Standalone View
Standalone View
lib/IR/LLVMContextImpl.cpp
Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
return Hash; | return Hash; | ||||
} | } | ||||
unsigned MDNodeOpsKey::calculateHash(ArrayRef<Metadata *> Ops) { | unsigned MDNodeOpsKey::calculateHash(ArrayRef<Metadata *> Ops) { | ||||
return hash_combine_range(Ops.begin(), Ops.end()); | return hash_combine_range(Ops.begin(), Ops.end()); | ||||
} | } | ||||
StringMapEntry<uint32_t> *LLVMContextImpl::internBundleTag(StringRef Tag) { | |||||
auto I = BundleTagCache.find(Tag); | |||||
if (I != BundleTagCache.end()) | |||||
return &*I; | |||||
auto *Entry = | |||||
StringMapEntry<uint32_t>::Create(Tag, BundleTagCache.getAllocator(), 0); | |||||
bool WasInserted = BundleTagCache.insert(Entry); | |||||
(void)WasInserted; | |||||
assert(WasInserted && "Expected entry to be inserted"); | |||||
return Entry; | |||||
} | |||||
// ConstantsContext anchors | // ConstantsContext anchors | ||||
void UnaryConstantExpr::anchor() { } | void UnaryConstantExpr::anchor() { } | ||||
void BinaryConstantExpr::anchor() { } | void BinaryConstantExpr::anchor() { } | ||||
void SelectConstantExpr::anchor() { } | void SelectConstantExpr::anchor() { } | ||||
void ExtractElementConstantExpr::anchor() { } | void ExtractElementConstantExpr::anchor() { } | ||||
Show All 13 Lines |