Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions llvm/include/llvm/Transforms/Utils/SCCPSolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,12 @@ class SCCPSolver {

/// getTrackedGlobals - Get and return the set of inferred initializers for
/// global variables.
const DenseMap<GlobalVariable *, ValueLatticeElement> &getTrackedGlobals();
const DenseMap<GlobalVariable *, ValueLatticeElement> &
getTrackedGlobals() const;

/// getMRVFunctionsTracked - Get the set of functions which return multiple
/// values tracked by the pass.
const SmallPtrSet<Function *, 16> &getMRVFunctionsTracked();
const SmallPtrSet<Function *, 16> &getMRVFunctionsTracked() const;

/// markOverdefined - Mark the specified value overdefined. This
/// works with both scalars and structs.
Expand Down
11 changes: 6 additions & 5 deletions llvm/lib/Transforms/Utils/SCCPSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,15 +839,16 @@ class SCCPInstVisitor : public InstVisitor<SCCPInstVisitor> {
return I->second;
}

const MapVector<Function *, ValueLatticeElement> &getTrackedRetVals() {
const MapVector<Function *, ValueLatticeElement> &getTrackedRetVals() const {
return TrackedRetVals;
}

const DenseMap<GlobalVariable *, ValueLatticeElement> &getTrackedGlobals() {
const DenseMap<GlobalVariable *, ValueLatticeElement> &
getTrackedGlobals() const {
return TrackedGlobals;
}

const SmallPtrSet<Function *, 16> &getMRVFunctionsTracked() {
const SmallPtrSet<Function *, 16> &getMRVFunctionsTracked() const {
return MRVFunctionsTracked;
}

Expand Down Expand Up @@ -2226,11 +2227,11 @@ SCCPSolver::getTrackedRetVals() const {
}

const DenseMap<GlobalVariable *, ValueLatticeElement> &
SCCPSolver::getTrackedGlobals() {
SCCPSolver::getTrackedGlobals() const {
return Visitor->getTrackedGlobals();
}

const SmallPtrSet<Function *, 16> &SCCPSolver::getMRVFunctionsTracked() {
const SmallPtrSet<Function *, 16> &SCCPSolver::getMRVFunctionsTracked() const {
return Visitor->getMRVFunctionsTracked();
}

Expand Down