LLVM 17.0.0git
Macros | Functions
PPCRegisterBankInfo.cpp File Reference

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

#include "PPCRegisterBankInfo.h"
#include "PPCRegisterInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Support/Debug.h"
#include "PPCGenRegisterBank.inc"
#include "PPCGenRegisterBankInfo.def"
Include dependency graph for PPCRegisterBankInfo.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "ppc-reg-bank-info"
 
#define GET_TARGET_REGBANK_IMPL
 

Functions

static bool isPreISelGenericFloatingPointOpcode (unsigned Opc)
 Returns whether opcode Opc is a pre-isel generic floating-point opcode, having only floating-point operands.
 
static bool isFPIntrinsic (unsigned ID)
 

Detailed Description

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

Definition in file PPCRegisterBankInfo.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "ppc-reg-bank-info"

Definition at line 19 of file PPCRegisterBankInfo.cpp.

◆ GET_TARGET_REGBANK_IMPL

#define GET_TARGET_REGBANK_IMPL

Definition at line 21 of file PPCRegisterBankInfo.cpp.

Function Documentation

◆ isFPIntrinsic()

static bool isFPIntrinsic ( unsigned  ID)
static
Returns
true if a given intrinsic ID only uses and defines FPRs.

Definition at line 231 of file PPCRegisterBankInfo.cpp.

◆ isPreISelGenericFloatingPointOpcode()

static bool isPreISelGenericFloatingPointOpcode ( unsigned  Opc)
static

Returns whether opcode Opc is a pre-isel generic floating-point opcode, having only floating-point operands.

FIXME: this is copied from target AArch64. Needs some code refactor here to put this function in GlobalISel/Utils.cpp.

Definition at line 196 of file PPCRegisterBankInfo.cpp.