brintos

brintos / llvm-project-archived public Read only

0
0
Text · 795 B · 4f35599 Raw
23 lines · plain
1; RUN: opt -S < %s2 3; This file contains TBAA metadata that is okay and should pass the verifier.4 5declare void @callee()6declare void @llvm.va_start(ptr) nounwind7 8define void @f_0(ptr %ptr, ...) {9  %args = alloca i8, align 810  call void @llvm.va_start(ptr %args)11 12  %old = atomicrmw add ptr %ptr, i8 0 seq_cst,          !tbaa !{!1, !1, i64 0}13  %pair = cmpxchg ptr %ptr, i8 0, i8 1 acquire acquire, !tbaa !{!1, !1, i64 0}14  %ld = load i8, ptr %ptr,                              !tbaa !{!1, !1, i64 0}15  store i8 1, ptr %ptr,                                 !tbaa !{!1, !1, i64 0}16  call void @callee(),                                  !tbaa !{!1, !1, i64 0}17  %argval = va_arg ptr %args, i8,                       !tbaa !{!1, !1, i64 0}18  ret void19}20 21!0 = !{!"root"}22!1 = !{!"scalar-a", !0}23