LLVM 18.0.0git
Macros | Functions
X86FixupVectorConstants.cpp File Reference
#include "X86.h"
#include "X86InstrFoldTables.h"
#include "X86InstrInfo.h"
#include "X86Subtarget.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineConstantPool.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "x86-fixup-vector-constants"
 

Functions

 STATISTIC (NumInstChanges, "Number of instructions changes")
 
static const ConstantgetConstantFromPool (const MachineInstr &MI, const MachineOperand &Op)
 
static std::optional< APIntextractConstantBits (const Constant *C)
 
static std::optional< APIntgetSplatableConstant (const Constant *C, unsigned SplatBitWidth)
 
static ConstantrebuildSplatableConstant (const Constant *C, unsigned SplatBitWidth)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "x86-fixup-vector-constants"

Definition at line 26 of file X86FixupVectorConstants.cpp.

Function Documentation

◆ extractConstantBits()

static std::optional< APInt > extractConstantBits ( const Constant C)
static

◆ getConstantFromPool()

static const Constant * getConstantFromPool ( const MachineInstr MI,
const MachineOperand Op 
)
static

◆ getSplatableConstant()

static std::optional< APInt > getSplatableConstant ( const Constant C,
unsigned  SplatBitWidth 
)
static

◆ rebuildSplatableConstant()

static Constant * rebuildSplatableConstant ( const Constant C,
unsigned  SplatBitWidth 
)
static

◆ STATISTIC()

STATISTIC ( NumInstChanges  ,
"Number of instructions changes"   
)