#include "llvm/CodeGen/GlobalISel/LegalizerInfo.h"
#include "llvm/CodeGen/TargetOpcodes.h"
#include "GISelMITest.h"
#include "gtest/gtest.h"
usingnamespacellvm;
usingnamespaceLegalizeActions;
usingnamespaceLegalityPredicates;
usingnamespaceLegalizeMutations;
namespace llvm {
std::ostream &
operator<<(std::ostream &OS, const LegalizeAction Act) { … }
std::ostream &operator<<(std::ostream &OS, const llvm::LegalizeActionStep Ty) { … }
}
namespace {
TEST(LegalizerInfoTest, ScalarRISC) { … }
TEST(LegalizerInfoTest, VectorRISC) { … }
TEST(LegalizerInfoTest, MultipleTypes) { … }
TEST(LegalizerInfoTest, MultipleSteps) { … }
TEST(LegalizerInfoTest, SizeChangeStrategy) { … }
}
#define EXPECT_ACTION(Action, Index, Type, Query) …
TEST(LegalizerInfoTest, RuleSets) { … }
TEST(LegalizerInfoTest, MMOAlignment) { … }
TEST(LegalizerInfoTest, MSVCDebugMiscompile) { … }