Skip to content

Commit aa89c5f

Browse files
[NFC][libLTO] Rearrange declaration in lto.h
Summary: Rearrange the function declaration in lto.h so they falls in the correct doxygen group. Reviewers: tejohnson, bd1976llvm, deadalnix Reviewed By: tejohnson Subscribers: mehdi_amini, inglorion, jkorous, dexonsmith, ributzka, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67565 llvm-svn: 371900
1 parent a3e2763 commit aa89c5f

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

llvm/include/llvm-c/lto.h

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,48 @@ extern void
550550
lto_codegen_set_should_embed_uselists(lto_code_gen_t cg,
551551
lto_bool_t ShouldEmbedUselists);
552552

553+
/** Opaque reference to an LTO input file */
554+
typedef struct LLVMOpaqueLTOInput *lto_input_t;
555+
556+
/**
557+
* Creates an LTO input file from a buffer. The path
558+
* argument is used for diagnotics as this function
559+
* otherwise does not know which file the given buffer
560+
* is associated with.
561+
*
562+
* \since LTO_API_VERSION=24
563+
*/
564+
extern lto_input_t lto_input_create(const void *buffer,
565+
size_t buffer_size,
566+
const char *path);
567+
568+
/**
569+
* Frees all memory internally allocated by the LTO input file.
570+
* Upon return the lto_module_t is no longer valid.
571+
*
572+
* \since LTO_API_VERSION=24
573+
*/
574+
extern void lto_input_dispose(lto_input_t input);
575+
576+
/**
577+
* Returns the number of dependent library specifiers
578+
* for the given LTO input file.
579+
*
580+
* \since LTO_API_VERSION=24
581+
*/
582+
extern unsigned lto_input_get_num_dependent_libraries(lto_input_t input);
583+
584+
/**
585+
* Returns the ith dependent library specifier
586+
* for the given LTO input file. The returned
587+
* string is not null-terminated.
588+
*
589+
* \since LTO_API_VERSION=24
590+
*/
591+
extern const char * lto_input_get_dependent_library(lto_input_t input,
592+
size_t index,
593+
size_t *size);
594+
553595
/**
554596
* @} // endgoup LLVMCLTO
555597
* @defgroup LLVMCTLTO ThinLTO
@@ -846,48 +888,6 @@ thinlto_codegen_set_cache_size_megabytes(thinlto_code_gen_t cg,
846888
extern void thinlto_codegen_set_cache_size_files(thinlto_code_gen_t cg,
847889
unsigned max_size_files);
848890

849-
/** Opaque reference to an LTO input file */
850-
typedef struct LLVMOpaqueLTOInput *lto_input_t;
851-
852-
/**
853-
* Creates an LTO input file from a buffer. The path
854-
* argument is used for diagnotics as this function
855-
* otherwise does not know which file the given buffer
856-
* is associated with.
857-
*
858-
* \since LTO_API_VERSION=24
859-
*/
860-
extern lto_input_t lto_input_create(const void *buffer,
861-
size_t buffer_size,
862-
const char *path);
863-
864-
/**
865-
* Frees all memory internally allocated by the LTO input file.
866-
* Upon return the lto_module_t is no longer valid.
867-
*
868-
* \since LTO_API_VERSION=24
869-
*/
870-
extern void lto_input_dispose(lto_input_t input);
871-
872-
/**
873-
* Returns the number of dependent library specifiers
874-
* for the given LTO input file.
875-
*
876-
* \since LTO_API_VERSION=24
877-
*/
878-
extern unsigned lto_input_get_num_dependent_libraries(lto_input_t input);
879-
880-
/**
881-
* Returns the ith dependent library specifier
882-
* for the given LTO input file. The returned
883-
* string is not null-terminated.
884-
*
885-
* \since LTO_API_VERSION=24
886-
*/
887-
extern const char * lto_input_get_dependent_library(lto_input_t input,
888-
size_t index,
889-
size_t *size);
890-
891891
/**
892892
* @} // endgroup LLVMCTLTO_CACHING
893893
*/

0 commit comments

Comments
 (0)