|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
include/llvm/IR/MDBuilder.h 32 class MDString;
include/llvm/IR/Metadata.def 75 HANDLE_METADATA_LEAF(MDString)
lib/AsmParser/LLParser.h 38 class MDString;
References
include/llvm/ADT/DenseMapInfo.h 39 static inline T* getEmptyKey() {
41 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
45 static inline T* getTombstoneKey() {
47 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
51 static unsigned getHashValue(const T *PtrVal) {
56 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
56 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
include/llvm/ADT/StringMap.h 129 ValueTy second;
138 const ValueTy &getValue() const { return second; }
139 ValueTy &getValue() { return second; }
141 void setValue(const ValueTy &V) { second = V; }
158 class StringMapEntry final : public StringMapEntryStorage<ValueTy> {
246 using MapEntryTy = StringMapEntry<ValueTy>;
260 StringMap(std::initializer_list<std::pair<StringRef, ValueTy>> List)
330 using mapped_type = ValueTy;
331 using value_type = StringMapEntry<ValueTy>;
334 using const_iterator = StringMapConstIterator<ValueTy>;
335 using iterator = StringMapIterator<ValueTy>;
350 iterator_range<StringMapKeyIterator<ValueTy>> keys() const {
369 ValueTy lookup(StringRef Key) const {
378 ValueTy &operator[](StringRef Key) { return try_emplace(Key).first->second; }
413 std::pair<iterator, bool> insert(std::pair<StringRef, ValueTy> KV) {
531 : public StringMapIterBase<StringMapConstIterator<ValueTy>,
532 const StringMapEntry<ValueTy>> {
533 using base = StringMapIterBase<StringMapConstIterator<ValueTy>,
534 const StringMapEntry<ValueTy>>;
542 const StringMapEntry<ValueTy> &operator*() const {
548 class StringMapIterator : public StringMapIterBase<StringMapIterator<ValueTy>,
549 StringMapEntry<ValueTy>> {
551 StringMapIterBase<StringMapIterator<ValueTy>, StringMapEntry<ValueTy>>;
551 StringMapIterBase<StringMapIterator<ValueTy>, StringMapEntry<ValueTy>>;
559 StringMapEntry<ValueTy> &operator*() const {
563 operator StringMapConstIterator<ValueTy>() const {
include/llvm/Analysis/CFGPrinter.h 160 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0));
160 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0));
include/llvm/IR/DebugInfoMetadata.h 131 template <class Ty> Ty *getOperandAs(unsigned I) const {
132 return cast_or_null<Ty>(getOperand(I));
136 if (auto *S = getOperandAs<MDString>(I))
136 if (auto *S = getOperandAs<MDString>(I))
141 static MDString *getCanonicalMDString(LLVMContext &Context, StringRef S) {
144 return MDString::get(Context, S);
237 MDString *Header, ArrayRef<Metadata *> DwarfOps,
261 MDString *getRawHeader() const { return getOperandAs<MDString>(0); }
261 MDString *getRawHeader() const { return getOperandAs<MDString>(0); }
367 bool IsUnsigned, MDString *Name,
386 MDString *getRawName() const { return getOperandAs<MDString>(0); }
386 MDString *getRawName() const { return getOperandAs<MDString>(0); }
489 Optional<ChecksumInfo<MDString *>> Checksum;
490 Optional<MDString *> Source;
493 Optional<ChecksumInfo<MDString *>> CS, Optional<MDString *> Src,
493 Optional<ChecksumInfo<MDString *>> CS, Optional<MDString *> Src,
504 Optional<ChecksumInfo<MDString *>> MDChecksum;
512 static DIFile *getImpl(LLVMContext &Context, MDString *Filename,
513 MDString *Directory,
514 Optional<ChecksumInfo<MDString *>> CS,
515 Optional<MDString *> Source, StorageType Storage,
547 MDString *getRawFilename() const { return getOperandAs<MDString>(0); }
547 MDString *getRawFilename() const { return getOperandAs<MDString>(0); }
548 MDString *getRawDirectory() const { return getOperandAs<MDString>(1); }
548 MDString *getRawDirectory() const { return getOperandAs<MDString>(1); }
549 Optional<ChecksumInfo<MDString *>> getRawChecksum() const { return Checksum; }
550 Optional<MDString *> getRawSource() const { return Source; }
633 MDString *getRawName() const { return getOperandAs<MDString>(2); }
633 MDString *getRawName() const { return getOperandAs<MDString>(2); }
713 MDString *Name, uint64_t SizeInBits,
784 MDString *Name, Metadata *File, unsigned Line,
930 getImpl(LLVMContext &Context, unsigned Tag, MDString *Name, Metadata *File,
935 MDString *Identifier, Metadata *Discriminator,
982 getODRType(LLVMContext &Context, MDString &Identifier, unsigned Tag,
983 MDString *Name, Metadata *File, unsigned Line, Metadata *Scope,
989 MDString &Identifier);
1001 buildODRType(LLVMContext &Context, MDString &Identifier, unsigned Tag,
1002 MDString *Name, Metadata *File, unsigned Line, Metadata *Scope,
1025 MDString *getRawIdentifier() const { return getOperandAs<MDString>(7); }
1025 MDString *getRawIdentifier() const { return getOperandAs<MDString>(7); }
1188 MDString *Producer, bool IsOptimized, MDString *Flags,
1188 MDString *Producer, bool IsOptimized, MDString *Flags,
1189 unsigned RuntimeVersion, MDString *SplitDebugFilename,
1283 MDString *getRawProducer() const { return getOperandAs<MDString>(1); }
1283 MDString *getRawProducer() const { return getOperandAs<MDString>(1); }
1284 MDString *getRawFlags() const { return getOperandAs<MDString>(2); }
1284 MDString *getRawFlags() const { return getOperandAs<MDString>(2); }
1285 MDString *getRawSplitDebugFilename() const {
1286 return getOperandAs<MDString>(3);
1677 MDString *Name, MDString *LinkageName,
1677 MDString *Name, MDString *LinkageName,
1814 MDString *getRawName() const { return getOperandAs<MDString>(2); }
1814 MDString *getRawName() const { return getOperandAs<MDString>(2); }
1815 MDString *getRawLinkageName() const { return getOperandAs<MDString>(3); }
1815 MDString *getRawLinkageName() const { return getOperandAs<MDString>(3); }
2038 MDString *Name, bool ExportSymbols,
2061 MDString *getRawName() const { return getOperandAs<MDString>(2); }
2061 MDString *getRawName() const { return getOperandAs<MDString>(2); }
2089 MDString *Name, MDString *ConfigurationMacros,
2089 MDString *Name, MDString *ConfigurationMacros,
2090 MDString *IncludePath, MDString *ISysRoot,
2090 MDString *IncludePath, MDString *ISysRoot,
2118 MDString *getRawName() const { return getOperandAs<MDString>(1); }
2118 MDString *getRawName() const { return getOperandAs<MDString>(1); }
2119 MDString *getRawConfigurationMacros() const { return getOperandAs<MDString>(2); }
2119 MDString *getRawConfigurationMacros() const { return getOperandAs<MDString>(2); }
2120 MDString *getRawIncludePath() const { return getOperandAs<MDString>(3); }
2120 MDString *getRawIncludePath() const { return getOperandAs<MDString>(3); }
2121 MDString *getRawISysRoot() const { return getOperandAs<MDString>(4); }
2121 MDString *getRawISysRoot() const { return getOperandAs<MDString>(4); }
2140 MDString *getRawName() const { return getOperandAs<MDString>(0); }
2140 MDString *getRawName() const { return getOperandAs<MDString>(0); }
2165 static DITemplateTypeParameter *getImpl(LLVMContext &Context, MDString *Name,
2204 MDString *Name, Metadata *Type,
2281 MDString *getRawName() const { return getOperandAs<MDString>(1); }
2281 MDString *getRawName() const { return getOperandAs<MDString>(1); }
2633 getImpl(LLVMContext &Context, Metadata *Scope, MDString *Name,
2634 MDString *LinkageName, Metadata *File, unsigned Line, Metadata *Type,
2676 MDString *getRawLinkageName() const { return getOperandAs<MDString>(5); }
2676 MDString *getRawLinkageName() const { return getOperandAs<MDString>(5); }
2706 Metadata *Decl, MDString *Name, Metadata *File,
2737 MDString *getRawName() const { return getOperandAs<MDString>(2); }
2737 MDString *getRawName() const { return getOperandAs<MDString>(2); }
2773 MDString *Name, Metadata *File, unsigned Line,
2852 MDString *Name, Metadata *File, unsigned Line,
2884 MDString *getRawName() const { return getOperandAs<MDString>(1); }
2884 MDString *getRawName() const { return getOperandAs<MDString>(1); }
2924 static DIObjCProperty *getImpl(LLVMContext &Context, MDString *Name,
2926 MDString *GetterName, MDString *SetterName,
2926 MDString *GetterName, MDString *SetterName,
2978 MDString *getRawName() const { return getOperandAs<MDString>(0); }
2978 MDString *getRawName() const { return getOperandAs<MDString>(0); }
2980 MDString *getRawGetterName() const { return getOperandAs<MDString>(2); }
2980 MDString *getRawGetterName() const { return getOperandAs<MDString>(2); }
2981 MDString *getRawSetterName() const { return getOperandAs<MDString>(3); }
2981 MDString *getRawSetterName() const { return getOperandAs<MDString>(3); }
3012 MDString *Name, StorageType Storage,
3040 MDString *getRawName() const { return getOperandAs<MDString>(2); }
3040 MDString *getRawName() const { return getOperandAs<MDString>(2); }
3109 template <class Ty> Ty *getOperandAs(unsigned I) const {
3110 return cast_or_null<Ty>(getOperand(I));
3114 if (auto *S = getOperandAs<MDString>(I))
3114 if (auto *S = getOperandAs<MDString>(I))
3119 static MDString *getCanonicalMDString(LLVMContext &Context, StringRef S) {
3122 return MDString::get(Context, S);
3157 MDString *Name, MDString *Value, StorageType Storage,
3157 MDString *Name, MDString *Value, StorageType Storage,
3180 MDString *getRawName() const { return getOperandAs<MDString>(0); }
3180 MDString *getRawName() const { return getOperandAs<MDString>(0); }
3181 MDString *getRawValue() const { return getOperandAs<MDString>(1); }
3181 MDString *getRawValue() const { return getOperandAs<MDString>(1); }
include/llvm/IR/IRBuilder.h 1111 auto *RoundingMDS = MDString::get(Context, RoundingStr.getValue());
1111 auto *RoundingMDS = MDString::get(Context, RoundingStr.getValue());
1127 auto *ExceptMDS = MDString::get(Context, ExceptStr.getValue());
1127 auto *ExceptMDS = MDString::get(Context, ExceptStr.getValue());
include/llvm/IR/MDBuilder.h 42 MDString *createString(StringRef Str);
include/llvm/IR/Metadata.h 606 StringMapEntry<MDString> *Entry = nullptr;
611 MDString(const MDString &) = delete;
612 MDString &operator=(MDString &&) = delete;
612 MDString &operator=(MDString &&) = delete;
613 MDString &operator=(const MDString &) = delete;
613 MDString &operator=(const MDString &) = delete;
615 static MDString *get(LLVMContext &Context, StringRef Str);
616 static MDString *get(LLVMContext &Context, const char *Str) {
include/llvm/IR/Module.h 159 MDString *Key;
162 ModuleFlagEntry(ModFlagBehavior B, MDString *K, Metadata *V)
include/llvm/Support/Casting.h 92 return isa_impl<To, From>::doit(*Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
218 static typename cast_retty<To, From>::ret_type doit(From &Val) {
219 return cast_convert_val<To, SimpleFrom,
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
248 typename cast_retty<X, const Y>::ret_type>::type
252 X, const Y, typename simplify_type<const Y>::SimpleType>::doit(Val);
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
285 typename cast_retty<X, const Y>::ret_type>::type
290 return cast<X>(Val);
296 typename cast_retty<X, Y>::ret_type>::type
305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
309 return cast<X>(Val);
331 typename cast_retty<X, const Y>::ret_type>::type
333 return isa<X>(Val) ? cast<X>(Val) : nullptr;
333 return isa<X>(Val) ? cast<X>(Val) : nullptr;
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
352 typename cast_retty<X, const Y>::ret_type>::type
354 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
354 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
360 typename cast_retty<X, Y>::ret_type>::type
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h 56 static inline void *getAsVoidPointer(T *P) { return P; }
57 static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
59 enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
91 typedef PointerLikeTypeTraits<T *> NonConst;
93 static inline const void *getAsVoidPointer(const T *P) {
96 static inline const T *getFromVoidPointer(const void *P) {
lib/Analysis/LoopInfo.cpp 529 MDNode::get(Context, MDString::get(Context, "llvm.loop.unroll.disable"));
990 MDString *S = dyn_cast<MDString>(MD->getOperand(0));
990 MDString *S = dyn_cast<MDString>(MD->getOperand(0));
1028 const MDString *S = dyn_cast<MDString>(MD->getOperand(0));
1028 const MDString *S = dyn_cast<MDString>(MD->getOperand(0));
lib/Analysis/ModuleDebugInfoPrinter.cpp 122 if (auto *S = CT->getRawIdentifier())
lib/Analysis/ModuleSummaryAnalysis.cpp 170 auto *TypeId = dyn_cast<MDString>(TypeMDVal->getMetadata());
170 auto *TypeId = dyn_cast<MDString>(TypeMDVal->getMetadata());
201 auto *TypeId = dyn_cast<MDString>(TypeMDVal->getMetadata());
201 auto *TypeId = dyn_cast<MDString>(TypeMDVal->getMetadata());
562 if (auto *TypeId = dyn_cast<MDString>(TypeID))
562 if (auto *TypeId = dyn_cast<MDString>(TypeID))
lib/Analysis/TypeBasedAliasAnalysis.cpp 456 if (MDString *Tag1 = dyn_cast<MDString>(getOperand(0))) {
456 if (MDString *Tag1 = dyn_cast<MDString>(getOperand(0))) {
466 if(auto *Id = dyn_cast<MDString>(AccessType.getId()))
466 if(auto *Id = dyn_cast<MDString>(AccessType.getId()))
lib/AsmParser/LLParser.cpp 666 bool LLParser::ParseMDString(MDString *&Result) {
669 Result = MDString::get(Context, Str);
3889 struct MDStringField : public MDFieldImpl<MDString *> {
4305 Result.assign(S.empty() ? nullptr : MDString::get(Context, S));
4612 Optional<DIFile::ChecksumInfo<MDString *>> OptChecksum;
4618 Optional<MDString *> OptSource;
5112 MDString *S;
lib/AsmParser/LLParser.h 336 bool ParseMDString(MDString *&Result);
lib/Bitcode/Reader/MetadataLoader.cpp 125 SmallDenseMap<MDString *, TempMDTuple, 1> Unknown;
126 SmallDenseMap<MDString *, DICompositeType *, 1> Final;
127 SmallDenseMap<MDString *, DICompositeType *, 1> FwdDecls;
190 void addTypeRef(MDString &UUID, DICompositeType &CT);
306 void BitcodeReaderMetadataList::addTypeRef(MDString &UUID,
316 auto *UUID = dyn_cast_or_null<MDString>(MaybeUUID);
316 auto *UUID = dyn_cast_or_null<MDString>(MaybeUUID);
439 MDString *lazyLoadOneMDString(unsigned Idx);
975 MDString *MetadataLoader::MetadataLoaderImpl::lazyLoadOneMDString(unsigned ID) {
978 return cast<MDString>(MD);
979 auto MDS = MDString::get(Context, MDStringRef[ID]);
1093 return cast_or_null<MDString>(MDS);
1246 auto *Header = getMDString(Record[3]);
1341 MDString *Name = getMDString(Record[2]);
1357 auto *Identifier = getMDString(Record[15]);
1440 Optional<DIFile::ChecksumInfo<MDString *>> Checksum;
1626 MDString *Name;
1884 Metadata *MD = MDString::get(Context, String);
1892 MetadataList.assignValue(MDString::get(Context, Str), NextMetadataNo);
lib/Bitcode/Writer/BitcodeWriter.cpp 1981 W.EmitVBR(cast<MDString>(MD)->getLength(), 6);
1990 Blob.append(cast<MDString>(MD)->getString());
lib/Bitcode/Writer/ValueEnumerator.cpp 711 if (isa<MDString>(MD))
759 if (isa<MDString>(MD))
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 2058 const MDString *S = cast<MDString>(N->getOperand(0));
2058 const MDString *S = cast<MDString>(N->getOperand(0));
2080 const MDString *S = cast<MDString>(N->getOperand(0));
2080 const MDString *S = cast<MDString>(N->getOperand(0));
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp 1095 StringRef Str = cast<MDString>(MD)->getString();
2100 using MethodsMap = MapVector<MDString *, MethodsList>;
lib/CodeGen/AsmPrinter/DwarfUnit.cpp 664 if (MDString *TypeId = CTy->getRawIdentifier())
1071 cast<MDString>(Val)->getString());
lib/CodeGen/MachinePipeliner.cpp 288 MDString *S = dyn_cast<MDString>(MD->getOperand(0));
288 MDString *S = dyn_cast<MDString>(MD->getOperand(0));
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 2234 const MDString *RegStr = dyn_cast<MDString>(MD->getMD()->getOperand(0));
2234 const MDString *RegStr = dyn_cast<MDString>(MD->getMD()->getOperand(0));
2248 const MDString *RegStr = dyn_cast<MDString>(MD->getMD()->getOperand(0));
2248 const MDString *RegStr = dyn_cast<MDString>(MD->getMD()->getOperand(0));
lib/CodeGen/TargetLoweringObjectFileImpl.cpp 85 Section = cast<MDString>(MFE.Val)->getString();
280 Streamer.EmitBytes(cast<MDString>(Option)->getString());
294 cast<MDString>(cast<MDNode>(Operand)->getOperand(0))->getString());
891 StrOptions.push_back(cast<MDString>(Piece)->getString());
1456 Directive.append(cast<MDString>(Piece)->getString());
lib/IR/AsmWriter.cpp 2334 if (const MDString *MDS = dyn_cast<MDString>(MD)) {
2334 if (const MDString *MDS = dyn_cast<MDString>(MD)) {
lib/IR/AutoUpgrade.cpp 3842 MDString *ID = dyn_cast_or_null<MDString>(Op->getOperand(0));
3842 MDString *ID = dyn_cast_or_null<MDString>(Op->getOperand(0));
3848 ID = MDString::get(M.getContext(), NewValue);
3990 MDString *ID = dyn_cast_or_null<MDString>(Op->getOperand(1));
3990 MDString *ID = dyn_cast_or_null<MDString>(Op->getOperand(1));
4006 MDString::get(M.getContext(), ID->getString()),
4017 if (auto *Value = dyn_cast_or_null<MDString>(Op->getOperand(2))) {
4017 if (auto *Value = dyn_cast_or_null<MDString>(Op->getOperand(2))) {
4025 MDString::get(M.getContext(), NewValue)};
4082 auto *S = dyn_cast_or_null<MDString>(T->getOperand(0));
4082 auto *S = dyn_cast_or_null<MDString>(T->getOperand(0));
4088 static MDString *upgradeLoopTag(LLVMContext &C, StringRef OldTag) {
4093 return MDString::get(C, "llvm.loop.interleave.count");
4095 return MDString::get(
4106 auto *OldTag = dyn_cast_or_null<MDString>(T->getOperand(0));
4106 auto *OldTag = dyn_cast_or_null<MDString>(T->getOperand(0));
lib/IR/BasicBlock.cpp 483 MDString *MDName = cast<MDString>(MDIrrLoopHeader->getOperand(0));
483 MDString *MDName = cast<MDString>(MDIrrLoopHeader->getOperand(0));
lib/IR/Core.cpp 942 if (isa<MDString>(MD->getMetadata()))
1050 return wrap(MDString::get(*unwrap(C), StringRef(Str, SLen)));
1062 Context, MDString::get(Context, StringRef(Str, SLen))));
1115 if (const MDString *S = dyn_cast<MDString>(MD->getMetadata())) {
1115 if (const MDString *S = dyn_cast<MDString>(MD->getMetadata())) {
lib/IR/DIBuilder.cpp 432 MDString::get(VMContext, Val));
lib/IR/DebugInfoMetadata.cpp 254 static bool isCanonical(const MDString *S) {
260 MDString *Header,
333 bool IsUnsigned, MDString *Name,
342 MDString *Name, uint64_t SizeInBits,
368 LLVMContext &Context, unsigned Tag, MDString *Name, Metadata *File,
385 LLVMContext &Context, unsigned Tag, MDString *Name, Metadata *File,
389 Metadata *TemplateParams, MDString *Identifier, Metadata *Discriminator,
407 LLVMContext &Context, MDString &Identifier, unsigned Tag, MDString *Name,
407 LLVMContext &Context, MDString &Identifier, unsigned Tag, MDString *Name,
442 LLVMContext &Context, MDString &Identifier, unsigned Tag, MDString *Name,
442 LLVMContext &Context, MDString &Identifier, unsigned Tag, MDString *Name,
460 MDString &Identifier) {
498 DIFile *DIFile::getImpl(LLVMContext &Context, MDString *Filename,
499 MDString *Directory,
500 Optional<DIFile::ChecksumInfo<MDString *>> CS,
501 Optional<MDString *> Source, StorageType Storage,
515 MDString *Producer, bool IsOptimized, MDString *Flags,
515 MDString *Producer, bool IsOptimized, MDString *Flags,
516 unsigned RuntimeVersion, MDString *SplitDebugFilename,
628 LLVMContext &Context, Metadata *Scope, MDString *Name,
629 MDString *LinkageName, Metadata *File, unsigned Line, Metadata *Type,
693 MDString *Name, bool ExportSymbols,
703 Metadata *Decl, MDString *Name,
714 MDString *Name, MDString *ConfigurationMacros,
714 MDString *Name, MDString *ConfigurationMacros,
715 MDString *IncludePath, MDString *ISysRoot,
715 MDString *IncludePath, MDString *ISysRoot,
725 MDString *Name,
736 LLVMContext &Context, unsigned Tag, MDString *Name, Metadata *Type,
745 DIGlobalVariable::getImpl(LLVMContext &Context, Metadata *Scope, MDString *Name,
746 MDString *LinkageName, Metadata *File, unsigned Line,
770 MDString *Name, Metadata *File,
812 MDString *Name, Metadata *File, unsigned Line,
1195 LLVMContext &Context, MDString *Name, Metadata *File, unsigned Line,
1196 MDString *GetterName, MDString *SetterName, unsigned Attributes,
1196 MDString *GetterName, MDString *SetterName, unsigned Attributes,
1210 MDString *Name, StorageType Storage,
1220 unsigned Line, MDString *Name, MDString *Value,
1220 unsigned Line, MDString *Name, MDString *Value,
lib/IR/Function.cpp 1550 if (MDString *MDS = dyn_cast<MDString>(MD->getOperand(0))) {
1550 if (MDString *MDS = dyn_cast<MDString>(MD->getOperand(0))) {
1572 if (MDString *MDS = dyn_cast<MDString>(MD->getOperand(0)))
1572 if (MDString *MDS = dyn_cast<MDString>(MD->getOperand(0)))
1593 return cast<MDString>(MD->getOperand(1))->getString();
lib/IR/Instruction.cpp 694 !isa<MDString>(ProfileData->getOperand(0)))
697 MDString *MDName = cast<MDString>(ProfileData->getOperand(0));
697 MDString *MDName = cast<MDString>(ProfileData->getOperand(0));
lib/IR/Instructions.cpp 471 auto *ProfDataName = dyn_cast<MDString>(ProfileData->getOperand(0));
471 auto *ProfDataName = dyn_cast<MDString>(ProfileData->getOperand(0));
3894 if (auto *MDName = dyn_cast<MDString>(ProfileData->getOperand(0)))
3894 if (auto *MDName = dyn_cast<MDString>(ProfileData->getOperand(0)))
lib/IR/IntrinsicInst.cpp 110 if (!MD || !isa<MDString>(MD))
112 return StrToRoundingMode(cast<MDString>(MD)->getString());
156 if (!MD || !isa<MDString>(MD))
158 return StrToExceptionBehavior(cast<MDString>(MD)->getString());
lib/IR/LLVMContextImpl.h 307 MDString *Header;
309 MDNodeKeyImpl(unsigned Tag, MDString *Header, ArrayRef<Metadata *> DwarfOps)
359 MDString *Name;
362 MDNodeKeyImpl(int64_t Value, bool IsUnsigned, MDString *Name)
378 MDString *Name;
384 MDNodeKeyImpl(unsigned Tag, MDString *Name, uint64_t SizeInBits,
407 MDString *Name;
419 MDNodeKeyImpl(unsigned Tag, MDString *Name, Metadata *File, unsigned Line,
480 const MDString *Name, const DIDerivedType *RHS) {
497 MDString *Name;
510 MDString *Identifier;
513 MDNodeKeyImpl(unsigned Tag, MDString *Name, Metadata *File, unsigned Line,
518 MDString *Identifier, Metadata *Discriminator)
580 MDString *Filename;
581 MDString *Directory;
582 Optional<DIFile::ChecksumInfo<MDString *>> Checksum;
583 Optional<MDString *> Source;
585 MDNodeKeyImpl(MDString *Filename, MDString *Directory,
585 MDNodeKeyImpl(MDString *Filename, MDString *Directory,
586 Optional<DIFile::ChecksumInfo<MDString *>> Checksum,
587 Optional<MDString *> Source)
610 MDString *Name;
611 MDString *LinkageName;
627 MDNodeKeyImpl(Metadata *Scope, MDString *Name, MDString *LinkageName,
627 MDNodeKeyImpl(Metadata *Scope, MDString *Name, MDString *LinkageName,
705 const MDString *LinkageName,
773 MDString *Name;
776 MDNodeKeyImpl(Metadata *Scope, MDString *Name, bool ExportSymbols)
795 MDString *Name;
799 MDNodeKeyImpl(Metadata *Scope, Metadata *Decl, MDString *Name,
819 MDString *Name;
820 MDString *ConfigurationMacros;
821 MDString *IncludePath;
822 MDString *ISysRoot;
824 MDNodeKeyImpl(Metadata *Scope, MDString *Name, MDString *ConfigurationMacros,
824 MDNodeKeyImpl(Metadata *Scope, MDString *Name, MDString *ConfigurationMacros,
825 MDString *IncludePath, MDString *ISysRoot)
825 MDString *IncludePath, MDString *ISysRoot)
847 MDString *Name;
850 MDNodeKeyImpl(MDString *Name, Metadata *Type) : Name(Name), Type(Type) {}
863 MDString *Name;
867 MDNodeKeyImpl(unsigned Tag, MDString *Name, Metadata *Type, Metadata *Value)
883 MDString *Name;
884 MDString *LinkageName;
894 MDNodeKeyImpl(Metadata *Scope, MDString *Name, MDString *LinkageName,
894 MDNodeKeyImpl(Metadata *Scope, MDString *Name, MDString *LinkageName,
941 MDString *Name;
949 MDNodeKeyImpl(Metadata *Scope, MDString *Name, Metadata *File, unsigned Line,
980 MDString *Name;
984 MDNodeKeyImpl(Metadata *Scope, MDString *Name, Metadata *File, unsigned Line)
1034 MDString *Name;
1037 MDString *GetterName;
1038 MDString *SetterName;
1042 MDNodeKeyImpl(MDString *Name, Metadata *File, unsigned Line,
1043 MDString *GetterName, MDString *SetterName, unsigned Attributes,
1043 MDString *GetterName, MDString *SetterName, unsigned Attributes,
1071 MDString *Name;
1074 unsigned Line, MDString *Name)
1095 MDString *Name;
1096 MDString *Value;
1098 MDNodeKeyImpl(unsigned MIType, unsigned Line, MDString *Name, MDString *Value)
1098 MDNodeKeyImpl(unsigned MIType, unsigned Line, MDString *Name, MDString *Value)
1272 StringMap<MDString, BumpPtrAllocator> MDStringCache;
1283 Optional<DenseMap<const MDString *, DICompositeType *>> DITypeMap;
lib/IR/MDBuilder.cpp 20 MDString *MDBuilder::createString(StringRef Str) {
21 return MDString::get(Context, Str);
lib/IR/Metadata.cpp 453 MDString *MDString::get(LLVMContext &Context, StringRef Str) {
456 auto &MapEntry = I.first->getValue();
1321 auto *ProfDataName = dyn_cast<MDString>(ProfileData->getOperand(0));
1321 auto *ProfDataName = dyn_cast<MDString>(ProfileData->getOperand(0));
1349 auto *ProfDataName = dyn_cast<MDString>(ProfileData->getOperand(0));
1349 auto *ProfDataName = dyn_cast<MDString>(ProfileData->getOperand(0));
lib/IR/Module.cpp 298 dyn_cast_or_null<MDString>(Flag->getOperand(1))) {
301 MDString *Key = cast<MDString>(Flag->getOperand(1));
301 MDString *Key = cast<MDString>(Flag->getOperand(1));
342 MDString::get(Context, Key), Val};
lib/IR/ProfileSummary.cpp 29 Metadata *Ops[2] = {MDString::get(Context, Key),
38 Metadata *Ops[2] = {MDString::get(Context, Key), MDString::get(Context, Val)};
38 Metadata *Ops[2] = {MDString::get(Context, Key), MDString::get(Context, Val)};
58 Metadata *Ops[2] = {MDString::get(Context, "DetailedSummary"),
89 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
89 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
103 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
103 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
104 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1));
104 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1));
116 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
116 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0));
lib/IR/Verifier.cpp 414 DenseMap<const MDString *, const MDNode *> &SeenIDs,
1364 DenseMap<const MDString*, const MDNode*> SeenIDs;
1371 const MDString *Flag = cast<MDString>(Requirement->getOperand(0));
1371 const MDString *Flag = cast<MDString>(Requirement->getOperand(0));
1392 DenseMap<const MDString *, const MDNode *> &SeenIDs,
1408 MDString *ID = dyn_cast_or_null<MDString>(Op->getOperand(1));
1408 MDString *ID = dyn_cast_or_null<MDString>(Op->getOperand(1));
1860 MDString *MDS = cast<MDString>(MD->getOperand(0));
1860 MDString *MDS = cast<MDString>(MD->getOperand(0));
4027 MDString *MDS = cast<MDString>(MD->getOperand(0));
4027 MDString *MDS = cast<MDString>(MD->getOperand(0));
5260 if (!IsNewFormat && !isa<MDString>(BaseNode->getOperand(0))) {
5343 if (!isa<MDString>(MD->getOperand(0)))
5348 if (!(Offset && Offset->isZero() && isa<MDString>(MD->getOperand(0))))
lib/LTO/LTOModule.cpp 634 MDString *MDOption = cast<MDString>(MDOptions->getOperand(ii));
634 MDString *MDOption = cast<MDString>(MDOptions->getOperand(ii));
lib/Linker/IRMover.cpp 1209 DenseMap<MDString *, std::pair<MDNode *, unsigned>> Flags;
1214 MDString *ID = cast<MDString>(Op->getOperand(1));
1214 MDString *ID = cast<MDString>(Op->getOperand(1));
1229 MDString *ID = cast<MDString>(SrcOp->getOperand(1));
1229 MDString *ID = cast<MDString>(SrcOp->getOperand(1));
1357 MDString *Flag = cast<MDString>(Requirement->getOperand(0));
1357 MDString *Flag = cast<MDString>(Requirement->getOperand(0));
lib/Object/IRSymtab.cpp 141 COFFLinkerOptsOS << " " << cast<MDString>(MDOption)->getString();
151 cast<MDString>(cast<MDNode>(MDOptions)->getOperand(0))->getString();
lib/ProfileData/InstrProf.cpp 266 StringRef S = cast<MDString>(MD->getOperand(0))->getString();
991 MDString *Tag = cast<MDString>(MD->getOperand(0));
991 MDString *Tag = cast<MDString>(MD->getOperand(0));
1040 MDNode *N = MDNode::get(C, MDString::get(C, PGOFuncName));
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp 2676 const MDString *RegString = dyn_cast<MDString>(MD->getMD()->getOperand(0));
2676 const MDString *RegString = dyn_cast<MDString>(MD->getMD()->getOperand(0));
2722 const MDString *RegString = dyn_cast<MDString>(MD->getMD()->getOperand(0));
2722 const MDString *RegString = dyn_cast<MDString>(MD->getMD()->getOperand(0));
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp 262 Printf.push_back(cast<MDString>(Op->getOperand(0))->getString());
316 Name = cast<MDString>(Node->getOperand(ArgNo))->getString();
323 TypeName = cast<MDString>(Node->getOperand(ArgNo))->getString();
328 BaseTypeName = cast<MDString>(Node->getOperand(ArgNo))->getString();
337 AccQual = cast<MDString>(Node->getOperand(ArgNo))->getString();
343 TypeQual = cast<MDString>(Node->getOperand(ArgNo))->getString();
668 cast<MDString>(Op->getOperand(0))->getString(), /*Copy=*/true));
733 Name = cast<MDString>(Node->getOperand(ArgNo))->getString();
740 TypeName = cast<MDString>(Node->getOperand(ArgNo))->getString();
745 BaseTypeName = cast<MDString>(Node->getOperand(ArgNo))->getString();
754 AccQual = cast<MDString>(Node->getOperand(ArgNo))->getString();
760 TypeQual = cast<MDString>(Node->getOperand(ArgNo))->getString();
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp 335 MDString *fmtStrArray = MDString::get(Ctx, fmtstr);
335 MDString *fmtStrArray = MDString::get(Ctx, fmtstr);
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp 115 MDString *StringNode = dyn_cast<MDString>(ArgNode->getOperand(0));
115 MDString *StringNode = dyn_cast<MDString>(ArgNode->getOperand(0));
126 return cast<MDString>(ArgAQNode->getOperand(ArgIdx + 1))->getString();
132 return cast<MDString>(ArgTypeNode->getOperand(ArgIdx + 1))->getString();
290 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageSizeArgMDType);
295 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageFormatArgMDType);
lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp 41 if (auto MDS = dyn_cast<MDString>(MDN->getOperand(0)))
lib/Target/ARM/ARMISelDAGToDAG.cpp 4416 const MDString *RegString = dyn_cast<MDString>(MD->getMD()->getOperand(0));
4416 const MDString *RegString = dyn_cast<MDString>(MD->getMD()->getOperand(0));
4531 const MDString *RegString = dyn_cast<MDString>(MD->getMD()->getOperand(0));
4531 const MDString *RegString = dyn_cast<MDString>(MD->getMD()->getOperand(0));
lib/Target/NVPTX/NVPTXUtilities.cpp 54 const MDString *prop = dyn_cast<MDString>(md->getOperand(i));
54 const MDString *prop = dyn_cast<MDString>(md->getOperand(i));
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp 150 const MDString *Name = dyn_cast<MDString>(Tuple->getOperand(0));
150 const MDString *Name = dyn_cast<MDString>(Tuple->getOperand(0));
151 const MDString *Contents = dyn_cast<MDString>(Tuple->getOperand(1));
151 const MDString *Contents = dyn_cast<MDString>(Tuple->getOperand(1));
186 const auto *S = cast<MDString>(Ident->getOperand(I)->getOperand(0));
186 const auto *S = cast<MDString>(Ident->getOperand(I)->getOperand(0));
lib/Target/X86/X86FrameLowering.cpp 2541 MDString *NodeName = dyn_cast<MDString>(Node->getOperand(0));
2541 MDString *NodeName = dyn_cast<MDString>(Node->getOperand(0));
lib/Transforms/IPO/FunctionImport.cpp 1123 {MDString::get(DestModule.getContext(),
1167 {MDString::get(DestModule.getContext(),
lib/Transforms/IPO/LowerTypeTests.cpp 1031 auto TypeIdStr = dyn_cast<MDString>(TypeIdMDVal->getMetadata());
1153 uint8_t *MaskPtr = exportTypeId(cast<MDString>(TypeId)->getString(), TIL);
1855 cast<MDString>(FuncMD->getOperand(0))->getString();
2051 if (auto *TypeId = dyn_cast<MDString>(P.first))
2051 if (auto *TypeId = dyn_cast<MDString>(P.first))
2139 cast<MDString>(AliasMD->getOperand(0))->getString();
2140 StringRef Aliasee = cast<MDString>(AliasMD->getOperand(1))->getString();
2181 cast<MDString>(Symver->getOperand(0))->getString();
2182 StringRef Alias = cast<MDString>(Symver->getOperand(1))->getString();
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp 96 GlobalMD = MDString::get(M.getContext(), NewName);
325 Elts.push_back(MDString::get(Ctx, F.getName()));
354 MDString::get(Ctx, A.getName()),
355 MDString::get(Ctx, F->getName()),
378 Ctx, {MDString::get(Ctx, Name), MDString::get(Ctx, Alias)}));
378 Ctx, {MDString::get(Ctx, Name), MDString::get(Ctx, Alias)}));
lib/Transforms/IPO/WholeProgramDevirt.cpp 1053 if (isa<MDString>(Slot.TypeID)) {
1227 OS << cast<MDString>(Slot.TypeID)->getString() << '_' << Slot.ByteOffset;
1679 auto *TypeId = dyn_cast<MDString>(Slot.TypeID);
1679 auto *TypeId = dyn_cast<MDString>(Slot.TypeID);
1814 if (auto *TypeId = dyn_cast<MDString>(P.first))
1814 if (auto *TypeId = dyn_cast<MDString>(P.first))
1866 if (ExportSummary && isa<MDString>(S.first.TypeID))
1869 cast<MDString>(S.first.TypeID)->getString())
1890 if (ExportSummary && isa<MDString>(S.first.TypeID)) {
1892 GlobalValue::getGUID(cast<MDString>(S.first.TypeID)->getString());
lib/Transforms/InstCombine/InstCombineCalls.cpp 3691 Metadata *MDArgs[] = {MDString::get(II->getContext(), "exec")};
lib/Transforms/Instrumentation/AddressSanitizer.cpp 1115 MDString *DIFilename = cast<MDString>(MDN->getOperand(0));
1115 MDString *DIFilename = cast<MDString>(MDN->getOperand(0));
1145 if (auto *Name = cast_or_null<MDString>(MDN->getOperand(2)))
1145 if (auto *Name = cast_or_null<MDString>(MDN->getOperand(2)))
lib/Transforms/Instrumentation/ControlHeightReduction.cpp 611 MDString *MDName = cast<MDString>(MD->getOperand(0));
611 MDString *MDName = cast<MDString>(MD->getOperand(0));
lib/Transforms/Instrumentation/GCOVProfiling.cpp 535 MDString *NotesFile = dyn_cast<MDString>(N->getOperand(0));
535 MDString *NotesFile = dyn_cast<MDString>(N->getOperand(0));
536 MDString *DataFile = dyn_cast<MDString>(N->getOperand(1));
536 MDString *DataFile = dyn_cast<MDString>(N->getOperand(1));
542 MDString *GCovFile = dyn_cast<MDString>(N->getOperand(0));
542 MDString *GCovFile = dyn_cast<MDString>(N->getOperand(0));
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp 1024 MDNode *MD = MDNode::get(*C, {MDString::get(*C, Name)});
lib/Transforms/ObjCARC/ObjCARCContract.cpp 73 const MDString *RVInstMarker;
779 RVInstMarker = dyn_cast_or_null<MDString>(M.getModuleFlag(MarkerKey));
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp 417 Context, {MDString::get(Context, "llvm.loop.unroll.disable")});
422 {MDString::get(Context, "llvm.loop.vectorize.enable"), FalseVal});
424 Context, {MDString::get(Context, "llvm.loop.licm_versioning.disable")});
427 {MDString::get(Context, "llvm.loop.distribute.enable"), FalseVal});
lib/Transforms/Scalar/JumpThreading.cpp 2152 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0));
2152 MDString *MDName = cast<MDString>(WeightsNode->getOperand(0));
lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp 112 MDString *S = dyn_cast<MDString>(MD->getOperand(0));
112 MDString *S = dyn_cast<MDString>(MD->getOperand(0));
lib/Transforms/Utils/LoopUnroll.cpp 972 MDString *S = dyn_cast<MDString>(MD->getOperand(0));
972 MDString *S = dyn_cast<MDString>(MD->getOperand(0));
lib/Transforms/Utils/LoopUtils.cpp 203 MDString::get(Context, Name),
221 MDString *S = dyn_cast<MDString>(Node->getOperand(0));
221 MDString *S = dyn_cast<MDString>(Node->getOperand(0));
333 if (!isa<MDString>(NameMD))
335 StringRef AttrName = cast<MDString>(NameMD)->getString();
lib/Transforms/Utils/MisExpect.cpp 98 auto *MisExpectDataName = dyn_cast<MDString>(MisExpectData->getOperand(0));
98 auto *MisExpectDataName = dyn_cast<MDString>(MisExpectData->getOperand(0));
161 if (MDString *Tag = cast<MDString>(MD->getOperand(0))) {
161 if (MDString *Tag = cast<MDString>(MD->getOperand(0))) {
lib/Transforms/Utils/SimplifyCFG.cpp 959 if (MDString *MDS = dyn_cast<MDString>(ProfMD->getOperand(0)))
959 if (MDString *MDS = dyn_cast<MDString>(ProfMD->getOperand(0)))
lib/Transforms/Utils/ValueMapper.cpp 573 if (isa<MDString>(Op))
782 if (isa<MDString>(MD))
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp 98 {MDString::get(Context, "llvm.loop.isvectorized"),
191 const MDString *S = nullptr;
199 S = dyn_cast<MDString>(MD->getOperand(0));
203 S = dyn_cast<MDString>(LoopID->getOperand(i));
lib/Transforms/Vectorize/LoopVectorize.cpp 6591 const auto *S = dyn_cast<MDString>(MD->getOperand(0));
6591 const auto *S = dyn_cast<MDString>(MD->getOperand(0));
6604 MDString::get(Context, "llvm.loop.unroll.runtime.disable"));
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGBuiltin.cpp 3123 Strings.push_back(llvm::MDString::get(getLLVMContext(), StrUtf8));
5929 llvm::Metadata *Ops[] = { llvm::MDString::get(Context, SysReg) };
7255 llvm::Metadata *Ops[] = {llvm::MDString::get(Context, Reg)};
7428 llvm::Metadata *Ops[] = { llvm::MDString::get(Context, SysRegStr) };
tools/clang/lib/CodeGen/CGClass.cpp 2781 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables"));
tools/clang/lib/CodeGen/CGExpr.cpp 2450 llvm::MDString *Str = llvm::MDString::get(CGM.getLLVMContext(),
2450 llvm::MDString *Str = llvm::MDString::get(CGM.getLLVMContext(),
3239 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables"));
tools/clang/lib/CodeGen/CGLoopInfo.cpp 50 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.pipeline.disable"),
65 MDString::get(Ctx, "llvm.loop.pipeline.initiationinterval"),
107 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.disable")));
120 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll.count"),
128 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll.enable")};
134 Ctx, {MDString::get(Ctx, "llvm.loop.unroll.followup_all"), Followup}));
160 Ctx, MDString::get(Ctx, "llvm.loop.unroll_and_jam.disable")));
170 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll_and_jam.disable")));
184 MDString::get(Ctx, "llvm.loop.unroll_and_jam.count"),
191 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll_and_jam.enable")};
197 Ctx, {MDString::get(Ctx, "llvm.loop.unroll_and_jam.followup_outer"),
202 Ctx, {MDString::get(Ctx, "llvm.loop.unroll_and_jam.followup_inner"),
230 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.vectorize.enable"),
244 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.isvectorized")));
265 MDString::get(Ctx, "llvm.loop.vectorize.predicate.enable"),
274 MDString::get(Ctx, "llvm.loop.vectorize.width"),
283 MDString::get(Ctx, "llvm.loop.interleave.count"),
293 MDString::get(Ctx, "llvm.loop.vectorize.enable"),
305 {MDString::get(Ctx, "llvm.loop.vectorize.followup_all"), Followup}));
330 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.distribute.enable"),
348 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.distribute.enable"),
357 {MDString::get(Ctx, "llvm.loop.distribute.followup_all"), Followup}));
381 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.disable")));
392 Args.push_back(MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.full")));
423 Ctx, {MDString::get(Ctx, "llvm.loop.parallel_accesses"), AccGroup}));
547 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.isvectorized")));
tools/clang/lib/CodeGen/CGObjC.cpp 2184 auto *str = llvm::MDString::get(CGF.getLLVMContext(), assembly);
2184 auto *str = llvm::MDString::get(CGF.getLLVMContext(), assembly);
3725 llvm::Metadata *Args[2] = {llvm::MDString::get(Context, "-framework"),
3726 llvm::MDString::get(Context, "CoreFoundation")};
tools/clang/lib/CodeGen/CGObjCGNU.cpp 2597 llvm::MDString::get(VMContext, Sel.getAsString()),
2598 llvm::MDString::get(VMContext, Class->getSuperClass()->getNameAsString()),
2673 llvm::MDString::get(VMContext, Sel.getAsString()),
2674 llvm::MDString::get(VMContext, Class ? Class->getNameAsString() : ""),
tools/clang/lib/CodeGen/CGObjCMac.cpp 4983 llvm::MDString::get(VMContext, Section));
5002 llvm::MDString::get(VMContext, "Objective-C Garbage Collection"),
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 4076 auto &&GetMDString = [&C](StringRef V) { return llvm::MDString::get(C, V); };
4262 auto *V = cast<llvm::MDString>(MN->getOperand(Idx));
4262 auto *V = cast<llvm::MDString>(MN->getOperand(Idx));
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp 1849 llvm::ConstantAsMetadata::get(Addr), llvm::MDString::get(Ctx, "kernel"),
tools/clang/lib/CodeGen/CodeGenModule.cpp 499 llvm::MDString::get(VMContext, "StrictVTablePointers"),
1210 llvm::MDString *MDS = dyn_cast<llvm::MDString>(MD);
1210 llvm::MDString *MDS = dyn_cast<llvm::MDString>(MD);
1315 argTypeNames.push_back(llvm::MDString::get(VMContext, typeName));
1328 llvm::MDString::get(VMContext, baseTypeName));
1382 argTypeNames.push_back(llvm::MDString::get(VMContext, typeName));
1390 llvm::MDString::get(VMContext, baseTypeName));
1396 argTypeQuals.push_back(llvm::MDString::get(VMContext, typeQuals));
1405 accessQuals.push_back(llvm::MDString::get(VMContext, "write_only"));
1407 accessQuals.push_back(llvm::MDString::get(VMContext, "read_write"));
1409 accessQuals.push_back(llvm::MDString::get(VMContext, "read_only"));
1411 accessQuals.push_back(llvm::MDString::get(VMContext, "none"));
1414 argNames.push_back(llvm::MDString::get(VMContext, parm->getName()));
1929 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opts);
1929 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opts);
1936 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt);
1936 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt);
1944 llvm::MDNode::get(C, llvm::MDString::get(C, Lib)));
1950 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt);
1950 auto *MDOpts = llvm::MDString::get(getLLVMContext(), Opt);
1985 llvm::MDString::get(Context, "-framework"),
1986 llvm::MDString::get(Context, Mod->LinkLibraries[I - 1].Library)};
1995 llvm::MDString::get(Context, "lib"),
1996 llvm::MDString::get(Context, Mod->LinkLibraries[I - 1].Library),
2003 auto *OptString = llvm::MDString::get(Context, Opt);
2003 auto *OptString = llvm::MDString::get(Context, Opt);
5652 llvm::Metadata *IdentNode[] = {llvm::MDString::get(Ctx, Version)};
5662 llvm::Metadata *CommandLineNode[] = {llvm::MDString::get(Ctx, CommandLine)};
5692 auto *CoverageDataFile =
5693 llvm::MDString::get(Ctx, getCodeGenOpts().CoverageDataFile);
5694 auto *CoverageNotesFile =
5695 llvm::MDString::get(Ctx, getCodeGenOpts().CoverageNotesFile);
5776 InternalId = llvm::MDString::get(getLLVMContext(), Out.str());
5858 llvm::Metadata *MD = llvm::MDString::get(getLLVMContext(), "all-vtables");
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp 717 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables"));
tools/clang/lib/CodeGen/SanitizerMetadata.cpp 46 GlobalName = llvm::MDString::get(VMContext, Name);
96 llvm::MDString::get(VMContext, PLoc.getFilename()),
tools/clang/lib/CodeGen/TargetInfo.cpp 6523 llvm::ConstantAsMetadata::get(F), llvm::MDString::get(Ctx, Name),
8874 llvm::MDString::get(Ctx, Enc.str())};
9938 ArgTypeNames.push_back(llvm::MDString::get(C, "__block_literal"));
9940 ArgBaseTypeNames.push_back(llvm::MDString::get(C, "__block_literal"));
9941 ArgTypeQuals.push_back(llvm::MDString::get(C, ""));
9942 AccessQuals.push_back(llvm::MDString::get(C, "none"));
9943 ArgNames.push_back(llvm::MDString::get(C, "block_literal"));
9946 ArgTypeNames.push_back(llvm::MDString::get(C, "void*"));
9948 AccessQuals.push_back(llvm::MDString::get(C, "none"));
9949 ArgBaseTypeNames.push_back(llvm::MDString::get(C, "void*"));
9950 ArgTypeQuals.push_back(llvm::MDString::get(C, ""));
9952 llvm::MDString::get(C, (Twine("local_arg") + Twine(I)).str()));
tools/clang/unittests/CodeGen/IRMatchers.h 319 if (auto *MDS = dyn_cast<MDString>(&M))
tools/polly/lib/CodeGen/IRBuilder.cpp 57 AliasScopeDomain = getID(Ctx, MDString::get(Ctx, "polly.alias.scope.domain"));
80 MDString::get(Ctx, (AliasScopeStr + Array->getName()).c_str()));
130 Args.push_back(MDString::get(Ctx, "llvm.loop.vectorize.enable"));
177 Ctx, AliasScope, MDString::get(Ctx, "second level alias metadata"));
unittests/CodeGen/MachineOperandTest.cpp 298 Metadata *MDS = MDString::get(Ctx, "foo");
unittests/IR/DebugTypeODRUniquingTest.cpp 27 MDString &UUID = *MDString::get(Context, "string");
27 MDString &UUID = *MDString::get(Context, "string");
70 MDString &UUID = *MDString::get(Context, "Type");
70 MDString &UUID = *MDString::get(Context, "Type");
107 MDString &UUID = *MDString::get(Context, "UUID");
107 MDString &UUID = *MDString::get(Context, "UUID");
unittests/IR/MDBuilderTest.cpp 26 MDString *Str0 = MDHelper.createString("");
27 MDString *Str1 = MDHelper.createString("string");
unittests/IR/MetadataTest.cpp 131 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3));
131 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3));
133 MDString *s2 = MDString::get(Context, StringRef(&x[0], 3));
133 MDString *s2 = MDString::get(Context, StringRef(&x[0], 3));
143 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3));
143 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3));
144 MDString *s2 = MDString::get(Context, StringRef(&y[0], 3));
144 MDString *s2 = MDString::get(Context, StringRef(&y[0], 3));
151 MDString *s = MDString::get(Context, StringRef(&str[0], 13));
151 MDString *s = MDString::get(Context, StringRef(&str[0], 13));
163 MDString *s = MDString::get(Context, StringRef(str+0, 5));
163 MDString *s = MDString::get(Context, StringRef(str+0, 5));
177 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3));
177 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3));
178 MDString *s2 = MDString::get(Context, StringRef(&y[0], 3));
178 MDString *s2 = MDString::get(Context, StringRef(&y[0], 3));
263 MDString *S = MDString::get(Context, "foo");
263 MDString *S = MDString::get(Context, "foo");
322 MDString *S = MDString::get(Context, "foo");
322 MDString *S = MDString::get(Context, "foo");
unittests/Transforms/Utils/ValueMapperTest.cpp 186 auto *S1 = MDString::get(C, "S1");
186 auto *S1 = MDString::get(C, "S1");
194 auto *S2 = MDString::get(C, "S2");
194 auto *S2 = MDString::get(C, "S2");
usr/include/c++/7.4.0/type_traits 1983 { typedef _Up type; };
utils/unittest/googletest/include/gtest/gtest-printers.h 407 T* p, ::std::ostream* os) {
416 if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) {