blob: 3be3745d4c7a0ff1a4749515a840ae1a4de3295d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//===-- Implementation of crt for amdgpu ----------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
extern "C" int main(int argc, char **argv);
extern "C" [[gnu::visibility("protected"), clang::amdgpu_kernel]] void
_start(int argc, char **argv, int *ret) {
__atomic_fetch_or(ret, main(argc, argv), __ATOMIC_RELAXED);
}
|