llvm/llvm/unittests/Analysis/InlineCostTest.cpp

//===- InlineCostTest.cpp - test for InlineCost ---------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#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) {}

// Tests that we can retrieve the CostFeatures without an error
TEST(InlineCostTest, CostFeatures) {}

// Tests the calculated SROA cost
TEST(InlineCostTest, SROACost) {}

} // namespace