LLVM 17.0.0git
Namespaces | Functions
RISCVMatInt.cpp File Reference
#include "RISCVMatInt.h"
#include "MCTargetDesc/RISCVMCTargetDesc.h"
#include "llvm/ADT/APInt.h"
#include "llvm/Support/MathExtras.h"
Include dependency graph for RISCVMatInt.cpp:

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::RISCVMatInt
 

Functions

static int getInstSeqCost (RISCVMatInt::InstSeq &Res, bool HasRVC)
 
static void generateInstSeqImpl (int64_t Val, const FeatureBitset &ActiveFeatures, RISCVMatInt::InstSeq &Res)
 
static unsigned extractRotateInfo (int64_t Val)
 
InstSeq llvm::RISCVMatInt::generateInstSeq (int64_t Val, const FeatureBitset &ActiveFeatures)
 
int llvm::RISCVMatInt::getIntMatCost (const APInt &Val, unsigned Size, const FeatureBitset &ActiveFeatures, bool CompressionCost)
 

Function Documentation

◆ extractRotateInfo()

static unsigned extractRotateInfo ( int64_t  Val)
static

◆ generateInstSeqImpl()

static void generateInstSeqImpl ( int64_t  Val,
const FeatureBitset ActiveFeatures,
RISCVMatInt::InstSeq Res 
)
static

◆ getInstSeqCost()

static int getInstSeqCost ( RISCVMatInt::InstSeq Res,
bool  HasRVC 
)
static

Definition at line 15 of file RISCVMatInt.cpp.

References Cost, and llvm::SmallVectorBase< Size_T >::size().

Referenced by llvm::RISCVMatInt::getIntMatCost().