2014-05-24 20:50:23 +08:00
|
|
|
//==-- AArch64.h - Top-level interface for AArch64 --------------*- C++ -*-==//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the entry points for global functions defined in the LLVM
|
|
|
|
// AArch64 back-end.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_AARCH64_AARCH64_H
|
|
|
|
#define LLVM_LIB_TARGET_AARCH64_AARCH64_H
|
2014-05-24 20:50:23 +08:00
|
|
|
|
|
|
|
#include "MCTargetDesc/AArch64MCTargetDesc.h"
|
2014-07-25 19:42:14 +08:00
|
|
|
#include "Utils/AArch64BaseInfo.h"
|
2014-05-24 20:50:23 +08:00
|
|
|
#include "llvm/Support/DataTypes.h"
|
2014-07-25 19:42:14 +08:00
|
|
|
#include "llvm/Target/TargetMachine.h"
|
2014-05-24 20:50:23 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class AArch64TargetMachine;
|
|
|
|
class FunctionPass;
|
|
|
|
class MachineFunctionPass;
|
|
|
|
|
|
|
|
FunctionPass *createAArch64DeadRegisterDefinitions();
|
[AArch64] Add pass to remove redundant copy after RA
Summary:
This change will add a pass to remove unnecessary zero copies in target blocks
of cbz/cbnz instructions. E.g., the copy instruction in the code below can be
removed because the cbz jumps to BB1 when x0 is zero :
BB0:
cbz x0, .BB1
BB1:
mov x0, xzr
Jun
Reviewers: gberry, jmolloy, HaoLiu, MatzeB, mcrosier
Subscribers: mcrosier, mssimpso, haicheng, bmakam, llvm-commits, aemerson, rengolin
Differential Revision: http://reviews.llvm.org/D16203
llvm-svn: 261004
2016-02-17 04:02:39 +08:00
|
|
|
FunctionPass *createAArch64RedundantCopyEliminationPass();
|
2014-05-24 20:50:23 +08:00
|
|
|
FunctionPass *createAArch64ConditionalCompares();
|
|
|
|
FunctionPass *createAArch64AdvSIMDScalar();
|
|
|
|
FunctionPass *createAArch64BranchRelaxation();
|
|
|
|
FunctionPass *createAArch64ISelDag(AArch64TargetMachine &TM,
|
|
|
|
CodeGenOpt::Level OptLevel);
|
|
|
|
FunctionPass *createAArch64StorePairSuppressPass();
|
|
|
|
FunctionPass *createAArch64ExpandPseudoPass();
|
|
|
|
FunctionPass *createAArch64LoadStoreOptimizationPass();
|
|
|
|
ModulePass *createAArch64PromoteConstantPass();
|
2014-09-05 10:55:24 +08:00
|
|
|
FunctionPass *createAArch64ConditionOptimizerPass();
|
2014-05-24 20:50:23 +08:00
|
|
|
FunctionPass *createAArch64AddressTypePromotionPass();
|
2014-08-08 20:33:21 +08:00
|
|
|
FunctionPass *createAArch64A57FPLoadBalancing();
|
2014-10-13 18:12:35 +08:00
|
|
|
FunctionPass *createAArch64A53Fix835769();
|
2014-05-24 20:50:23 +08:00
|
|
|
|
|
|
|
FunctionPass *createAArch64CleanupLocalDynamicTLSPass();
|
|
|
|
|
|
|
|
FunctionPass *createAArch64CollectLOHPass();
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|