mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-08 19:06:39 +00:00
7e67a4b0cb
Some early revisions of the Cortex-A53 have an erratum (835769) whereby it is possible for a 64-bit multiply-accumulate instruction in AArch64 state to generate an incorrect result. The details are quite complex and hard to determine statically, since branches in the code may exist in some circumstances, but all cases end with a memory (load, store, or prefetch) instruction followed immediately by the multiply-accumulate operation. The safest work-around for this issue is to make the compiler avoid emitting multiply-accumulate instructions immediately after memory instructions and the simplest way to do this is to insert a NOP. This patch implements such work-around in the backend, enabled via the option -aarch64-fix-cortex-a53-835769. The work-around code generation is not enabled by default. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219603 91177308-0d34-0410-b5e6-96231b3b80d8
53 lines
1.8 KiB
C++
53 lines
1.8 KiB
C++
//==-- 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.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIB_TARGET_AARCH64_AARCH64_H
|
|
#define LLVM_LIB_TARGET_AARCH64_AARCH64_H
|
|
|
|
#include "MCTargetDesc/AArch64MCTargetDesc.h"
|
|
#include "Utils/AArch64BaseInfo.h"
|
|
#include "llvm/Support/DataTypes.h"
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
namespace llvm {
|
|
|
|
class AArch64TargetMachine;
|
|
class FunctionPass;
|
|
class MachineFunctionPass;
|
|
|
|
FunctionPass *createAArch64DeadRegisterDefinitions();
|
|
FunctionPass *createAArch64ConditionalCompares();
|
|
FunctionPass *createAArch64AdvSIMDScalar();
|
|
FunctionPass *createAArch64BranchRelaxation();
|
|
FunctionPass *createAArch64ISelDag(AArch64TargetMachine &TM,
|
|
CodeGenOpt::Level OptLevel);
|
|
FunctionPass *createAArch64StorePairSuppressPass();
|
|
FunctionPass *createAArch64ExpandPseudoPass();
|
|
FunctionPass *createAArch64LoadStoreOptimizationPass();
|
|
ModulePass *createAArch64PromoteConstantPass();
|
|
FunctionPass *createAArch64ConditionOptimizerPass();
|
|
FunctionPass *createAArch64AddressTypePromotionPass();
|
|
FunctionPass *createAArch64A57FPLoadBalancing();
|
|
FunctionPass *createAArch64A53Fix835769();
|
|
/// \brief Creates an ARM-specific Target Transformation Info pass.
|
|
ImmutablePass *
|
|
createAArch64TargetTransformInfoPass(const AArch64TargetMachine *TM);
|
|
|
|
FunctionPass *createAArch64CleanupLocalDynamicTLSPass();
|
|
|
|
FunctionPass *createAArch64CollectLOHPass();
|
|
} // end namespace llvm
|
|
|
|
#endif
|