LLVM API Documentation
#include <SystemZSelectionDAGInfo.h>
Definition at line 23 of file SystemZSelectionDAGInfo.h.
SystemZSelectionDAGInfo::SystemZSelectionDAGInfo | ( | const DataLayout & | DL | ) | [explicit] |
Definition at line 21 of file SystemZSelectionDAGInfo.cpp.
Definition at line 24 of file SystemZSelectionDAGInfo.cpp.
std::pair< SDValue, SDValue > SystemZSelectionDAGInfo::EmitTargetCodeForMemchr | ( | SelectionDAG & | DAG, |
SDLoc | dl, | ||
SDValue | Chain, | ||
SDValue | Src, | ||
SDValue | Char, | ||
SDValue | Length, | ||
MachinePointerInfo | SrcPtrInfo | ||
) | const [override, virtual] |
EmitTargetCodeForMemchr - Emit target-specific code that performs a memchr, in cases where that is faster than a libcall. The first returned SDValue is the result of the memchr and the second is the chain. Both SDValues can be null if a normal libcall should be used.
Reimplemented from llvm::TargetSelectionDAGInfo.
Definition at line 207 of file SystemZSelectionDAGInfo.cpp.
References llvm::ISD::ADD, llvm::ISD::AND, llvm::SystemZ::CCMASK_SRST, llvm::SystemZ::CCMASK_SRST_FOUND, llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), llvm::SDValue::getValue(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getVTList(), llvm::SelectionDAG::getZExtOrTrunc(), llvm::MVT::Glue, llvm::MVT::i32, llvm::MVT::Other, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::SystemZISD::SEARCH_STRING, and llvm::SystemZISD::SELECT_CCMASK.
std::pair< SDValue, SDValue > SystemZSelectionDAGInfo::EmitTargetCodeForMemcmp | ( | SelectionDAG & | DAG, |
SDLoc | dl, | ||
SDValue | Chain, | ||
SDValue | Op1, | ||
SDValue | Op2, | ||
SDValue | Op3, | ||
MachinePointerInfo | Op1PtrInfo, | ||
MachinePointerInfo | Op2PtrInfo | ||
) | const [override, virtual] |
EmitTargetCodeForMemcmp - Emit target-specific code that performs a memcmp, in cases where that is faster than a libcall. The first returned SDValue is the result of the memcmp and the second is the chain. Both SDValues can be null if a normal libcall should be used.
Reimplemented from llvm::TargetSelectionDAGInfo.
Definition at line 192 of file SystemZSelectionDAGInfo.cpp.
References addIPMSequence(), emitCLC(), and llvm::SDValue::getValue().
SDValue SystemZSelectionDAGInfo::EmitTargetCodeForMemcpy | ( | SelectionDAG & | DAG, |
SDLoc | dl, | ||
SDValue | Chain, | ||
SDValue | Op1, | ||
SDValue | Op2, | ||
SDValue | Op3, | ||
unsigned | Align, | ||
bool | isVolatile, | ||
bool | AlwaysInline, | ||
MachinePointerInfo | DstPtrInfo, | ||
MachinePointerInfo | SrcPtrInfo | ||
) | const [override, 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.
Reimplemented from llvm::TargetSelectionDAGInfo.
Definition at line 56 of file SystemZSelectionDAGInfo.cpp.
References emitMemMem(), llvm::SystemZISD::MVC, and llvm::SystemZISD::MVC_LOOP.
SDValue SystemZSelectionDAGInfo::EmitTargetCodeForMemset | ( | SelectionDAG & | DAG, |
SDLoc | dl, | ||
SDValue | Chain, | ||
SDValue | Op1, | ||
SDValue | Op2, | ||
SDValue | Op3, | ||
unsigned | Align, | ||
bool | isVolatile, | ||
MachinePointerInfo | DstPtrInfo | ||
) | const [override, 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 86 of file SystemZSelectionDAGInfo.cpp.
References llvm::ISD::ADD, llvm::CountPopulation_64(), llvm::dyn_cast(), emitMemMem(), llvm::findLastSet(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), llvm::SelectionDAG::getStore(), llvm::SDValue::getValueType(), llvm::MachinePointerInfo::getWithOffset(), memsetStore(), llvm::SystemZISD::MVC, llvm::SystemZISD::MVC_LOOP, llvm::MVT::Other, llvm::ISD::TokenFactor, llvm::SystemZISD::XC, and llvm::SystemZISD::XC_LOOP.
std::pair< SDValue, SDValue > SystemZSelectionDAGInfo::EmitTargetCodeForStrcmp | ( | SelectionDAG & | DAG, |
SDLoc | dl, | ||
SDValue | Chain, | ||
SDValue | Op1, | ||
SDValue | Op2, | ||
MachinePointerInfo | Op1PtrInfo, | ||
MachinePointerInfo | Op2PtrInfo | ||
) | const [override, virtual] |
EmitTargetCodeForStrcmp - Emit target-specific code that performs a strcmp, in cases where that is faster than a libcall. The first returned SDValue is the result of the strcmp and the second is the chain. Both SDValues can be null if a normal libcall should be used.
Reimplemented from llvm::TargetSelectionDAGInfo.
Definition at line 248 of file SystemZSelectionDAGInfo.cpp.
References addIPMSequence(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), llvm::SDValue::getValue(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getVTList(), llvm::MVT::Glue, llvm::MVT::i32, llvm::MVT::Other, and llvm::SystemZISD::STRCMP.
std::pair< SDValue, SDValue > SystemZSelectionDAGInfo::EmitTargetCodeForStrcpy | ( | SelectionDAG & | DAG, |
SDLoc | DL, | ||
SDValue | Chain, | ||
SDValue | Dest, | ||
SDValue | Src, | ||
MachinePointerInfo | DestPtrInfo, | ||
MachinePointerInfo | SrcPtrInfo, | ||
bool | isStpcpy | ||
) | const [override, virtual] |
EmitTargetCodeForStrcpy - Emit target-specific code that performs a strcpy or stpcpy, in cases where that is faster than a libcall. The first returned SDValue is the result of the copy (the start of the destination string for strcpy, a pointer to the null terminator for stpcpy) and the second is the chain. Both SDValues can be null if a normal libcall should be used.
Reimplemented from llvm::TargetSelectionDAGInfo.
Definition at line 237 of file SystemZSelectionDAGInfo.cpp.
References llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), llvm::SDValue::getValue(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getVTList(), llvm::MVT::i32, llvm::MVT::Other, and llvm::SystemZISD::STPCPY.
std::pair< SDValue, SDValue > SystemZSelectionDAGInfo::EmitTargetCodeForStrlen | ( | SelectionDAG & | DAG, |
SDLoc | DL, | ||
SDValue | Chain, | ||
SDValue | Src, | ||
MachinePointerInfo | SrcPtrInfo | ||
) | const [override, virtual] |
Reimplemented from llvm::TargetSelectionDAGInfo.
Definition at line 278 of file SystemZSelectionDAGInfo.cpp.
References getBoundedStrlen(), llvm::SelectionDAG::getConstant(), and llvm::SDValue::getValueType().
std::pair< SDValue, SDValue > SystemZSelectionDAGInfo::EmitTargetCodeForStrnlen | ( | SelectionDAG & | DAG, |
SDLoc | DL, | ||
SDValue | Chain, | ||
SDValue | Src, | ||
SDValue | MaxLength, | ||
MachinePointerInfo | SrcPtrInfo | ||
) | const [override, virtual] |
Reimplemented from llvm::TargetSelectionDAGInfo.
Definition at line 285 of file SystemZSelectionDAGInfo.cpp.
References llvm::ISD::ADD, getBoundedStrlen(), llvm::SelectionDAG::getNode(), llvm::SDValue::getValueType(), and llvm::SelectionDAG::getZExtOrTrunc().