rust/src/librustc_llvm
Jorge Aparicio 6296d52ba6 calling convention for MSP430 interrupts
This calling convention is used to define interrup handlers on MSP430
microcontrollers. Usage looks like this:

``` rust
#[no_mangle]
#[link_section = "__interrupt_vector_10"]
pub static TIM0_VECTOR: unsafe extern "msp430-interrupt" fn() = tim0;

unsafe extern "msp430-interrupt" fn tim0() {
  P1OUT.write(0x00);
}
```

which generates the following assembly:

``` asm
Disassembly of section __interrupt_vector_10:

0000fff2 <TIM0_VECTOR>:
    fff2:       10 c0           interrupt service routine at 0xc010

Disassembly of section .text:

0000c010 <_ZN3msp4tim017h3193b957fd6a4fd4E>:
    c010:       c2 43 21 00     mov.b   #0,     &0x0021 ;r3 As==00
    c014:       00 13           reti
        ...
```
2017-01-18 20:42:54 -05:00
..
archive_ro.rs run rustfmt on librustc_llvm folder 2016-05-29 14:57:34 +05:30
build.rs PTX support 2016-12-26 21:06:23 -05:00
Cargo.lock [LLVM] Introduce a stable representation of DIFlags 2016-12-02 21:13:31 -05:00
Cargo.toml [LLVM] Introduce a stable representation of DIFlags 2016-12-02 21:13:31 -05:00
diagnostic.rs Don't assume llvm::StringRef is null terminated 2016-11-28 17:33:13 +01:00
ffi.rs calling convention for MSP430 interrupts 2017-01-18 20:42:54 -05:00
lib.rs Auto merge of #38679 - alexcrichton:always-deny-warnings, r=nrc 2017-01-08 08:22:06 +00:00