This introduces Pass dir, which is for all optimization pass for TFL nodes, and Passes.h, which is a aggregation of passes in Pass dir.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
#include "Convert.h"
#include "Conversions.h"
-
-#include "Conversion/TypeInferencePass.h"
-#include "Conversion/ShapeInferencePass.h"
+#include "Passes.h"
#include "ProgressReporter.h"
#include "Knob.h"
#include "Dialect/IR/TFLDialect.h"
#include "Dialect/Service/TFLShapeInferenceRule.h"
-#include "Conversion/ShapeInferencePass.h"
-
#include <loco.h>
#include <loco/IR/CanonicalDialect.h>
#include <loco/Service/ShapeInference.h>
* limitations under the License.
*/
-#ifndef __CONVERSION_SHAPE_INFERENCE_PASS_H__
-#define __CONVERSION_SHAPE_INFERENCE_PASS_H__
+#ifndef __PASS_SHAPE_INFERENCE_PASS_H__
+#define __PASS_SHAPE_INFERENCE_PASS_H__
#include <loco.h>
#include <logo/Pass.h>
} // namespace exo
-#endif //__CONVERSION_SHAPE_INFERENCE_PASS_H__
+#endif //__PASS_SHAPE_INFERENCE_PASS_H__
* limitations under the License.
*/
-#ifndef __CONVERSION_TYPE_INFERENCE_PASS_H__
-#define __CONVERSION_TYPE_INFERENCE_PASS_H__
+#ifndef __PASS_TYPE_INFERENCE_PASS_H__
+#define __PASS_TYPE_INFERENCE_PASS_H__
#include <loco.h>
+
#include <logo/Pass.h>
namespace exo
} // namespace exo
-#endif //__CONVERSION_TYPE_INFERENCE_PASS_H__
+#endif //__PASS_TYPE_INFERENCE_PASS_H__
--- /dev/null
+/*
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "Passes.h"
+
+// This file is to make sure that Passes.h be compiled
--- /dev/null
+/*
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __PASSES_H__
+#define __PASSES_H__
+
+// Please add in alphabetical order
+
+#include "Pass/ShapeInferencePass.h"
+#include "Pass/TypeInferencePass.h"
+
+#include <logo/RemoveDeadNodePass.h>
+#include <logo/RemoveForwardNodePass.h>
+#include <logo/SimplifyDomainConversionPass.h>
+
+#endif // __PASSES_H__
#include "Check.h"
#include "ProgressReporter.h"
-#include "Conversion/TypeInferencePass.h"
-#include "Conversion/ShapeInferencePass.h"
+#include "Passes.h"
#include <logo/Pass.h>
#include <logo/Phase.h>