LLVM 22.0.0git
LegalizeDAG.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "legalizedag"

Functions

static MachineMemOperandgetStackAlignedMMO (SDValue StackPtr, MachineFunction &MF, bool isObjectScalable)
static bool ExpandBVWithShuffles (SDNode *Node, SelectionDAG &DAG, const TargetLowering &TLI, SDValue &Res)
static bool isSinCosLibcallAvailable (SDNode *Node, const TargetLowering &TLI)
 Return true if sincos libcall is available.
static bool useSinCos (SDNode *Node)
 Only issue sincos libcall if both sin and cos are needed.
static bool canUseFastMathLibcall (const SDNode *Node)
 Return if we can use the FAST_* variant of a math libcall for the node.
static MVT getPromotedVectorElementType (const TargetLowering &TLI, MVT EltVT, MVT NewEltVT)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "legalizedag"

Definition at line 58 of file LegalizeDAG.cpp.

Function Documentation

◆ canUseFastMathLibcall()

bool canUseFastMathLibcall ( const SDNode * Node)
static

Return if we can use the FAST_* variant of a math libcall for the node.

FIXME: This is just guessing, we probably should have unique specific sets flags required per libcall.

Definition at line 4531 of file LegalizeDAG.cpp.

◆ ExpandBVWithShuffles()

◆ getPromotedVectorElementType()

MVT getPromotedVectorElementType ( const TargetLowering & TLI,
MVT EltVT,
MVT NewEltVT )
static

◆ getStackAlignedMMO()

◆ isSinCosLibcallAvailable()

bool isSinCosLibcallAvailable ( SDNode * Node,
const TargetLowering & TLI )
static

Return true if sincos libcall is available.

Definition at line 2404 of file LegalizeDAG.cpp.

References llvm::TargetLoweringBase::getLibcallName(), and llvm::RTLIB::getSINCOS().

◆ useSinCos()

bool useSinCos ( SDNode * Node)
static

Only issue sincos libcall if both sin and cos are needed.

Definition at line 2410 of file LegalizeDAG.cpp.

References llvm::SDValue::getNode(), and llvm::SDNode::users().