]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
mcclellancompile: docs for main compile function
authorJustin Viiret <justin.viiret@intel.com>
Wed, 12 Apr 2017 01:24:30 +0000 (11:24 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 30 May 2017 03:57:32 +0000 (13:57 +1000)
src/nfa/mcclellancompile.h

index a176db28daf2b82cb26b325b82da7cb52443c834..baf72d9ce68ac0efb711a8c42543d9ab6d36c90a 100644 (file)
@@ -66,8 +66,20 @@ private:
     raw_dfa &rdfa;
 };
 
-/* accel_states: (optional) on success, is filled with the set of accelerable
- * states */
+/**
+ * \brief Construct an implementation DFA.
+ *
+ * \param raw the raw dfa to construct from
+ * \param cc compile context
+ * \param rm report manger
+ * \param only_accel_init if true, only the init states will be examined for
+ *        acceleration opportunities
+ * \param trust_daddy_states if true, trust the daddy state set in the raw dfa
+ *        rather than conducting a search for a better daddy (for Sherman
+ *        states)
+ * \param accel_states (optional) success, is filled with the set of
+ *        accelerable states
+ */
 bytecode_ptr<NFA>
 mcclellanCompile(raw_dfa &raw, const CompileContext &cc,
                  const ReportManager &rm, bool only_accel_init,