LLVM
8.0.1
|
#include "llvm/Support/CodeGenCoverage.h"
Public Types | |
using | const_covered_iterator = BitVector::const_set_bits_iterator |
Public Member Functions | |
CodeGenCoverage () | |
void | setCovered (uint64_t RuleID) |
bool | isCovered (uint64_t RuleID) const |
iterator_range< const_covered_iterator > | covered () const |
bool | parse (MemoryBuffer &Buffer, StringRef BackendName) |
bool | emit (StringRef FilePrefix, StringRef BackendName) const |
void | reset () |
Protected Attributes | |
BitVector | RuleCoverage |
Definition at line 21 of file CodeGenCoverage.h.
Definition at line 26 of file CodeGenCoverage.h.
CodeGenCoverage::CodeGenCoverage | ( | ) |
Definition at line 33 of file CodeGenCoverage.cpp.
iterator_range< CodeGenCoverage::const_covered_iterator > CodeGenCoverage::covered | ( | ) | const |
Definition at line 48 of file CodeGenCoverage.cpp.
References RuleCoverage, and llvm::BitVector::set_bits().
Referenced by llvm::InstructionSelect::runOnMachineFunction().
Definition at line 85 of file CodeGenCoverage.cpp.
References llvm::StringRef::empty(), llvm::BitVector::empty(), llvm::sys::fs::F_Append, I, llvm::Lock, RuleCoverage, llvm::BitVector::set_bits(), and llvm::to_string().
Referenced by llvm::InstructionSelect::runOnMachineFunction().
bool CodeGenCoverage::isCovered | ( | uint64_t | RuleID | ) | const |
Definition at line 41 of file CodeGenCoverage.cpp.
References RuleCoverage, and llvm::BitVector::size().
bool CodeGenCoverage::parse | ( | MemoryBuffer & | Buffer, |
StringRef | BackendName | ||
) |
Definition at line 52 of file CodeGenCoverage.cpp.
References llvm::StringRef::equals(), llvm::MemoryBuffer::getBufferEnd(), llvm::MemoryBuffer::getBufferStart(), llvm::support::native, llvm::support::endian::read64(), and setCovered().
void CodeGenCoverage::reset | ( | ) |
Definition at line 125 of file CodeGenCoverage.cpp.
References llvm::BitVector::resize(), and RuleCoverage.
void CodeGenCoverage::setCovered | ( | uint64_t | RuleID | ) |
Definition at line 35 of file CodeGenCoverage.cpp.
References llvm::BitVector::resize(), RuleCoverage, and llvm::BitVector::size().
Referenced by llvm::InstructionSelector::executeMatchTable(), and parse().
|
protected |
Definition at line 23 of file CodeGenCoverage.h.
Referenced by covered(), emit(), isCovered(), reset(), and setCovered().