[LLVMdev] Changing Alignment Attribute using New Attribute API

John Criswell criswell at illinois.edu
Tue Oct 16 12:03:53 PDT 2012

Dear All,

Under the old attribute API, when we modified the alignment attribute of 
a byval argument in a caller or callee, we first removed the old 
alignment attribute and then added a new alignment attribute.

With the new API, can I just use the AttrBuilder to build the alignment 
attribute and then use the addAttribute() method of CallInst and 
Argument to overwrite the old alignment attribute?

-- John T.

More information about the llvm-dev mailing list