P4C
The P4 Compiler
Loading...
Searching...
No Matches
saturationElim.h
1#ifndef MIDEND_SATURATIONELIM_H_
2#define MIDEND_SATURATIONELIM_H_
3
4#include "ir/ir.h"
5
6namespace P4 {
7
10 public:
13 static bool isSaturationOperation(const IR::Expression *expr);
14
19 static const IR::Mux *eliminate(const IR::Operation_Binary *binary);
20};
21
22} // namespace P4
23
24#endif /* MIDEND_SATURATIONELIM_H_ */
Contains utility functions for eliminating saturating arithmetic.
Definition saturationElim.h:9
static bool isSaturationOperation(const IR::Expression *expr)
Definition saturationElim.cpp:9
static const IR::Mux * eliminate(const IR::Operation_Binary *binary)
Definition saturationElim.cpp:14
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24