LLVM  13.0.0git
Macros | Functions
LegalizeDAG.cpp File Reference
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/CodeGen/ISDOpcodes.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineJumpTableInfo.h"
#include "llvm/CodeGen/MachineMemOperand.h"
#include "llvm/CodeGen/RuntimeLibcalls.h"
#include "llvm/CodeGen/SelectionDAG.h"
#include "llvm/CodeGen/SelectionDAGNodes.h"
#include "llvm/CodeGen/TargetFrameLowering.h"
#include "llvm/CodeGen/TargetLowering.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/CodeGen/ValueTypes.h"
#include "llvm/IR/CallingConv.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Type.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MachineValueType.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <tuple>
#include <utility>
Include dependency graph for LegalizeDAG.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "legalizedag"
 

Functions

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. More...
 
static bool useSinCos (SDNode *Node)
 Only issue sincos libcall if both sin and cos are needed. More...
 
static MVT getPromotedVectorElementType (const TargetLowering &TLI, MVT EltVT, MVT NewEltVT)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "legalizedag"

Definition at line 56 of file LegalizeDAG.cpp.

Function Documentation

◆ ExpandBVWithShuffles()

static bool ExpandBVWithShuffles ( SDNode Node,
SelectionDAG DAG,
const TargetLowering TLI,
SDValue Res 
)
static

Definition at line 1760 of file LegalizeDAG.cpp.

◆ getPromotedVectorElementType()

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

◆ isSinCosLibcallAvailable()

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

Return true if sincos libcall is available.

Definition at line 2194 of file LegalizeDAG.cpp.

◆ useSinCos()

static bool useSinCos ( SDNode Node)
static

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

Definition at line 2208 of file LegalizeDAG.cpp.