Home
last modified time | relevance | path

Searched refs:ValMD (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/llvm/lib/IR/
DProfileSummary.cpp111 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1)); in getValMD() local
112 if (!KeyMD || !ValMD) in getValMD()
116 return ValMD; in getValMD()
121 if (auto *ValMD = getValMD(MD, Key)) { in getVal() local
122 Val = cast<ConstantInt>(ValMD->getValue())->getZExtValue(); in getVal()
129 if (auto *ValMD = getValMD(MD, Key)) { in getVal() local
130 Val = cast<ConstantFP>(ValMD->getValue())->getValueAPF().convertToDouble(); in getVal()
141 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1)); in isKeyValuePair() local
142 if (!KeyMD || !ValMD) in isKeyValuePair()
144 if (!KeyMD->getString().equals(Key) || !ValMD->getString().equals(Val)) in isKeyValuePair()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DProfileSummary.cpp90 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1)); in getVal() local
91 if (!KeyMD || !ValMD) in getVal()
95 Val = cast<ConstantInt>(ValMD->getValue())->getZExtValue(); in getVal()
104 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1)); in isKeyValuePair() local
105 if (!KeyMD || !ValMD) in isKeyValuePair()
107 if (!KeyMD->getString().equals(Key) || !ValMD->getString().equals(Val)) in isKeyValuePair()
/external/llvm/lib/IR/
DProfileSummary.cpp94 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1)); in getVal() local
95 if (!KeyMD || !ValMD) in getVal()
99 Val = cast<ConstantInt>(ValMD->getValue())->getZExtValue(); in getVal()
108 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1)); in isKeyValuePair() local
109 if (!KeyMD || !ValMD) in isKeyValuePair()
111 if (!KeyMD->getString().equals(Key) || !ValMD->getString().equals(Val)) in isKeyValuePair()