[PATCH] R600: Make sure to inline all internal functions

Tom Stellard tom at stellard.net
Mon Oct 6 13:36:56 PDT 2014

On Fri, Oct 03, 2014 at 10:52:39AM -0400, Tom Stellard wrote:
> Function calls aren't supported yet.
> ---
>  lib/Target/R600/AMDGPUTargetMachine.cpp | 13 +++++++++++++
>  test/CodeGen/R600/inline-calls.ll       | 17 +++++++++++++++++
>  2 files changed, 30 insertions(+)
>  create mode 100644 test/CodeGen/R600/inline-calls.ll

Here is an updated patch.  In this version, I added a pass
to mark all internal functions as always_inline.  This
is necessary, so that the inliner will inline functions
that call llvm.AMDGPU.barrier.*, which is marked as noduplicate.

I also added support for inlining global functions.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-R600-Make-sure-to-inline-all-internal-functions.patch
Type: text/x-diff
Size: 5458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141006/f0e17bf9/attachment.patch>

More information about the llvm-commits mailing list