Zephyr Project API
3.2.0
A Scalable Open Source RTOS
llvm.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Intel Corporation.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_TOOLCHAIN_LLVM_H_
8
#define ZEPHYR_INCLUDE_TOOLCHAIN_LLVM_H_
9
10
11
#define __no_optimization __attribute__((optnone))
12
13
#if __clang_major__ >= 10
14
#define __fallthrough __attribute__((fallthrough))
15
#endif
16
17
#define CLANG_VERSION \
18
((__clang_major__ * 10000) + (__clang_minor__ * 100) + \
19
__clang_patchlevel__)
20
21
#define TOOLCHAIN_HAS_PRAGMA_DIAG 1
22
23
#if CLANG_VERSION >= 30800
24
#define TOOLCHAIN_HAS_C_GENERIC 1
25
#define TOOLCHAIN_HAS_C_AUTO_TYPE 1
26
#endif
27
28
#include <
zephyr/toolchain/gcc.h
>
29
30
31
#endif
/* ZEPHYR_INCLUDE_TOOLCHAIN_LLVM_H_ */
gcc.h
GCC toolchain abstraction.
include
zephyr
toolchain
llvm.h
Generated on Tue Feb 28 2023 15:43:19 for Zephyr Project API by
1.9.2