Mark MOV8mr_NOREX and MOV8rm_NOREX as mayStore / mayLoad respectively.
[llvm/msp430.git] / cmake / modules / GetTargetTriple.cmake
blobc915a9a6ae607da567d7a04581254de3869371d2
1 # Returns the host triple.
2 # Invokes config.guess
4 function( get_target_triple var )
5   if( MSVC )
6     set( ${var} "i686-pc-win32" PARENT_SCOPE )
7   else( MSVC )
8     set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess)
9     execute_process(COMMAND sh ${config_guess}
10       RESULT_VARIABLE TT_RV
11       OUTPUT_VARIABLE TT_OUT
12       OUTPUT_STRIP_TRAILING_WHITESPACE)
13     if( NOT TT_RV EQUAL 0 )
14       message(FATAL_ERROR "Failed to execute ${config_guess}")
15     endif( NOT TT_RV EQUAL 0 )
16     set( ${var} ${TT_OUT} PARENT_SCOPE )
17     message(STATUS "Target triple: ${${var}}")
18   endif( MSVC )
19 endfunction( get_target_triple var )