10#include "llvm/ADT/STLExtras.h"
15static std::optional<uint32_t>
17 llvm::ArrayRef<RegsetDesc> RegsetDescs) {
18 for (
const auto &
Entry : RegsetDescs) {
19 if (
Entry.OS != Triple.getOS())
21 if (
Entry.Arch != llvm::Triple::UnknownArch &&
22 Entry.Arch != Triple.getArch())
30 const llvm::Triple &Triple,
31 llvm::ArrayRef<RegsetDesc> RegsetDescs) {
35 uint32_t
Type = *TypeOr;
36 auto Iter = llvm::find_if(
static std::optional< uint32_t > getNoteType(const llvm::Triple &Triple, llvm::ArrayRef< RegsetDesc > RegsetDescs)
A class that represents a running process on the host machine.
DataExtractor getRegset(llvm::ArrayRef< CoreNote > Notes, const llvm::Triple &Triple, llvm::ArrayRef< RegsetDesc > RegsetDescs)