summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/Transforms
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2018-04-24 00:48:59 +0000
committerDavid Blaikie <dblaikie@gmail.com>2018-04-24 00:48:59 +0000
commita27771b62f2f8c399ed8fac124810a273226d5d5 (patch)
tree9d460637b3905c15ac1d14080a397001299e5e04 /llvm/include/llvm-c/Transforms
parent1bcb258ba319c380b206c2ab7d9f8baaffcb2058 (diff)
downloadbcm5719-llvm-a27771b62f2f8c399ed8fac124810a273226d5d5.tar.gz
bcm5719-llvm-a27771b62f2f8c399ed8fac124810a273226d5d5.zip
InstCombine: Fix layering by not including Scalar.h in InstCombine
(notionally Scalar.h is part of libLLVMScalarOpts, so it shouldn't be included by InstCombine which doesn't/shouldn't need to depend on ScalarOpts) llvm-svn: 330669
Diffstat (limited to 'llvm/include/llvm-c/Transforms')
-rw-r--r--llvm/include/llvm-c/Transforms/InstCombine.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Transforms/InstCombine.h b/llvm/include/llvm-c/Transforms/InstCombine.h
new file mode 100644
index 00000000000..e1c1572d53d
--- /dev/null
+++ b/llvm/include/llvm-c/Transforms/InstCombine.h
@@ -0,0 +1,43 @@
+/*===-- Scalar.h - Scalar Transformation Library C Interface ----*- C++ -*-===*\
+|* *|
+|* The LLVM Compiler Infrastructure *|
+|* *|
+|* This file is distributed under the University of Illinois Open Source *|
+|* License. See LICENSE.TXT for details. *|
+|* *|
+|*===----------------------------------------------------------------------===*|
+|* *|
+|* This header declares the C interface to libLLVMInstCombine.a, which *|
+|* combines instructions to form fewer, simple IR instructions. *|
+|* *|
+\*===----------------------------------------------------------------------===*/
+
+#ifndef LLVM_C_TRANSFORMS_INSTCOMBINE_H
+#define LLVM_C_TRANSFORMS_INSTCOMBINE_H
+
+#include "llvm-c/Types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup LLVMCTransformsInstCombine Instruction Combining transformations
+ * @ingroup LLVMCTransforms
+ *
+ * @{
+ */
+
+/** See llvm::createInstructionCombiningPass function. */
+void LLVMAddInstructionCombiningPass(LLVMPassManagerRef PM);
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif /* defined(__cplusplus) */
+
+#endif
+
OpenPOWER on IntegriCloud