#include "RISCVMatInt.h"
#include "MCTargetDesc/RISCVMCTargetDesc.h"
#include "llvm/ADT/APInt.h"
#include "llvm/MC/MCInstBuilder.h"
#include "llvm/Support/MathExtras.h"
usingnamespacellvm;
static int getInstSeqCost(RISCVMatInt::InstSeq &Res, bool HasRVC) { … }
static void generateInstSeqImpl(int64_t Val, const MCSubtargetInfo &STI,
RISCVMatInt::InstSeq &Res) { … }
static unsigned extractRotateInfo(int64_t Val) { … }
static void generateInstSeqLeadingZeros(int64_t Val, const MCSubtargetInfo &STI,
RISCVMatInt::InstSeq &Res) { … }
namespace llvm::RISCVMatInt {
InstSeq generateInstSeq(int64_t Val, const MCSubtargetInfo &STI) { … }
void generateMCInstSeq(int64_t Val, const MCSubtargetInfo &STI,
MCRegister DestReg, SmallVectorImpl<MCInst> &Insts) { … }
InstSeq generateTwoRegInstSeq(int64_t Val, const MCSubtargetInfo &STI,
unsigned &ShiftAmt, unsigned &AddOpc) { … }
int getIntMatCost(const APInt &Val, unsigned Size, const MCSubtargetInfo &STI,
bool CompressionCost, bool FreeZeroes) { … }
OpndKind Inst::getOpndKind() const { … }
}