search for: llvmremovereturnattr

Displaying 2 results from an estimated 2 matches for "llvmremovereturnattr".

2010 Dec 22
0
[LLVMdev] the optional function return attribute and the llvm-c bindings
.... I do not propose to change the names or semantics of any existing functions. I propose to add the following declarations to <llvm-c/Core.h> along with corresponding definitions in $LLVM/lib/VMCore/Core.cpp: extern void LLVMAddReturnAttr(LLVMValueRef Fn, LLVMAttribute PA); extern void LLVMRemoveReturnAttr(LLVMValueRef Fn, LLVMAttribute PA); I also propose to add the corresponding OCaml functions to the "Operations on functions" section of the Llvm module in the OCaml bindings too, of course: (** [add_return_attr f a] adds the return parameter attribute [a] to the return type of t...
2010 Dec 21
2
[LLVMdev] the optional function return attribute and the llvm-c bindings
On Dec 21, 2010, at 00:43, Duncan Sands wrote: > > IIRC the function return value is considered to be the parameter with index 0. > The function itself is considered to be the parameter with index ~0U. Yes, that's what the documentation seems to say is the proper mode for indexing the return parameter, but when I set an attribute on the parameter with index zero, it gets applied to