Displaying 3 results from an estimated 3 matches for "llvmbyvalparamattr".
2008 Apr 26
0
[LLVMdev] ParamAttr Patch - Alignment fix
...@@
> return wrap(--I);
> }
>
> +void LLVMAddParamAttr(LLVMValueRef Arg, LLVMParamAttr Param) {
Rename Param -> Attr or PA or something.
> + LLVMParamAttr P = (LLVMParamAttr)Param;
> + Argument *A = unwrap<Argument>(Arg);
> +
> + switch (P) {
> + case LLVMByValParamAttr:
> + A->setByValAttr(true);
> + break;
> + case LLVMNoAliasParamAttr:
> + A->setNoAliasAttr(true);
> + break;
> + case LLVMStructRetParamAttr:
> + A->setStructRetAttr(true);
> + break;
> + default:
> + return;
> +...
2008 Apr 24
2
[LLVMdev] ParamAttr Patch - Alignment fix
Hi..
Updated so you now set alignment through LLVMInstrSetAlignment.
Anders Johnsen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ParamAttr.patch
Type: text/x-diff
Size: 7420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080424/cb72b4bb/attachment.patch>
2008 Apr 26
2
[LLVMdev] ParamAttr Patch - Alignment fix
...> > +void LLVMAddParamAttr(LLVMValueRef Arg, LLVMParamAttr Param) {
>
> Rename Param -> Attr or PA or something.
>
> > + LLVMParamAttr P = (LLVMParamAttr)Param;
> > + Argument *A = unwrap<Argument>(Arg);
> > +
> > + switch (P) {
> > + case LLVMByValParamAttr:
> > + A->setByValAttr(true);
> > + break;
> > + case LLVMNoAliasParamAttr:
> > + A->setNoAliasAttr(true);
> > + break;
> > + case LLVMStructRetParamAttr:
> > + A->setStructRetAttr(true);
> > + break;
>...