Lines Matching defs:Key
27 // Return an MDTuple with two elements. The first element is a string Key and
29 static Metadata *getKeyValMD(LLVMContext &Context, const char *Key,
32 Metadata *Ops[2] = {MDString::get(Context, Key),
37 // Return an MDTuple with two elements. The first element is a string Key and
39 static Metadata *getKeyValMD(LLVMContext &Context, const char *Key,
41 Metadata *Ops[2] = {MDString::get(Context, Key), MDString::get(Context, Val)};
87 // Parse an MDTuple representing (Key, Val) pair.
88 static bool getVal(MDTuple *MD, const char *Key, uint64_t &Val) {
97 if (!KeyMD->getString().equals(Key))
103 // Check if an MDTuple represents a (Key, Val) pair.
104 static bool isKeyValuePair(MDTuple *MD, const char *Key, const char *Val) {
111 if (!KeyMD->getString().equals(Key) || !ValMD->getString().equals(Val))