Move createScalarizeMaskedMemIntrinPass to Scalar.h

This commit is contained in:
Benjamin Kramer 2020-12-08 19:08:09 +01:00
parent 10987e30be
commit 5f18e2f31e
3 changed files with 9 additions and 4 deletions

View File

@ -76,10 +76,6 @@ namespace llvm {
/// matching during instruction selection. /// matching during instruction selection.
FunctionPass *createCodeGenPreparePass(); 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 /// AtomicExpandID -- Lowers atomic operations in terms of either cmpxchg
/// load-linked/store-conditional loops. /// load-linked/store-conditional loops.
extern char &AtomicExpandID; extern char &AtomicExpandID;

View File

@ -545,6 +545,14 @@ Pass *createWarnMissedTransformationsPass();
// instruction in a function. // instruction in a function.
// //
FunctionPass *createInstSimplifyLegacyPass(); 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 } // End llvm namespace
#endif #endif

View File

@ -31,6 +31,7 @@
#include "llvm/InitializePasses.h" #include "llvm/InitializePasses.h"
#include "llvm/Pass.h" #include "llvm/Pass.h"
#include "llvm/Support/Casting.h" #include "llvm/Support/Casting.h"
#include "llvm/Transforms/Scalar.h"
#include <algorithm> #include <algorithm>
#include <cassert> #include <cassert>