#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCTargetOptions.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Target/TargetMachine.h"
#include "gtest/gtest.h"
#include <mutex>
#include <thread>
usingnamespacellvm;
std::once_flag flag;
void InitializeAMDGPUTarget() { … }
std::unique_ptr<LLVMTargetMachine>
createTargetMachine(std::string TStr, StringRef CPU, StringRef FS) { … }
TEST(AMDGPUDwarfRegMappingTests, TestWave64DwarfRegMapping) { … }
TEST(AMDGPUDwarfRegMappingTests, TestWave32DwarfRegMapping) { … }