LLVM 19.0.0git
Macros | Functions
LegalizerInfo.cpp File Reference
#include "llvm/CodeGen/GlobalISel/LegalizerInfo.h"
#include "llvm/ADT/SmallBitVector.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetOpcodes.h"
#include "llvm/CodeGenTypes/LowLevelType.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include <algorithm>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "legalizer-info"
 

Functions

static bool hasNoSimpleLoops (const LegalizeRule &Rule, const LegalityQuery &Q, const std::pair< unsigned, LLT > &Mutation)
 
static bool mutationIsSane (const LegalizeRule &Rule, const LegalityQuery &Q, std::pair< unsigned, LLT > Mutation)
 
static LLT getTypeFromTypeIdx (const MachineInstr &MI, const MachineRegisterInfo &MRI, unsigned OpIdx, unsigned TypeIdx)
 Helper function to get LLT for the given type index.
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "legalizer-info"

Definition at line 30 of file LegalizerInfo.cpp.

Function Documentation

◆ getTypeFromTypeIdx()

static LLT getTypeFromTypeIdx ( const MachineInstr MI,
const MachineRegisterInfo MRI,
unsigned  OpIdx,
unsigned  TypeIdx 
)
static

Helper function to get LLT for the given type index.

Definition at line 257 of file LegalizerInfo.cpp.

References assert(), MI, and MRI.

Referenced by llvm::LegalizerInfo::getAction().

◆ hasNoSimpleLoops()

static bool hasNoSimpleLoops ( const LegalizeRule Rule,
const LegalityQuery Q,
const std::pair< unsigned, LLT > &  Mutation 
)
static

◆ mutationIsSane()

static bool mutationIsSane ( const LegalizeRule Rule,
const LegalityQuery Q,
std::pair< unsigned, LLT Mutation 
)
static