[LLVMdev] Call to address 0 gets removed
    Nick Lewycky 
    nlewycky at google.com
       
    Wed Jun 10 13:11:01 PDT 2009
    
    
  
2009/6/10 Sylvere Teissier <st at invia.fr>
> > Calling 0 is undefined behavior; the optimizer is within its rights to
> > remove this.  Why do you want to call 0?
>
> For example, on embedded platforms you call 0 to do a soft reset.
I suggest you create an intrinsic named @llvm.mybackend.reset if that's your
goal. It can then lower to any instruction sequence you want, including call
0.
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090610/7cee1ef2/attachment.html>
    
    
More information about the llvm-dev
mailing list