Forums - Snapdragon LLVM 3.5 for Android NDK now available!

1 post / 0 new
Snapdragon LLVM 3.5 for Android NDK now available!
Dakip Moderator
Join Date: 17 Apr 13
Posts: 14
Posted: Thu, 2014-08-07 12:17

The compiler teams at QuIC are pleased to announce the 3.5 release of the Snapdragon LLVM Compiler for Android NDK – available here:

        developer.qualcomm.com/mobile-development/increase-app-performance/snapdragon-llvm-compiler-android

This release includes significant new features and optimizations that should benefit the native code of your Android applications.

Highlights:   

Mature ARMv8 Support
Snapdragon LLVM provides full support for the new ARMv8, 64-bit architecture, including the following:
            AAarch64 (64bit)
            AAarch32 (32bit)
            NEON and VFP, along with NEON intrinsics

While 64-bit targets are not yet generally available, Android NDK support is and you can begin porting your applications now. By using Snapdragon LLVM, your code generation will already be tuned for Snapdragon 64bit processors when devices become available.

Auto-vectorization
This release includes a mature auto-vectorizer that can automatically generate code that utilizes the NEON SIMD engine for a wide range of loops. This can provide a significant acceleration depending on your application workload, such as image processing. The vectorizer is enabled by default at –O2

Auto-parallelization
This release also includes an auto-parallelizer that can automatically spread the execution of certain application loops across the idle CPUs on the Snapdragon processor. With the proliferation of multi-core mobile processors, this is a very promising feature, and can provide significant acceleration and often is synergistic with auto-vectorization. We encourage you try auto-parallelization, but note that due to the complex nature of multi-core mobile processors, auto-parallelization may cause regressions in some workloads.

Code Hygiene
This release includes the Underfined Behavior Sanitize which is useful for detecting common programming errors such as integer overflow.

LLVM has a long tradition of providing understandable and actionable error and warning messages. If you are porting your code to 64-bit, the compiler can help identify common porting issues. For example on 64-bit platforms the size of a long is not the same as an int, nor is the size of an int the same as a pointer. Setting –Wall, or –Wconversion can help you quickly identify and fix porting issues such as this.

Other code quality tools in this release include the Address Sanitizer and the Static Analyzer.

Next Steps
Read the readme on the download page, download snapdragon LLVM, details are available in the included user guide, and build your application. Not only will it provide you the best performance today on Qualcomm’s 32-bit architectures, it is a productive path to enabling your application for the 64-bit mobile architectures on the horizon. 

Please let us know your results and share your experiences using this release of the Snapdragon LLVM compiler at:
       
developer.qualcomm.com/llvm-forum

As you are on this page, you clearly are interested in optimizing your application! We recommend that you use Snapdragon LLVM in conjunction with Snapdragon Mobile Development Platform hardware (MDP). Snapdragon MDPs come preloaded with tools such as Snapdragon Performance Visualizer and a special version of Trepn Profiler™ that provide for viewing your application execution and power profile. For more information visit the Qualcomm Developer Network.

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.