[LLVMdev] LLVM and Interrupt Service Routines.
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:
> 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
More information about the llvm-dev