mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Add --print-large-functions for checking which functions likely dominate the compile time.
This commit is contained in:
@@ -81,6 +81,7 @@ void LLVMSetDSOLocal(LLVMValueRef Global, bool value);
|
||||
void LLVMSetTargetMachineUseInitArray(LLVMTargetMachineRef ref, bool use_init_array);
|
||||
void LLVMSetTargetMachineEmulatedTLS(LLVMTargetMachineRef ref, bool emulated_tls);
|
||||
void LLVMSetNoSanitizeAddress(LLVMValueRef Global);
|
||||
unsigned LLVMGetFunctionInstructionCount(LLVMValueRef function);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -341,6 +341,11 @@ void LLVMSetNoSanitizeAddress(LLVMValueRef Global)
|
||||
global->setSanitizerMetadata(data);
|
||||
}
|
||||
|
||||
unsigned LLVMGetFunctionInstructionCount(LLVMValueRef function)
|
||||
{
|
||||
auto func = llvm::unwrap<llvm::Function>(function);
|
||||
return func->getInstructionCount();
|
||||
}
|
||||
void LLVMBuilderSetFastMathFlags(LLVMBuilderRef Builder, FastMathOption option)
|
||||
{
|
||||
llvm::FastMathFlags math_flags {};
|
||||
|
||||
Reference in New Issue
Block a user