[LLVMdev] LLVM and Interrupt Service Routines.

Andrew Lenharth andrewl at lenharth.org
Tue Jul 21 08:13:33 PDT 2009

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


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

More information about the llvm-dev mailing list