Sort and fix #include directives.

Includes are sorted into groups, each sorted alphabetically and separated by a
blank line. The groups are, in order, C headers, C++ headers, VIXL (non-backend)
headers, and VIXL backend headers.

Change-Id: I9a71430bffeaf77389a089487ce264db8d1d9ddc
This commit is contained in:
Alexandre Rames 2016-05-24 08:56:23 +01:00
parent 1f9074de15
commit b68bacb75c
40 changed files with 90 additions and 55 deletions

View File

@ -24,10 +24,11 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "a64/macro-assembler-a64.h"
#include "a64/instructions-a64.h"
#include "globals-vixl.h"
#include "a64/instructions-a64.h"
#include "a64/macro-assembler-a64.h"
using namespace vixl;
static const int kDefaultIterationsCount = 100000;

View File

@ -24,10 +24,11 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "a64/macro-assembler-a64.h"
#include "a64/instructions-a64.h"
#include "globals-vixl.h"
#include "a64/instructions-a64.h"
#include "a64/macro-assembler-a64.h"
using namespace vixl;
static const int kDefaultInstructionCount = 100000;

View File

@ -26,8 +26,8 @@
#include "globals-vixl.h"
#include "a64/macro-assembler-a64.h"
#include "a64/instructions-a64.h"
#include "a64/macro-assembler-a64.h"
using namespace vixl;

View File

@ -24,10 +24,11 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "a64/macro-assembler-a64.h"
#include "a64/instructions-a64.h"
#include "globals-vixl.h"
#include "a64/instructions-a64.h"
#include "a64/macro-assembler-a64.h"
using namespace vixl;
static const int kDefaultInstructionCount = 100000;

View File

@ -24,10 +24,11 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "a64/macro-assembler-a64.h"
#include "a64/instructions-a64.h"
#include "globals-vixl.h"
#include "a64/instructions-a64.h"
#include "a64/macro-assembler-a64.h"
using namespace vixl;
static const unsigned kDefaultInstructionCount = 100000;

View File

@ -24,8 +24,8 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "examples.h"
#include "custom-disassembler.h"
#include "examples.h"
#define BUF_SIZE (4096)

View File

@ -27,7 +27,6 @@
#ifndef VIXL_EXAMPLE_EXAMPLES_H_
#define VIXL_EXAMPLE_EXAMPLES_H_
#include "a64/simulator-a64.h"
#include "a64/debugger-a64.h"
#include "a64/macro-assembler-a64.h"

View File

@ -24,8 +24,8 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "a64/simulator-a64.h"
#include "a64/macro-assembler-a64.h"
#include "a64/simulator-a64.h"
#define BUF_SIZE (4096)
#define __ masm->

View File

@ -26,6 +26,7 @@
#include <cmath>
#include "a64/assembler-a64.h"
#include "a64/macro-assembler-a64.h"

View File

@ -27,11 +27,11 @@
#ifndef VIXL_A64_ASSEMBLER_A64_H_
#define VIXL_A64_ASSEMBLER_A64_H_
#include "code-buffer-vixl.h"
#include "globals-vixl.h"
#include "invalset-vixl.h"
#include "utils-vixl.h"
#include "code-buffer-vixl.h"
#include "a64/instructions-a64.h"
namespace vixl {

View File

@ -27,6 +27,8 @@
#ifndef VIXL_A64_CONSTANTS_A64_H_
#define VIXL_A64_CONSTANTS_A64_H_
#include "globals-vixl.h"
namespace vixl {
const unsigned kNumberOfRegisters = 32;

View File

@ -25,6 +25,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "utils-vixl.h"
#include "a64/cpu-a64.h"
namespace vixl {

View File

@ -28,6 +28,7 @@
#define VIXL_CPU_A64_H
#include "globals-vixl.h"
#include "a64/instructions-a64.h"
namespace vixl {

View File

@ -30,12 +30,14 @@
#define VIXL_A64_DEBUGGER_A64_H_
#include <ctype.h>
#include <limits.h>
#include <errno.h>
#include <limits.h>
#include <vector>
#include "globals-vixl.h"
#include "utils-vixl.h"
#include "a64/constants-a64.h"
#include "a64/simulator-a64.h"

View File

@ -26,6 +26,7 @@
#include "globals-vixl.h"
#include "utils-vixl.h"
#include "a64/decoder-a64.h"
namespace vixl {

View File

@ -30,6 +30,7 @@
#include <list>
#include "globals-vixl.h"
#include "a64/instructions-a64.h"

View File

@ -25,6 +25,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <cstdlib>
#include "a64/disasm-a64.h"
namespace vixl {

View File

@ -29,9 +29,10 @@
#include "globals-vixl.h"
#include "utils-vixl.h"
#include "a64/instructions-a64.h"
#include "a64/decoder-a64.h"
#include "a64/assembler-a64.h"
#include "a64/decoder-a64.h"
#include "a64/instructions-a64.h"
namespace vixl {

View File

@ -24,8 +24,8 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "a64/instructions-a64.h"
#include "a64/assembler-a64.h"
#include "a64/instructions-a64.h"
namespace vixl {

View File

@ -29,6 +29,7 @@
#include "globals-vixl.h"
#include "utils-vixl.h"
#include "a64/constants-a64.h"
namespace vixl {

View File

@ -29,8 +29,9 @@
#include "globals-vixl.h"
#include "utils-vixl.h"
#include "a64/decoder-a64.h"
#include "a64/constants-a64.h"
#include "a64/decoder-a64.h"
#include "a64/instrument-a64.h"
namespace vixl {

View File

@ -27,6 +27,7 @@
#ifdef VIXL_INCLUDE_SIMULATOR
#include <cmath>
#include "a64/simulator-a64.h"
namespace vixl {

View File

@ -31,6 +31,7 @@
#include <limits>
#include "globals-vixl.h"
#include "a64/assembler-a64.h"
#include "a64/debugger-a64.h"
#include "a64/instrument-a64.h"

View File

@ -27,7 +27,9 @@
#ifdef VIXL_INCLUDE_SIMULATOR
#include <string.h>
#include <cmath>
#include "a64/simulator-a64.h"
namespace vixl {

View File

@ -29,9 +29,10 @@
#include "globals-vixl.h"
#include "utils-vixl.h"
#include "a64/instructions-a64.h"
#include "a64/assembler-a64.h"
#include "a64/disasm-a64.h"
#include "a64/instructions-a64.h"
#include "a64/instrument-a64.h"
#include "a64/simulator-constants-a64.h"

View File

@ -27,6 +27,8 @@
#ifndef VIXL_A64_SIMULATOR_CONSTANTS_A64_H_
#define VIXL_A64_SIMULATOR_CONSTANTS_A64_H_
#include "a64/instructions-a64.h"
namespace vixl {
// Debug instructions.

View File

@ -28,6 +28,7 @@
#define VIXL_CODE_BUFFER_H
#include <string.h>
#include "globals-vixl.h"
namespace vixl {

View File

@ -40,15 +40,15 @@
#define __STDC_FORMAT_MACROS
#endif
#include <stdint.h>
#include <inttypes.h>
#include <assert.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "platform-vixl.h"

View File

@ -24,9 +24,10 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "utils-vixl.h"
#include <stdio.h>
#include "utils-vixl.h"
namespace vixl {
uint32_t float_to_rawbits(float value) {

View File

@ -28,9 +28,11 @@
#define VIXL_UTILS_H
#include <string.h>
#include <cmath>
#include "globals-vixl.h"
#include "compiler-intrinsics-vixl.h"
#include "globals-vixl.h"
namespace vixl {

View File

@ -24,16 +24,15 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "../test-runner.h"
#include "../test-utils-a64.h"
#include "custom-disassembler.h"
#include "examples.h"
#include "non-const-visitor.h"
#include "a64/macro-assembler-a64.h"
#include "a64/debugger-a64.h"
#include "a64/simulator-a64.h"
#include "examples.h"
#include "non-const-visitor.h"
#include "custom-disassembler.h"
#include "../test-utils-a64.h"
#include "../test-runner.h"
#define TEST(name) TEST_(EXAMPLE_##name)
using namespace vixl;

View File

@ -24,19 +24,21 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <cmath>
#include "test-runner.h"
#include "test-utils-a64.h"
#include "a64/macro-assembler-a64.h"
#include "a64/simulator-a64.h"
#include "a64/cpu-a64.h"
#include "a64/debugger-a64.h"
#include "a64/disasm-a64.h"
#include "a64/cpu-a64.h"
#include "a64/macro-assembler-a64.h"
#include "a64/simulator-a64.h"
namespace vixl {

View File

@ -25,12 +25,14 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdio.h>
#include <cstring>
#include <string>
#include "test-runner.h"
#include "a64/macro-assembler-a64.h"
#include "a64/disasm-a64.h"
#include "a64/macro-assembler-a64.h"
#define TEST(name) TEST_(DISASM_##name)

View File

@ -25,6 +25,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdlib.h>
#include "test-runner.h"
#include "a64/decoder-a64.h"

View File

@ -24,9 +24,8 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "test-runner.h"
#include "invalset-vixl.h"
#include "test-runner.h"
namespace vixl {

View File

@ -24,9 +24,10 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "test-runner.h"
// Initialize the list as empty.

View File

@ -24,13 +24,14 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdio.h>
#include <float.h>
#include <stdio.h>
#include "test-runner.h"
#include "test-utils-a64.h"
#include "test-simulator-inputs-a64.h"
#include "test-simulator-traces-a64.h"
#include "test-utils-a64.h"
#include "a64/macro-assembler-a64.h"
#include "a64/simulator-a64.h"

View File

@ -24,19 +24,21 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <cmath>
#include "test-runner.h"
#include "test-utils-a64.h"
#include "a64/macro-assembler-a64.h"
#include "a64/simulator-a64.h"
#include "a64/cpu-a64.h"
#include "a64/debugger-a64.h"
#include "a64/disasm-a64.h"
#include "a64/cpu-a64.h"
#include "a64/macro-assembler-a64.h"
#include "a64/simulator-a64.h"
namespace vixl {
// Trace tests can only work with the simulator.

View File

@ -24,15 +24,15 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "test-utils-a64.h"
#include <cmath>
#include "test-runner.h"
#include "test-utils-a64.h"
#include "a64/cpu-a64.h"
#include "a64/disasm-a64.h"
#include "a64/macro-assembler-a64.h"
#include "a64/simulator-a64.h"
#include "a64/disasm-a64.h"
#include "a64/cpu-a64.h"
#define __ masm->

View File

@ -28,10 +28,11 @@
#define VIXL_A64_TEST_UTILS_A64_H_
#include "test-runner.h"
#include "a64/cpu-a64.h"
#include "a64/disasm-a64.h"
#include "a64/macro-assembler-a64.h"
#include "a64/simulator-a64.h"
#include "a64/disasm-a64.h"
#include "a64/cpu-a64.h"
namespace vixl {