mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-24 21:00:36 +00:00

Instead of copying arguments from the source function to the destination, steal them. This has a few advantages. - The ValueMap doesn't need to be seeded with (or cleared of) Arguments. - Often the destination function won't have created any arguments yet, so this avoids malloc traffic. - Argument names don't need to be copied. Because argument lists are lazy, this required a new Function::stealArgumentListFrom helper. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265519 91177308-0d34-0410-b5e6-96231b3b80d8
44 lines
796 B
CMake
44 lines
796 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Analysis
|
|
AsmParser
|
|
Core
|
|
Support
|
|
)
|
|
|
|
set(IRSources
|
|
AsmWriterTest.cpp
|
|
AttributesTest.cpp
|
|
ConstantRangeTest.cpp
|
|
ConstantsTest.cpp
|
|
DebugInfoTest.cpp
|
|
DominatorTreeTest.cpp
|
|
FunctionTest.cpp
|
|
IRBuilderTest.cpp
|
|
InstructionsTest.cpp
|
|
IntrinsicsTest.cpp
|
|
LegacyPassManagerTest.cpp
|
|
MDBuilderTest.cpp
|
|
MetadataTest.cpp
|
|
PassManagerTest.cpp
|
|
PatternMatch.cpp
|
|
TypeBuilderTest.cpp
|
|
TypesTest.cpp
|
|
UseTest.cpp
|
|
UserTest.cpp
|
|
ValueHandleTest.cpp
|
|
ValueMapTest.cpp
|
|
ValueTest.cpp
|
|
VerifierTest.cpp
|
|
WaymarkTest.cpp
|
|
)
|
|
|
|
# HACK: Declare a couple of source files as optionally compiled to satisfy the
|
|
# missing-file-checker in LLVM's weird CMake build.
|
|
set(LLVM_OPTIONAL_SOURCES
|
|
ValueMapTest.cpp
|
|
)
|
|
|
|
add_llvm_unittest(IRTests
|
|
${IRSources}
|
|
)
|