Skip to content

Commit 2c30316

Browse files
opt checkpoint
1 parent 3362cc7 commit 2c30316

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

src/FlowAware.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -187,28 +187,6 @@ void IR2Vec_FA::generateFlowAwareEncodings(std::ostream *o,
187187
std::to_string(cyclicCounter) + "\n");
188188
}
189189

190-
// This function will update funcVecMap by doing DFS starting from parent
191-
// function
192-
// void IR2Vec_FA::updateFuncVecMap(
193-
// llvm::Function *function,
194-
// llvm::SmallSet<const llvm::Function *, 16> &visitedFunctions) {
195-
// visitedFunctions.insert(function);
196-
// auto tmpParent = func2Vec(*function);
197-
// // funcVecMap is updated with vectors returned by func2Vec
198-
// funcVecMap[function] = tmpParent;
199-
// auto calledFunctions = funcCallMap[function];
200-
// for (auto &calledFunction : calledFunctions) {
201-
// if (calledFunction && !calledFunction->isDeclaration() &&
202-
// visitedFunctions.count(calledFunction) == 0) {
203-
// // doing casting since calledFunctions is of type of const
204-
// // llvm::Function* and we need llvm::Function* as argument
205-
// auto *callee = const_cast<Function *>(calledFunction);
206-
// // This function is called recursively to update funcVecMap
207-
// updateFuncVecMap(callee, visitedFunctions);
208-
// }
209-
// }
210-
// }
211-
212190
void IR2Vec_FA::updateFuncVecMap(
213191
llvm::Function *function,
214192
llvm::SmallSet<const llvm::Function *, 16> &visitedFunctions) {

0 commit comments

Comments
 (0)