set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} CodeGen Core FileCheck GlobalISel MC MIRParser Support Target ) add_llvm_unittest(GlobalISelTests ConstantFoldingTest.cpp CSETest.cpp LegalizerTest.cpp LegalizerHelperTest.cpp LegalizerInfoTest.cpp MachineIRBuilderTest.cpp GISelMITest.cpp PatternMatchTest.cpp KnownBitsTest.cpp GISelUtilsTest.cpp )