SeparateConstOffsetFromGEP.h 903 B

123456789101112131415161718192021222324252627
  1. //===- SeparateConstOffsetFromGEP.h ---------------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_TRANSFORMS_SCALAR_SEPARATECONSTOFFSETFROMGEP_H
  9. #define LLVM_TRANSFORMS_SCALAR_SEPARATECONSTOFFSETFROMGEP_H
  10. #include "llvm/IR/PassManager.h"
  11. namespace llvm {
  12. class SeparateConstOffsetFromGEPPass
  13. : public PassInfoMixin<SeparateConstOffsetFromGEPPass> {
  14. bool LowerGEP;
  15. public:
  16. SeparateConstOffsetFromGEPPass(bool LowerGEP = false) : LowerGEP(LowerGEP) {}
  17. PreservedAnalyses run(Function &F, FunctionAnalysisManager &);
  18. };
  19. } // end namespace llvm
  20. #endif // LLVM_TRANSFORMS_SCALAR_SEPARATECONSTOFFSETFROMGEP_H