Move createScalarizeMaskedMemIntrinPass to Scalar.h
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 8 Dec 2020 18:08:09 +0000 (19:08 +0100)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 8 Dec 2020 18:08:09 +0000 (19:08 +0100)
llvm/include/llvm/CodeGen/Passes.h
llvm/include/llvm/Transforms/Scalar.h
llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp

index e3aa32b..a74334e 100644 (file)
@@ -76,10 +76,6 @@ namespace llvm {
   /// matching during instruction selection.
   FunctionPass *createCodeGenPreparePass();
 
-  /// createScalarizeMaskedMemIntrinPass - Replace masked load, store, gather
-  /// and scatter intrinsics with scalar code when target doesn't support them.
-  FunctionPass *createScalarizeMaskedMemIntrinPass();
-
   /// AtomicExpandID -- Lowers atomic operations in terms of either cmpxchg
   /// load-linked/store-conditional loops.
   extern char &AtomicExpandID;
index 68f6784..2cebd89 100644 (file)
@@ -545,6 +545,14 @@ Pass *createWarnMissedTransformationsPass();
 // instruction in a function.
 //
 FunctionPass *createInstSimplifyLegacyPass();
+
+
+//===----------------------------------------------------------------------===//
+//
+// createScalarizeMaskedMemIntrinPass - Replace masked load, store, gather
+// and scatter intrinsics with scalar code when target doesn't support them.
+//
+FunctionPass *createScalarizeMaskedMemIntrinPass();
 } // End llvm namespace
 
 #endif
index fb5ad3f..98d85f4 100644 (file)
@@ -31,6 +31,7 @@
 #include "llvm/InitializePasses.h"
 #include "llvm/Pass.h"
 #include "llvm/Support/Casting.h"
+#include "llvm/Transforms/Scalar.h"
 #include <algorithm>
 #include <cassert>