mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 18:20:35 +03:00
Rose: replace internal_report with program
Replace the use of the internal_report structure (for reports from engines, MPV etc) with the Rose program interpreter. SOM processing was reworked to use a new som_operation structure that is embedded in the appropriate instructions.
This commit is contained in:
committed by
Matthew Barr
parent
68851742cc
commit
36150bbc19
@@ -33,10 +33,9 @@
|
||||
#ifndef ROSE_RUNTIME_H
|
||||
#define ROSE_RUNTIME_H
|
||||
|
||||
#include "scratch.h"
|
||||
#include "rose_internal.h"
|
||||
#include "scratch.h"
|
||||
#include "util/exhaust.h" // for isExhausted
|
||||
#include "util/internal_report.h"
|
||||
#include "util/partial_store.h"
|
||||
|
||||
/*
|
||||
@@ -147,16 +146,6 @@ u32 has_chained_nfas(const struct RoseEngine *t) {
|
||||
return t->outfixBeginQueue;
|
||||
}
|
||||
|
||||
/** \brief Fetch \ref internal_report structure for this internal ID. */
|
||||
static really_inline
|
||||
const struct internal_report *getInternalReport(const struct RoseEngine *t,
|
||||
ReportID intId) {
|
||||
const struct internal_report *reports =
|
||||
(const struct internal_report *)((const u8 *)t + t->intReportOffset);
|
||||
assert(intId < t->intReportCount);
|
||||
return reports + intId;
|
||||
}
|
||||
|
||||
static really_inline
|
||||
void updateLastMatchOffset(struct RoseContext *tctxt, u64a offset) {
|
||||
DEBUG_PRINTF("match @%llu, last match @%llu\n", offset,
|
||||
|
||||
Reference in New Issue
Block a user