/external/swiftshader/third_party/LLVM/unittests/VMCore/ |
D | MetadataTest.cpp | 33 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F() 35 MDString *s2 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F() 45 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F() 46 MDString *s2 = MDString::get(Context, StringRef(&y[0], 3)); in TEST_F() 54 MDString *s = MDString::get(Context, StringRef(str, 13)); in TEST_F() 67 MDString *s = MDString::get(Context, StringRef(str+0, 5)); in TEST_F() 81 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F() 82 MDString *s2 = MDString::get(Context, StringRef(&y[0], 3)); in TEST_F()
|
/external/llvm/include/llvm/IR/ |
D | DebugInfoMetadata.h | 153 if (auto *S = getOperandAs<MDString>(I)) in getStringOperand() 158 static MDString *getCanonicalMDString(LLVMContext &Context, StringRef S) { in getCanonicalMDString() 161 return MDString::get(Context, S); in getCanonicalMDString() 261 MDString *Header, ArrayRef<Metadata *> DwarfOps, 276 DEFINE_MDNODE_GET(GenericDINode, (unsigned Tag, MDString *Header, 285 MDString *getRawHeader() const { return getOperandAs<MDString>(0); } 368 MDString *Name, StorageType Storage, 378 DEFINE_MDNODE_GET(DIEnumerator, (int64_t Value, MDString *Name), 386 MDString *getRawName() const { return getOperandAs<MDString>(0); } 465 static DIFile *getImpl(LLVMContext &Context, MDString *Filename, [all …]
|
D | Metadata.h | 568 class MDString : public Metadata { 569 friend class StringMapEntry<MDString>; 571 MDString(const MDString &) = delete; 572 MDString &operator=(MDString &&) = delete; 573 MDString &operator=(const MDString &) = delete; 575 StringMapEntry<MDString> *Entry; 576 MDString() : Metadata(MDStringKind, Uniqued), Entry(nullptr) {} in MDString() function 579 static MDString *get(LLVMContext &Context, StringRef Str); 580 static MDString *get(LLVMContext &Context, const char *Str) { in get()
|
D | MDBuilder.h | 30 class MDString; variable 39 MDString *createString(StringRef Str);
|
/external/llvm/lib/IR/ |
D | LLVMContextImpl.h | 270 MDString *Header; 271 MDNodeKeyImpl(unsigned Tag, MDString *Header, ArrayRef<Metadata *> DwarfOps) 305 MDString *Name; 307 MDNodeKeyImpl(int64_t Value, MDString *Name) : Value(Value), Name(Name) {} 319 MDString *Name; 324 MDNodeKeyImpl(unsigned Tag, MDString *Name, uint64_t SizeInBits, 345 MDString *Name; 356 MDNodeKeyImpl(unsigned Tag, MDString *Name, Metadata *File, unsigned Line, 409 const MDString *Name, const DIDerivedType *RHS) { 426 MDString *Name; [all …]
|
D | DebugInfoMetadata.cpp | 156 static bool isCanonical(const MDString *S) { in isCanonical() 162 MDString *Header, in getImpl() 222 MDString *Name, StorageType Storage, in getImpl() 231 MDString *Name, uint64_t SizeInBits, in getImpl() 243 LLVMContext &Context, unsigned Tag, MDString *Name, Metadata *File, in getImpl() 258 LLVMContext &Context, unsigned Tag, MDString *Name, Metadata *File, in getImpl() 262 Metadata *TemplateParams, MDString *Identifier, StorageType Storage, in getImpl() 279 LLVMContext &Context, MDString &Identifier, unsigned Tag, MDString *Name, in buildODRType() 313 LLVMContext &Context, MDString &Identifier, unsigned Tag, MDString *Name, in getODRType() 331 MDString &Identifier) { in getODRTypeIfExists() [all …]
|
D | ProfileSummary.cpp | 32 Metadata *Ops[2] = {MDString::get(Context, Key), in getKeyValMD() 41 Metadata *Ops[2] = {MDString::get(Context, Key), MDString::get(Context, Val)}; in getKeyValMD() 61 Metadata *Ops[2] = {MDString::get(Context, "DetailedSummary"), in getDetailedSummaryMD() 93 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getVal() 107 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in isKeyValuePair() 108 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1)); in isKeyValuePair() 120 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getSummaryFromMD()
|
D | Module.cpp | 311 dyn_cast_or_null<MDString>(Flag->getOperand(1))) { in getModuleFlagsMetadata() 314 MDString *Key = cast<MDString>(Flag->getOperand(1)); in getModuleFlagsMetadata() 355 MDString::get(Context, Key), Val}; in addModuleFlag() 371 isa<MDString>(Node->getOperand(1)) && in addModuleFlag()
|
/external/llvm/unittests/IR/ |
D | MDBuilderTest.cpp | 27 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()
|
D | DebugTypeODRUniquingTest.cpp | 28 MDString &UUID = *MDString::get(Context, "string"); in TEST() 53 MDString::get(Context, "name"), nullptr, 0, nullptr, in TEST() 70 MDString &UUID = *MDString::get(Context, "Type"); in TEST() 105 MDString &UUID = *MDString::get(Context, "UUID"); in TEST() 128 #define DO_FOR_FIELD(X) auto *X = MDString::get(Context, #X); in TEST()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | DIBuilder.cpp | 104 MDString::get(VMContext, Filename), in createCompileUnit() 105 MDString::get(VMContext, Directory), in createCompileUnit() 106 MDString::get(VMContext, Producer), in createCompileUnit() 110 MDString::get(VMContext, Flags), in createCompileUnit() 131 MDString::get(VMContext, Filename), in createFile() 132 MDString::get(VMContext, Directory), in createFile() 143 MDString::get(VMContext, Name), in createEnumerator() 157 MDString::get(VMContext, Name), in createNullPtrType() 180 MDString::get(VMContext, Name), in createBasicType() 199 MDString::get(VMContext, StringRef()), // Empty name. in createQualifiedType() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Metadata.h | 38 class MDString : public Value { 39 MDString(const MDString &); // DO NOT IMPLEMENT 42 explicit MDString(LLVMContext &C, StringRef S); 45 static MDString *get(LLVMContext &Context, StringRef Str); 46 static MDString *get(LLVMContext &Context, const char *Str) { in get() 65 static inline bool classof(const MDString *) { return true; } in classof() argument
|
/external/clang/lib/CodeGen/ |
D | CGLoopInfo.cpp | 44 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.vectorize.width"), in createMetadata() 52 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.interleave.count"), in createMetadata() 60 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll.count"), in createMetadata() 68 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.vectorize.enable"), in createMetadata() 84 Metadata *Vals[] = {MDString::get(Ctx, Name)}; in createMetadata() 89 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.distribute.enable"), in createMetadata()
|
D | SanitizerMetadata.cpp | 42 GlobalName = llvm::MDString::get(VMContext, Name); in reportGlobalToASan() 88 llvm::MDString::get(VMContext, PLoc.getFilename()), in getLocationMetadata()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUOpenCLImageTypeLoweringPass.cpp | 99 MDString *StringNode = dyn_cast<MDString>(ArgNode->getOperand(0)); in GetFunctionFromMDNode() 110 return cast<MDString>(ArgAQNode->getOperand(ArgIdx + 1))->getString(); in AccessQualFromMD() 116 return cast<MDString>(ArgTypeNode->getOperand(ArgIdx + 1))->getString(); in ArgTypeFromMD() 274 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageSizeArgMDType); in addImplicitArgs() 279 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageFormatArgMDType); in addImplicitArgs()
|
/external/google-breakpad/src/tools/linux/md2core/ |
D | minidump_memory_range_unittest.cc | 227 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()
|
D | minidump_memory_range.h | 76 const MDString* md_str = GetData<MDString>(sub_offset); in GetAsciiMDString()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Metadata.cpp | 32 MDString::MDString(LLVMContext &C, StringRef S) in MDString() function in MDString 35 MDString *MDString::get(LLVMContext &Context, StringRef Str) { in get() 37 StringMapEntry<MDString *> &Entry = in get() 39 MDString *&S = Entry.getValue(); in get() 40 if (!S) S = new MDString(Context, Entry.getKey()); in get()
|
/external/google-breakpad/src/client/ |
D | minidump_file_writer.cc | 100 TypedMDRVA<MDString> *mdstring) { in CopyStringToMDString() 133 TypedMDRVA<MDString> *mdstring) { in CopyStringToMDString() 172 TypedMDRVA<MDString> mdstring(this); in WriteStringCore()
|
D | minidump_file_writer.h | 145 TypedMDRVA<MDString> *mdstring); 147 TypedMDRVA<MDString> *mdstring);
|
/external/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 376 if (MDString *Tag1 = dyn_cast<MDString>(getOperand(0))) { in isTBAAVtableAccess() 389 if (MDString *Tag1 = dyn_cast<MDString>(Tag->getOperand(0))) { in isTBAAVtableAccess()
|
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 122 if (isa<MDNode>(V) || isa<MDString>(V)) { in getValueID() 194 if (isa<MDNode>(V) || isa<MDString>(V)) in EnumerateMDNodeOperands() 204 assert((isa<MDNode>(MD) || isa<MDString>(MD)) && "Invalid metadata kind"); in EnumerateMetadata() 269 assert(!isa<MDNode>(V) && !isa<MDString>(V) && in EnumerateValue() 382 } else if (isa<MDString>(V) || isa<MDNode>(V)) in EnumerateOperandType()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | LowerExpectIntrinsic.cpp | 68 Vec[0] = MDString::get(Context, "branch_weights"); in HandleSwitchExpect() 114 MDString::get(Context, "branch_weights"), in HandleIfExpect()
|
/external/spirv-llvm/lib/SPIRV/ |
D | TransOCLMD.cpp | 184 MDString *NameMD = dyn_cast<MDString>(MD->getOperand(0)); in visit()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopVersioningLICM.cpp | 119 MDString::get(Context, Name), in createStringMetadata() 125 void llvm::addStringMetadataToLoop(Loop *TheLoop, const char *MDString, in addStringMetadataToLoop() argument 137 MDs.push_back(createStringMetadata(TheLoop, MDString, V)); in addStringMetadataToLoop()
|