[LLVMdev] Calling external functions failed on PowerPC

陳韋任 chenwj at iis.sinica.edu.tw
Thu Mar 24 19:05:45 PDT 2011


Forgot the attachment, sorry.

-- 
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
-------------- next part --------------
; ModuleID = 'test'

define i32 @add1(i32 %AnArg) {
EntryBlock:
  %addresult = add i32 1, %AnArg
  ret i32 %addresult
}

define i32 @foo() {
EntryBlock:
  %add1 = tail call i32 @add1(i32 10)
  ret i32 %add1
}

declare void @abort()


More information about the llvm-dev mailing list