forked from OSchip/llvm-project
Follow-up to r152620: restore JIT event listener tests to unittest/ExecutionEngine/JIT
llvm-svn: 152780
This commit is contained in:
parent
df170db2f6
commit
ec5fedfaeb
|
@ -83,11 +83,15 @@ add_llvm_unittest(Analysis
|
|||
Analysis/ScalarEvolutionTest.cpp
|
||||
)
|
||||
|
||||
add_llvm_unittest(ExecutionEngine
|
||||
ExecutionEngine/ExecutionEngineTest.cpp
|
||||
)
|
||||
|
||||
if( LLVM_USE_INTEL_JITEVENTS )
|
||||
include_directories( ${LLVM_INTEL_JITEVENTS_INCDIR} )
|
||||
link_directories( ${LLVM_INTEL_JITEVENTS_LIBDIR} )
|
||||
set(ProfileTestSources
|
||||
ExecutionEngine/IntelJITEventListenerTest.cpp
|
||||
ExecutionEngine/JIT/IntelJITEventListenerTest.cpp
|
||||
)
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_LINK_COMPONENTS}
|
||||
|
@ -98,7 +102,7 @@ endif( LLVM_USE_INTEL_JITEVENTS )
|
|||
if( LLVM_USE_OPROFILE )
|
||||
set(ProfileTestSources
|
||||
${ProfileTestSources}
|
||||
ExecutionEngine/OProfileJITEventListenerTest.cpp
|
||||
ExecutionEngine/JIT/OProfileJITEventListenerTest.cpp
|
||||
)
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_LINK_COMPONENTS}
|
||||
|
@ -106,16 +110,12 @@ if( LLVM_USE_OPROFILE )
|
|||
)
|
||||
endif( LLVM_USE_OPROFILE )
|
||||
|
||||
add_llvm_unittest(ExecutionEngine
|
||||
ExecutionEngine/ExecutionEngineTest.cpp
|
||||
ExecutionEngine/JITEventListenerTest.cpp
|
||||
${ProfileTestSources}
|
||||
)
|
||||
|
||||
set(JITTestsSources
|
||||
ExecutionEngine/JIT/JITEventListenerTest.cpp
|
||||
ExecutionEngine/JIT/JITMemoryManagerTest.cpp
|
||||
ExecutionEngine/JIT/JITTest.cpp
|
||||
ExecutionEngine/JIT/MultiJITTest.cpp
|
||||
${ProfileTestSources}
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
|
|
|
@ -12,6 +12,29 @@ TESTNAME = JIT
|
|||
LINK_COMPONENTS := asmparser bitreader bitwriter core jit native support
|
||||
|
||||
include $(LEVEL)/Makefile.config
|
||||
|
||||
SOURCES := JITEventListenerTest.cpp
|
||||
|
||||
ifeq ($(USE_INTEL_JITEVENTS), 1)
|
||||
# Build the Intel JIT Events interface tests
|
||||
SOURCES += IntelJITEventListenerTest.cpp
|
||||
|
||||
# Add the Intel JIT Events include directory
|
||||
CPPFLAGS += -I$(INTEL_JITEVENTS_INCDIR)
|
||||
|
||||
# Link against the LLVM Intel JIT Evens interface library
|
||||
LINK_COMPONENTS += inteljitevents
|
||||
endif
|
||||
|
||||
ifeq ($(USE_OPROFILE), 1)
|
||||
# Build the OProfile JIT interface tests
|
||||
SOURCES += OProfileJITEventListenerTest.cpp
|
||||
|
||||
# Link against the LLVM oprofile interface library
|
||||
LINK_COMPONENTS += oprofilejit
|
||||
endif
|
||||
|
||||
|
||||
include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
|
||||
|
||||
# Permit these tests to use the JIT's symbolic lookup.
|
||||
|
|
|
@ -10,32 +10,7 @@
|
|||
LEVEL = ../..
|
||||
TESTNAME = ExecutionEngine
|
||||
LINK_COMPONENTS := engine interpreter
|
||||
|
||||
include $(LEVEL)/Makefile.config
|
||||
|
||||
SOURCES := ExecutionEngineTest.cpp \
|
||||
JITEventListenerTest.cpp
|
||||
|
||||
ifeq ($(USE_INTEL_JITEVENTS), 1)
|
||||
# Build the Intel JIT Events interface tests
|
||||
SOURCES += IntelJITEventListenerTest.cpp
|
||||
|
||||
# Add the Intel JIT Events include directory
|
||||
CPPFLAGS += -I$(INTEL_JITEVENTS_INCDIR)
|
||||
|
||||
# Link against the LLVM Intel JIT Evens interface library
|
||||
LINK_COMPONENTS += inteljitevents
|
||||
endif
|
||||
|
||||
ifeq ($(USE_OPROFILE), 1)
|
||||
# Build the OProfile JIT interface tests
|
||||
SOURCES += OProfileJITEventListenerTest.cpp
|
||||
|
||||
# Link against the LLVM oprofile interface library
|
||||
LINK_COMPONENTS += oprofilejit
|
||||
endif
|
||||
|
||||
|
||||
PARALLEL_DIRS = JIT
|
||||
|
||||
include $(LEVEL)/Makefile.config
|
||||
include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
|
||||
|
|
Loading…
Reference in New Issue