Skip to content

Commit b25550a

Browse files
committed
Improve StableVector
1 parent 3e68949 commit b25550a

6 files changed

Lines changed: 437 additions & 204 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ include_directories(${SQLITE3_INCLUDE_DIR})
179179
# LLVM
180180
if (NOT PHASAR_IN_TREE)
181181
# Only search for LLVM if we build out of tree
182-
find_package(LLVM 13 REQUIRED CONFIG)
182+
find_package(LLVM 12 REQUIRED CONFIG)
183183
include_directories(${LLVM_INCLUDE_DIRS})
184184
link_directories(${LLVM_LIB_PATH} ${LLVM_LIBRARY_DIRS})
185185
endif()

include/phasar/PhasarLLVM/Pointer/LLVMPointsToSet.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ class LLVMPointsToSet : public LLVMPointsToInfo {
4444
llvm::DenseSet<const llvm::Function *> AnalyzedFunctions;
4545

4646
std::pmr::unsynchronized_pool_resource MRes;
47-
4847
PointsToSetOwner<PointsToSetTy> Owner{&MRes};
48+
4949
PointsToSetMap PointsToSets;
5050

5151
void computeValuesPointsToSet(const llvm::Value *V);
@@ -76,13 +76,9 @@ class LLVMPointsToSet : public LLVMPointsToInfo {
7676

7777
public:
7878
/**
79-
* Creates points-to set(s) based on the computed alias results.
80-
*
81-
* @brief Creates points-to set(s) for a given function.
82-
* @param AA Contains the computed Alias Results.
83-
* @param F Points-to set is created for this particular function.
84-
* @param onlyConsiderMustAlias True, if only Must Aliases should be
85-
* considered. False, if May and Must Aliases should be considered.
79+
* Creates points-to set(s) for all functions in the IRDB. If
80+
* UseLazyEvaluation is true, computes points-to-sets for functions that do
81+
* not use global variables on the fly
8682
*/
8783
LLVMPointsToSet(ProjectIRDB &IRDB, bool UseLazyEvaluation = true,
8884
PointerAnalysisType PATy = PointerAnalysisType::CFLAnders);

include/phasar/PhasarLLVM/Pointer/PointsToSetOwner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ template <typename PointsToSetTy> class PointsToSetOwner {
2828
public:
2929
PointsToSetOwner(std::pmr::polymorphic_allocator<PointsToSetTy> Alloc =
3030
std::pmr::get_default_resource()) noexcept
31-
: Alloc(Alloc), AllPTS(Alloc.resource()) {}
31+
: Alloc(Alloc) {}
3232
PointsToSetOwner(PointsToSetOwner &&) noexcept = default;
3333

3434
PointsToSetOwner(const PointsToSetOwner &) = delete;

0 commit comments

Comments
 (0)