OSDN Git Service

[ARM] Generate ABI_optimization_goals build attribute, as described in the ARM ARM.
authorArtyom Skrobov <Artyom.Skrobov@arm.com>
Fri, 27 Nov 2015 15:30:51 +0000 (15:30 +0000)
committerArtyom Skrobov <Artyom.Skrobov@arm.com>
Fri, 27 Nov 2015 15:30:51 +0000 (15:30 +0000)
commit44d5618b02667e8b939453d1e87cea7374b8cef1
tree47a0754f5dce4a163edde1c582039c80f6cc7f3c
parent67e4e5d0d5eb072f746afc0231267e074de571ef
[ARM] Generate ABI_optimization_goals build attribute, as described in the ARM ARM.

Summary:
Since this build attribute corresponds to a whole module, and
different functions in a module may differ in the optimizations
enabled for them, this attribute is emitted after all functions,
and only in the case that the optimization goals for all
functions match.

Reviewers: logan, hans

Subscribers: aemerson, rengolin, llvm-commits

Differential Revision: http://reviews.llvm.org/D14934

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254201 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/ARM/ARMAsmPrinter.h
test/CodeGen/ARM/build-attributes-optimization-minsize.ll [new file with mode: 0644]
test/CodeGen/ARM/build-attributes-optimization-mixed.ll [new file with mode: 0644]
test/CodeGen/ARM/build-attributes-optimization-optnone.ll [new file with mode: 0644]
test/CodeGen/ARM/build-attributes-optimization-optsize.ll [new file with mode: 0644]
test/CodeGen/ARM/build-attributes-optimization.ll [new file with mode: 0644]
test/MC/ARM/data-in-code.ll