LLVM API Documentation
#include <X86SelectionDAGInfo.h>
Additional Inherited Members | |
![]() | |
const DataLayout * | getDataLayout () const |
Definition at line 25 of file X86SelectionDAGInfo.h.
|
explicit |
Definition at line 20 of file X86SelectionDAGInfo.cpp.
X86SelectionDAGInfo::~X86SelectionDAGInfo | ( | ) |
Definition at line 26 of file X86SelectionDAGInfo.cpp.
|
virtual |
EmitTargetCodeForMemcpy - Emit target-specific code that performs a memcpy. This can be used by targets to provide code sequences for cases that don't fit the target's parameters for simple loads/stores and can be more efficient than using a library call. This function can return a null SDValue if the target declines to use custom code and a different lowering strategy should be used.
If AlwaysInline is true, the size is constant and the target should not emit any calls and is strongly encouraged to attempt to emit inline code even if it is beyond the usual threshold because this intrinsic is being expanded in a place where calls are not feasible (e.g. within the prologue for another call). If the target chooses to decline an AlwaysInline request here, legalize will resort to using simple loads and stores.
If not DWORD aligned, it is more efficient to call the library. However if calling the library is not allowed (AlwaysInline), then soldier on as the code generated here is better than the long load-store sequence we would otherwise get.
Reimplemented from llvm::TargetSelectionDAGInfo.
Definition at line 176 of file X86SelectionDAGInfo.cpp.
References llvm::ISD::ADD, Align(), llvm::array_lengthof(), llvm::dyn_cast(), llvm::N86::ECX, llvm::N86::EDI, llvm::N86::ESI, llvm::MachinePointerInfo::getAddrSpace(), llvm::X86RegisterInfo::getBaseRegister(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getCopyToReg(), llvm::SelectionDAG::getIntPtrConstant(), llvm::SelectionDAG::getMachineFunction(), llvm::X86Subtarget::getMaxInlineSizeThreshold(), llvm::SelectionDAG::getMemcpy(), llvm::SelectionDAG::getNode(), llvm::TargetMachine::getRegisterInfo(), llvm::MVT::getSizeInBits(), llvm::SelectionDAG::getTarget(), llvm::SDValue::getValue(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getValueType(), llvm::SelectionDAG::getVTList(), llvm::MachinePointerInfo::getWithOffset(), llvm::ConstantSDNode::getZExtValue(), llvm::MVT::Glue, llvm::X86RegisterInfo::hasBasePointer(), llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::MVT::i8, llvm::X86Subtarget::is64Bit(), llvm::MVT::Other, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::X86ISD::REP_MOVS, llvm::SmallVectorTemplateCommon< T >::size(), and llvm::ISD::TokenFactor.
|
virtual |
EmitTargetCodeForMemset - Emit target-specific code that performs a memset. This can be used by targets to provide code sequences for cases that don't fit the target's parameters for simple stores and can be more efficient than using a library call. This function can return a null SDValue if the target declines to use custom code and a different lowering strategy should be used.
Reimplemented from llvm::TargetSelectionDAGInfo.
Definition at line 30 of file X86SelectionDAGInfo.cpp.
References llvm::ISD::ADD, llvm::A64CC::AL, Align(), llvm::ISD::AND, llvm::array_lengthof(), llvm::EVT::bitsGT(), llvm::CallingConv::C, llvm::dyn_cast(), llvm::N86::EAX, llvm::N86::ECX, llvm::N86::EDI, llvm::MachinePointerInfo::getAddrSpace(), llvm::X86Subtarget::getBZeroEntry(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getContext(), llvm::SelectionDAG::getCopyToReg(), llvm::TargetSelectionDAGInfo::getDataLayout(), llvm::SelectionDAG::getExternalSymbol(), llvm::SelectionDAG::getIntPtrConstant(), llvm::DataLayout::getIntPtrType(), llvm::X86Subtarget::getMaxInlineSizeThreshold(), llvm::SelectionDAG::getMemset(), llvm::SelectionDAG::getNode(), llvm::TargetLoweringBase::getPointerTy(), llvm::EVT::getSizeInBits(), llvm::SDValue::getValue(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getValueType(), llvm::Type::getVoidTy(), llvm::SelectionDAG::getVTList(), llvm::MachinePointerInfo::getWithOffset(), llvm::ConstantSDNode::getZExtValue(), llvm::MVT::Glue, llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::MVT::i8, llvm::X86Subtarget::is64Bit(), llvm::ConstantSDNode::isNullValue(), llvm::TargetLowering::LowerCallTo(), llvm::TargetLowering::ArgListEntry::Node, llvm::MVT::Other, llvm::X86ISD::REP_STOS, and llvm::TargetLowering::ArgListEntry::Ty.