You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
628 B
33 lines
628 B
4 months ago
|
/*
|
||
|
* Macros for asm code.
|
||
|
*
|
||
|
* 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 _ASMDEFS_H
|
||
|
#define _ASMDEFS_H
|
||
|
|
||
|
#define ENTRY_ALIGN(name, alignment) \
|
||
|
.global name; \
|
||
|
.type name,%function; \
|
||
|
.align alignment; \
|
||
|
name: \
|
||
|
.cfi_startproc;
|
||
|
|
||
|
#define ENTRY(name) ENTRY_ALIGN(name, 6)
|
||
|
|
||
|
#define ENTRY_ALIAS(name) \
|
||
|
.global name; \
|
||
|
.type name,%function; \
|
||
|
name:
|
||
|
|
||
|
#define END(name) \
|
||
|
.cfi_endproc; \
|
||
|
.size name, .-name;
|
||
|
|
||
|
#define L(l) .L ## l
|
||
|
|
||
|
#endif
|