LLVM  5.0.0
Macros | Functions
AMDGPUISelLowering.cpp File Reference

This is the parent TargetLowering class for hardware code gen targets. More...

#include "AMDGPUISelLowering.h"
#include "AMDGPU.h"
#include "AMDGPUCallLowering.h"
#include "AMDGPUFrameLowering.h"
#include "AMDGPUIntrinsicInfo.h"
#include "AMDGPURegisterInfo.h"
#include "AMDGPUSubtarget.h"
#include "R600MachineFunctionInfo.h"
#include "SIInstrInfo.h"
#include "SIMachineFunctionInfo.h"
#include "llvm/CodeGen/CallingConvLower.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/SelectionDAG.h"
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/Support/KnownBits.h"
#include "AMDGPUGenCallingConv.inc"
Include dependency graph for AMDGPUISelLowering.cpp:

Go to the source code of this file.

Macros

#define NODE_NAME_CASE(node)   case AMDGPUISD::node: return #node;
 

Functions

static bool allocateKernArg (unsigned ValNo, MVT ValVT, MVT LocVT, CCValAssign::LocInfo LocInfo, ISD::ArgFlagsTy ArgFlags, CCState &State)
 
static bool allocateCCRegs (unsigned ValNo, MVT ValVT, MVT LocVT, CCValAssign::LocInfo LocInfo, ISD::ArgFlagsTy ArgFlags, CCState &State, const TargetRegisterClass *RC, unsigned NumRegs)
 
static bool allocateSGPRTuple (unsigned ValNo, MVT ValVT, MVT LocVT, CCValAssign::LocInfo LocInfo, ISD::ArgFlagsTy ArgFlags, CCState &State)
 
static bool allocateVGPRTuple (unsigned ValNo, MVT ValVT, MVT LocVT, CCValAssign::LocInfo LocInfo, ISD::ArgFlagsTy ArgFlags, CCState &State)
 
static LLVM_READNONE bool fnegFoldsIntoOp (unsigned Opc)
 
static LLVM_READONLY bool opMustUseVOP3Encoding (const SDNode *N, MVT VT)
 returns true if the operation will definitely need to use a 64-bit encoding, and thus will use a VOP3 encoding regardless of the source modifiers. More...
 
static LLVM_READONLY bool hasSourceMods (const SDNode *N)
 
static bool hasDefinedInitializer (const GlobalValue *GV)
 
static SDValue extractF64Exponent (SDValue Hi, const SDLoc &SL, SelectionDAG &DAG)
 
static bool isU24 (SDValue Op, SelectionDAG &DAG)
 
static bool isI24 (SDValue Op, SelectionDAG &DAG)
 
static bool simplifyI24 (SDNode *Node24, unsigned OpIdx, TargetLowering::DAGCombinerInfo &DCI)
 
template<typename IntTy >
static SDValue constantFoldBFE (SelectionDAG &DAG, IntTy Src0, uint32_t Offset, uint32_t Width, const SDLoc &DL)
 
static bool hasVolatileUser (SDNode *Val)
 
static SDValue getMul24 (SelectionDAG &DAG, const SDLoc &SL, SDValue N0, SDValue N1, unsigned Size, bool Signed)
 
static bool isNegativeOne (SDValue Val)
 
static bool isCtlzOpc (unsigned Opc)
 
static SDValue distributeOpThroughSelect (TargetLowering::DAGCombinerInfo &DCI, unsigned Op, const SDLoc &SL, SDValue Cond, SDValue N1, SDValue N2)
 
static SDValue foldFreeOpFromSelect (TargetLowering::DAGCombinerInfo &DCI, SDValue N)
 
static bool isConstantFPZero (SDValue N)
 
static unsigned inverseMinMax (unsigned Opc)
 

Detailed Description

This is the parent TargetLowering class for hardware code gen targets.

Definition in file AMDGPUISelLowering.cpp.

Macro Definition Documentation

#define NODE_NAME_CASE (   node)    case AMDGPUISD::node: return #node;

Function Documentation

static bool allocateCCRegs ( unsigned  ValNo,
MVT  ValVT,
MVT  LocVT,
CCValAssign::LocInfo  LocInfo,
ISD::ArgFlagsTy  ArgFlags,
CCState &  State,
const TargetRegisterClass *  RC,
unsigned  NumRegs 
)
static
static bool allocateKernArg ( unsigned  ValNo,
MVT  ValVT,
MVT  LocVT,
CCValAssign::LocInfo  LocInfo,
ISD::ArgFlagsTy  ArgFlags,
CCState &  State 
)
static
static bool allocateSGPRTuple ( unsigned  ValNo,
MVT  ValVT,
MVT  LocVT,
CCValAssign::LocInfo  LocInfo,
ISD::ArgFlagsTy  ArgFlags,
CCState &  State 
)
static
static bool allocateVGPRTuple ( unsigned  ValNo,
MVT  ValVT,
MVT  LocVT,
CCValAssign::LocInfo  LocInfo,
ISD::ArgFlagsTy  ArgFlags,
CCState &  State 
)
static
template<typename IntTy >
static SDValue constantFoldBFE ( SelectionDAG &  DAG,
IntTy  Src0,
uint32_t  Offset,
uint32_t  Width,
const SDLoc &  DL 
)
static

Definition at line 2427 of file AMDGPUISelLowering.cpp.

References llvm::SelectionDAG::getConstant(), and llvm::MVT::i32.

static SDValue distributeOpThroughSelect ( TargetLowering::DAGCombinerInfo &  DCI,
unsigned  Op,
const SDLoc &  SL,
SDValue  Cond,
SDValue  N1,
SDValue  N2 
)
static
static SDValue extractF64Exponent ( SDValue  Hi,
const SDLoc &  SL,
SelectionDAG &  DAG 
)
static
static LLVM_READNONE bool fnegFoldsIntoOp ( unsigned  Opc)
static
static SDValue foldFreeOpFromSelect ( TargetLowering::DAGCombinerInfo &  DCI,
SDValue  N 
)
static
static SDValue getMul24 ( SelectionDAG &  DAG,
const SDLoc &  SL,
SDValue  N0,
SDValue  N1,
unsigned  Size,
bool  Signed 
)
static
static bool hasDefinedInitializer ( const GlobalValue *  GV)
static
static LLVM_READONLY bool hasSourceMods ( const SDNode *  N)
static
static bool hasVolatileUser ( SDNode *  Val)
static
static unsigned inverseMinMax ( unsigned  Opc)
static
static bool isConstantFPZero ( SDValue  N)
static
static bool isCtlzOpc ( unsigned  Opc)
static
static bool isI24 ( SDValue  Op,
SelectionDAG &  DAG 
)
static
static bool isNegativeOne ( SDValue  Val)
static

Definition at line 2921 of file AMDGPUISelLowering.cpp.

References C.

Referenced by llvm::AMDGPUTargetLowering::performCtlzCombine().

static bool isU24 ( SDValue  Op,
SelectionDAG &  DAG 
)
static
static LLVM_READONLY bool opMustUseVOP3Encoding ( const SDNode *  N,
MVT  VT 
)
static

returns true if the operation will definitely need to use a 64-bit encoding, and thus will use a VOP3 encoding regardless of the source modifiers.

Definition at line 614 of file AMDGPUISelLowering.cpp.

References llvm::MVT::f64, and llvm::SDNode::getNumOperands().

Referenced by llvm::AMDGPUTargetLowering::allUsesHaveSourceMods().

static bool simplifyI24 ( SDNode *  Node24,
unsigned  OpIdx,
TargetLowering::DAGCombinerInfo &  DCI 
)
static