LLVM 18.0.0git
Macros | Functions | Variables
AMDGPUISelDAGToDAG.cpp File Reference

Defines an instruction selector for the AMDGPU target. More...

#include "AMDGPUISelDAGToDAG.h"
#include "AMDGPU.h"
#include "AMDGPUInstrInfo.h"
#include "AMDGPUSubtarget.h"
#include "AMDGPUTargetMachine.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "MCTargetDesc/R600MCTargetDesc.h"
#include "R600RegisterInfo.h"
#include "SIMachineFunctionInfo.h"
#include "llvm/Analysis/UniformityAnalysis.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/CodeGen/FunctionLoweringInfo.h"
#include "llvm/CodeGen/SelectionDAG.h"
#include "llvm/CodeGen/SelectionDAGISel.h"
#include "llvm/CodeGen/SelectionDAGNodes.h"
#include "llvm/IR/IntrinsicsAMDGPU.h"
#include "llvm/InitializePasses.h"
#include "llvm/Support/ErrorHandling.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "amdgpu-isel"
 

Functions

 INITIALIZE_PASS_BEGIN (AMDGPUDAGToDAGISel, "amdgpu-isel", "AMDGPU DAG->DAG Pattern Instruction Selection", false, false) INITIALIZE_PASS_END(AMDGPUDAGToDAGISel
 
static bool getBaseWithOffsetUsingSplitOR (SelectionDAG &DAG, SDValue Addr, SDValue &N0, SDValue &N1)
 
static bool IsCopyFromSGPR (const SIRegisterInfo &TRI, SDValue Val)
 
static MemSDNodefindMemSDNode (SDNode *N)
 
static SDValue matchZExtFromI32 (SDValue Op)
 
static SDValue SelectSAddrFI (SelectionDAG *CurDAG, SDValue SAddr)
 
static unsigned gwsIntrinToOpcode (unsigned IntrID)
 

Variables

amdgpu isel
 
amdgpu AMDGPU DAG DAG Pattern Instruction Selection
 
amdgpu AMDGPU DAG DAG Pattern Instruction false
 

Detailed Description

Defines an instruction selector for the AMDGPU target.

Definition in file AMDGPUISelDAGToDAG.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "amdgpu-isel"

Definition at line 38 of file AMDGPUISelDAGToDAG.cpp.

Function Documentation

◆ findMemSDNode()

static MemSDNode * findMemSDNode ( SDNode N)
static

◆ getBaseWithOffsetUsingSplitOR()

static bool getBaseWithOffsetUsingSplitOR ( SelectionDAG DAG,
SDValue  Addr,
SDValue N0,
SDValue N1 
)
static

◆ gwsIntrinToOpcode()

static unsigned gwsIntrinToOpcode ( unsigned  IntrID)
static

Definition at line 2378 of file AMDGPUISelDAGToDAG.cpp.

References llvm_unreachable.

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( AMDGPUDAGToDAGISel  ,
"amdgpu-isel"  ,
"AMDGPU DAG->DAG Pattern Instruction Selection"  ,
false  ,
false   
)

◆ IsCopyFromSGPR()

static bool IsCopyFromSGPR ( const SIRegisterInfo TRI,
SDValue  Val 
)
static

◆ matchZExtFromI32()

static SDValue matchZExtFromI32 ( SDValue  Op)
static

◆ SelectSAddrFI()

static SDValue SelectSAddrFI ( SelectionDAG CurDAG,
SDValue  SAddr 
)
static

Variable Documentation

◆ false

amdgpu AMDGPU DAG DAG Pattern Instruction false

Definition at line 110 of file AMDGPUISelDAGToDAG.cpp.

◆ isel

amdgpu isel

Definition at line 109 of file AMDGPUISelDAGToDAG.cpp.

◆ Selection

amdgpu AMDGPU DAG DAG Pattern Instruction Selection