Lines Matching refs:Function
98 /// getOperandPtr - Helper function to get the MDNodeOperand's coallocated on
147 static const Function *getFunctionForValue(Value *V) {
163 static const Function *assertLocalFunction(const MDNode *N) {
166 // FIXME: This does not handle cyclic function local metadata.
167 const Function *F = 0, *NewF = 0;
178 assert((NewF == 0 || F == NewF) &&"inconsistent function-local metadata");
184 // getFunction - If this metadata is function-local and recursively has a
185 // function-local operand, return the first such operand's parent function.
188 const Function *MDNode::getFunction() const {
194 if (const Function *F = getFunctionForValue(getOperand(i)))
209 /// function-local MDNode.
330 // with an instruction or some other function-local object. If this is a
331 // non-function-local MDNode, it can't point to a function-local object.
333 // Likewise if the MDNode is function-local but for a different function.
338 const Function *F = getFunction();
339 const Function *FV = getFunctionForValue(To);
340 // Metadata can be function-local without having an associated function.
389 // If this MDValue was previously function-local but no longer is, clear
390 // its function-local flag.
587 "NamedMDNode operands must not be function-local!");