aboutsummaryrefslogtreecommitdiffstats
path: root/test/Bitcode
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2013-08-23 11:53:55 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2013-08-23 11:53:55 +0000
commit5768bb8d77892926dff0d078b1fb08c14ea791f3 (patch)
tree3a2f35fef53650a9e8988416a19f8787d0186f3d /test/Bitcode
parenta550b51bac50493db75a7b5788a3f2c3b62fd913 (diff)
downloadexternal_llvm-5768bb8d77892926dff0d078b1fb08c14ea791f3.zip
external_llvm-5768bb8d77892926dff0d078b1fb08c14ea791f3.tar.gz
external_llvm-5768bb8d77892926dff0d078b1fb08c14ea791f3.tar.bz2
Add function attribute 'optnone'.
This function attribute indicates that the function is not optimized by any optimization or code generator passes with the exception of interprocedural optimization passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode')
-rw-r--r--test/Bitcode/attributes.ll12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/Bitcode/attributes.ll b/test/Bitcode/attributes.ll
index 92f892a..2ff87d6 100644
--- a/test/Bitcode/attributes.ll
+++ b/test/Bitcode/attributes.ll
@@ -203,7 +203,13 @@ define void @f34()
; CHECK: define void @f34()
{
call void @nobuiltin() nobuiltin
-; CHECK: call void @nobuiltin() #23
+; CHECK: call void @nobuiltin() #24
+ ret void;
+}
+
+define void @f35() optnone
+; CHECK: define void @f35() #23
+{
ret void;
}
@@ -230,4 +236,6 @@ define void @f34()
; CHECK: attributes #20 = { "cpu"="cortex-a8" }
; CHECK: attributes #21 = { sspstrong }
; CHECK: attributes #22 = { minsize }
-; CHECK: attributes #23 = { nobuiltin }
+; CHECK: attributes #23 = { optnone }
+; CHECK: attributes #24 = { nobuiltin }
+