LLVM  14.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

 llvm
 This file implements support for optimizing divisions by a constant.
 
 llvm::RISCVMatInt
 

Functions

static int getInstSeqCost (RISCVMatInt::InstSeq &Res, bool HasRVC)
 
static void generateInstSeqImpl (int64_t Val, const FeatureBitset &ActiveFeatures, RISCVMatInt::InstSeq &Res)
 
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

◆ 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 llvm_unreachable.

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