42#ifndef __CPU_PRED_BRANCH_TYPE_HH__
43#define __CPU_PRED_BRANCH_TYPE_HH__
46#include "enums/BranchType.hh"
51namespace branch_prediction
59 return BranchType::Return;
64 ? BranchType::CallDirect
65 : BranchType::CallIndirect;
70 ? BranchType::DirectCond
71 : BranchType::DirectUncond;
76 ? BranchType::IndirectCond
77 : BranchType::IndirectUncond;
79 return BranchType::NoBranch;
84 return std::string(enums::BranchTypeStrings[
type]);
bool isDirectCtrl() const
bool isIndirectCtrl() const
std::string toString(BranchType type)
BranchType getBranchType(StaticInstPtr inst)
enums::BranchType BranchType
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.