[llvm-commits] CVS: llvm/include/llvm/Transforms/Instrumentation/Graph.h
Anand Shukla
ashukla at cs.uiuc.edu
Fri Sep 20 11:45:01 PDT 2002
Changes in directory llvm/include/llvm/Transforms/Instrumentation:
Graph.h updated: 1.3 -> 1.4
---
Log message:
Added checking threshold
---
Diffs of the changes:
Index: llvm/include/llvm/Transforms/Instrumentation/Graph.h
diff -u llvm/include/llvm/Transforms/Instrumentation/Graph.h:1.3 llvm/include/llvm/Transforms/Instrumentation/Graph.h:1.4
--- llvm/include/llvm/Transforms/Instrumentation/Graph.h:1.3 Mon Sep 16 00:26:51 2002
+++ llvm/include/llvm/Transforms/Instrumentation/Graph.h Fri Sep 20 11:44:35 2002
@@ -417,7 +417,7 @@
//get the code to be inserted on the edge
//This is determined from cond (1-6)
void getCode(Instruction *a, Instruction *b, Function *M, BasicBlock *BB,
- int numPaths, int MethNo);
+ std::vector<Value *> &retVec);
};
@@ -429,7 +429,7 @@
//Do graph processing: to determine minimal edge increments,
//appropriate code insertions etc and insert the code at
//appropriate locations
-void processGraph(Graph &g, Instruction *rInst, Instruction *countInst, std::vector<Edge> &be, std::vector<Edge> &stDummy, std::vector<Edge> &exDummy, int n, int MethNo);
+void processGraph(Graph &g, Instruction *rInst, Instruction *countInst, std::vector<Edge> &be, std::vector<Edge> &stDummy, std::vector<Edge> &exDummy, int n, int MethNo, Value *threshold);
//print the graph (for debugging)
void printGraph(Graph &g);
@@ -438,7 +438,7 @@
//void printGraph(const Graph g);
//insert a basic block with appropriate code
//along a given edge
-void insertBB(Edge ed, getEdgeCode *edgeCode, Instruction *rInst, Instruction *countInst, int n, int Methno);
+void insertBB(Edge ed, getEdgeCode *edgeCode, Instruction *rInst, Instruction *countInst, int n, int Methno, Value *threshold);
//Insert the initialization code in the top BB
//this includes initializing r, and count
@@ -448,7 +448,7 @@
//number of that path
//Count is an array, where Count[k] represents
//the number of executions of path k
-void insertInTopBB(BasicBlock *front, int k, Instruction *rVar, Instruction *countVar);
+void insertInTopBB(BasicBlock *front, int k, Instruction *rVar, Instruction *countVar, Value *threshold);
//Add dummy edges corresponding to the back edges
//If a->b is a backedge
More information about the llvm-commits
mailing list