#include "../Target.h"
#include "PPC.h"
#include "PPCRegisterInfo.h"
#define GET_AVAILABLE_OPCODE_CHECKER
#include "PPCGenInstrInfo.inc"
namespace llvm {
namespace exegesis {
static void setMemOp(InstructionTemplate &IT, int OpIdx,
const MCOperand &OpVal) { … }
#include "PPCGenExegesis.inc"
namespace {
class ExegesisPowerPCTarget : public ExegesisTarget { … };
}
static unsigned getLoadImmediateOpcode(unsigned RegBitWidth) { … }
static MCInst loadImmediate(unsigned Reg, unsigned RegBitWidth,
const APInt &Value) { … }
unsigned
ExegesisPowerPCTarget::getScratchMemoryRegister(const Triple &TT) const { … }
void ExegesisPowerPCTarget::fillMemoryOperands(InstructionTemplate &IT,
unsigned Reg,
unsigned Offset) const { … }
std::vector<MCInst> ExegesisPowerPCTarget::setRegTo(const MCSubtargetInfo &STI,
unsigned Reg,
const APInt &Value) const { … }
static ExegesisTarget *getTheExegesisPowerPCTarget() { … }
void InitializePowerPCExegesisTarget() { … }
}
}