[LLVMdev] LLVM and Interrupt Service Routines.

Samuel Crow samuraileumas at yahoo.com
Tue Jul 21 08:46:25 PDT 2009

Hello Sanjiv,

Have you tried attribute((used))?


>From: "Sanjiv.Gupta at microchip.com" <Sanjiv.Gupta at microchip.com>
>To: llvmdev at cs.uiuc.edu
>Sent: Tuesday, July 21, 2009 10:07:53 AM
>Subject: [LLVMdev] LLVM and Interrupt Service Routines.
>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

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

More information about the llvm-dev mailing list