ScalarizeMaskedMemIntrin.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- ScalarizeMaskedMemIntrin.h - Scalarize unsupported masked mem ----===//
  7. // intrinsics
  8. //
  9. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  10. // See https://llvm.org/LICENSE.txt for license information.
  11. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  12. //
  13. //===----------------------------------------------------------------------===//
  14. //
  15. // This pass replaces masked memory intrinsics - when unsupported by the target
  16. // - with a chain of basic blocks, that deal with the elements one-by-one if the
  17. // appropriate mask bit is set.
  18. //
  19. //===----------------------------------------------------------------------===//
  20. //
  21. #ifndef LLVM_TRANSFORMS_SCALAR_SCALARIZEMASKEDMEMINTRIN_H
  22. #define LLVM_TRANSFORMS_SCALAR_SCALARIZEMASKEDMEMINTRIN_H
  23. #include "llvm/IR/PassManager.h"
  24. namespace llvm {
  25. struct ScalarizeMaskedMemIntrinPass
  26. : public PassInfoMixin<ScalarizeMaskedMemIntrinPass> {
  27. PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
  28. };
  29. } // end namespace llvm
  30. #endif
  31. #ifdef __GNUC__
  32. #pragma GCC diagnostic pop
  33. #endif