Displaying 1 result from an estimated 1 matches for "cafdb5b9".
2017 Apr 28
3
Return on nocapture pointer
Hi,
I have a question about semantics of nocapture attribute:
"This indicates that the callee does not make any copies of the pointer
that outlive the callee itself. "
Is returing a pointer considered outliving callee? For example is this code
valid:
define i8* @foo(i8* nocapture %p)
ret i8* %p
}
The documentation also mention that " This is not a valid attribute for
return