This time with the missing files. Similar to PR/25526, fast-regalloc introduces spills at the end of basic blocks. When this occurs in between an ll and sc, the store can cause the atomic sequence to fail. This patch fixes the issue by introducing more pseudos to represent atomic operations and moving their lowering to after the expansion of postRA pseudos. This resolves PR/32020. Thanks to James Cowgill for reporting the issue! Reviewers: slthakur Differential Revision: https://reviews.llvm.org/D30257 llvm-svn: 296134
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
//===-- Mips.h - Top-level interface for Mips representation ----*- 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 Mips back-end.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIB_TARGET_MIPS_MIPS_H
|
|
#define LLVM_LIB_TARGET_MIPS_MIPS_H
|
|
|
|
#include "MCTargetDesc/MipsMCTargetDesc.h"
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
namespace llvm {
|
|
class MipsTargetMachine;
|
|
class ModulePass;
|
|
class FunctionPass;
|
|
|
|
ModulePass *createMipsOs16Pass(MipsTargetMachine &TM);
|
|
ModulePass *createMips16HardFloatPass(MipsTargetMachine &TM);
|
|
|
|
FunctionPass *createMipsModuleISelDagPass(MipsTargetMachine &TM);
|
|
FunctionPass *createMipsOptimizePICCallPass(MipsTargetMachine &TM);
|
|
FunctionPass *createMipsDelaySlotFillerPass(MipsTargetMachine &TM);
|
|
FunctionPass *createMipsHazardSchedule();
|
|
FunctionPass *createMipsLongBranchPass(MipsTargetMachine &TM);
|
|
FunctionPass *createMipsConstantIslandPass();
|
|
FunctionPass *createMipsExpandPseudoPass();
|
|
} // end namespace llvm;
|
|
|
|
#endif
|