mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 04:56:36 +00:00

This patch partially prepares the runtime source code to be built with -Wconversion, which should trigger warnings if any implicit conversions can possibly change a value. For builds done with icc or gcc, all such warnings are handled in this patch. clang gives a much longer list of warnings, particularly for sign conversions, which the other compilers don't report. The -Wconversion flag is commented into cmake files, but I'm not going to turn it on. If someone thinks it is important, and wants to fix all the clang warnings, they are welcome to. Types of changes made here involve either improving the consistency of types used so that no conversion is needed, or else performing careful explicit conversions, when we're sure a problem won't arise. Patch is a combination of changes by Terry Wilmarth and Johnny Peyton. Differential Revision: https://reviews.llvm.org/D92942
56 lines
1.6 KiB
C
56 lines
1.6 KiB
C
/*
|
|
* kmp_stub.h
|
|
*/
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef KMP_STUB_H
|
|
#define KMP_STUB_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif // __cplusplus
|
|
|
|
void __kmps_set_blocktime(int arg);
|
|
int __kmps_get_blocktime(void);
|
|
void __kmps_set_dynamic(int arg);
|
|
int __kmps_get_dynamic(void);
|
|
void __kmps_set_library(int arg);
|
|
int __kmps_get_library(void);
|
|
void __kmps_set_nested(int arg);
|
|
int __kmps_get_nested(void);
|
|
void __kmps_set_stacksize(size_t arg);
|
|
size_t __kmps_get_stacksize();
|
|
|
|
#ifndef KMP_SCHED_TYPE_DEFINED
|
|
#define KMP_SCHED_TYPE_DEFINED
|
|
typedef enum kmp_sched {
|
|
kmp_sched_static = 1, // mapped to kmp_sch_static_chunked (33)
|
|
kmp_sched_dynamic = 2, // mapped to kmp_sch_dynamic_chunked (35)
|
|
kmp_sched_guided = 3, // mapped to kmp_sch_guided_chunked (36)
|
|
kmp_sched_auto = 4, // mapped to kmp_sch_auto (38)
|
|
kmp_sched_default = kmp_sched_static // default scheduling
|
|
} kmp_sched_t;
|
|
#endif
|
|
void __kmps_set_schedule(kmp_sched_t kind, int modifier);
|
|
void __kmps_get_schedule(kmp_sched_t *kind, int *modifier);
|
|
|
|
kmp_proc_bind_t __kmps_get_proc_bind(void);
|
|
|
|
double __kmps_get_wtime();
|
|
double __kmps_get_wtick();
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif // __cplusplus
|
|
|
|
#endif // KMP_STUB_H
|
|
|
|
// end of file //
|