Ambuj Agrawal
2015-Apr-29 15:23 UTC
[LLVMdev] Intrinsics property which cannot be modified by the optimiser.
I am using the default intrinsic property (i.e. IntrWriteMem) so that it is not modified by the optimiser. However, I want to use intrinsic property "IntrNoMem" but also want to make sure that the intrinsic is not modified by the optimiser. (i.e. it should have the effect similar to volatile asm (".abc")) Thanks, Ambuj -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150429/187cee96/attachment.html>
Ambuj Agrawal
2015-Apr-29 15:30 UTC
[LLVMdev] Intrinsics property which cannot be modified by the optimiser.
I am using the default intrinsic property (i.e. IntrWriteMem) so that it is not modified by the optimiser. However, I want to use intrinsic property "IntrNoMem" but also want to make sure that the intrinsic is not modified by the optimiser. (i.e. it should have the effect similar to volatile asm (".abc")) Does anyone know if there is any way by which I can use the intrinsic property "IntrNoMem" and also make sure that the intrinsic is not modified by the optimiser? Thanks, Ambuj On Wed, Apr 29, 2015 at 4:23 PM, Ambuj Agrawal <ambujbwt at gmail.com> wrote:> I am using the default intrinsic property (i.e. IntrWriteMem) so that it > is not modified by the optimiser. > > However, I want to use intrinsic property "IntrNoMem" but also want to > make sure that the intrinsic is not modified by the optimiser. (i.e. it > should have the effect similar to volatile asm (".abc")) > > Thanks, > Ambuj >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150429/3370bf90/attachment.html>