mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 12:48:14 +00:00
Update to LLVM 20.1.0
This commit is contained in:
@@ -14,9 +14,9 @@
|
||||
#ifndef LLVM_C_TRANSFORMS_PASSBUILDER_H
|
||||
#define LLVM_C_TRANSFORMS_PASSBUILDER_H
|
||||
|
||||
#include "../Error.h"
|
||||
#include "../TargetMachine.h"
|
||||
#include "../Types.h"
|
||||
#include "llvm-c/Error.h"
|
||||
#include "llvm-c/TargetMachine.h"
|
||||
#include "llvm-c/Types.h"
|
||||
|
||||
/**
|
||||
* @defgroup LLVMCCoreNewPM New Pass Manager
|
||||
@@ -50,6 +50,16 @@ LLVMErrorRef LLVMRunPasses(LLVMModuleRef M, const char *Passes,
|
||||
LLVMTargetMachineRef TM,
|
||||
LLVMPassBuilderOptionsRef Options);
|
||||
|
||||
/**
|
||||
* Construct and run a set of passes over a function.
|
||||
*
|
||||
* This function behaves the same as LLVMRunPasses, but operates on a single
|
||||
* function instead of an entire module.
|
||||
*/
|
||||
LLVMErrorRef LLVMRunPassesOnFunction(LLVMValueRef F, const char *Passes,
|
||||
LLVMTargetMachineRef TM,
|
||||
LLVMPassBuilderOptionsRef Options);
|
||||
|
||||
/**
|
||||
* Create a new set of options for a PassBuilder
|
||||
*
|
||||
@@ -72,6 +82,14 @@ void LLVMPassBuilderOptionsSetVerifyEach(LLVMPassBuilderOptionsRef Options,
|
||||
void LLVMPassBuilderOptionsSetDebugLogging(LLVMPassBuilderOptionsRef Options,
|
||||
LLVMBool DebugLogging);
|
||||
|
||||
/**
|
||||
* Specify a custom alias analysis pipeline for the PassBuilder to be used
|
||||
* instead of the default one. The string argument is not copied; the caller
|
||||
* is responsible for ensuring it outlives the PassBuilderOptions instance.
|
||||
*/
|
||||
void LLVMPassBuilderOptionsSetAAPipeline(LLVMPassBuilderOptionsRef Options,
|
||||
const char *AAPipeline);
|
||||
|
||||
void LLVMPassBuilderOptionsSetLoopInterleaving(
|
||||
LLVMPassBuilderOptionsRef Options, LLVMBool LoopInterleaving);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user