#ifndef LLVM_LIB_TARGET_SPARC_SPARC_H
#define LLVM_LIB_TARGET_SPARC_SPARC_H
#include "MCTargetDesc/SparcMCTargetDesc.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Target/TargetMachine.h"
namespace llvm {
class AsmPrinter;
class FunctionPass;
class MCInst;
class MachineInstr;
class PassRegistry;
class SparcTargetMachine;
FunctionPass *createSparcISelDag(SparcTargetMachine &TM);
FunctionPass *createSparcDelaySlotFillerPass();
void LowerSparcMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
AsmPrinter &AP);
void initializeSparcDAGToDAGISelLegacyPass(PassRegistry &);
void initializeErrataWorkaroundPass(PassRegistry &);
}
namespace llvm {
namespace SPCC {
enum CondCodes { … };
}
inline static const char *SPARCCondCodeToString(SPCC::CondCodes CC) { … }
inline static unsigned HI22(int64_t imm) { … }
inline static unsigned LO10(int64_t imm) { … }
inline static unsigned HIX22(int64_t imm) { … }
inline static unsigned LOX10(int64_t imm) { … }
}
#endif