13#ifndef LLVM_LIB_TARGET_NVPTX_NVPTXISELDAGTODAG_H
14#define LLVM_LIB_TARGET_NVPTX_NVPTXISELDAGTODAG_H
44 bool usePrecSqrtF32(
const SDNode *
N)
const;
45 bool useF32FTZ()
const;
46 bool allowFMA()
const;
47 bool doRsqrtOpt()
const;
61 std::vector<SDValue> &OutOps)
override;
65#include "NVPTXGenDAGISel.inc"
68 bool tryIntrinsicChain(
SDNode *
N);
69 bool tryIntrinsicVoid(
SDNode *
N);
70 void SelectTexSurfHandle(
SDNode *
N);
78 void SelectAddrSpaceCast(
SDNode *
N);
80 bool tryBF16ArithToFMA(
SDNode *
N);
82 bool SelectSETP_F16X2(
SDNode *
N);
83 bool SelectSETP_BF16X2(
SDNode *
N);
84 bool tryUNPACK_VECTOR(
SDNode *
N);
85 bool tryEXTRACT_VECTOR_ELEMENT(
SDNode *
N);
86 void SelectV2I64toI128(
SDNode *
N);
87 void SelectI128toV2I64(
SDNode *
N);
88 void SelectCpAsyncBulkTensorG2SCommon(
SDNode *
N,
bool IsIm2Col =
false);
89 void SelectCpAsyncBulkTensorReduceCommon(
SDNode *
N,
unsigned RedOp,
90 bool IsIm2Col =
false);
91 void SelectTcgen05Ld(
SDNode *
N,
bool hasOffset =
false);
92 void SelectTcgen05St(
SDNode *
N,
bool hasOffset =
false);
93 void selectAtomicSwap128(
SDNode *
N);
96 return CurDAG->getTargetConstant(Imm,
DL, MVT::i32);
109 std::pair<NVPTX::Ordering, NVPTX::Scope>
115 static unsigned getFromTypeWidthForLoad(
const MemSDNode *Mem);
AMDGPU Register Bank Select
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
#define LLVM_LIBRARY_VISIBILITY
This file implements a map that provides insertion order iteration.
This is an important class for using LLVM in a threaded context.
This is an abstract virtual class for memory operations.
NVPTXDAGToDAGISelLegacy(NVPTXTargetMachine &tm, CodeGenOptLevel OptLevel)
bool runOnMachineFunction(MachineFunction &MF) override
NVPTXDAGToDAGISel()=delete
bool SelectInlineAsmMemoryOperand(const SDValue &Op, InlineAsm::ConstraintCode ConstraintID, std::vector< SDValue > &OutOps) override
SelectInlineAsmMemoryOperand - Implement addressing mode selection for inline asm expressions.
const NVPTXSubtarget * Subtarget
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
Represents one node in the SelectionDAG.
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation.
SelectionDAGISelLegacy(char &ID, std::unique_ptr< SelectionDAGISel > S)
SelectionDAGISel(TargetMachine &tm, CodeGenOptLevel OL=CodeGenOptLevel::Default)
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
CodeGenOptLevel
Code generation optimization level.
DWARFExpression::Operation Op
NVPTX::Scope operator[](SyncScope::ID ID) const
A MapVector that performs no allocations if smaller than a certain size.