This will be useful for testing the set of calls for different systems, and eventually the product of context specific modifiers applied. In the future we should also know the type signatures, and be able to emit the correct one.
16 lines
401 B
LLVM
16 lines
401 B
LLVM
; RUN: opt -S -passes=declare-runtime-libcalls -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
|
|
|
|
; Check an already declared function
|
|
; CHECK: declare float @logf(float)
|
|
declare float @logf(float)
|
|
|
|
; Check an already defined function
|
|
; CHECK: define float @sinf(float %x) {
|
|
define float @sinf(float %x) {
|
|
ret float %x
|
|
}
|
|
|
|
; CHECK: declare void @acosf(...)
|
|
; CHECK: declare void @__umodti3(...)
|
|
|