DataFlowSanitizer.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. //===- DataFlowSanitizer.h - dynamic data flow analysis -------------------===//
  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_INSTRUMENTATION_DATAFLOWSANITIZER_H
  9. #define LLVM_TRANSFORMS_INSTRUMENTATION_DATAFLOWSANITIZER_H
  10. #include "llvm/IR/Module.h"
  11. #include "llvm/IR/PassManager.h"
  12. #include <string>
  13. #include <vector>
  14. namespace llvm {
  15. class DataFlowSanitizerPass : public PassInfoMixin<DataFlowSanitizerPass> {
  16. private:
  17. std::vector<std::string> ABIListFiles;
  18. public:
  19. DataFlowSanitizerPass(
  20. const std::vector<std::string> &ABIListFiles = std::vector<std::string>())
  21. : ABIListFiles(ABIListFiles) {}
  22. PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
  23. static bool isRequired() { return true; }
  24. };
  25. } // namespace llvm
  26. #endif