Home | History | Annotate | Download | only in VMCore

Lines Matching refs:Function

80 /// getOperandPtr - Helper function to get the MDNodeOperand's coallocated on
120 static const Function *getFunctionForValue(Value *V) {
136 static const Function *assertLocalFunction(const MDNode *N) {
139 // FIXME: This does not handle cyclic function local metadata.
140 const Function *F = 0, *NewF = 0;
151 assert((NewF == 0 || F == NewF) &&"inconsistent function-local metadata");
157 // getFunction - If this metadata is function-local and recursively has a
158 // function-local operand, return the first such operand's parent function.
161 const Function *MDNode::getFunction() const {
167 if (const Function *F = getFunctionForValue(getOperand(i)))
181 /// function-local MDNode.
298 // with an instruction or some other function-local object. If this is a
299 // non-function-local MDNode, it can't point to a function-local object.
301 // Likewise if the MDNode is function-local but for a different function.
306 const Function *F = getFunction();
307 const Function *FV = getFunctionForValue(To);
308 // Metadata can be function-local without having an associated function.
355 // If this MDValue was previously function-local but no longer is, clear
356 // its function-local flag.
404 "NamedMDNode operands must not be function-local!");