P4C
The P4 Compiler
Loading...
Searching...
No Matches
bmv2/common/check_unsupported.h
1
/*
2
* SPDX-FileCopyrightText: 2013 Barefoot Networks, Inc.
3
* Copyright 2013-present Barefoot Networks, Inc.
4
*
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
8
#ifndef BACKENDS_BMV2_COMMON_CHECK_UNSUPPORTED_H_
9
#define BACKENDS_BMV2_COMMON_CHECK_UNSUPPORTED_H_
10
11
#include "frontends/common/options.h"
12
#include "ir/ir.h"
13
#include "lower.h"
14
#include "midend/convertEnums.h"
15
16
namespace
P4::BMV2
{
17
18
class
CheckUnsupported
:
public
Inspector {
19
bool
preorder(
const
IR::ForInStatement *fs)
override
{
20
error
(ErrorType::ERR_UNSUPPORTED,
"%sBMV2 does not support for-in loops"
, fs->srcInfo);
21
return
false
;
22
}
23
};
24
25
}
// namespace P4::BMV2
26
27
#endif
/* BACKENDS_BMV2_COMMON_CHECK_UNSUPPORTED_H_ */
P4::BMV2::CheckUnsupported
Definition
bmv2/common/check_unsupported.h:18
P4::BMV2
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition
action.cpp:9
P4::error
void error(const char *format, Args &&...args)
Report an error with the given message.
Definition
lib/error.h:58
backends
bmv2
common
check_unsupported.h
Generated by
1.13.2