search for: llvmnoaliasparamattr

Displaying 3 results from an estimated 3 matches for "llvmnoaliasparamattr".

2008 Apr 26
0
[LLVMdev] ParamAttr Patch - Alignment fix
...MParamAttr 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; > + } > +} No need for a switch here; after changing the helpers in Argument, just use unw...
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
...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; > > + } > > +} > > No need for a switch here;...