//===-- SimplifyQuery.h - Context for simplifications -----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_SIMPLIFYQUERY_H #define LLVM_ANALYSIS_SIMPLIFYQUERY_H #include "llvm/ADT/SmallPtrSet.h" #include "llvm/IR/Operator.h" namespace llvm { class AssumptionCache; class DomConditionCache; class DominatorTree; class TargetLibraryInfo; /// InstrInfoQuery provides an interface to query additional information for /// instructions like metadata or keywords like nsw, which provides conservative /// results if the users specified it is safe to use. struct InstrInfoQuery { … }; /// Evaluate query assuming this condition holds. struct CondContext { … }; struct SimplifyQuery { … }; } // end namespace llvm #endif