#include "llvm/Analysis/InlineCost.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/InlineModelFeatureMaps.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassInstrumentation.h"
#include "llvm/Support/SourceMgr.h"
#include "gtest/gtest.h"
namespace {
usingnamespacellvm;
CallBase *getCallInFunction(Function *F) { … }
std::optional<InlineCostFeatures> getInliningCostFeaturesForCall(CallBase &CB) { … }
TEST(InlineCostTest, CostFeatures) { … }
TEST(InlineCostTest, SROACost) { … }
}