[PATCH] llvm-cov: Added edge struct for traversal in block.

Yuchen Wu yuchenericwu at hotmail.com
Fri Nov 15 16:59:55 PST 2013


Forgot to include "[PATCH]" in subject title.

----------------------------------------
From: yuchenericwu at hotmail.com
To: llvm-commits at cs.uiuc.edu
Subject: llvm-cov: Added edge struct for traversal in block.
Date: Fri, 15 Nov 2013 19:22:35 -0500


llvm-cov: Added edge struct for traversal in block.

Added GCOVEdge which are simple structs owned by the GCOVFunction that
stores the source and destination GCOVBlocks, as well as the counts.
Changed GCOVBlocks so that it stores a vector of source GCOVEdges and a
vector of destination GCOVEdges, rather than just the block number.

Storing the block number was only useful for knowing the number of edges
and for debug info. Using a struct is useful for traversing the edges,
especially back edges which may be needed later.

_______________________________________________
llvm-commits mailing list
llvm-commits at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits 		 	   		  



More information about the llvm-commits mailing list