|
LLVM 24.0.0git
|
#include "llvm/Analysis/CostModel.h"#include "AnalysisOptions.h"#include "llvm/Analysis/TargetTransformInfo.h"#include "llvm/IR/Function.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/PassManager.h"#include "llvm/Pass.h"#include "llvm/Support/raw_ostream.h"Go to the source code of this file.
Macros | |
| #define | CM_NAME "cost-model" |
| #define | DEBUG_TYPE CM_NAME |
Functions | |
| static InstructionCost | getCost (const AnalysisOptions &Opts, Instruction &Inst, TTI::TargetCostKind CostKind, TargetTransformInfo &TTI) |
| static TTI::TargetCostKind | OutputCostKindToTargetCostKind (OutputCostKind CostKind) |
| #define CM_NAME "cost-model" |
Definition at line 30 of file CostModel.cpp.
| #define DEBUG_TYPE CM_NAME |
Definition at line 31 of file CostModel.cpp.
|
static |
Definition at line 33 of file CostModel.cpp.
References llvm::dyn_cast(), llvm::InstructionCost::getInvalid(), II, llvm::InstructionCost, and llvm::TypeBasedIntrinsicCost.
Referenced by llvm::RegisterBankInfo::InstructionMapping::print(), and llvm::CostModelPrinterPass::run().
|
static |
Definition at line 50 of file CostModel.cpp.
References llvm::CodeSize, llvm::Latency, llvm_unreachable, llvm::RecipThroughput, llvm::SizeAndLatency, llvm::TargetTransformInfo::TCK_CodeSize, llvm::TargetTransformInfo::TCK_Latency, llvm::TargetTransformInfo::TCK_RecipThroughput, and llvm::TargetTransformInfo::TCK_SizeAndLatency.
Referenced by llvm::CostModelPrinterPass::run().