mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
d21f701c76
- Distinct metadata needs generating in the codegen to attach correct AAInfo on the loads/stores after lowering, merging, and other relevant transformations. - This patch adds 'MachhineModuleSlotTracker' to help assign slot numbers to these newly generated unnamed metadata nodes. - To help 'MachhineModuleSlotTracker' track machine metadata, the original 'SlotTracker' is rebased from 'AbstractSlotTrackerStorage', which provides basic interfaces to create/retrive metadata slots. In addition, once LLVM IR is processsed, additional hooks are also introduced to help collect machine metadata and assign them slot numbers. - Finally, if there is any such machine metadata, 'MIRPrinter' outputs an additional 'machineMetadataNodes' field containing all the definition of those nodes. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D103205
39 lines
712 B
CMake
39 lines
712 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
Analysis
|
|
AsmParser
|
|
AsmPrinter
|
|
CodeGen
|
|
Core
|
|
FileCheck
|
|
MC
|
|
MIRParser
|
|
Passes
|
|
SelectionDAG
|
|
Support
|
|
Target
|
|
)
|
|
|
|
add_llvm_unittest(CodeGenTests
|
|
AArch64SelectionDAGTest.cpp
|
|
AllocationOrderTest.cpp
|
|
AsmPrinterDwarfTest.cpp
|
|
DIEHashTest.cpp
|
|
DIETest.cpp
|
|
LowLevelTypeTest.cpp
|
|
LexicalScopesTest.cpp
|
|
MachineInstrBundleIteratorTest.cpp
|
|
MachineInstrTest.cpp
|
|
MachineOperandTest.cpp
|
|
PassManagerTest.cpp
|
|
ScalableVectorMVTsTest.cpp
|
|
SelectionDAGAddressAnalysisTest.cpp
|
|
TypeTraitsTest.cpp
|
|
TargetOptionsTest.cpp
|
|
TestAsmPrinter.cpp
|
|
)
|
|
|
|
add_subdirectory(GlobalISel)
|
|
|
|
target_link_libraries(CodeGenTests PRIVATE LLVMTestingSupport)
|