@@ -1428,8 +1428,15 @@ class VACopyInst : public IntrinsicInst {
1428
1428
};
1429
1429
1430
1430
// / A base class for all instrprof intrinsics.
1431
+ class InstrProfInstBase ;
1432
+ class InstrProfMCDCBitmapInstBase ;
1433
+ class InstrProfMCDCCondBitmapUpdate ;
1431
1434
class InstrProfInstBase : public IntrinsicInst {
1432
1435
public:
1436
+ static bool classof (const Value *V) {
1437
+ return isa<InstrProfInstBase>(V) || isa<InstrProfMCDCBitmapInstBase>(V) ||
1438
+ isa<InstrProfMCDCCondBitmapUpdate>(V);
1439
+ }
1433
1440
// The name of the instrumented function.
1434
1441
GlobalVariable *getName () const {
1435
1442
return cast<GlobalVariable>(
@@ -1442,8 +1449,17 @@ class InstrProfInstBase : public IntrinsicInst {
1442
1449
};
1443
1450
1444
1451
// / A base class for all instrprof counter intrinsics.
1452
+ class InstProfCoverInst ;
1453
+ class InstProfIncrementInst ;
1454
+ class InstrProfTimestampInst ;
1455
+ class InstrProfValueProfileInst ;
1445
1456
class InstrProfCntrInstBase : public InstrProfInstBase {
1446
1457
public:
1458
+ static bool classof (const Value *V){
1459
+ return isa<InstProfCoverInst>(V) || isa<InstProfIncrementInst>(V) ||
1460
+ isa<InstrProfTimestampInst>(V) || isa<InstrProfValueProfileInst>(V);
1461
+ }
1462
+
1447
1463
// The number of counters for the instrumented function.
1448
1464
ConstantInt *getNumCounters () const ;
1449
1465
// The index of the counter that this instruction acts on.
0 commit comments