[X86] Change all the i8imm operands in XOP instructions to u8imm so the parser will...
[oota-llvm.git] / CMakeLists.txt
index 3c7517eea0d44dea38961a5a177a2cbd00593359..2a2291c78228131aa86cb3ad49a9cad7c09e922a 100644 (file)
@@ -590,6 +590,13 @@ endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
 # use export_executable_symbols(target).
 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
 
+set(LLVM_PROFDATA_FILE "" CACHE FILEPATH
+  "Profiling data file to use when compiling in order to improve runtime performance.")
+
+if(LLVM_PROFDATA_FILE AND EXISTS ${LLVM_PROFDATA_FILE})
+  add_definitions("-fprofile-instr-use=${LLVM_PROFDATA_FILE}")
+endif()
+
 include(AddLLVM)
 include(TableGen)