mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Added a virtual method isVectorClearMaskLegal to TLI. It is similar to
isShuffleMaskLegal, used to determine if it makes sense to turn a "vector clear" (e.g. pand V, <0, -1, 0, -1> to a shuffle of the vector and a zero vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27873 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7afbb73632
commit
c313c66a88
@ -200,6 +200,16 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// isVectorClearMaskLegal - Similar to isShuffleMaskLegal. This is
|
||||||
|
/// used by Targets can use this to indicate if there is a suitable
|
||||||
|
/// VECTOR_SHUFFLE that can be used to replace a VAND with a constant
|
||||||
|
/// pool entry.
|
||||||
|
virtual bool isVectorClearMaskLegal(std::vector<SDOperand> &BVOps,
|
||||||
|
MVT::ValueType EVT,
|
||||||
|
SelectionDAG &DAG) const {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/// getOperationAction - Return how this operation should be treated: either
|
/// getOperationAction - Return how this operation should be treated: either
|
||||||
/// it is legal, needs to be promoted to a larger size, needs to be
|
/// it is legal, needs to be promoted to a larger size, needs to be
|
||||||
/// expanded to some other code sequence, or the target has a custom expander
|
/// expanded to some other code sequence, or the target has a custom expander
|
||||||
|
Loading…
x
Reference in New Issue
Block a user