Path: blob/main/contrib/llvm-project/llvm/lib/Target/NVPTX/NVPTXISelLowering.h
35271 views
//===-- NVPTXISelLowering.h - NVPTX DAG 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// This file defines the interfaces that NVPTX uses to lower LLVM code into a9// selection DAG.10//11//===----------------------------------------------------------------------===//1213#ifndef LLVM_LIB_TARGET_NVPTX_NVPTXISELLOWERING_H14#define LLVM_LIB_TARGET_NVPTX_NVPTXISELLOWERING_H1516#include "NVPTX.h"17#include "llvm/CodeGen/SelectionDAG.h"18#include "llvm/CodeGen/TargetLowering.h"1920namespace llvm {21namespace NVPTXISD {22enum NodeType : unsigned {23// Start the numbering from where ISD NodeType finishes.24FIRST_NUMBER = ISD::BUILTIN_OP_END,25Wrapper,26CALL,27RET_GLUE,28LOAD_PARAM,29DeclareParam,30DeclareScalarParam,31DeclareRetParam,32DeclareRet,33DeclareScalarRet,34PrintCall,35PrintConvergentCall,36PrintCallUni,37PrintConvergentCallUni,38CallArgBegin,39CallArg,40LastCallArg,41CallArgEnd,42CallVoid,43CallVal,44CallSymbol,45Prototype,46MoveParam,47PseudoUseParam,48RETURN,49CallSeqBegin,50CallSeqEnd,51CallPrototype,52ProxyReg,53FUN_SHFL_CLAMP,54FUN_SHFR_CLAMP,55MUL_WIDE_SIGNED,56MUL_WIDE_UNSIGNED,57IMAD,58SETP_F16X2,59SETP_BF16X2,60BFE,61BFI,62PRMT,63DYNAMIC_STACKALLOC,64Dummy,6566LoadV2 = ISD::FIRST_TARGET_MEMORY_OPCODE,67LoadV4,68LDGV2, // LDG.v269LDGV4, // LDG.v470LDUV2, // LDU.v271LDUV4, // LDU.v472StoreV2,73StoreV4,74LoadParam,75LoadParamV2,76LoadParamV4,77StoreParam,78StoreParamV2,79StoreParamV4,80StoreParamS32, // to sext and store a <32bit value, not used currently81StoreParamU32, // to zext and store a <32bit value, not used currently82StoreRetval,83StoreRetvalV2,84StoreRetvalV4,8586// Texture intrinsics87Tex1DFloatS32,88Tex1DFloatFloat,89Tex1DFloatFloatLevel,90Tex1DFloatFloatGrad,91Tex1DS32S32,92Tex1DS32Float,93Tex1DS32FloatLevel,94Tex1DS32FloatGrad,95Tex1DU32S32,96Tex1DU32Float,97Tex1DU32FloatLevel,98Tex1DU32FloatGrad,99Tex1DArrayFloatS32,100Tex1DArrayFloatFloat,101Tex1DArrayFloatFloatLevel,102Tex1DArrayFloatFloatGrad,103Tex1DArrayS32S32,104Tex1DArrayS32Float,105Tex1DArrayS32FloatLevel,106Tex1DArrayS32FloatGrad,107Tex1DArrayU32S32,108Tex1DArrayU32Float,109Tex1DArrayU32FloatLevel,110Tex1DArrayU32FloatGrad,111Tex2DFloatS32,112Tex2DFloatFloat,113Tex2DFloatFloatLevel,114Tex2DFloatFloatGrad,115Tex2DS32S32,116Tex2DS32Float,117Tex2DS32FloatLevel,118Tex2DS32FloatGrad,119Tex2DU32S32,120Tex2DU32Float,121Tex2DU32FloatLevel,122Tex2DU32FloatGrad,123Tex2DArrayFloatS32,124Tex2DArrayFloatFloat,125Tex2DArrayFloatFloatLevel,126Tex2DArrayFloatFloatGrad,127Tex2DArrayS32S32,128Tex2DArrayS32Float,129Tex2DArrayS32FloatLevel,130Tex2DArrayS32FloatGrad,131Tex2DArrayU32S32,132Tex2DArrayU32Float,133Tex2DArrayU32FloatLevel,134Tex2DArrayU32FloatGrad,135Tex3DFloatS32,136Tex3DFloatFloat,137Tex3DFloatFloatLevel,138Tex3DFloatFloatGrad,139Tex3DS32S32,140Tex3DS32Float,141Tex3DS32FloatLevel,142Tex3DS32FloatGrad,143Tex3DU32S32,144Tex3DU32Float,145Tex3DU32FloatLevel,146Tex3DU32FloatGrad,147TexCubeFloatFloat,148TexCubeFloatFloatLevel,149TexCubeS32Float,150TexCubeS32FloatLevel,151TexCubeU32Float,152TexCubeU32FloatLevel,153TexCubeArrayFloatFloat,154TexCubeArrayFloatFloatLevel,155TexCubeArrayS32Float,156TexCubeArrayS32FloatLevel,157TexCubeArrayU32Float,158TexCubeArrayU32FloatLevel,159Tld4R2DFloatFloat,160Tld4G2DFloatFloat,161Tld4B2DFloatFloat,162Tld4A2DFloatFloat,163Tld4R2DS64Float,164Tld4G2DS64Float,165Tld4B2DS64Float,166Tld4A2DS64Float,167Tld4R2DU64Float,168Tld4G2DU64Float,169Tld4B2DU64Float,170Tld4A2DU64Float,171TexUnified1DFloatS32,172TexUnified1DFloatFloat,173TexUnified1DFloatFloatLevel,174TexUnified1DFloatFloatGrad,175TexUnified1DS32S32,176TexUnified1DS32Float,177TexUnified1DS32FloatLevel,178TexUnified1DS32FloatGrad,179TexUnified1DU32S32,180TexUnified1DU32Float,181TexUnified1DU32FloatLevel,182TexUnified1DU32FloatGrad,183TexUnified1DArrayFloatS32,184TexUnified1DArrayFloatFloat,185TexUnified1DArrayFloatFloatLevel,186TexUnified1DArrayFloatFloatGrad,187TexUnified1DArrayS32S32,188TexUnified1DArrayS32Float,189TexUnified1DArrayS32FloatLevel,190TexUnified1DArrayS32FloatGrad,191TexUnified1DArrayU32S32,192TexUnified1DArrayU32Float,193TexUnified1DArrayU32FloatLevel,194TexUnified1DArrayU32FloatGrad,195TexUnified2DFloatS32,196TexUnified2DFloatFloat,197TexUnified2DFloatFloatLevel,198TexUnified2DFloatFloatGrad,199TexUnified2DS32S32,200TexUnified2DS32Float,201TexUnified2DS32FloatLevel,202TexUnified2DS32FloatGrad,203TexUnified2DU32S32,204TexUnified2DU32Float,205TexUnified2DU32FloatLevel,206TexUnified2DU32FloatGrad,207TexUnified2DArrayFloatS32,208TexUnified2DArrayFloatFloat,209TexUnified2DArrayFloatFloatLevel,210TexUnified2DArrayFloatFloatGrad,211TexUnified2DArrayS32S32,212TexUnified2DArrayS32Float,213TexUnified2DArrayS32FloatLevel,214TexUnified2DArrayS32FloatGrad,215TexUnified2DArrayU32S32,216TexUnified2DArrayU32Float,217TexUnified2DArrayU32FloatLevel,218TexUnified2DArrayU32FloatGrad,219TexUnified3DFloatS32,220TexUnified3DFloatFloat,221TexUnified3DFloatFloatLevel,222TexUnified3DFloatFloatGrad,223TexUnified3DS32S32,224TexUnified3DS32Float,225TexUnified3DS32FloatLevel,226TexUnified3DS32FloatGrad,227TexUnified3DU32S32,228TexUnified3DU32Float,229TexUnified3DU32FloatLevel,230TexUnified3DU32FloatGrad,231TexUnifiedCubeFloatFloat,232TexUnifiedCubeFloatFloatLevel,233TexUnifiedCubeS32Float,234TexUnifiedCubeS32FloatLevel,235TexUnifiedCubeU32Float,236TexUnifiedCubeU32FloatLevel,237TexUnifiedCubeArrayFloatFloat,238TexUnifiedCubeArrayFloatFloatLevel,239TexUnifiedCubeArrayS32Float,240TexUnifiedCubeArrayS32FloatLevel,241TexUnifiedCubeArrayU32Float,242TexUnifiedCubeArrayU32FloatLevel,243TexUnifiedCubeFloatFloatGrad,244TexUnifiedCubeS32FloatGrad,245TexUnifiedCubeU32FloatGrad,246TexUnifiedCubeArrayFloatFloatGrad,247TexUnifiedCubeArrayS32FloatGrad,248TexUnifiedCubeArrayU32FloatGrad,249Tld4UnifiedR2DFloatFloat,250Tld4UnifiedG2DFloatFloat,251Tld4UnifiedB2DFloatFloat,252Tld4UnifiedA2DFloatFloat,253Tld4UnifiedR2DS64Float,254Tld4UnifiedG2DS64Float,255Tld4UnifiedB2DS64Float,256Tld4UnifiedA2DS64Float,257Tld4UnifiedR2DU64Float,258Tld4UnifiedG2DU64Float,259Tld4UnifiedB2DU64Float,260Tld4UnifiedA2DU64Float,261262// Surface intrinsics263Suld1DI8Clamp,264Suld1DI16Clamp,265Suld1DI32Clamp,266Suld1DI64Clamp,267Suld1DV2I8Clamp,268Suld1DV2I16Clamp,269Suld1DV2I32Clamp,270Suld1DV2I64Clamp,271Suld1DV4I8Clamp,272Suld1DV4I16Clamp,273Suld1DV4I32Clamp,274275Suld1DArrayI8Clamp,276Suld1DArrayI16Clamp,277Suld1DArrayI32Clamp,278Suld1DArrayI64Clamp,279Suld1DArrayV2I8Clamp,280Suld1DArrayV2I16Clamp,281Suld1DArrayV2I32Clamp,282Suld1DArrayV2I64Clamp,283Suld1DArrayV4I8Clamp,284Suld1DArrayV4I16Clamp,285Suld1DArrayV4I32Clamp,286287Suld2DI8Clamp,288Suld2DI16Clamp,289Suld2DI32Clamp,290Suld2DI64Clamp,291Suld2DV2I8Clamp,292Suld2DV2I16Clamp,293Suld2DV2I32Clamp,294Suld2DV2I64Clamp,295Suld2DV4I8Clamp,296Suld2DV4I16Clamp,297Suld2DV4I32Clamp,298299Suld2DArrayI8Clamp,300Suld2DArrayI16Clamp,301Suld2DArrayI32Clamp,302Suld2DArrayI64Clamp,303Suld2DArrayV2I8Clamp,304Suld2DArrayV2I16Clamp,305Suld2DArrayV2I32Clamp,306Suld2DArrayV2I64Clamp,307Suld2DArrayV4I8Clamp,308Suld2DArrayV4I16Clamp,309Suld2DArrayV4I32Clamp,310311Suld3DI8Clamp,312Suld3DI16Clamp,313Suld3DI32Clamp,314Suld3DI64Clamp,315Suld3DV2I8Clamp,316Suld3DV2I16Clamp,317Suld3DV2I32Clamp,318Suld3DV2I64Clamp,319Suld3DV4I8Clamp,320Suld3DV4I16Clamp,321Suld3DV4I32Clamp,322323Suld1DI8Trap,324Suld1DI16Trap,325Suld1DI32Trap,326Suld1DI64Trap,327Suld1DV2I8Trap,328Suld1DV2I16Trap,329Suld1DV2I32Trap,330Suld1DV2I64Trap,331Suld1DV4I8Trap,332Suld1DV4I16Trap,333Suld1DV4I32Trap,334335Suld1DArrayI8Trap,336Suld1DArrayI16Trap,337Suld1DArrayI32Trap,338Suld1DArrayI64Trap,339Suld1DArrayV2I8Trap,340Suld1DArrayV2I16Trap,341Suld1DArrayV2I32Trap,342Suld1DArrayV2I64Trap,343Suld1DArrayV4I8Trap,344Suld1DArrayV4I16Trap,345Suld1DArrayV4I32Trap,346347Suld2DI8Trap,348Suld2DI16Trap,349Suld2DI32Trap,350Suld2DI64Trap,351Suld2DV2I8Trap,352Suld2DV2I16Trap,353Suld2DV2I32Trap,354Suld2DV2I64Trap,355Suld2DV4I8Trap,356Suld2DV4I16Trap,357Suld2DV4I32Trap,358359Suld2DArrayI8Trap,360Suld2DArrayI16Trap,361Suld2DArrayI32Trap,362Suld2DArrayI64Trap,363Suld2DArrayV2I8Trap,364Suld2DArrayV2I16Trap,365Suld2DArrayV2I32Trap,366Suld2DArrayV2I64Trap,367Suld2DArrayV4I8Trap,368Suld2DArrayV4I16Trap,369Suld2DArrayV4I32Trap,370371Suld3DI8Trap,372Suld3DI16Trap,373Suld3DI32Trap,374Suld3DI64Trap,375Suld3DV2I8Trap,376Suld3DV2I16Trap,377Suld3DV2I32Trap,378Suld3DV2I64Trap,379Suld3DV4I8Trap,380Suld3DV4I16Trap,381Suld3DV4I32Trap,382383Suld1DI8Zero,384Suld1DI16Zero,385Suld1DI32Zero,386Suld1DI64Zero,387Suld1DV2I8Zero,388Suld1DV2I16Zero,389Suld1DV2I32Zero,390Suld1DV2I64Zero,391Suld1DV4I8Zero,392Suld1DV4I16Zero,393Suld1DV4I32Zero,394395Suld1DArrayI8Zero,396Suld1DArrayI16Zero,397Suld1DArrayI32Zero,398Suld1DArrayI64Zero,399Suld1DArrayV2I8Zero,400Suld1DArrayV2I16Zero,401Suld1DArrayV2I32Zero,402Suld1DArrayV2I64Zero,403Suld1DArrayV4I8Zero,404Suld1DArrayV4I16Zero,405Suld1DArrayV4I32Zero,406407Suld2DI8Zero,408Suld2DI16Zero,409Suld2DI32Zero,410Suld2DI64Zero,411Suld2DV2I8Zero,412Suld2DV2I16Zero,413Suld2DV2I32Zero,414Suld2DV2I64Zero,415Suld2DV4I8Zero,416Suld2DV4I16Zero,417Suld2DV4I32Zero,418419Suld2DArrayI8Zero,420Suld2DArrayI16Zero,421Suld2DArrayI32Zero,422Suld2DArrayI64Zero,423Suld2DArrayV2I8Zero,424Suld2DArrayV2I16Zero,425Suld2DArrayV2I32Zero,426Suld2DArrayV2I64Zero,427Suld2DArrayV4I8Zero,428Suld2DArrayV4I16Zero,429Suld2DArrayV4I32Zero,430431Suld3DI8Zero,432Suld3DI16Zero,433Suld3DI32Zero,434Suld3DI64Zero,435Suld3DV2I8Zero,436Suld3DV2I16Zero,437Suld3DV2I32Zero,438Suld3DV2I64Zero,439Suld3DV4I8Zero,440Suld3DV4I16Zero,441Suld3DV4I32Zero442};443}444445class NVPTXSubtarget;446447//===--------------------------------------------------------------------===//448// TargetLowering Implementation449//===--------------------------------------------------------------------===//450class NVPTXTargetLowering : public TargetLowering {451public:452explicit NVPTXTargetLowering(const NVPTXTargetMachine &TM,453const NVPTXSubtarget &STI);454SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;455456SDValue LowerGlobalAddress(SDValue Op, SelectionDAG &DAG) const;457458const char *getTargetNodeName(unsigned Opcode) const override;459460bool getTgtMemIntrinsic(IntrinsicInfo &Info, const CallInst &I,461MachineFunction &MF,462unsigned Intrinsic) const override;463464Align getFunctionArgumentAlignment(const Function *F, Type *Ty, unsigned Idx,465const DataLayout &DL) const;466467/// getFunctionParamOptimizedAlign - since function arguments are passed via468/// .param space, we may want to increase their alignment in a way that469/// ensures that we can effectively vectorize their loads & stores. We can470/// increase alignment only if the function has internal or has private471/// linkage as for other linkage types callers may already rely on default472/// alignment. To allow using 128-bit vectorized loads/stores, this function473/// ensures that alignment is 16 or greater.474Align getFunctionParamOptimizedAlign(const Function *F, Type *ArgTy,475const DataLayout &DL) const;476477/// Helper for computing alignment of a device function byval parameter.478Align getFunctionByValParamAlign(const Function *F, Type *ArgTy,479Align InitialAlign,480const DataLayout &DL) const;481482// Helper for getting a function parameter name. Name is composed from483// its index and the function name. Negative index corresponds to special484// parameter (unsized array) used for passing variable arguments.485std::string getParamName(const Function *F, int Idx) const;486487/// isLegalAddressingMode - Return true if the addressing mode represented488/// by AM is legal for this target, for a load/store of the specified type489/// Used to guide target specific optimizations, like loop strength490/// reduction (LoopStrengthReduce.cpp) and memory optimization for491/// address mode (CodeGenPrepare.cpp)492bool isLegalAddressingMode(const DataLayout &DL, const AddrMode &AM, Type *Ty,493unsigned AS,494Instruction *I = nullptr) const override;495496bool isTruncateFree(Type *SrcTy, Type *DstTy) const override {497// Truncating 64-bit to 32-bit is free in SASS.498if (!SrcTy->isIntegerTy() || !DstTy->isIntegerTy())499return false;500return SrcTy->getPrimitiveSizeInBits() == 64 &&501DstTy->getPrimitiveSizeInBits() == 32;502}503504EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Ctx,505EVT VT) const override {506if (VT.isVector())507return EVT::getVectorVT(Ctx, MVT::i1, VT.getVectorNumElements());508return MVT::i1;509}510511ConstraintType getConstraintType(StringRef Constraint) const override;512std::pair<unsigned, const TargetRegisterClass *>513getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,514StringRef Constraint, MVT VT) const override;515516SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,517bool isVarArg,518const SmallVectorImpl<ISD::InputArg> &Ins,519const SDLoc &dl, SelectionDAG &DAG,520SmallVectorImpl<SDValue> &InVals) const override;521522SDValue LowerCall(CallLoweringInfo &CLI,523SmallVectorImpl<SDValue> &InVals) const override;524525SDValue LowerDYNAMIC_STACKALLOC(SDValue Op, SelectionDAG &DAG) const;526527std::string528getPrototype(const DataLayout &DL, Type *, const ArgListTy &,529const SmallVectorImpl<ISD::OutputArg> &, MaybeAlign retAlignment,530std::optional<std::pair<unsigned, const APInt &>> VAInfo,531const CallBase &CB, unsigned UniqueCallSite) const;532533SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,534const SmallVectorImpl<ISD::OutputArg> &Outs,535const SmallVectorImpl<SDValue> &OutVals, const SDLoc &dl,536SelectionDAG &DAG) const override;537538void LowerAsmOperandForConstraint(SDValue Op, StringRef Constraint,539std::vector<SDValue> &Ops,540SelectionDAG &DAG) const override;541542const NVPTXTargetMachine *nvTM;543544// PTX always uses 32-bit shift amounts545MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override {546return MVT::i32;547}548549TargetLoweringBase::LegalizeTypeAction550getPreferredVectorAction(MVT VT) const override;551552// Get the degree of precision we want from 32-bit floating point division553// operations.554//555// 0 - Use ptx div.approx556// 1 - Use ptx.div.full (approximate, but less so than div.approx)557// 2 - Use IEEE-compliant div instructions, if available.558int getDivF32Level() const;559560// Get whether we should use a precise or approximate 32-bit floating point561// sqrt instruction.562bool usePrecSqrtF32() const;563564// Get whether we should use instructions that flush floating-point denormals565// to sign-preserving zero.566bool useF32FTZ(const MachineFunction &MF) const;567568SDValue getSqrtEstimate(SDValue Operand, SelectionDAG &DAG, int Enabled,569int &ExtraSteps, bool &UseOneConst,570bool Reciprocal) const override;571572unsigned combineRepeatedFPDivisors() const override { return 2; }573574bool allowFMA(MachineFunction &MF, CodeGenOptLevel OptLevel) const;575bool allowUnsafeFPMath(MachineFunction &MF) const;576577bool isFMAFasterThanFMulAndFAdd(const MachineFunction &MF,578EVT) const override {579return true;580}581582bool enableAggressiveFMAFusion(EVT VT) const override { return true; }583584// The default is to transform llvm.ctlz(x, false) (where false indicates that585// x == 0 is not undefined behavior) into a branch that checks whether x is 0586// and avoids calling ctlz in that case. We have a dedicated ctlz587// instruction, so we say that ctlz is cheap to speculate.588bool isCheapToSpeculateCtlz(Type *Ty) const override { return true; }589590AtomicExpansionKind shouldCastAtomicLoadInIR(LoadInst *LI) const override {591return AtomicExpansionKind::None;592}593594AtomicExpansionKind shouldCastAtomicStoreInIR(StoreInst *SI) const override {595return AtomicExpansionKind::None;596}597598AtomicExpansionKind599shouldExpandAtomicRMWInIR(AtomicRMWInst *AI) const override;600601bool aggressivelyPreferBuildVectorSources(EVT VecVT) const override {602// There's rarely any point of packing something into a vector type if we603// already have the source data.604return true;605}606607private:608const NVPTXSubtarget &STI; // cache the subtarget here609SDValue getParamSymbol(SelectionDAG &DAG, int idx, EVT) const;610611SDValue LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const;612SDValue LowerCONCAT_VECTORS(SDValue Op, SelectionDAG &DAG) const;613SDValue LowerEXTRACT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const;614SDValue LowerINSERT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const;615SDValue LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const;616617SDValue LowerFROUND(SDValue Op, SelectionDAG &DAG) const;618SDValue LowerFROUND32(SDValue Op, SelectionDAG &DAG) const;619SDValue LowerFROUND64(SDValue Op, SelectionDAG &DAG) const;620621SDValue LowerINT_TO_FP(SDValue Op, SelectionDAG &DAG) const;622SDValue LowerFP_TO_INT(SDValue Op, SelectionDAG &DAG) const;623624SDValue LowerFP_ROUND(SDValue Op, SelectionDAG &DAG) const;625SDValue LowerFP_EXTEND(SDValue Op, SelectionDAG &DAG) const;626627SDValue LowerLOAD(SDValue Op, SelectionDAG &DAG) const;628SDValue LowerLOADi1(SDValue Op, SelectionDAG &DAG) const;629630SDValue LowerSTORE(SDValue Op, SelectionDAG &DAG) const;631SDValue LowerSTOREi1(SDValue Op, SelectionDAG &DAG) const;632SDValue LowerSTOREVector(SDValue Op, SelectionDAG &DAG) const;633634SDValue LowerShiftRightParts(SDValue Op, SelectionDAG &DAG) const;635SDValue LowerShiftLeftParts(SDValue Op, SelectionDAG &DAG) const;636637SDValue LowerSelect(SDValue Op, SelectionDAG &DAG) const;638639SDValue LowerVAARG(SDValue Op, SelectionDAG &DAG) const;640SDValue LowerVASTART(SDValue Op, SelectionDAG &DAG) const;641642SDValue LowerCopyToReg_128(SDValue Op, SelectionDAG &DAG) const;643unsigned getNumRegisters(LLVMContext &Context, EVT VT,644std::optional<MVT> RegisterVT) const override;645bool646splitValueIntoRegisterParts(SelectionDAG &DAG, const SDLoc &DL, SDValue Val,647SDValue *Parts, unsigned NumParts, MVT PartVT,648std::optional<CallingConv::ID> CC) const override;649650void ReplaceNodeResults(SDNode *N, SmallVectorImpl<SDValue> &Results,651SelectionDAG &DAG) const override;652SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;653654Align getArgumentAlignment(const CallBase *CB, Type *Ty, unsigned Idx,655const DataLayout &DL) const;656};657658} // namespace llvm659660#endif661662663