[llvm-dev] Re-numbering address space with a pass

Erdem Derebaşoğlu via llvm-dev llvm-dev at lists.llvm.org
Sun Nov 1 02:30:39 PST 2015


Hi all,
I would like my optimization pass to change an object's address space that is created by llvm.lifetime.start intrinsic. Because I want to be able to identify them later in a codegen pass. I can get a pointer from the intrinsic using CallInst::getArgOperand() function. However, I don't know what to do with it (or if it is the pointer that I want). How can I change its address space? If there is an easier way to "mark" that object, I would like to know that too.
Thanks,Erdem. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151101/a49dbbef/attachment.html>


More information about the llvm-dev mailing list