Skip to content

Commit 61fae42

Browse files
committed
Turn the getInboundsVectorElementPointer declaration into an inline definition.
1 parent 50f481b commit 61fae42

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
@@ -5638,7 +5638,11 @@ class LLVM_ABI TargetLowering : public TargetLoweringBase {
56385638
/// bounds. \p VecPtr is guaranteed to point to the beginning of a memory
56395639
/// location large enough for the vector.
56405640
SDValue getInboundsVectorElementPointer(SelectionDAG &DAG, SDValue VecPtr,
5641-
EVT VecVT, SDValue Index) const;
5641+
EVT VecVT, SDValue Index) const {
5642+
return getVectorElementPointer(DAG, VecPtr, VecVT, Index,
5643+
SDNodeFlags::NoUnsignedWrap |
5644+
SDNodeFlags::InBounds);
5645+
}
56425646

56435647
/// Get a pointer to a sub-vector of type \p SubVecVT at index \p Idx located
56445648
/// 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)