#include "SnippetFile.h"
#include "BenchmarkRunner.h"
#include "Error.h"
#include "Target.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/SourceMgr.h"
#include <string>
#ifdef __linux__
#include <unistd.h>
#endif
namespace llvm {
namespace exegesis {
namespace {
class BenchmarkCodeStreamer : public MCStreamer, public AsmCommentConsumer { … };
}
Expected<std::vector<BenchmarkCode>> readSnippets(const LLVMState &State,
StringRef Filename) { … }
}
}