Guest User

Untitled

a guest
Jun 28th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 0.40 KB | None | 0 0
  1. ; ModuleID = 'mylib.cpp'
  2. target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32"
  3. target triple = "i686-pc-win32"
  4.  
  5. define dllexport i32 @mytest(i32 %a) nounwind {
  6.   %1 = alloca i32, align 4
  7.   store i32 %a, i32* %1, align 4
  8.   %2 = load i32* %1, align 4
  9.   %3 = add nsw i32 %2, 1
  10.   ret i32 %3
  11. }
Add Comment
Please, Sign In to add comment