1; RUN: opt -passes='forceattrs' -forceattrs-csv-path="%S/FunctionAnnotation.csv" -S < %s | FileCheck %s 2; RUN: opt -passes='forceattrs' -forceattrs-csv-path="%S/DoesNotExist.csv" -S < %s 2>&1 | FileCheck %s --check-prefix=NonexistentFunc 3define void @first_function() { 4; CHECK: @first_function() #0 5 ret void 6} 7 8define void @second_function() { 9; CHECK: @second_function() #1 10 ret void 11} 12 13define void @third_function() { 14; CHECK: @third_function() #0 15 ret void 16} 17 18define void @fourth_function() { 19; CHECK: @fourth_function() #2 20 ret void 21} 22 23define void @fifth_function() { 24; CHECK: @fifth_function() #3 25 ret void 26} 27 28; CHECK-LABEL: attributes #0 = { "opt-level"="O1" } 29 30; CHECK-LABEL: attributes #1 = { cold } 31 32; CHECK-LABEL: attributes #2 = { "opt-level"="O2" } 33 34; CHECK-LABEL: attributes #3 = { "foo"="bar" } 35 36; NonexistentFunc: Function in CSV file at line 1 does not exist. 37