Skip to content

Commit

Permalink
Move out of line
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenm authored and tru committed Oct 15, 2024
1 parent f12830a commit 139d737
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/include/llvm/CodeGen/FastISel.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,7 @@ class FastISel {
Register getRegForGEPIndex(MVT PtrVT, const Value *Idx);

/// Retained for ABI compatibility in release branch.
Register getRegForGEPIndex(const Value *Idx) {
return getRegForGEPIndex(TLI.getPointerTy(DL), Idx);
}
Register getRegForGEPIndex(const Value *Idx);

/// We're checking to see if we can fold \p LI into \p FoldInst. Note
/// that we could have a sequence where multiple LLVM IR instructions are
Expand Down
4 changes: 4 additions & 0 deletions llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ Register FastISel::getRegForGEPIndex(MVT PtrVT, const Value *Idx) {
return IdxN;
}

Register FastISel::getRegForGEPIndex(const Value *Idx) {
return getRegForGEPIndex(TLI.getPointerTy(DL), Idx);
}

void FastISel::recomputeInsertPt() {
if (getLastLocalValue()) {
FuncInfo.InsertPt = getLastLocalValue();
Expand Down

0 comments on commit 139d737

Please sign in to comment.