Path: blob/main/contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
35269 views
//===-- AMDGPUISelLowering.h - AMDGPU Lowering Interface --------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8/// \file9/// Interface definition of the TargetLowering class that is common10/// to all AMD GPUs.11//12//===----------------------------------------------------------------------===//1314#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUISELLOWERING_H15#define LLVM_LIB_TARGET_AMDGPU_AMDGPUISELLOWERING_H1617#include "llvm/CodeGen/CallingConvLower.h"18#include "llvm/CodeGen/TargetLowering.h"1920namespace llvm {2122class AMDGPUMachineFunction;23class AMDGPUSubtarget;24struct ArgDescriptor;2526class AMDGPUTargetLowering : public TargetLowering {27private:28const AMDGPUSubtarget *Subtarget;2930/// \returns AMDGPUISD::FFBH_U32 node if the incoming \p Op may have been31/// legalized from a smaller type VT. Need to match pre-legalized type because32/// the generic legalization inserts the add/sub between the select and33/// compare.34SDValue getFFBX_U32(SelectionDAG &DAG, SDValue Op, const SDLoc &DL, unsigned Opc) const;3536public:37/// \returns The minimum number of bits needed to store the value of \Op as an38/// unsigned integer. Truncating to this size and then zero-extending to the39/// original size will not change the value.40static unsigned numBitsUnsigned(SDValue Op, SelectionDAG &DAG);4142/// \returns The minimum number of bits needed to store the value of \Op as a43/// signed integer. Truncating to this size and then sign-extending to the44/// original size will not change the value.45static unsigned numBitsSigned(SDValue Op, SelectionDAG &DAG);4647protected:48SDValue LowerEXTRACT_SUBVECTOR(SDValue Op, SelectionDAG &DAG) const;49SDValue LowerCONCAT_VECTORS(SDValue Op, SelectionDAG &DAG) const;50/// Split a vector store into multiple scalar stores.51/// \returns The resulting chain.5253SDValue LowerFREM(SDValue Op, SelectionDAG &DAG) const;54SDValue LowerFCEIL(SDValue Op, SelectionDAG &DAG) const;55SDValue LowerFTRUNC(SDValue Op, SelectionDAG &DAG) const;56SDValue LowerFRINT(SDValue Op, SelectionDAG &DAG) const;57SDValue LowerFNEARBYINT(SDValue Op, SelectionDAG &DAG) const;5859SDValue LowerFROUNDEVEN(SDValue Op, SelectionDAG &DAG) const;60SDValue LowerFROUND(SDValue Op, SelectionDAG &DAG) const;61SDValue LowerFFLOOR(SDValue Op, SelectionDAG &DAG) const;6263static bool allowApproxFunc(const SelectionDAG &DAG, SDNodeFlags Flags);64static bool needsDenormHandlingF32(const SelectionDAG &DAG, SDValue Src,65SDNodeFlags Flags);66SDValue getIsLtSmallestNormal(SelectionDAG &DAG, SDValue Op,67SDNodeFlags Flags) const;68SDValue getIsFinite(SelectionDAG &DAG, SDValue Op, SDNodeFlags Flags) const;69std::pair<SDValue, SDValue> getScaledLogInput(SelectionDAG &DAG,70const SDLoc SL, SDValue Op,71SDNodeFlags Flags) const;7273SDValue LowerFLOG2(SDValue Op, SelectionDAG &DAG) const;74SDValue LowerFLOGCommon(SDValue Op, SelectionDAG &DAG) const;75SDValue LowerFLOG10(SDValue Op, SelectionDAG &DAG) const;76SDValue LowerFLOGUnsafe(SDValue Op, const SDLoc &SL, SelectionDAG &DAG,77bool IsLog10, SDNodeFlags Flags) const;78SDValue lowerFEXP2(SDValue Op, SelectionDAG &DAG) const;7980SDValue lowerFEXPUnsafe(SDValue Op, const SDLoc &SL, SelectionDAG &DAG,81SDNodeFlags Flags) const;82SDValue lowerFEXP10Unsafe(SDValue Op, const SDLoc &SL, SelectionDAG &DAG,83SDNodeFlags Flags) const;84SDValue lowerFEXP(SDValue Op, SelectionDAG &DAG) const;8586SDValue lowerCTLZResults(SDValue Op, SelectionDAG &DAG) const;8788SDValue LowerCTLZ_CTTZ(SDValue Op, SelectionDAG &DAG) const;8990SDValue LowerINT_TO_FP32(SDValue Op, SelectionDAG &DAG, bool Signed) const;91SDValue LowerINT_TO_FP64(SDValue Op, SelectionDAG &DAG, bool Signed) const;92SDValue LowerUINT_TO_FP(SDValue Op, SelectionDAG &DAG) const;93SDValue LowerSINT_TO_FP(SDValue Op, SelectionDAG &DAG) const;9495SDValue LowerFP_TO_INT64(SDValue Op, SelectionDAG &DAG, bool Signed) const;96SDValue LowerFP_TO_FP16(SDValue Op, SelectionDAG &DAG) const;97SDValue LowerFP_TO_INT(SDValue Op, SelectionDAG &DAG) const;9899SDValue LowerSIGN_EXTEND_INREG(SDValue Op, SelectionDAG &DAG) const;100101protected:102bool shouldCombineMemoryType(EVT VT) const;103SDValue performLoadCombine(SDNode *N, DAGCombinerInfo &DCI) const;104SDValue performStoreCombine(SDNode *N, DAGCombinerInfo &DCI) const;105SDValue performAssertSZExtCombine(SDNode *N, DAGCombinerInfo &DCI) const;106SDValue performIntrinsicWOChainCombine(SDNode *N, DAGCombinerInfo &DCI) const;107108SDValue splitBinaryBitConstantOpImpl(DAGCombinerInfo &DCI, const SDLoc &SL,109unsigned Opc, SDValue LHS,110uint32_t ValLo, uint32_t ValHi) const;111SDValue performShlCombine(SDNode *N, DAGCombinerInfo &DCI) const;112SDValue performSraCombine(SDNode *N, DAGCombinerInfo &DCI) const;113SDValue performSrlCombine(SDNode *N, DAGCombinerInfo &DCI) const;114SDValue performTruncateCombine(SDNode *N, DAGCombinerInfo &DCI) const;115SDValue performMulCombine(SDNode *N, DAGCombinerInfo &DCI) const;116SDValue performMulLoHiCombine(SDNode *N, DAGCombinerInfo &DCI) const;117SDValue performMulhsCombine(SDNode *N, DAGCombinerInfo &DCI) const;118SDValue performMulhuCombine(SDNode *N, DAGCombinerInfo &DCI) const;119SDValue performCtlz_CttzCombine(const SDLoc &SL, SDValue Cond, SDValue LHS,120SDValue RHS, DAGCombinerInfo &DCI) const;121122SDValue foldFreeOpFromSelect(TargetLowering::DAGCombinerInfo &DCI,123SDValue N) const;124SDValue performSelectCombine(SDNode *N, DAGCombinerInfo &DCI) const;125126TargetLowering::NegatibleCost127getConstantNegateCost(const ConstantFPSDNode *C) const;128129bool isConstantCostlierToNegate(SDValue N) const;130bool isConstantCheaperToNegate(SDValue N) const;131SDValue performFNegCombine(SDNode *N, DAGCombinerInfo &DCI) const;132SDValue performFAbsCombine(SDNode *N, DAGCombinerInfo &DCI) const;133SDValue performRcpCombine(SDNode *N, DAGCombinerInfo &DCI) const;134135static EVT getEquivalentMemType(LLVMContext &Context, EVT VT);136137virtual SDValue LowerGlobalAddress(AMDGPUMachineFunction *MFI, SDValue Op,138SelectionDAG &DAG) const;139140/// Return 64-bit value Op as two 32-bit integers.141std::pair<SDValue, SDValue> split64BitValue(SDValue Op,142SelectionDAG &DAG) const;143SDValue getLoHalf64(SDValue Op, SelectionDAG &DAG) const;144SDValue getHiHalf64(SDValue Op, SelectionDAG &DAG) const;145146/// Split a vector type into two parts. The first part is a power of two147/// vector. The second part is whatever is left over, and is a scalar if it148/// would otherwise be a 1-vector.149std::pair<EVT, EVT> getSplitDestVTs(const EVT &VT, SelectionDAG &DAG) const;150151/// Split a vector value into two parts of types LoVT and HiVT. HiVT could be152/// scalar.153std::pair<SDValue, SDValue> splitVector(const SDValue &N, const SDLoc &DL,154const EVT &LoVT, const EVT &HighVT,155SelectionDAG &DAG) const;156157/// Split a vector load into 2 loads of half the vector.158SDValue SplitVectorLoad(SDValue Op, SelectionDAG &DAG) const;159160/// Widen a suitably aligned v3 load. For all other cases, split the input161/// vector load.162SDValue WidenOrSplitVectorLoad(SDValue Op, SelectionDAG &DAG) const;163164/// Split a vector store into 2 stores of half the vector.165SDValue SplitVectorStore(SDValue Op, SelectionDAG &DAG) const;166167SDValue LowerSTORE(SDValue Op, SelectionDAG &DAG) const;168SDValue LowerSDIVREM(SDValue Op, SelectionDAG &DAG) const;169SDValue LowerUDIVREM(SDValue Op, SelectionDAG &DAG) const;170SDValue LowerDIVREM24(SDValue Op, SelectionDAG &DAG, bool sign) const;171void LowerUDIVREM64(SDValue Op, SelectionDAG &DAG,172SmallVectorImpl<SDValue> &Results) const;173174void analyzeFormalArgumentsCompute(175CCState &State,176const SmallVectorImpl<ISD::InputArg> &Ins) const;177178public:179AMDGPUTargetLowering(const TargetMachine &TM, const AMDGPUSubtarget &STI);180181bool mayIgnoreSignedZero(SDValue Op) const;182183static inline SDValue stripBitcast(SDValue Val) {184return Val.getOpcode() == ISD::BITCAST ? Val.getOperand(0) : Val;185}186187static bool shouldFoldFNegIntoSrc(SDNode *FNeg, SDValue FNegSrc);188static bool allUsesHaveSourceMods(const SDNode *N,189unsigned CostThreshold = 4);190bool isFAbsFree(EVT VT) const override;191bool isFNegFree(EVT VT) const override;192bool isTruncateFree(EVT Src, EVT Dest) const override;193bool isTruncateFree(Type *Src, Type *Dest) const override;194195bool isZExtFree(Type *Src, Type *Dest) const override;196bool isZExtFree(EVT Src, EVT Dest) const override;197198SDValue getNegatedExpression(SDValue Op, SelectionDAG &DAG,199bool LegalOperations, bool ForCodeSize,200NegatibleCost &Cost,201unsigned Depth) const override;202203bool isNarrowingProfitable(EVT SrcVT, EVT DestVT) const override;204205bool isDesirableToCommuteWithShift(const SDNode *N,206CombineLevel Level) const override;207208EVT getTypeForExtReturn(LLVMContext &Context, EVT VT,209ISD::NodeType ExtendKind) const override;210211MVT getVectorIdxTy(const DataLayout &) const override;212bool isSelectSupported(SelectSupportKind) const override;213214bool isFPImmLegal(const APFloat &Imm, EVT VT,215bool ForCodeSize) const override;216bool ShouldShrinkFPConstant(EVT VT) const override;217bool shouldReduceLoadWidth(SDNode *Load,218ISD::LoadExtType ExtType,219EVT ExtVT) const override;220221bool isLoadBitCastBeneficial(EVT, EVT, const SelectionDAG &DAG,222const MachineMemOperand &MMO) const final;223224bool storeOfVectorConstantIsCheap(bool IsZero, EVT MemVT,225unsigned NumElem,226unsigned AS) const override;227bool aggressivelyPreferBuildVectorSources(EVT VecVT) const override;228bool isCheapToSpeculateCttz(Type *Ty) const override;229bool isCheapToSpeculateCtlz(Type *Ty) const override;230231bool isSDNodeAlwaysUniform(const SDNode *N) const override;232233// FIXME: This hook should not exist234AtomicExpansionKind shouldCastAtomicLoadInIR(LoadInst *LI) const override {235return AtomicExpansionKind::None;236}237238AtomicExpansionKind shouldCastAtomicStoreInIR(StoreInst *SI) const override {239return AtomicExpansionKind::None;240}241242AtomicExpansionKind shouldCastAtomicRMWIInIR(AtomicRMWInst *) const override {243return AtomicExpansionKind::None;244}245246static CCAssignFn *CCAssignFnForCall(CallingConv::ID CC, bool IsVarArg);247static CCAssignFn *CCAssignFnForReturn(CallingConv::ID CC, bool IsVarArg);248249SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,250const SmallVectorImpl<ISD::OutputArg> &Outs,251const SmallVectorImpl<SDValue> &OutVals, const SDLoc &DL,252SelectionDAG &DAG) const override;253254SDValue addTokenForArgument(SDValue Chain,255SelectionDAG &DAG,256MachineFrameInfo &MFI,257int ClobberedFI) const;258259SDValue lowerUnhandledCall(CallLoweringInfo &CLI,260SmallVectorImpl<SDValue> &InVals,261StringRef Reason) const;262SDValue LowerCall(CallLoweringInfo &CLI,263SmallVectorImpl<SDValue> &InVals) const override;264265SDValue LowerDYNAMIC_STACKALLOC(SDValue Op, SelectionDAG &DAG) const;266SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;267SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;268void ReplaceNodeResults(SDNode * N,269SmallVectorImpl<SDValue> &Results,270SelectionDAG &DAG) const override;271272SDValue combineFMinMaxLegacyImpl(const SDLoc &DL, EVT VT, SDValue LHS,273SDValue RHS, SDValue True, SDValue False,274SDValue CC, DAGCombinerInfo &DCI) const;275276SDValue combineFMinMaxLegacy(const SDLoc &DL, EVT VT, SDValue LHS,277SDValue RHS, SDValue True, SDValue False,278SDValue CC, DAGCombinerInfo &DCI) const;279280const char* getTargetNodeName(unsigned Opcode) const override;281282// FIXME: Turn off MergeConsecutiveStores() before Instruction Selection for283// AMDGPU. Commit r319036,284// (https://github.com/llvm/llvm-project/commit/db77e57ea86d941a4262ef60261692f4cb6893e6)285// turned on MergeConsecutiveStores() before Instruction Selection for all286// targets. Enough AMDGPU compiles go into an infinite loop (287// MergeConsecutiveStores() merges two stores; LegalizeStoreOps() un-merges;288// MergeConsecutiveStores() re-merges, etc. ) to warrant turning it off for289// now.290bool mergeStoresAfterLegalization(EVT) const override { return false; }291292bool isFsqrtCheap(SDValue Operand, SelectionDAG &DAG) const override {293return true;294}295SDValue getSqrtEstimate(SDValue Operand, SelectionDAG &DAG, int Enabled,296int &RefinementSteps, bool &UseOneConstNR,297bool Reciprocal) const override;298SDValue getRecipEstimate(SDValue Operand, SelectionDAG &DAG, int Enabled,299int &RefinementSteps) const override;300301virtual SDNode *PostISelFolding(MachineSDNode *N,302SelectionDAG &DAG) const = 0;303304/// Determine which of the bits specified in \p Mask are known to be305/// either zero or one and return them in the \p KnownZero and \p KnownOne306/// bitsets.307void computeKnownBitsForTargetNode(const SDValue Op,308KnownBits &Known,309const APInt &DemandedElts,310const SelectionDAG &DAG,311unsigned Depth = 0) const override;312313unsigned ComputeNumSignBitsForTargetNode(SDValue Op, const APInt &DemandedElts,314const SelectionDAG &DAG,315unsigned Depth = 0) const override;316317unsigned computeNumSignBitsForTargetInstr(GISelKnownBits &Analysis,318Register R,319const APInt &DemandedElts,320const MachineRegisterInfo &MRI,321unsigned Depth = 0) const override;322323bool isKnownNeverNaNForTargetNode(SDValue Op,324const SelectionDAG &DAG,325bool SNaN = false,326unsigned Depth = 0) const override;327328bool isReassocProfitable(MachineRegisterInfo &MRI, Register N0,329Register N1) const override;330331/// Helper function that adds Reg to the LiveIn list of the DAG's332/// MachineFunction.333///334/// \returns a RegisterSDNode representing Reg if \p RawReg is true, otherwise335/// a copy from the register.336SDValue CreateLiveInRegister(SelectionDAG &DAG,337const TargetRegisterClass *RC,338Register Reg, EVT VT,339const SDLoc &SL,340bool RawReg = false) const;341SDValue CreateLiveInRegister(SelectionDAG &DAG,342const TargetRegisterClass *RC,343Register Reg, EVT VT) const {344return CreateLiveInRegister(DAG, RC, Reg, VT, SDLoc(DAG.getEntryNode()));345}346347// Returns the raw live in register rather than a copy from it.348SDValue CreateLiveInRegisterRaw(SelectionDAG &DAG,349const TargetRegisterClass *RC,350Register Reg, EVT VT) const {351return CreateLiveInRegister(DAG, RC, Reg, VT, SDLoc(DAG.getEntryNode()), true);352}353354/// Similar to CreateLiveInRegister, except value maybe loaded from a stack355/// slot rather than passed in a register.356SDValue loadStackInputValue(SelectionDAG &DAG,357EVT VT,358const SDLoc &SL,359int64_t Offset) const;360361SDValue storeStackInputValue(SelectionDAG &DAG,362const SDLoc &SL,363SDValue Chain,364SDValue ArgVal,365int64_t Offset) const;366367SDValue loadInputValue(SelectionDAG &DAG,368const TargetRegisterClass *RC,369EVT VT, const SDLoc &SL,370const ArgDescriptor &Arg) const;371372enum ImplicitParameter {373FIRST_IMPLICIT,374PRIVATE_BASE,375SHARED_BASE,376QUEUE_PTR,377};378379/// Helper function that returns the byte offset of the given380/// type of implicit parameter.381uint32_t getImplicitParameterOffset(const MachineFunction &MF,382const ImplicitParameter Param) const;383uint32_t getImplicitParameterOffset(const uint64_t ExplicitKernArgSize,384const ImplicitParameter Param) const;385386MVT getFenceOperandTy(const DataLayout &DL) const override {387return MVT::i32;388}389390AtomicExpansionKind shouldExpandAtomicRMWInIR(AtomicRMWInst *) const override;391392bool shouldSinkOperands(Instruction *I,393SmallVectorImpl<Use *> &Ops) const override;394};395396namespace AMDGPUISD {397398enum NodeType : unsigned {399// AMDIL ISD Opcodes400FIRST_NUMBER = ISD::BUILTIN_OP_END,401UMUL, // 32bit unsigned multiplication402BRANCH_COND,403// End AMDIL ISD Opcodes404405// Function call.406CALL,407TC_RETURN,408TC_RETURN_GFX,409TC_RETURN_CHAIN,410TRAP,411412// Masked control flow nodes.413IF,414ELSE,415LOOP,416417// A uniform kernel return that terminates the wavefront.418ENDPGM,419420// s_endpgm, but we may want to insert it in the middle of the block.421ENDPGM_TRAP,422423// "s_trap 2" equivalent on hardware that does not support it.424SIMULATED_TRAP,425426// Return to a shader part's epilog code.427RETURN_TO_EPILOG,428429// Return with values from a non-entry function.430RET_GLUE,431432// Convert a unswizzled wave uniform stack address to an address compatible433// with a vector offset for use in stack access.434WAVE_ADDRESS,435436DWORDADDR,437FRACT,438439/// CLAMP value between 0.0 and 1.0. NaN clamped to 0, following clamp output440/// modifier behavior with dx10_enable.441CLAMP,442443// This is SETCC with the full mask result which is used for a compare with a444// result bit per item in the wavefront.445SETCC,446SETREG,447448DENORM_MODE,449450// FP ops with input and output chain.451FMA_W_CHAIN,452FMUL_W_CHAIN,453454// SIN_HW, COS_HW - f32 for SI, 1 ULP max error, valid from -100 pi to 100 pi.455// Denormals handled on some parts.456COS_HW,457SIN_HW,458FMAX_LEGACY,459FMIN_LEGACY,460461FMAX3,462SMAX3,463UMAX3,464FMIN3,465SMIN3,466UMIN3,467FMED3,468SMED3,469UMED3,470FMAXIMUM3,471FMINIMUM3,472FDOT2,473URECIP,474DIV_SCALE,475DIV_FMAS,476DIV_FIXUP,477// For emitting ISD::FMAD when f32 denormals are enabled because mac/mad is478// treated as an illegal operation.479FMAD_FTZ,480481// RCP, RSQ - For f32, 1 ULP max error, no denormal handling.482// For f64, max error 2^29 ULP, handles denormals.483RCP,484RSQ,485RCP_LEGACY,486RCP_IFLAG,487488// log2, no denormal handling for f32.489LOG,490491// exp2, no denormal handling for f32.492EXP,493494FMUL_LEGACY,495RSQ_CLAMP,496FP_CLASS,497DOT4,498CARRY,499BORROW,500BFE_U32, // Extract range of bits with zero extension to 32-bits.501BFE_I32, // Extract range of bits with sign extension to 32-bits.502BFI, // (src0 & src1) | (~src0 & src2)503BFM, // Insert a range of bits into a 32-bit word.504FFBH_U32, // ctlz with -1 if input is zero.505FFBH_I32,506FFBL_B32, // cttz with -1 if input is zero.507MUL_U24,508MUL_I24,509MULHI_U24,510MULHI_I24,511MAD_U24,512MAD_I24,513MAD_U64_U32,514MAD_I64_I32,515PERM,516TEXTURE_FETCH,517R600_EXPORT,518CONST_ADDRESS,519REGISTER_LOAD,520REGISTER_STORE,521SAMPLE,522SAMPLEB,523SAMPLED,524SAMPLEL,525526// These cvt_f32_ubyte* nodes need to remain consecutive and in order.527CVT_F32_UBYTE0,528CVT_F32_UBYTE1,529CVT_F32_UBYTE2,530CVT_F32_UBYTE3,531532// Convert two float 32 numbers into a single register holding two packed f16533// with round to zero.534CVT_PKRTZ_F16_F32,535CVT_PKNORM_I16_F32,536CVT_PKNORM_U16_F32,537CVT_PK_I16_I32,538CVT_PK_U16_U32,539540// Same as the standard node, except the high bits of the resulting integer541// are known 0.542FP_TO_FP16,543544/// This node is for VLIW targets and it is used to represent a vector545/// that is stored in consecutive registers with the same channel.546/// For example:547/// |X |Y|Z|W|548/// T0|v.x| | | |549/// T1|v.y| | | |550/// T2|v.z| | | |551/// T3|v.w| | | |552BUILD_VERTICAL_VECTOR,553/// Pointer to the start of the shader's constant data.554CONST_DATA_PTR,555PC_ADD_REL_OFFSET,556LDS,557FPTRUNC_ROUND_UPWARD,558FPTRUNC_ROUND_DOWNWARD,559560DUMMY_CHAIN,561FIRST_MEM_OPCODE_NUMBER = ISD::FIRST_TARGET_MEMORY_OPCODE,562LOAD_D16_HI,563LOAD_D16_LO,564LOAD_D16_HI_I8,565LOAD_D16_HI_U8,566LOAD_D16_LO_I8,567LOAD_D16_LO_U8,568569STORE_MSKOR,570LOAD_CONSTANT,571TBUFFER_STORE_FORMAT,572TBUFFER_STORE_FORMAT_D16,573TBUFFER_LOAD_FORMAT,574TBUFFER_LOAD_FORMAT_D16,575DS_ORDERED_COUNT,576ATOMIC_CMP_SWAP,577BUFFER_LOAD,578BUFFER_LOAD_UBYTE,579BUFFER_LOAD_USHORT,580BUFFER_LOAD_BYTE,581BUFFER_LOAD_SHORT,582BUFFER_LOAD_TFE,583BUFFER_LOAD_UBYTE_TFE,584BUFFER_LOAD_USHORT_TFE,585BUFFER_LOAD_BYTE_TFE,586BUFFER_LOAD_SHORT_TFE,587BUFFER_LOAD_FORMAT,588BUFFER_LOAD_FORMAT_TFE,589BUFFER_LOAD_FORMAT_D16,590SBUFFER_LOAD,591SBUFFER_LOAD_BYTE,592SBUFFER_LOAD_UBYTE,593SBUFFER_LOAD_SHORT,594SBUFFER_LOAD_USHORT,595BUFFER_STORE,596BUFFER_STORE_BYTE,597BUFFER_STORE_SHORT,598BUFFER_STORE_FORMAT,599BUFFER_STORE_FORMAT_D16,600BUFFER_ATOMIC_SWAP,601BUFFER_ATOMIC_ADD,602BUFFER_ATOMIC_SUB,603BUFFER_ATOMIC_SMIN,604BUFFER_ATOMIC_UMIN,605BUFFER_ATOMIC_SMAX,606BUFFER_ATOMIC_UMAX,607BUFFER_ATOMIC_AND,608BUFFER_ATOMIC_OR,609BUFFER_ATOMIC_XOR,610BUFFER_ATOMIC_INC,611BUFFER_ATOMIC_DEC,612BUFFER_ATOMIC_CMPSWAP,613BUFFER_ATOMIC_CSUB,614BUFFER_ATOMIC_FADD,615BUFFER_ATOMIC_FMIN,616BUFFER_ATOMIC_FMAX,617BUFFER_ATOMIC_COND_SUB_U32,618619LAST_AMDGPU_ISD_NUMBER620};621622} // End namespace AMDGPUISD623624} // End namespace llvm625626#endif627628629