[LLVMdev] LLVM and Interrupt Service Routines.

Sanjiv.Gupta at microchip.com Sanjiv.Gupta at microchip.com
Tue Jul 21 21:44:31 PDT 2009


 

________________________________

From: llvmdev-bounces at cs.uiuc.edu on behalf of Andrew Lenharth
Sent: Tue 7/21/2009 8:43 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] LLVM and Interrupt Service Routines.



>We've used the used attribute to ensure they are not deleted and had no problem.

>Andrew

how does code gen distinguish ISRs?

- sanjiv

On Tue, Jul 21, 2009 at 10:07 AM, <Sanjiv.Gupta at microchip.com> wrote:
> Hi,
> Apparently, there is no explicit support for ISRs in the llvm framework.  I
> could not find a matching attribute that can be used to mark a function as
> an ISR, which codegen and optimizer can use accordingly. ISRs aren't called
> explicity from any function, so currently the optimizer deletes them. We are
> planning to introduce a new "interrupt" attribute (to be modeled similiar to
> "section" attribute) which one can use in different passes suitably.
> How does that sound? Or do we have something available already?
>
> - Sanjiv
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>

_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090721/5d10f0c7/attachment.html>


More information about the llvm-dev mailing list