LLVM 22.0.0git
PPCInstructionSelector.cpp File Reference

This file implements the targeting of the InstructionSelector class for PowerPC. More...

Go to the source code of this file.

Namespaces

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

Macros

#define DEBUG_TYPE   "ppc-gisel"
#define GET_GLOBALISEL_PREDICATE_BITSET
#define GET_GLOBALISEL_PREDICATES_DECL
#define GET_GLOBALISEL_TEMPORARIES_DECL
#define GET_GLOBALISEL_IMPL
#define GET_GLOBALISEL_PREDICATES_INIT
#define GET_GLOBALISEL_TEMPORARIES_INIT

Functions

static bool selectCopy (MachineInstr &I, const TargetInstrInfo &TII, MachineRegisterInfo &MRI, const TargetRegisterInfo &TRI, const RegisterBankInfo &RBI)
static unsigned selectLoadStoreOp (unsigned GenericOpc, unsigned RegBankID, unsigned OpSize)
static uint32_t findContiguousZerosAtLeast (uint64_t Imm, unsigned Num)
InstructionSelectorllvm::createPPCInstructionSelector (const PPCTargetMachine &TM, const PPCSubtarget &Subtarget, const PPCRegisterBankInfo &RBI)

Detailed Description

This file implements the targeting of the InstructionSelector class for PowerPC.

Definition in file PPCInstructionSelector.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "ppc-gisel"

Definition at line 28 of file PPCInstructionSelector.cpp.

◆ GET_GLOBALISEL_IMPL

#define GET_GLOBALISEL_IMPL

Definition at line 85 of file PPCInstructionSelector.cpp.

◆ GET_GLOBALISEL_PREDICATE_BITSET

#define GET_GLOBALISEL_PREDICATE_BITSET

Definition at line 34 of file PPCInstructionSelector.cpp.

◆ GET_GLOBALISEL_PREDICATES_DECL

#define GET_GLOBALISEL_PREDICATES_DECL

Definition at line 74 of file PPCInstructionSelector.cpp.

◆ GET_GLOBALISEL_PREDICATES_INIT

#define GET_GLOBALISEL_PREDICATES_INIT

◆ GET_GLOBALISEL_TEMPORARIES_DECL

#define GET_GLOBALISEL_TEMPORARIES_DECL

Definition at line 78 of file PPCInstructionSelector.cpp.

◆ GET_GLOBALISEL_TEMPORARIES_INIT

#define GET_GLOBALISEL_TEMPORARIES_INIT

Function Documentation

◆ findContiguousZerosAtLeast()

uint32_t findContiguousZerosAtLeast ( uint64_t Imm,
unsigned Num )
static

◆ selectCopy()

◆ selectLoadStoreOp()

unsigned selectLoadStoreOp ( unsigned GenericOpc,
unsigned RegBankID,
unsigned OpSize )
static

Definition at line 154 of file PPCInstructionSelector.cpp.

References llvm_unreachable.