mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 22:36:06 +00:00

Add support for the WebAssembly binary format and be able to generate logical views. https://github.com/llvm/llvm-project/issues/69181 The README.txt includes information about how to build the test cases.
31 lines
949 B
C
31 lines
949 B
C
//-----------------------------------------------------------------------------
|
|
// Definitions.
|
|
//-----------------------------------------------------------------------------
|
|
#ifndef SUITE_DEFINITIONS_H
|
|
#define SUITE_DEFINITIONS_H
|
|
|
|
#ifdef _MSC_VER
|
|
#define forceinline __forceinline
|
|
#define OPTIMIZE_OFF __pragma(optimize("", off))
|
|
#define OPTIMIZE_ON __pragma(optimize("", on))
|
|
#elif defined(__clang__)
|
|
#if __has_attribute(__always_inline__)
|
|
#define forceinline inline __attribute__((__always_inline__))
|
|
#else
|
|
#define forceinline inline
|
|
#endif
|
|
#define OPTIMIZE_OFF _Pragma("clang optimize off")
|
|
#define OPTIMIZE_ON _Pragma("clang optimize on")
|
|
#elif defined(__GNUC__)
|
|
#define forceinline inline __attribute__((__always_inline__))
|
|
#define OPTIMIZE_OFF _Pragma("GCC optimize off")
|
|
#define OPTIMIZE_ON _Pragma("GCC optimize on")
|
|
#else
|
|
#define forceinline inline
|
|
#define OPTIMIZE_OFF
|
|
#define OPTIMIZE_ON
|
|
#error
|
|
#endif
|
|
|
|
#endif // SUITE_DEFINITIONS_H
|