37 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8//9// This file contains some utility functions supporting llvm-reduce.10//11//===----------------------------------------------------------------------===//12 13#ifndef LLVM_TOOLS_LLVM_REDUCE_DELTAS_UTILS_H14#define LLVM_TOOLS_LLVM_REDUCE_DELTAS_UTILS_H15 16#include "llvm/Support/CommandLine.h"17 18namespace llvm {19class BasicBlock;20class Function;21class Type;22class Value;23 24extern cl::opt<bool> Verbose;25 26Value *getDefaultValue(Type *T);27bool hasAliasUse(Function &F);28 29// Constant fold terminators in \p and minimally prune unreachable code from the30// function.31void simpleSimplifyCFG(Function &F, ArrayRef<BasicBlock *> BBs,32 bool FoldBlockIntoPredecessor = true);33 34} // namespace llvm35 36#endif37