static RegisterAnalysis<DSGraphStats> Z("dsstats", "DS Graph Statistics");
}
+FunctionPass *llvm::createDataStructureStatsPass() {
+ return new DSGraphStats();
+}
+
+
static bool isIndirectCallee(Value *V) {
if (isa<Function>(V)) return false;
RegisterAnalysis<DSGC> X("datastructure-gc", "DSA Graph Checking Pass");
}
+FunctionPass *llvm::createDataStructureGraphCheckerPass() {
+ return new DSGC();
+}
+
+
DSGC::DSGC() {
if (!AbortIfAnyCollapsed && AbortIfCollapsed.empty() &&
CheckFlags.empty() && AbortIfMerged.empty()) {