File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -700,18 +700,26 @@ end
700700
701701Context () do ctx
702702LLVM. Module (" SomeModule" , ctx) do mod
703- intr = Intrinsic (" llvm.sin" )
703+ intr_ft = LLVM. FunctionType (LLVM. DoubleType (ctx), [LLVM. DoubleType (ctx)])
704+ intr_fn = LLVM. Function (mod, " llvm.sin.f64" , intr_ft)
705+ @test isintrinsic (intr_fn)
706+
707+ intr = Intrinsic (intr_fn)
704708 @test isoverloaded (intr)
705709
710+ if LLVM. version () >= v " 9"
711+ @test intr == Intrinsic (" llvm.sin" )
712+ end
713+
706714 @test name (intr) == " llvm.sin"
707715 @test name (intr, [LLVM. DoubleType (ctx)]) == " llvm.sin.f64"
708716
709717 ft = FunctionType (intr, [LLVM. DoubleType (ctx)])
718+ @test ft isa FunctionType
710719 @test return_type (ft) == LLVM. DoubleType (ctx)
711- @test isempty (functions (mod))
712720
713721 fn = LLVM. Function (mod, intr, [LLVM. DoubleType (ctx)])
714- @test first ( functions (mod)) == fn
722+ @test fn isa LLVM . Function
715723 @test eltype (llvmtype (fn)) == ft
716724 @test isintrinsic (fn)
717725end
You can’t perform that action at this time.
0 commit comments