mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
771be1b79d
The llvm.ptr.annotation and llvm.var.annotation intrinsics were changed since the 11.0 release to add an additional parameter. This patch auto-upgrades IR containing the four-parameter versions of these intrinsics, adding a null pointer as the fifth argument. Differential Revision: https://reviews.llvm.org/D95993
16 lines
603 B
LLVM
16 lines
603 B
LLVM
; Test upgrade of var.annotation intrinsics.
|
|
;
|
|
; RUN: llvm-dis < %s.bc | FileCheck %s
|
|
|
|
|
|
define void @f(i8* %arg0, i8* %arg1, i8* %arg2, i32 %arg3) {
|
|
;CHECK: @f(i8* [[ARG0:%.*]], i8* [[ARG1:%.*]], i8* [[ARG2:%.*]], i32 [[ARG3:%.*]])
|
|
call void @llvm.var.annotation(i8* %arg0, i8* %arg1, i8* %arg2, i32 %arg3)
|
|
;CHECK: call void @llvm.var.annotation(i8* [[ARG0]], i8* [[ARG1]], i8* [[ARG2]], i32 [[ARG3]], i8* null)
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: nofree nosync nounwind willreturn
|
|
declare void @llvm.var.annotation(i8*, i8*, i8*, i32)
|
|
; CHECK: declare void @llvm.var.annotation(i8*, i8*, i8*, i32, i8*)
|