17#ifndef BACKENDS_BMV2_COMMON_CHECK_UNSUPPORTED_H_
18#define BACKENDS_BMV2_COMMON_CHECK_UNSUPPORTED_H_
20#include "frontends/common/options.h"
23#include "midend/convertEnums.h"
28 bool preorder(
const IR::ForStatement *fs)
override {
29 error(ErrorType::ERR_UNSUPPORTED,
"%sBMV2 does not support loops", fs->srcInfo);
32 bool preorder(
const IR::ForInStatement *fs)
override {
33 error(ErrorType::ERR_UNSUPPORTED,
"%sBMV2 does not support loops", fs->srcInfo);
Definition check_unsupported.h:27
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition action.cpp:21
void error(const char *format, Args &&...args)
Report an error with the given message.
Definition error.h:51