DataflowLattice.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- DataflowLattice.h ----------------------------------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. //
  14. // This file defines base types for building lattices to be used in dataflow
  15. // analyses that run over Control-Flow Graphs (CFGs).
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_DATAFLOWLATTICE_H
  19. #define LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_DATAFLOWLATTICE_H
  20. namespace clang {
  21. namespace dataflow {
  22. /// Effect indicating whether a lattice join operation resulted in a new value.
  23. // FIXME: Rename to `LatticeEffect` since `widen` uses it as well, and we are
  24. // likely removing it from `join`.
  25. enum class LatticeJoinEffect {
  26. Unchanged,
  27. Changed,
  28. };
  29. } // namespace dataflow
  30. } // namespace clang
  31. #endif // LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_DATAFLOWLATTICE_H
  32. #ifdef __GNUC__
  33. #pragma GCC diagnostic pop
  34. #endif