Home
last modified time | relevance | path

Searched refs:MDString (Results 1 – 25 of 75) sorted by relevance

123

/external/llvm/include/llvm/IR/
DDebugInfoMetadata.h60 assert((!MD || isa<MDString>(MD) || isa<T>(MD)) && "Expected valid ref"); in TypedDINodeRef()
87 auto *S = cast<MDString>(MD); in resolve()
165 if (auto *S = getOperandAs<MDString>(I)) in getStringOperand()
170 static MDString *getCanonicalMDString(LLVMContext &Context, StringRef S) { in getCanonicalMDString()
173 return MDString::get(Context, S); in getCanonicalMDString()
270 MDString *Header, ArrayRef<Metadata *> DwarfOps,
285 DEFINE_MDNODE_GET(GenericDINode, (unsigned Tag, MDString *Header,
376 MDString *Name, StorageType Storage,
386 DEFINE_MDNODE_GET(DIEnumerator, (int64_t Value, MDString *Name),
394 MDString *getRawName() const { return getOperandAs<MDString>(0); }
[all …]
DMetadata.h508 class MDString : public Metadata {
509 friend class StringMapEntry<MDString>;
511 MDString(const MDString &) = delete;
512 MDString &operator=(MDString &&) = delete;
513 MDString &operator=(const MDString &) = delete;
515 StringMapEntry<MDString> *Entry;
516 MDString() : Metadata(MDStringKind, Uniqued), Entry(nullptr) {} in MDString() function
517 MDString(MDString &&) : Metadata(MDStringKind, Uniqued) {} in MDString() function
520 static MDString *get(LLVMContext &Context, StringRef Str);
521 static MDString *get(LLVMContext &Context, const char *Str) { in get()
DMDBuilder.h30 class MDString; variable
39 MDString *createString(StringRef Str);
DDebugInfo.h37 typedef DenseMap<const MDString *, DIType *> DITypeIdentifierMap;
/external/llvm/lib/IR/
DDebugInfoMetadata.cpp164 static StringRef getString(const MDString *S) { in getString()
171 static bool isCanonical(const MDString *S) { in isCanonical()
177 MDString *Header, in getImpl()
238 MDString *Name, StorageType Storage, in getImpl()
247 MDString *Name, uint64_t SizeInBits, in getImpl()
259 LLVMContext &Context, unsigned Tag, MDString *Name, Metadata *File, in getImpl()
274 LLVMContext &Context, unsigned Tag, MDString *Name, Metadata *File, in getImpl()
278 Metadata *TemplateParams, MDString *Identifier, StorageType Storage, in getImpl()
302 DIFile *DIFile::getImpl(LLVMContext &Context, MDString *Filename, in getImpl()
303 MDString *Directory, StorageType Storage, in getImpl()
[all …]
DModule.cpp304 dyn_cast_or_null<MDString>(Flag->getOperand(1))) { in getModuleFlagsMetadata()
307 MDString *Key = cast<MDString>(Flag->getOperand(1)); in getModuleFlagsMetadata()
348 MDString::get(Context, Key), Val}; in addModuleFlag()
364 isa<MDString>(Node->getOperand(1)) && in addModuleFlag()
DMDBuilder.cpp20 MDString *MDBuilder::createString(StringRef Str) { in createString()
21 return MDString::get(Context, Str); in createString()
DVerifier.cpp194 SmallDenseMap<const MDString *, const MDNode *, 32> UnresolvedTypeRefs;
314 DenseMap<const MDString *, const MDNode *> &SeenIDs,
437 void visitUnresolvedTypeRef(const MDString *S, const MDNode *N);
709 auto *S = dyn_cast<MDString>(MD); in isValidUUID()
1104 Assert(dyn_cast_or_null<MDString>(N->getOperand(0)), in visitModuleIdents()
1116 DenseMap<const MDString*, const MDNode*> SeenIDs; in visitModuleFlags()
1125 const MDString *Flag = cast<MDString>(Requirement->getOperand(0)); in visitModuleFlags()
1146 DenseMap<const MDString *, const MDNode *> &SeenIDs, in visitModuleFlag() argument
1162 MDString *ID = dyn_cast_or_null<MDString>(Op->getOperand(1)); in visitModuleFlag()
1181 Assert(isa<MDString>(Value->getOperand(0)), in visitModuleFlag()
[all …]
/external/llvm/unittests/IR/
DMDBuilderTest.cpp27 MDString *Str0 = MDHelper.createString(""); in TEST_F()
28 MDString *Str1 = MDHelper.createString("string"); in TEST_F()
78 EXPECT_TRUE(isa<MDString>(R0->getOperand(0))); in TEST_F()
79 EXPECT_EQ(cast<MDString>(R0->getOperand(0))->getString(), "Root"); in TEST_F()
95 EXPECT_TRUE(isa<MDString>(N0->getOperand(0))); in TEST_F()
96 EXPECT_TRUE(isa<MDString>(N1->getOperand(0))); in TEST_F()
97 EXPECT_TRUE(isa<MDString>(N2->getOperand(0))); in TEST_F()
98 EXPECT_EQ(cast<MDString>(N0->getOperand(0))->getString(), "Node"); in TEST_F()
99 EXPECT_EQ(cast<MDString>(N1->getOperand(0))->getString(), "edoN"); in TEST_F()
100 EXPECT_EQ(cast<MDString>(N2->getOperand(0))->getString(), "Node"); in TEST_F()
DMetadataTest.cpp127 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F()
129 MDString *s2 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F()
139 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F()
140 MDString *s2 = MDString::get(Context, StringRef(&y[0], 3)); in TEST_F()
148 MDString *s = MDString::get(Context, StringRef(str, 13)); in TEST_F()
161 MDString *s = MDString::get(Context, StringRef(str+0, 5)); in TEST_F()
175 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F()
176 MDString *s2 = MDString::get(Context, StringRef(&y[0], 3)); in TEST_F()
261 MDString *S = MDString::get(Context, "foo"); in TEST_F()
320 MDString *S = MDString::get(Context, "foo"); in TEST_F()
[all …]
/external/clang/lib/CodeGen/
DCGLoopInfo.cpp37 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.vectorize.width"), in createMetadata()
45 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.interleave.count"), in createMetadata()
53 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll.count"), in createMetadata()
61 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.vectorize.enable"), in createMetadata()
77 Metadata *Vals[] = {MDString::get(Ctx, Name)}; in createMetadata()
DCodeGenFunction.cpp446 addressQuals.push_back(llvm::MDString::get(Context, "kernel_arg_addr_space")); in GenOpenCLArgMetadata()
450 accessQuals.push_back(llvm::MDString::get(Context, "kernel_arg_access_qual")); in GenOpenCLArgMetadata()
454 argTypeNames.push_back(llvm::MDString::get(Context, "kernel_arg_type")); in GenOpenCLArgMetadata()
459 llvm::MDString::get(Context, "kernel_arg_base_type")); in GenOpenCLArgMetadata()
463 argTypeQuals.push_back(llvm::MDString::get(Context, "kernel_arg_type_qual")); in GenOpenCLArgMetadata()
467 argNames.push_back(llvm::MDString::get(Context, "kernel_arg_name")); in GenOpenCLArgMetadata()
490 argTypeNames.push_back(llvm::MDString::get(Context, typeName)); in GenOpenCLArgMetadata()
502 argBaseTypeNames.push_back(llvm::MDString::get(Context, baseTypeName)); in GenOpenCLArgMetadata()
529 argTypeNames.push_back(llvm::MDString::get(Context, typeName)); in GenOpenCLArgMetadata()
539 argBaseTypeNames.push_back(llvm::MDString::get(Context, baseTypeName)); in GenOpenCLArgMetadata()
[all …]
DSanitizerMetadata.cpp42 GlobalName = llvm::MDString::get(VMContext, Name); in reportGlobalToASan()
88 llvm::MDString::get(VMContext, PLoc.getFilename()), in getLocationMetadata()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUOpenCLImageTypeLoweringPass.cpp100 MDString *StringNode = dyn_cast<MDString>(ArgNode->getOperand(0)); in GetFunctionFromMDNode()
111 return cast<MDString>(ArgAQNode->getOperand(ArgIdx + 1))->getString(); in AccessQualFromMD()
117 return cast<MDString>(ArgTypeNode->getOperand(ArgIdx + 1))->getString(); in ArgTypeFromMD()
275 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageSizeArgMDType); in addImplicitArgs()
280 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageFormatArgMDType); in addImplicitArgs()
/external/google-breakpad/src/tools/linux/md2core/
Dminidump_memory_range_unittest.cc227 MDString* md_str = reinterpret_cast<MDString*>(buffer); in TEST()
236 sizeof(MDString) + (md_str->length + 1) * sizeof(uint16_t); in TEST()
238 md_str = reinterpret_cast<MDString*>(buffer + str2_offset); in TEST()
256 sizeof(buffer) - sizeof(MDString) + 1)); in TEST()
Dminidump_memory_range.h76 const MDString* md_str = GetData<MDString>(sub_offset); in GetAsciiMDString()
/external/google-breakpad/src/client/
Dminidump_file_writer.cc100 TypedMDRVA<MDString> *mdstring) { in CopyStringToMDString()
133 TypedMDRVA<MDString> *mdstring) { in CopyStringToMDString()
172 TypedMDRVA<MDString> mdstring(this); in WriteStringCore()
Dminidump_file_writer.h145 TypedMDRVA<MDString> *mdstring);
147 TypedMDRVA<MDString> *mdstring);
/external/llvm/lib/Analysis/
DTypeBasedAliasAnalysis.cpp377 if (MDString *Tag1 = dyn_cast<MDString>(getOperand(0))) { in isTBAAVtableAccess()
390 if (MDString *Tag1 = dyn_cast<MDString>(Tag->getOperand(0))) { in isTBAAVtableAccess()
/external/llvm/test/Linker/
Dlinkmdnode2.ll9 ;; Intrinsic using MDNode and MDString
/external/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp236 const MDString *S = dyn_cast<MDString>(MD->getOperand(0)); in CloneLoopBlocks()
246 DisableOperands.push_back(MDString::get(Context, "llvm.loop.unroll.disable")); in CloneLoopBlocks()
/external/google-breakpad/src/google_breakpad/common/
Dminidump_size.h55 class minidump_size<MDString> {
Dminidump_format.h353 } MDString; /* MINIDUMP_STRING */ typedef
355 static const size_t MDString_minsize = offsetof(MDString, buffer[0]);
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp69 const MDString *RetainRVMarker;
660 if (const MDString *S = dyn_cast<MDString>(N->getOperand(0))) in doInitialization()
/external/llvm/lib/CodeGen/
DTargetLoweringObjectFileImpl.cpp465 SectionVal = cast<MDString>(Val)->getString(); in emitModuleFlags()
479 MDString *MDOption = cast<MDString>(MDOptions->getOperand(ii)); in emitModuleFlags()
1026 MDString *MDOption = cast<MDString>(MDOptions->getOperand(ii)); in emitModuleFlags()

123