class SelectionDAGTargetInfo
Declaration
class SelectionDAGTargetInfo { /* full declaration omitted */ };
Description
Targets can subclass this to parameterize the SelectionDAG lowering and instruction selection process.
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:31
Method Overview
- public virtual std::pair<SDValue, SDValue> EmitTargetCodeForMemchr(llvm::SelectionDAG & DAG, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Src, llvm::SDValue Char, llvm::SDValue Length, llvm::MachinePointerInfo SrcPtrInfo) const
- public virtual std::pair<SDValue, SDValue> EmitTargetCodeForMemcmp(llvm::SelectionDAG & DAG, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue Op3, llvm::MachinePointerInfo Op1PtrInfo, llvm::MachinePointerInfo Op2PtrInfo) const
- public virtual llvm::SDValue EmitTargetCodeForMemcpy(llvm::SelectionDAG & DAG, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue Op3, llvm::Align Alignment, bool isVolatile, bool AlwaysInline, llvm::MachinePointerInfo DstPtrInfo, llvm::MachinePointerInfo SrcPtrInfo) const
- public virtual llvm::SDValue EmitTargetCodeForMemmove(llvm::SelectionDAG & DAG, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue Op3, llvm::Align Alignment, bool isVolatile, llvm::MachinePointerInfo DstPtrInfo, llvm::MachinePointerInfo SrcPtrInfo) const
- public virtual llvm::SDValue EmitTargetCodeForMemset(llvm::SelectionDAG & DAG, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue Op3, llvm::Align Alignment, bool isVolatile, bool AlwaysInline, llvm::MachinePointerInfo DstPtrInfo) const
- public virtual llvm::SDValue EmitTargetCodeForSetTag(llvm::SelectionDAG & DAG, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Addr, llvm::SDValue Size, llvm::MachinePointerInfo DstPtrInfo, bool ZeroData) const
- public virtual std::pair<SDValue, SDValue> EmitTargetCodeForStrcmp(llvm::SelectionDAG & DAG, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Op1, llvm::SDValue Op2, llvm::MachinePointerInfo Op1PtrInfo, llvm::MachinePointerInfo Op2PtrInfo) const
- public virtual std::pair<SDValue, SDValue> EmitTargetCodeForStrcpy(llvm::SelectionDAG & DAG, const llvm::SDLoc & DL, llvm::SDValue Chain, llvm::SDValue Dest, llvm::SDValue Src, llvm::MachinePointerInfo DestPtrInfo, llvm::MachinePointerInfo SrcPtrInfo, bool isStpcpy) const
- public virtual std::pair<SDValue, SDValue> EmitTargetCodeForStrlen(llvm::SelectionDAG & DAG, const llvm::SDLoc & DL, llvm::SDValue Chain, llvm::SDValue Src, llvm::MachinePointerInfo SrcPtrInfo) const
- public virtual std::pair<SDValue, SDValue> EmitTargetCodeForStrnlen(llvm::SelectionDAG & DAG, const llvm::SDLoc & DL, llvm::SDValue Chain, llvm::SDValue Src, llvm::SDValue MaxLength, llvm::MachinePointerInfo SrcPtrInfo) const
- public SelectionDAGTargetInfo()
- public SelectionDAGTargetInfo(const llvm::SelectionDAGTargetInfo &)
- public virtual bool disableGenericCombines(CodeGenOpt::Level OptLevel) const
- public virtual ~SelectionDAGTargetInfo()
Methods
¶virtual std::pair<SDValue, SDValue>
EmitTargetCodeForMemchr(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Src,
llvm::SDValue Char,
llvm::SDValue Length,
llvm::MachinePointerInfo SrcPtrInfo) const
virtual std::pair<SDValue, SDValue>
EmitTargetCodeForMemchr(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Src,
llvm::SDValue Char,
llvm::SDValue Length,
llvm::MachinePointerInfo SrcPtrInfo) const
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:107
Parameters
- llvm::SelectionDAG& DAG
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Src
- llvm::SDValue Char
- llvm::SDValue Length
- llvm::MachinePointerInfo SrcPtrInfo
¶virtual std::pair<SDValue, SDValue>
EmitTargetCodeForMemcmp(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::MachinePointerInfo Op1PtrInfo,
llvm::MachinePointerInfo Op2PtrInfo) const
virtual std::pair<SDValue, SDValue>
EmitTargetCodeForMemcmp(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::MachinePointerInfo Op1PtrInfo,
llvm::MachinePointerInfo Op2PtrInfo) const
Description
Emit target-specific code that performs a memcmp/bcmp, 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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:95
Parameters
- llvm::SelectionDAG& DAG
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue Op3
- llvm::MachinePointerInfo Op1PtrInfo
- llvm::MachinePointerInfo Op2PtrInfo
¶virtual llvm::SDValue EmitTargetCodeForMemcpy(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::Align Alignment,
bool isVolatile,
bool AlwaysInline,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo) const
virtual llvm::SDValue EmitTargetCodeForMemcpy(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::Align Alignment,
bool isVolatile,
bool AlwaysInline,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo) const
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:51
Parameters
- llvm::SelectionDAG& DAG
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue Op3
- llvm::Align Alignment
- bool isVolatile
- bool AlwaysInline
- llvm::MachinePointerInfo DstPtrInfo
- llvm::MachinePointerInfo SrcPtrInfo
¶virtual llvm::SDValue EmitTargetCodeForMemmove(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::Align Alignment,
bool isVolatile,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo) const
virtual llvm::SDValue EmitTargetCodeForMemmove(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::Align Alignment,
bool isVolatile,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo) const
Description
Emit target-specific code that performs a memmove. 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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:67
Parameters
- llvm::SelectionDAG& DAG
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue Op3
- llvm::Align Alignment
- bool isVolatile
- llvm::MachinePointerInfo DstPtrInfo
- llvm::MachinePointerInfo SrcPtrInfo
¶virtual llvm::SDValue EmitTargetCodeForMemset(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::Align Alignment,
bool isVolatile,
bool AlwaysInline,
llvm::MachinePointerInfo DstPtrInfo) const
virtual llvm::SDValue EmitTargetCodeForMemset(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::Align Alignment,
bool isVolatile,
bool AlwaysInline,
llvm::MachinePointerInfo DstPtrInfo) const
Description
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. Note that if AlwaysInline is true the function has to return a valid SDValue.
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:81
Parameters
- llvm::SelectionDAG& DAG
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue Op3
- llvm::Align Alignment
- bool isVolatile
- bool AlwaysInline
- llvm::MachinePointerInfo DstPtrInfo
¶virtual llvm::SDValue EmitTargetCodeForSetTag(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Addr,
llvm::SDValue Size,
llvm::MachinePointerInfo DstPtrInfo,
bool ZeroData) const
virtual llvm::SDValue EmitTargetCodeForSetTag(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Addr,
llvm::SDValue Size,
llvm::MachinePointerInfo DstPtrInfo,
bool ZeroData) const
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:152
Parameters
- llvm::SelectionDAG& DAG
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Addr
- llvm::SDValue Size
- llvm::MachinePointerInfo DstPtrInfo
- bool ZeroData
¶virtual std::pair<SDValue, SDValue>
EmitTargetCodeForStrcmp(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::MachinePointerInfo Op1PtrInfo,
llvm::MachinePointerInfo Op2PtrInfo) const
virtual std::pair<SDValue, SDValue>
EmitTargetCodeForStrcmp(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::MachinePointerInfo Op1PtrInfo,
llvm::MachinePointerInfo Op2PtrInfo) const
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:132
Parameters
- llvm::SelectionDAG& DAG
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::MachinePointerInfo Op1PtrInfo
- llvm::MachinePointerInfo Op2PtrInfo
¶virtual std::pair<SDValue, SDValue>
EmitTargetCodeForStrcpy(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& DL,
llvm::SDValue Chain,
llvm::SDValue Dest,
llvm::SDValue Src,
llvm::MachinePointerInfo DestPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo,
bool isStpcpy) const
virtual std::pair<SDValue, SDValue>
EmitTargetCodeForStrcpy(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& DL,
llvm::SDValue Chain,
llvm::SDValue Dest,
llvm::SDValue Src,
llvm::MachinePointerInfo DestPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo,
bool isStpcpy) const
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:120
Parameters
- llvm::SelectionDAG& DAG
- const llvm::SDLoc& DL
- llvm::SDValue Chain
- llvm::SDValue Dest
- llvm::SDValue Src
- llvm::MachinePointerInfo DestPtrInfo
- llvm::MachinePointerInfo SrcPtrInfo
- bool isStpcpy
¶virtual std::pair<SDValue, SDValue>
EmitTargetCodeForStrlen(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& DL,
llvm::SDValue Chain,
llvm::SDValue Src,
llvm::MachinePointerInfo SrcPtrInfo) const
virtual std::pair<SDValue, SDValue>
EmitTargetCodeForStrlen(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& DL,
llvm::SDValue Chain,
llvm::SDValue Src,
llvm::MachinePointerInfo SrcPtrInfo) const
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:140
Parameters
- llvm::SelectionDAG& DAG
- const llvm::SDLoc& DL
- llvm::SDValue Chain
- llvm::SDValue Src
- llvm::MachinePointerInfo SrcPtrInfo
¶virtual std::pair<SDValue, SDValue>
EmitTargetCodeForStrnlen(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& DL,
llvm::SDValue Chain,
llvm::SDValue Src,
llvm::SDValue MaxLength,
llvm::MachinePointerInfo SrcPtrInfo) const
virtual std::pair<SDValue, SDValue>
EmitTargetCodeForStrnlen(
llvm::SelectionDAG& DAG,
const llvm::SDLoc& DL,
llvm::SDValue Chain,
llvm::SDValue Src,
llvm::SDValue MaxLength,
llvm::MachinePointerInfo SrcPtrInfo) const
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:146
Parameters
- llvm::SelectionDAG& DAG
- const llvm::SDLoc& DL
- llvm::SDValue Chain
- llvm::SDValue Src
- llvm::SDValue MaxLength
- llvm::MachinePointerInfo SrcPtrInfo
¶SelectionDAGTargetInfo()
SelectionDAGTargetInfo()
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:33
¶SelectionDAGTargetInfo(
const llvm::SelectionDAGTargetInfo&)
SelectionDAGTargetInfo(
const llvm::SelectionDAGTargetInfo&)
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:34
Parameters
- const llvm::SelectionDAGTargetInfo&
¶virtual bool disableGenericCombines(
CodeGenOpt::Level OptLevel) const
virtual bool disableGenericCombines(
CodeGenOpt::Level OptLevel) const
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:161
Parameters
- CodeGenOpt::Level OptLevel
¶virtual ~SelectionDAGTargetInfo()
virtual ~SelectionDAGTargetInfo()
Declared at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:36