
This adds proper support for calling intrinsics without mangling suffix when parsing textual IR. This already worked (mostly by accident) when only a single mangling suffix was in use. This patch extends support to the case where the intrinsic is used with multiple signatures, and as such multiple different intrinsic declarations have to be inserted. The final IR will have intrinsics with mangling suffix as usual. Motivated by the discussion at: https://discourse.llvm.org/t/recent-improvements-to-the-ir-parser/77366
11 lines
246 B
LLVM
11 lines
246 B
LLVM
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
|
|
|
|
; Use of intrinsic without mangling suffix and invalid signature should
|
|
; be rejected.
|
|
|
|
; CHECK: error: invalid intrinsic signature
|
|
define void @test() {
|
|
call i8 @llvm.umax(i8 0, i16 1)
|
|
ret void
|
|
}
|