Utils.h 902 B

123456789101112131415161718192021222324252627282930
  1. //===- Utils.h - llvm-reduce utility functions ------------------*- C++ -*-===//
  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. //
  9. // This file contains some utility functions supporting llvm-reduce.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_TOOLS_LLVM_REDUCE_DELTAS_UTILS_H
  13. #define LLVM_TOOLS_LLVM_REDUCE_DELTAS_UTILS_H
  14. #include "llvm/IR/Function.h"
  15. #include "llvm/IR/Value.h"
  16. #include "llvm/Support/CommandLine.h"
  17. namespace llvm {
  18. extern cl::opt<bool> Verbose;
  19. Value *getDefaultValue(Type *T);
  20. bool hasAliasUse(Function &F);
  21. bool hasAliasOrBlockAddressUse(Function &F);
  22. } // namespace llvm
  23. #endif