#include "RemarkUtilHelpers.h"
#include "RemarkUtilRegistry.h"
usingnamespacellvm;
usingnamespaceremarks;
usingnamespacellvm::remarkutil;
static cl::SubCommand InstructionCount(
"instruction-count",
"Function instruction count information (requires asm-printer remarks)");
static cl::SubCommand
AnnotationCount("annotation-count",
"Collect count information from annotation remarks (uses "
"AnnotationRemarksPass)");
instructioncount
annotationcount
static bool shouldSkipRemark(bool UseDebugLoc, Remark &Remark) { … }
namespace instructioncount {
static Error tryInstructionCount() { … }
}
namespace annotationcount {
static Error tryAnnotationCount() { … }
}
static CommandRegistration
InstructionCountReg(&InstructionCount,
instructioncount::tryInstructionCount);
static CommandRegistration Yaml2Bitstream(&AnnotationCount,
annotationcount::tryAnnotationCount);