Add RegisterCodeGenFlags to get full codegen flags list

This commit is contained in:
Liu Dingming 2023-09-07 17:34:41 +08:00
parent 7f0fa485a6
commit bb6dcf5f74

View file

@ -9,6 +9,7 @@
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/CodeGen/CommandFlags.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/AutoUpgrade.h"
#include "llvm/IR/AssemblyAnnotationWriter.h"
@ -50,6 +51,8 @@
using namespace llvm;
static codegen::RegisterCodeGenFlags CGF;
typedef struct LLVMOpaquePass *LLVMPassRef;
typedef struct LLVMOpaqueTargetMachine *LLVMTargetMachineRef;