summaryrefslogtreecommitdiffstats
path: root/llvm/examples/IRTransforms/InitializePasses.h
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-01-04 15:01:43 +0000
committerFlorian Hahn <flo@fhahn.com>2020-01-04 15:47:23 +0000
commit0bb22b91ea335b964b99862834164b0b3a866eb4 (patch)
treed76e85a805f172466d61d3626b8a8c4e22891436 /llvm/examples/IRTransforms/InitializePasses.h
parentb7ecf1c1c373c53183ef6ef66efbe4237ff7b96d (diff)
downloadbcm5719-llvm-0bb22b91ea335b964b99862834164b0b3a866eb4.tar.gz
bcm5719-llvm-0bb22b91ea335b964b99862834164b0b3a866eb4.zip
Re-apply "[Examples] Add IRTransformations directory to examples."
This reverts commit 19fd8925a4afe6efd248688cce06aceff50efe0c. Should include a fix for PR44197.
Diffstat (limited to 'llvm/examples/IRTransforms/InitializePasses.h')
-rw-r--r--llvm/examples/IRTransforms/InitializePasses.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/examples/IRTransforms/InitializePasses.h b/llvm/examples/IRTransforms/InitializePasses.h
new file mode 100644
index 00000000000..8b6673d518e
--- /dev/null
+++ b/llvm/examples/IRTransforms/InitializePasses.h
@@ -0,0 +1,22 @@
+//===- InitializePasses.h - -------------------------------------*- C++ -*-===//
+//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_EXAMPLES_IRTRANSFORMS_INITIALIZEPASSES__H
+#define LLVM_EXAMPLES_IRTRANSFORMS_INITIALIZEPASSES__H
+
+#include "llvm/IR/PassManager.h"
+
+namespace llvm {
+
+void initializeExampleIRTransforms(PassRegistry &Registry);
+void initializeSimplifyCFGLegacyPassPass(PassRegistry &Registry);
+
+} // end namespace llvm
+
+#endif
OpenPOWER on IntegriCloud