1; RUN: opt -S < %s | FileCheck %s 2 3; The intrinsic firstly only took i8*, then it was made polimorphic, then 4; it was renamed to launder.invariant.group 5define void @test(i8* %p1, i16* %p16) { 6; CHECK-LABEL: @test 7; CHECK: %p2 = call i8* @llvm.launder.invariant.group.p0i8(i8* %p1) 8; CHECK: %p3 = call i8* @llvm.launder.invariant.group.p0i8(i8* %p1) 9; CHECK: %p4 = call i16* @llvm.launder.invariant.group.p0i16(i16* %p16) 10 %p2 = call i8* @llvm.invariant.group.barrier(i8* %p1) 11 %p3 = call i8* @llvm.invariant.group.barrier.p0i8(i8* %p1) 12 %p4 = call i16* @llvm.invariant.group.barrier.p0i16(i16* %p16) 13 ret void 14} 15 16; CHECK: Function Attrs: inaccessiblememonly nounwind speculatable 17; CHECK: declare i8* @llvm.launder.invariant.group.p0i8(i8*) 18; CHECK: Function Attrs: inaccessiblememonly nounwind speculatable 19; CHECK: declare i16* @llvm.launder.invariant.group.p0i16(i16*) 20declare i8* @llvm.invariant.group.barrier(i8*) 21declare i8* @llvm.invariant.group.barrier.p0i8(i8*) 22declare i16* @llvm.invariant.group.barrier.p0i16(i16*) 23