view test/Verifier/metadata-function-prof.ll @ 146:3fc4d5c3e21e

set tail call flag for code segment in CGCAll
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:23:36 +0900
parents 803732b1fca8
children
line wrap: on
line source

; RUN: not llvm-as %s -disable-output 2>&1 | FileCheck %s

; CHECK: function declaration may not have a !prof attachment
declare !prof !0 void @f1()

define void @f2() !prof !0 {
  unreachable
}

; CHECK: function must have a single !prof attachment
define void @f3() !prof !0 !prof !0 {
  unreachable
}

!0 = !{!"function_entry_count", i64 100}