diff options
| author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2013-08-23 11:53:55 +0000 |
|---|---|---|
| committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2013-08-23 11:53:55 +0000 |
| commit | 377496bbaddcf6fdacbe3cd149a9ad1302bca99e (patch) | |
| tree | 2d1deed1778c4fc8962cf3dc1e49af50c25c3971 /llvm/test/Feature | |
| parent | 03481334b56e88d0713fb97694256b303ab6e81a (diff) | |
| download | bcm5719-llvm-377496bbaddcf6fdacbe3cd149a9ad1302bca99e.tar.gz bcm5719-llvm-377496bbaddcf6fdacbe3cd149a9ad1302bca99e.zip | |
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.
llvm-svn: 189101
Diffstat (limited to 'llvm/test/Feature')
| -rw-r--r-- | llvm/test/Feature/optnone.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Feature/optnone.ll b/llvm/test/Feature/optnone.ll new file mode 100644 index 00000000000..ec1d7232b36 --- /dev/null +++ b/llvm/test/Feature/optnone.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | llvm-dis | FileCheck %s + +; Check for the presence of attribute noopt in the disassembly. + +; CHECK: @foo() #0 +define void @foo() #0 { + ret void +} + +; CHECK: attributes #0 = { optnone } +attributes #0 = { optnone } + |

