Include both TF and TFL ops.td in legalize patterns.

Need to do some ifdef jumps with TableGen to avoid errors due to including the base multiple times. The way TableGen flags repeated includes is by way of checking the include directive this necessitates that the guards are on the includes as well as around the classes/defines.

PiperOrigin-RevId: 227692030
This commit is contained in:
Jacques Pienaar 2019-01-03 08:23:35 -08:00 committed by jpienaar
parent c396c044e6
commit ae1a6619df
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,10 @@
//
//===----------------------------------------------------------------------===//
#ifdef OP_BASE
#else
#define OP_BASE
//===----------------------------------------------------------------------===//
// Types.
//===----------------------------------------------------------------------===//
@ -249,3 +253,4 @@ class Pattern<dag patternToMatch, list<dag> resultOps> {
// Form of a pattern which produces a single result.
class Pat<dag pattern, dag result> : Pattern<pattern, [result]>;
#endif // OP_BASE