LLVM 20.0.0git
|
#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 19 of file CodeGenCoverage.h.
Definition at line 24 of file CodeGenCoverage.h.
|
default |
iterator_range< CodeGenCoverage::const_covered_iterator > CodeGenCoverage::covered | ( | ) | const |
Definition at line 39 of file CodeGenCoverage.cpp.
References RuleCoverage, and llvm::BitVector::set_bits().
Referenced by llvm::InstructionSelect::selectMachineFunction().
Definition at line 77 of file CodeGenCoverage.cpp.
References CoveragePrefix, llvm::BitVector::empty(), llvm::sys::Process::getProcessId(), I, llvm::sys::fs::OF_Append, RuleCoverage, llvm::BitVector::set_bits(), and llvm::to_string().
Referenced by llvm::InstructionSelect::selectMachineFunction().
Definition at line 32 of file CodeGenCoverage.cpp.
References RuleCoverage, and llvm::BitVector::size().
bool CodeGenCoverage::parse | ( | MemoryBuffer & | Buffer, |
StringRef | BackendName | ||
) |
Definition at line 43 of file CodeGenCoverage.cpp.
References llvm::MemoryBuffer::getBufferEnd(), llvm::MemoryBuffer::getBufferStart(), llvm::native, llvm::support::endian::read64(), and setCovered().
void CodeGenCoverage::reset | ( | ) |
Definition at line 111 of file CodeGenCoverage.cpp.
References llvm::BitVector::resize(), and RuleCoverage.
void CodeGenCoverage::setCovered | ( | uint64_t | RuleID | ) |
Definition at line 26 of file CodeGenCoverage.cpp.
References llvm::BitVector::resize(), RuleCoverage, and llvm::BitVector::size().
Referenced by llvm::GIMatchTableExecutor::executeMatchTable(), and parse().
|
protected |
Definition at line 21 of file CodeGenCoverage.h.
Referenced by covered(), emit(), isCovered(), reset(), and setCovered().