#include "AArch64Subtarget.h"
#include "AArch64TargetMachine.h"
#include "llvm/CodeGen/MIRParser/MIRParser.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/IR/Module.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/TargetSelect.h"
#include "gtest/gtest.h"
usingnamespacellvm;
namespace {
std::unique_ptr<LLVMTargetMachine> createTargetMachine() { … }
std::unique_ptr<AArch64InstrInfo> createInstrInfo(TargetMachine *TM) { … }
void runChecks(
LLVMTargetMachine *TM, AArch64InstrInfo *II, const StringRef InputIRSnippet,
const StringRef InputMIRSnippet,
std::function<void(AArch64InstrInfo &, MachineFunction &)> Checks) { … }
}
TEST(InstSizes, Authenticated) { … }
TEST(InstSizes, STACKMAP) { … }
TEST(InstSizes, PATCHPOINT) { … }
TEST(InstSizes, STATEPOINT) { … }
TEST(InstSizes, SPACE) { … }
TEST(InstSizes, TLSDESC_CALLSEQ) { … }
TEST(InstSizes, StoreSwiftAsyncContext) { … }
TEST(InstSizes, SpeculationBarrierISBDSBEndBB) { … }
TEST(InstSizes, SpeculationBarrierSBEndBB) { … }
TEST(InstSizes, JumpTable) { … }
TEST(InstSizes, MOPSMemoryPseudos) { … }