IRHelpers: refactor getPC

Dead code removal and various cleanup while refactoring `getPC`.
This commit is contained in:
Antonio Frighetto
2021-02-26 11:10:22 +01:00
parent b150274a1f
commit 5ecb3ef752
2 changed files with 23 additions and 30 deletions
+4
View File
@@ -942,6 +942,10 @@ inline llvm::User *getUniqueUser(llvm::Value *V) {
return Result;
}
/// \brief Find the first call to newpc starting from \p TheInstruction
///
llvm::CallInst *reverseNewPCTraversal(llvm::Instruction *TheInstruction);
/// \brief Find the PC which lead to generated \p TheInstruction
///
/// \return a pair of integers: the first element represents the PC and the