/external/llvm/unittests/IR/ |
MetadataTest.cpp | 29 // Test that construction of MDString with different value produces different 30 // MDString objects, even with the same string pointer and nulls in the string. 33 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3)); 35 MDString *s2 = MDString::get(Context, StringRef(&x[0], 3)); 40 // same MDString object, even with different pointers. 45 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3)); 46 MDString *s2 = MDString::get(Context, StringRef(&y[0], 3)) [all...] |
MDBuilderTest.cpp | 27 MDString *Str0 = MDHelper.createString(""); 28 MDString *Str1 = MDHelper.createString("string"); 78 EXPECT_TRUE(isa<MDString>(R0->getOperand(0))); 79 EXPECT_EQ(cast<MDString>(R0->getOperand(0))->getString(), "Root"); 95 EXPECT_TRUE(isa<MDString>(N0->getOperand(0))); 96 EXPECT_TRUE(isa<MDString>(N1->getOperand(0))); 97 EXPECT_TRUE(isa<MDString>(N2->getOperand(0))); 98 EXPECT_EQ(cast<MDString>(N0->getOperand(0))->getString(), "Node"); 99 EXPECT_EQ(cast<MDString>(N1->getOperand(0))->getString(), "edoN"); 100 EXPECT_EQ(cast<MDString>(N2->getOperand(0))->getString(), "Node") [all...] |
/external/llvm/include/llvm/IR/ |
MDBuilder.h | 27 class MDString; 37 MDString *createString(StringRef Str);
|
Metadata.h | 37 /// MDString - a single uniqued string. 39 /// MDString is always unnamed. 40 class MDString : public Value { 42 MDString(const MDString &) LLVM_DELETED_FUNCTION; 44 explicit MDString(LLVMContext &C); 46 static MDString *get(LLVMContext &Context, StringRef Str); 47 static MDString *get(LLVMContext &Context, const char *Str) {
|
DebugInfo.h | 41 class MDString; 56 typedef DenseMap<const MDString *, MDNode *> DITypeIdentifierMap; 237 /// Val can be either a MDNode or a MDString, in the latter, 238 /// MDString specifies the type identifier. 256 const MDString *MS = cast<MDString>(Val); 272 const MDString *MS = cast<MDString>(Val); 406 MDString *getIdentifier() const; [all...] |
Module.h | 185 MDString *Key; 187 ModuleFlagEntry(ModFlagBehavior B, MDString *K, Value *V)
|
/external/llvm/lib/IR/ |
DIBuilder.cpp | 92 MDString::get(VMContext, Filename), 93 MDString::get(VMContext, Directory) 128 MDString::get(VMContext, Producer), 130 MDString::get(VMContext, Flags), 137 MDString::get(VMContext, SplitName), 175 MDString::get(C, Name) 229 MDString::get(VMContext, Name), 244 MDString::get(VMContext, Name), 272 MDString::get(VMContext, Name), 291 MDString::get(VMContext, StringRef()), // Empty name [all...] |
Module.cpp | 270 isa<MDString>(Flag->getOperand(1))) { 274 MDString *Key = cast<MDString>(Flag->getOperand(1)); 315 ConstantInt::get(Int32Ty, Behavior), MDString::get(Context, Key), Val 328 isa<MDString>(Node->getOperand(1)) &&
|
Metadata.cpp | 31 // MDString implementation. 34 void MDString::anchor() { } 36 MDString::MDString(LLVMContext &C) 39 MDString *MDString::get(LLVMContext &Context, StringRef Str) { 44 if (!S) S = new MDString(Context); 46 return cast<MDString>(S);
|
DebugInfo.cpp | 66 if (MDString *MDS = dyn_cast_or_null<MDString>(getField(DbgNode, Elt))) 410 if (Fld && isa<MDString>(Fld) && !cast<MDString>(Fld)->getString().empty()) 415 /// Check if a field at position Elt of a MDNode is a MDString. 418 return !Fld || isa<MDString>(Fld); 424 (isa<MDString>(Val) && !cast<MDString>(Val)->getString().empty()) || 437 (isa<MDString>(Val) && !cast<MDString>(Val)->getString().empty()) | [all...] |
MDBuilder.cpp | 20 MDString *MDBuilder::createString(StringRef Str) { 21 return MDString::get(Context, Str);
|
/external/clang/lib/CodeGen/ |
CGLoopInfo.cpp | 34 Value *Vals[] = { MDString::get(Ctx, "llvm.loop.vectorize.width"), 42 Value *Vals[] = { MDString::get(Ctx, "llvm.loop.vectorize.unroll"), 50 Value *Vals[] = { MDString::get(Ctx, "llvm.loop.vectorize.enable"),
|
CodeGenFunction.cpp | 350 addressQuals.push_back(llvm::MDString::get(Context, "kernel_arg_addr_space")); 354 accessQuals.push_back(llvm::MDString::get(Context, "kernel_arg_access_qual")); 358 argTypeNames.push_back(llvm::MDString::get(Context, "kernel_arg_type")); 362 argTypeQuals.push_back(llvm::MDString::get(Context, "kernel_arg_type_qual")); 366 argNames.push_back(llvm::MDString::get(Context, "kernel_arg_name")); 389 argTypeNames.push_back(llvm::MDString::get(Context, typeName)); 415 argTypeNames.push_back(llvm::MDString::get(Context, typeName)); 424 argTypeQuals.push_back(llvm::MDString::get(Context, typeQuals)); 430 accessQuals.push_back(llvm::MDString::get(Context, "write_only")); 432 accessQuals.push_back(llvm::MDString::get(Context, "read_only")) [all...] |
/external/llvm/lib/Analysis/ |
TypeBasedAliasAnalysis.cpp | 32 // an MDString, which uniquely identifies the type. The most important 544 if (MDString *Tag1 = dyn_cast<MDString>(getOperand(0))) { 554 if (MDString *Tag1 = dyn_cast<MDString>(Tag->getOperand(0))) {
|
/external/llvm/lib/Bitcode/Writer/ |
ValueEnumerator.cpp | 131 if (isa<MDNode>(V) || isa<MDString>(V)) { 230 if (isa<MDNode>(V) || isa<MDString>(V)) 240 assert((isa<MDNode>(MD) || isa<MDString>(MD)) && "Invalid metadata kind"); 305 assert(!isa<MDNode>(V) && !isa<MDString>(V) && 418 } else if (isa<MDString>(V) || isa<MDNode>(V))
|
/external/llvm/lib/Transforms/ObjCARC/ |
ObjCARCContract.cpp | 64 const MDString *RetainRVMarker; 310 if (const MDString *S = dyn_cast<MDString>(N->getOperand(0)))
|
ObjCARCOpts.cpp | 820 static MDString *AppendMDNodeToSourcePtr(unsigned NodeId, 822 MDString *Hash = nullptr; 831 // We do not have any node. Generate and attatch the hash MDString to the 834 // We just use an MDString to ensure that this metadata gets written out 843 Hash = MDString::get(Inst->getContext(), os.str()); 849 Hash = cast<MDString>(Node->getOperand(0)); 856 Hash = MDString::get(Arg->getContext(), os.str()); 871 static MDString *SequenceToMDString(LLVMContext &Context, 873 return MDString::get(Context, SequenceToString(A)); 881 MDString *PtrSourceMDNodeID [all...] |
/external/llvm/lib/Transforms/Scalar/ |
LoopUnrollPass.cpp | 238 const MDString *S = dyn_cast<MDString>(MD->getOperand(0));
|
/external/llvm/lib/CodeGen/ |
TargetLoweringObjectFileImpl.cpp | 457 SectionVal = cast<MDString>(Val)->getString(); 471 MDString *MDOption = cast<MDString>(MDOptions->getOperand(ii)); [all...] |
/external/llvm/lib/AsmParser/ |
LLParser.h | 38 class MDString; 68 MDString *MDStringVal; 261 bool ParseMDString(MDString *&Result);
|
/external/lldb/source/Expression/ |
IRDynamicChecks.cpp | 520 MDString *real_name = dyn_cast<MDString>(metadata->getOperand(0)); 525 log->Printf("Function call metadata is not an MDString for [%p] %s", call_inst, PrintValue(call_inst).c_str());
|
/external/llvm/lib/Linker/ |
LinkModules.cpp | [all...] |
/external/llvm/lib/LTO/ |
LTOModule.cpp | 598 MDString *MDOption = cast<MDString>(MDOptions->getOperand(ii));
|
/external/llvm/lib/Target/NVPTX/ |
NVPTXUtilities.cpp | 51 const MDString *prop = dyn_cast<MDString>(md->getOperand(i));
|
/external/llvm/lib/Transforms/Utils/ |
ValueMapper.cpp | 43 if (isa<GlobalValue>(V) || isa<MDString>(V))
|