From 75da10d1b2db41f6789846ff499e2842cfe5de8e Mon Sep 17 00:00:00 2001 From: Charles Saternos Date: Fri, 4 Aug 2017 16:00:58 +0000 Subject: [ThinLTO] Add FunctionAttrs to ThinLTO index Adds function attributes to index: ReadNone, ReadOnly, NoRecurse, NoAlias. This attributes will be used for future ThinLTO optimizations that will propagate function attributes across modules. llvm-svn: 310061 --- .../thinlto-function-summary-functionattrs.ll | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 llvm/test/Bitcode/thinlto-function-summary-functionattrs.ll (limited to 'llvm/test/Bitcode/thinlto-function-summary-functionattrs.ll') diff --git a/llvm/test/Bitcode/thinlto-function-summary-functionattrs.ll b/llvm/test/Bitcode/thinlto-function-summary-functionattrs.ll new file mode 100644 index 000000000000..2ad49e3c8647 --- /dev/null +++ b/llvm/test/Bitcode/thinlto-function-summary-functionattrs.ll @@ -0,0 +1,27 @@ +; RUN: opt -module-summary %s -o %t.o +; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s + +; CHECK: