60 #ifndef PCProfileFilter_H 61 #define PCProfileFilter_H 86 typedef std::list<PCProfileFilter*>
Base;
91 virtual void clear() { Base::clear(); }
111 : mfilt(x), pcfilt(y) { }
116 const std::string&
GetName()
const {
return name; }
119 void SetName(
const char* s) { name = (s) ? s :
""; }
127 void Dump(std::ostream& o = std::cerr);
178 virtual bool operator()(
VMA pc,
ushort opIndex) = 0;
189 #define INSN_CLASS_ALL 0x00000001 190 #define INSN_CLASS_FLOP 0x00000002 191 #define INSN_CLASS_INTOP 0x00000004 192 #define INSN_CLASS_MEMOP 0x00000008 193 #define INSN_CLASS_OTHER 0x00000010 229 bool IsSet(
const bitvec_t bv)
const {
230 return (bits & bv) == bv;
237 return (bits & bv) != 0;
240 return (bits & m.
bits) != 0;
243 void Set(
const bitvec_t bv) {
247 bits = bits | m.
bits;
254 bits = bits & ~(m.
bits);
257 void Dump(std::ostream& o = std::cerr);
285 virtual bool operator()(
VMA pc,
ushort opIndex);
PCFilter * GetPCFilter() const
virtual ~PCProfileFilterList()
bool IsSatisfied(const bitvec_t bv)
void SetDescription(const char *s)
InsnClassExpr(bitvec_t bv=0)
MetricFilter * GetMetricFilter() const
void Set(const bitvec_t bv)
PCProfileFilter(const PCProfileFilter &p)
std::list< PCProfileFilter * > Base
unsigned short int ushort
const std::string & GetDescription() const
InsnClassExpr & operator=(const InsnClassExpr &x)
InsnClassExpr::bitvec_t ConvertToInsnClass(ISA::InsnDesc d)
void Unset(const bitvec_t bv)
bool IsSet(const InsnClassExpr &m) const
const std::string & GetName() const
bool IsSet(const bitvec_t bv) const
void Unset(const InsnClassExpr &m)
InsnClassExpr(const InsnClassExpr &x)
PCProfileFilter(MetricFilter *x=NULL, PCFilter *y=NULL)
void SetName(const char *s)
bool IsSetAny(const InsnClassExpr &m) const
PCProfileFilter & operator=(const PCProfileFilter &p)
void Set(const InsnClassExpr &m)
bool IsSetAny(const bitvec_t bv) const