Lines Matching refs:LLVM_NATIVE_ARCH

328 string(TOLOWER "${LLVM_TARGET_ARCH}" LLVM_NATIVE_ARCH)
329 if( LLVM_NATIVE_ARCH STREQUAL "host" )
330 string(REGEX MATCH "^[^-]*" LLVM_NATIVE_ARCH ${LLVM_HOST_TRIPLE})
333 if (LLVM_NATIVE_ARCH MATCHES "i[2-6]86")
334 set(LLVM_NATIVE_ARCH X86) variable
335 elseif (LLVM_NATIVE_ARCH STREQUAL "x86")
336 set(LLVM_NATIVE_ARCH X86) variable
337 elseif (LLVM_NATIVE_ARCH STREQUAL "amd64")
338 set(LLVM_NATIVE_ARCH X86) variable
339 elseif (LLVM_NATIVE_ARCH STREQUAL "x86_64")
340 set(LLVM_NATIVE_ARCH X86) variable
341 elseif (LLVM_NATIVE_ARCH MATCHES "sparc")
342 set(LLVM_NATIVE_ARCH Sparc) variable
343 elseif (LLVM_NATIVE_ARCH MATCHES "powerpc")
344 set(LLVM_NATIVE_ARCH PowerPC) variable
345 elseif (LLVM_NATIVE_ARCH MATCHES "aarch64")
346 set(LLVM_NATIVE_ARCH AArch64) variable
347 elseif (LLVM_NATIVE_ARCH MATCHES "arm64")
348 set(LLVM_NATIVE_ARCH AArch64) variable
349 elseif (LLVM_NATIVE_ARCH MATCHES "arm")
350 set(LLVM_NATIVE_ARCH ARM) variable
351 elseif (LLVM_NATIVE_ARCH MATCHES "mips")
352 set(LLVM_NATIVE_ARCH Mips) variable
353 elseif (LLVM_NATIVE_ARCH MATCHES "xcore")
354 set(LLVM_NATIVE_ARCH XCore) variable
355 elseif (LLVM_NATIVE_ARCH MATCHES "msp430")
356 set(LLVM_NATIVE_ARCH MSP430) variable
357 elseif (LLVM_NATIVE_ARCH MATCHES "hexagon")
358 set(LLVM_NATIVE_ARCH Hexagon) variable
359 elseif (LLVM_NATIVE_ARCH MATCHES "s390x")
360 set(LLVM_NATIVE_ARCH SystemZ) variable
362 message(FATAL_ERROR "Unknown architecture ${LLVM_NATIVE_ARCH}")
369 list(APPEND LLVM_TARGETS_TO_BUILD ${LLVM_NATIVE_ARCH})
373 list(FIND LLVM_TARGETS_TO_BUILD ${LLVM_NATIVE_ARCH} NATIVE_ARCH_IDX)
376 "Native target ${LLVM_NATIVE_ARCH} is not selected; lli will not JIT code")
378 message(STATUS "Native target architecture is ${LLVM_NATIVE_ARCH}")
379 set(LLVM_NATIVE_TARGET LLVMInitialize${LLVM_NATIVE_ARCH}Target)
380 set(LLVM_NATIVE_TARGETINFO LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo)
381 set(LLVM_NATIVE_TARGETMC LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC)
382 set(LLVM_NATIVE_ASMPRINTER LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter)
385 if (EXISTS ${CMAKE_SOURCE_DIR}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt)
386 set(LLVM_NATIVE_ASMPARSER LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser)
390 if (EXISTS ${CMAKE_SOURCE_DIR}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt)
391 set(LLVM_NATIVE_DISASSEMBLER LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler)