LLVM 17.0.0git
|
#include "RISCVMatInt.h"
#include "MCTargetDesc/RISCVMCTargetDesc.h"
#include "llvm/ADT/APInt.h"
#include "llvm/Support/MathExtras.h"
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) |
|
static |
Definition at line 156 of file RISCVMatInt.cpp.
References llvm::countl_one(), llvm::countr_one(), llvm::Hi_32(), and llvm::Lo_32().
Referenced by llvm::RISCVMatInt::generateInstSeq().
|
static |
Definition at line 48 of file RISCVMatInt.cpp.
References assert(), llvm::countr_zero(), llvm::SmallVectorImpl< T >::emplace_back(), generateInstSeqImpl(), llvm::isPowerOf2_64(), llvm::Log2_64(), and Unsigned.
Referenced by llvm::RISCVMatInt::generateInstSeq(), and generateInstSeqImpl().
|
static |
Definition at line 15 of file RISCVMatInt.cpp.
References Cost, and llvm::SmallVectorBase< Size_T >::size().
Referenced by llvm::RISCVMatInt::getIntMatCost().