Home
last modified time | relevance | path

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

123456789

/external/swiftshader/third_party/LLVM/unittests/VMCore/
DMetadataTest.cpp33 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/
DDebugInfoMetadata.h153 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 …]
DMetadata.h568 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()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DDebugInfoMetadata.h173 if (auto *S = getOperandAs<MDString>(I)) in getStringOperand()
178 static MDString *getCanonicalMDString(LLVMContext &Context, StringRef S) { in getCanonicalMDString()
181 return MDString::get(Context, S); in getCanonicalMDString()
285 MDString *Header, ArrayRef<Metadata *> DwarfOps,
300 DEFINE_MDNODE_GET(GenericDINode, (unsigned Tag, MDString *Header,
309 MDString *getRawHeader() const { return getOperandAs<MDString>(0); }
415 bool IsUnsigned, MDString *Name,
425 DEFINE_MDNODE_GET(DIEnumerator, (int64_t Value, bool IsUnsigned, MDString *Name),
434 MDString *getRawName() const { return getOperandAs<MDString>(0); }
536 Optional<ChecksumInfo<MDString *>> Checksum;
[all …]
/external/python/cpython2/Demo/md5test/
Dmd5driver.py59 def MDString(str): function
95 MDString('')
96 MDString('a')
97 MDString('abc')
98 MDString('message digest')
99 MDString(makestr(ord('a'), ord('z')))
100 MDString(makestr(ord('A'), ord('Z'))
103 MDString((makestr(ord('1'), ord('9')) + '0') * 8)
115 MDString(arg[2:])
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DLLVMContextImpl.h304 MDString *Header;
306 MDNodeKeyImpl(unsigned Tag, MDString *Header, ArrayRef<Metadata *> DwarfOps)
356 MDString *Name;
359 MDNodeKeyImpl(int64_t Value, bool IsUnsigned, MDString *Name)
375 MDString *Name;
380 MDNodeKeyImpl(unsigned Tag, MDString *Name, uint64_t SizeInBits,
402 MDString *Name;
414 MDNodeKeyImpl(unsigned Tag, MDString *Name, Metadata *File, unsigned Line,
475 const MDString *Name, const DIDerivedType *RHS) {
492 MDString *Name;
[all …]
DProfileSummary.cpp32 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()
91 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getVal()
105 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in isKeyValuePair()
106 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1)); in isKeyValuePair()
118 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getSummaryFromMD()
DDebugInfoMetadata.cpp187 static bool isCanonical(const MDString *S) { in isCanonical()
193 MDString *Header, in getImpl()
266 bool IsUnsigned, MDString *Name, in getImpl()
275 MDString *Name, uint64_t SizeInBits, in getImpl()
300 LLVMContext &Context, unsigned Tag, MDString *Name, Metadata *File, in getImpl()
317 LLVMContext &Context, unsigned Tag, MDString *Name, Metadata *File, in getImpl()
321 Metadata *TemplateParams, MDString *Identifier, Metadata *Discriminator, in getImpl()
339 LLVMContext &Context, MDString &Identifier, unsigned Tag, MDString *Name, in buildODRType()
374 LLVMContext &Context, MDString &Identifier, unsigned Tag, MDString *Name, in getODRType()
392 MDString &Identifier) { in getODRTypeIfExists()
[all …]
DIntrinsicInst.cpp113 if (!MD || !isa<MDString>(MD)) in getRoundingMode()
115 StringRef RoundingArg = cast<MDString>(MD)->getString(); in getRoundingMode()
133 if (!MD || !isa<MDString>(MD)) in getExceptionBehavior()
135 StringRef ExceptionArg = cast<MDString>(MD)->getString(); in getExceptionBehavior()
/external/llvm/lib/IR/
DLLVMContextImpl.h270 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 …]
DDebugInfoMetadata.cpp156 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 …]
DProfileSummary.cpp32 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()
/external/swiftshader/third_party/llvm-7.0/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()
DDebugTypeODRUniquingTest.cpp28 MDString &UUID = *MDString::get(Context, "string"); in TEST()
54 MDString::get(Context, "name"), nullptr, 0, nullptr, nullptr, 0, in TEST()
71 MDString &UUID = *MDString::get(Context, "Type"); in TEST()
108 MDString &UUID = *MDString::get(Context, "UUID"); in TEST()
131 #define DO_FOR_FIELD(X) auto *X = MDString::get(Context, #X); in TEST()
/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()
DDebugTypeODRUniquingTest.cpp28 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/
DDIBuilder.cpp104 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/
DMetadata.h38 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/
DCGLoopInfo.cpp44 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DR600OpenCLImageTypeLoweringPass.cpp116 MDString *StringNode = dyn_cast<MDString>(ArgNode->getOperand(0)); in GetFunctionFromMDNode()
127 return cast<MDString>(ArgAQNode->getOperand(ArgIdx + 1))->getString(); in AccessQualFromMD()
133 return cast<MDString>(ArgTypeNode->getOperand(ArgIdx + 1))->getString(); in ArgTypeFromMD()
291 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageSizeArgMDType); in addImplicitArgs()
296 ArgMD[2] = ArgMD[3] = MDString::get(*Context, ImageFormatArgMDType); in addImplicitArgs()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUOpenCLImageTypeLoweringPass.cpp99 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/
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/swiftshader/third_party/LLVM/lib/VMCore/
DMetadata.cpp32 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyAsmPrinter.cpp114 const MDString *Name = dyn_cast<MDString>(Tuple->getOperand(0)); in EmitEndOfAsmFile()
115 const MDString *Contents = dyn_cast<MDString>(Tuple->getOperand(1)); in EmitEndOfAsmFile()

123456789