[LLVMdev] LLVM and Interrupt Service Routines.

Sandeep Patel deeppatel1987 at gmail.com
Tue Jul 21 09:51:24 PDT 2009

Anton recently added support for __attribute__((naked)) in r76198 and
r76201. I'd imagine that the GCC "interrupt" and "isr" synonyms would
go in similarly. How each target handles the code generation
differences will be the interesting part.


On Tue, Jul 21, 2009 at 3:07 PM, <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