mini-llvm 0.1.0
Loading...
Searching...
No Matches
ProcessorDetection.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2
3#pragma once
4
5#if defined(__x86_64__) || defined(_M_X64)
6# define MINI_LLVM_X86_64
7#elif defined(__i386__) || defined(_M_IX86)
8# define MINI_LLVM_I386
9#elif defined(__aarch64__) || defined(_M_ARM64)
10# define MINI_LLVM_AARCH64
11#elif defined(__arm__) || defined(_M_ARM)
12# define MINI_LLVM_ARM
13#elif defined(__powerpc64__) || defined(__ppc64__)
14# define MINI_LLVM_PPC64
15#elif defined(__powerpc__) || defined(__ppc__)
16# define MINI_LLVM_PPC
17#elif defined(__riscv) && __riscv_xlen == 64
18# define MINI_LLVM_RISCV64
19#elif defined(__riscv) && __riscv_xlen == 32
20# define MINI_LLVM_RISCV32
21#endif