Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing frontends/backends direct include dependencies #292

Merged
merged 2 commits into from
Feb 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backends/bmv2/jsonconverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ limitations under the License.
#include "lib/json.h"
#include "frontends/common/options.h"
#include "frontends/p4/fromv1.0/v1model.h"
#include "midend/convertEnums.h"
#include "analyzer.h"
// Currently we are requiring a v1model to be used

Expand Down
2 changes: 2 additions & 0 deletions frontends/common/name_gateways.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ limitations under the License.
#ifndef FRONTENDS_COMMON_NAME_GATEWAYS_H_
#define FRONTENDS_COMMON_NAME_GATEWAYS_H_

#include "ir/ir.h"

class NameGateways : public Transform {
const IR::Node *preorder(IR::If *n) override {
return new IR::NamedCond(*n);
Expand Down
1 change: 1 addition & 0 deletions frontends/p4/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ limitations under the License.
#include "simplifyDefUse.h"
#include "simplifyParsers.h"
#include "specialize.h"
#include "tableKeyNames.h"
#include "parserControlFlow.h"

namespace P4 {
Expand Down
1 change: 1 addition & 0 deletions frontends/p4/p4-parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ limitations under the License.
#define _P4_P4_PARSE_H_

#include <memory>
#include "ir/ir.h"

namespace IR { class Global; }

Expand Down
3 changes: 1 addition & 2 deletions frontends/p4/parameterSubstitution.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ limitations under the License.
#ifndef FRONTENDS_P4_PARAMETERSUBSTITUTION_H_
#define FRONTENDS_P4_PARAMETERSUBSTITUTION_H_

// This file must be included after ir/ir.h

#include <iostream>

#include "ir/ir.h"
#include "lib/cstring.h"
#include "lib/exceptions.h"
#include "lib/enumerator.h"
Expand Down