LLVM 19.0.0git
Macros | Functions
NVPTXISelDAGToDAG.cpp File Reference
#include "NVPTXISelDAGToDAG.h"
#include "MCTargetDesc/NVPTXBaseInfo.h"
#include "NVPTXUtilities.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/CodeGen/ISDOpcodes.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicsNVPTX.h"
#include "llvm/Support/AtomicOrdering.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetIntrinsicInfo.h"

Go to the source code of this file.


#define DEBUG_TYPE   "nvptx-isel"
#define PASS_NAME   "NVPTX DAG->DAG Pattern Instruction Selection"


static unsigned getPTXCmpMode (const CondCodeSDNode &CondCode, bool FTZ)
static unsigned int getCodeAddrSpace (MemSDNode *N)
static bool canLowerToLDG (MemSDNode *N, const NVPTXSubtarget &Subtarget, unsigned CodeAddrSpace, MachineFunction *F)
static std::optional< unsignedpickOpcodeForVT (MVT::SimpleValueType VT, unsigned Opcode_i8, unsigned Opcode_i16, unsigned Opcode_i32, std::optional< unsigned > Opcode_i64, unsigned Opcode_f32, std::optional< unsigned > Opcode_f64)
static int getLdStRegType (EVT VT)

Macro Definition Documentation


#define DEBUG_TYPE   "nvptx-isel"

Definition at line 30 of file NVPTXISelDAGToDAG.cpp.


#define PASS_NAME   "NVPTX DAG->DAG Pattern Instruction Selection"

Definition at line 31 of file NVPTXISelDAGToDAG.cpp.

Function Documentation

◆ canLowerToLDG()

static bool canLowerToLDG ( MemSDNode N,
const NVPTXSubtarget Subtarget,
unsigned  CodeAddrSpace,
MachineFunction F 

◆ getCodeAddrSpace()

static unsigned int getCodeAddrSpace ( MemSDNode N)

◆ getLdStRegType()

static int getLdStRegType ( EVT  VT)

◆ getPTXCmpMode()

static unsigned getPTXCmpMode ( const CondCodeSDNode CondCode,
bool  FTZ 

◆ pickOpcodeForVT()

static std::optional< unsigned > pickOpcodeForVT ( MVT::SimpleValueType  VT,
unsigned  Opcode_i8,
unsigned  Opcode_i16,
unsigned  Opcode_i32,
std::optional< unsigned Opcode_i64,
unsigned  Opcode_f32,
std::optional< unsigned Opcode_f64 

Definition at line 832 of file NVPTXISelDAGToDAG.cpp.