/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 | 26 MDString *Str0 = MDHelper.createString(""); 27 MDString *Str1 = MDHelper.createString("string"); 77 EXPECT_TRUE(isa<MDString>(R0->getOperand(0))); 78 EXPECT_EQ(cast<MDString>(R0->getOperand(0))->getString(), "Root"); 94 EXPECT_TRUE(isa<MDString>(N0->getOperand(0))); 95 EXPECT_TRUE(isa<MDString>(N1->getOperand(0))); 96 EXPECT_TRUE(isa<MDString>(N2->getOperand(0))); 97 EXPECT_EQ(cast<MDString>(N0->getOperand(0))->getString(), "Node"); 98 EXPECT_EQ(cast<MDString>(N1->getOperand(0))->getString(), "edoN"); 99 EXPECT_EQ(cast<MDString>(N2->getOperand(0))->getString(), "Node") [all...] |
/external/llvm/include/llvm/IR/ |
Metadata.h | 32 /// MDString - a single uniqued string. 34 /// MDString is always unnamed. 35 class MDString : public Value { 37 MDString(const MDString &) LLVM_DELETED_FUNCTION; 39 explicit MDString(LLVMContext &C); 41 static MDString *get(LLVMContext &Context, StringRef Str); 42 static MDString *get(LLVMContext &Context, const char *Str) {
|
MDBuilder.h | 34 MDString *createString(StringRef Str) { 35 return MDString::get(Context, Str);
|
Module.h | 186 MDString *Key; 188 ModuleFlagEntry(ModFlagBehavior B, MDString *K, Value *V)
|
/external/llvm/lib/IR/ |
DIBuilder.cpp | 81 MDString::get(VMContext, Filename), 82 MDString::get(VMContext, Directory), 114 MDString::get(VMContext, Producer), 116 MDString::get(VMContext, Flags), 123 MDString::get(VMContext, SplitName) 154 MDString::get(C, Name) 209 MDString::get(VMContext, Name), 224 MDString::get(VMContext, Name), 252 MDString::get(VMContext, Name), 271 MDString::get(VMContext, StringRef()), // Empty name [all...] |
Module.cpp | 320 MDString *Key = cast<MDString>(Flag->getOperand(1)); 361 ConstantInt::get(Int32Ty, Behavior), MDString::get(Context, Key), Val 374 isa<MDString>(Node->getOperand(1)) &&
|
Metadata.cpp | 30 // MDString implementation. 33 void MDString::anchor() { } 35 MDString::MDString(LLVMContext &C) 38 MDString *MDString::get(LLVMContext &Context, StringRef Str) { 43 if (!S) S = new MDString(Context); 45 return cast<MDString>(S);
|
DebugInfo.cpp | 64 if (MDString *MDS = dyn_cast_or_null<MDString>(getField(DbgNode, Elt))) 416 if (Fld && isa<MDString>(Fld) && 417 !cast<MDString>(Fld)->getString().empty()) [all...] |
Verifier.cpp | 262 void visitModuleFlag(MDNode *Op, DenseMap<MDString*, MDNode*> &SeenIDs, 589 if (isa<Constant>(Op) || isa<MDString>(Op)) 620 DenseMap<MDString*, MDNode*> SeenIDs; 629 MDString *Flag = cast<MDString>(Requirement->getOperand(0)); 648 void Verifier::visitModuleFlag(MDNode *Op, DenseMap<MDString*, MDNode*>&SeenIDs, 651 // constant int), the flag ID (an MDString), and the value. 655 MDString *ID = dyn_cast<MDString>(Op->getOperand(1)); 680 // MDString), and a value [all...] |
/frameworks/compile/slang/ |
slang_rs_backend.cpp | 210 llvm::MDString::get(mLLVMContext, EV->getName().c_str())); 218 llvm::MDString::get( 227 llvm::MDString::get( 234 llvm::MDString::get( 244 llvm::MDString::get(mLLVMContext, 261 llvm::MDString::get(mLLVMContext, llvm::utostr_32(slotCount)))); 284 ExportFuncInfo.push_back(llvm::MDString::get(mLLVMContext, 387 llvm::MDString::get(mLLVMContext, HelperFunctionName.c_str())); 417 llvm::MDString::get(mLLVMContext, EFE->getName().c_str())); 424 llvm::MDString::get(mLLVMContext [all...] |
slang_rs_metadata_spec_encoder.cpp | 46 llvm::MDString *MDS = llvm::MDString::get(C, S); 421 llvm::MDString::get(mModule->getContext(), StrTabData); 423 llvm::MDString::get(mModule->getContext(), StrIdxData); 467 llvm::MDString::get(mModule->getContext(), TypeInfoData);
|
slang_backend.cpp | 291 Pragma.push_back(llvm::MDString::get(mLLVMContext, I->first)); 293 Pragma.push_back(llvm::MDString::get(mLLVMContext, I->second));
|
/external/clang/lib/CodeGen/ |
CodeGenFunction.cpp | 335 addressQuals.push_back(llvm::MDString::get(Context, "kernel_arg_addr_space")); 339 accessQuals.push_back(llvm::MDString::get(Context, "kernel_arg_access_qual")); 343 argTypeNames.push_back(llvm::MDString::get(Context, "kernel_arg_type")); 347 argTypeQuals.push_back(llvm::MDString::get(Context, "kernel_arg_type_qual")); 351 argNames.push_back(llvm::MDString::get(Context, "kernel_arg_name")); 373 argTypeNames.push_back(llvm::MDString::get(Context, typeName)); 394 argTypeNames.push_back(llvm::MDString::get(Context, typeName)); 403 argTypeQuals.push_back(llvm::MDString::get(Context, typeQuals)); 409 accessQuals.push_back(llvm::MDString::get(Context, "write_only")); 411 accessQuals.push_back(llvm::MDString::get(Context, "read_only")) [all...] |
/external/llvm/lib/Bitcode/Writer/ |
ValueEnumerator.cpp | 123 if (isa<MDNode>(V) || isa<MDString>(V)) { 233 if (isa<MDNode>(V) || isa<MDString>(V)) 243 assert((isa<MDNode>(MD) || isa<MDString>(MD)) && "Invalid metadata kind"); 308 assert(!isa<MDNode>(V) && !isa<MDString>(V) && 417 } else if (isa<MDString>(V) || isa<MDNode>(V))
|
/frameworks/compile/slang/BitWriter_2_9/ |
ValueEnumerator.cpp | 125 if (isa<MDNode>(V) || isa<MDString>(V)) { 235 if (isa<MDNode>(V) || isa<MDString>(V)) 245 assert((isa<MDNode>(MD) || isa<MDString>(MD)) && "Invalid metadata kind"); 310 assert(!isa<MDNode>(V) && !isa<MDString>(V) && 429 } else if (isa<MDString>(V) || isa<MDNode>(V))
|
/frameworks/compile/slang/BitWriter_2_9_func/ |
ValueEnumerator.cpp | 125 if (isa<MDNode>(V) || isa<MDString>(V)) { 235 if (isa<MDNode>(V) || isa<MDString>(V)) 245 assert((isa<MDNode>(MD) || isa<MDString>(MD)) && "Invalid metadata kind"); 310 assert(!isa<MDNode>(V) && !isa<MDString>(V) && 429 } else if (isa<MDString>(V) || isa<MDNode>(V))
|
/frameworks/compile/slang/BitWriter_3_2/ |
ValueEnumerator.cpp | 125 if (isa<MDNode>(V) || isa<MDString>(V)) { 235 if (isa<MDNode>(V) || isa<MDString>(V)) 245 assert((isa<MDNode>(MD) || isa<MDString>(MD)) && "Invalid metadata kind"); 310 assert(!isa<MDNode>(V) && !isa<MDString>(V) && 419 } else if (isa<MDString>(V) || isa<MDNode>(V))
|
/external/llvm/lib/AsmParser/ |
LLParser.h | 37 class MDString; 67 MDString *MDStringVal; 239 bool ParseMDString(MDString *&Result);
|
/external/llvm/lib/Transforms/ObjCARC/ |
ObjCARCContract.cpp | 63 const MDString *RetainRVMarker; 309 if (const MDString *S = dyn_cast<MDString>(N->getOperand(0)))
|
ObjCARCOpts.cpp | 877 static MDString *AppendMDNodeToSourcePtr(unsigned NodeId, 879 MDString *Hash = 0; 888 // We do not have any node. Generate and attatch the hash MDString to the 891 // We just use an MDString to ensure that this metadata gets written out 900 Hash = MDString::get(Inst->getContext(), os.str()); 906 Hash = cast<MDString>(Node->getOperand(0)); 913 Hash = MDString::get(Arg->getContext(), os.str()); 928 static MDString *SequenceToMDString(LLVMContext &Context, 930 return MDString::get(Context, SequenceToString(A)); 938 MDString *PtrSourceMDNodeID [all...] |
/frameworks/compile/libbcc/bcinfo/ |
MetadataExtractor.cpp | 165 static_cast<llvm::MDString*>(SlotMDS)->getString(); 187 llvm::StringRef ref = static_cast<llvm::MDString*>(v)->getString(); 371 static_cast<llvm::MDString*>(SigVal)->getString();
|
/external/llvm/lib/Linker/ |
LinkModules.cpp | [all...] |
/external/llvm/lib/CodeGen/ |
TargetLoweringObjectFileImpl.cpp | 436 SectionVal = cast<MDString>(Val)->getString(); 450 MDString *MDOption = cast<MDString>(MDOptions->getOperand(ii)); 809 MDString *MDOption = cast<MDString>(MDOptions->getOperand(ii));
|
/external/llvm/lib/Transforms/Utils/ |
ValueMapper.cpp | 43 if (isa<GlobalValue>(V) || isa<MDString>(V))
|