Skip to content

Commit eeb0092

Browse files
committed
Turn the getInboundsVectorElementPointer declaration into an inline definition.
1 parent fdc6c00 commit eeb0092

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

llvm/include/llvm/CodeGen/TargetLowering.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5661,7 +5661,11 @@ class LLVM_ABI TargetLowering : public TargetLoweringBase {
56615661
/// bounds. \p VecPtr is guaranteed to point to the beginning of a memory
56625662
/// location large enough for the vector.
56635663
SDValue getInboundsVectorElementPointer(SelectionDAG &DAG, SDValue VecPtr,
5664-
EVT VecVT, SDValue Index) const;
5664+
EVT VecVT, SDValue Index) const {
5665+
return getVectorElementPointer(DAG, VecPtr, VecVT, Index,
5666+
SDNodeFlags::NoUnsignedWrap |
5667+
SDNodeFlags::InBounds);
5668+
}
56655669

56665670
/// Get a pointer to a sub-vector of type \p SubVecVT at index \p Idx located
56675671
/// in memory for a vector of type \p VecVT starting at a base address of

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10678,15 +10678,6 @@ TargetLowering::getVectorElementPointer(SelectionDAG &DAG, SDValue VecPtr,
1067810678
Index, PtrArithFlags);
1067910679
}
1068010680

10681-
SDValue TargetLowering::getInboundsVectorElementPointer(SelectionDAG &DAG,
10682-
SDValue VecPtr,
10683-
EVT VecVT,
10684-
SDValue Index) const {
10685-
SDNodeFlags PtrArithFlags =
10686-
SDNodeFlags::NoUnsignedWrap | SDNodeFlags::InBounds;
10687-
return getVectorElementPointer(DAG, VecPtr, VecVT, Index, PtrArithFlags);
10688-
}
10689-
1069010681
SDValue
1069110682
TargetLowering::getVectorSubVecPointer(SelectionDAG &DAG, SDValue VecPtr,
1069210683
EVT VecVT, EVT SubVecVT, SDValue Index,

0 commit comments

Comments
 (0)