1
- namespace LLVMSharp
1
+ namespace LLVMSharp
2
2
{
3
3
using System ;
4
4
using System . Runtime . InteropServices ;
@@ -54,8 +54,7 @@ public partial struct LLVMOpaqueDiagnosticInfo
54
54
public partial struct LLVMOpInfoSymbol1
55
55
{
56
56
public int @Present ;
57
- [ MarshalAs ( UnmanagedType . LPStr ) ]
58
- public string @Name ;
57
+ [ MarshalAs ( UnmanagedType . LPStr ) ] public string @Name ;
59
58
public int @Value ;
60
59
}
61
60
@@ -749,12 +748,6 @@ public enum LLVMCodeGenFileType : uint
749
748
@LLVMObjectFile = 1 ,
750
749
}
751
750
752
- public enum LLVMLinkerMode : uint
753
- {
754
- @LLVMLinkerDestroySource = 0 ,
755
- @LLVMLinkerPreserveSource = 1 ,
756
- }
757
-
758
751
public enum llvm_lto_status : uint
759
752
{
760
753
@LLVM_LTO_UNKNOWN = 0 ,
@@ -819,6 +812,9 @@ public static partial class LLVM
819
812
[ DllImport ( libraryPath , EntryPoint = "LLVMLoadLibraryPermanently" , CallingConvention = CallingConvention . Cdecl ) ]
820
813
public static extern LLVMBool LoadLibraryPermanently ( [ MarshalAs ( UnmanagedType . LPStr ) ] string @Filename ) ;
821
814
815
+ [ DllImport ( libraryPath , EntryPoint = "LLVMParseCommandLineOptions" , CallingConvention = CallingConvention . Cdecl ) ]
816
+ public static extern void ParseCommandLineOptions ( int @argc , string [ ] @argv , [ MarshalAs ( UnmanagedType . LPStr ) ] string @Overview ) ;
817
+
822
818
[ DllImport ( libraryPath , EntryPoint = "LLVMInitializeCore" , CallingConvention = CallingConvention . Cdecl ) ]
823
819
public static extern void InitializeCore ( LLVMPassRegistryRef @R ) ;
824
820
@@ -873,6 +869,9 @@ public static partial class LLVM
873
869
[ DllImport ( libraryPath , EntryPoint = "LLVMModuleCreateWithNameInContext" , CallingConvention = CallingConvention . Cdecl ) ]
874
870
public static extern LLVMModuleRef ModuleCreateWithNameInContext ( [ MarshalAs ( UnmanagedType . LPStr ) ] string @ModuleID , LLVMContextRef @C ) ;
875
871
872
+ [ DllImport ( libraryPath , EntryPoint = "LLVMCloneModule" , CallingConvention = CallingConvention . Cdecl ) ]
873
+ public static extern LLVMModuleRef CloneModule ( LLVMModuleRef @M ) ;
874
+
876
875
[ DllImport ( libraryPath , EntryPoint = "LLVMDisposeModule" , CallingConvention = CallingConvention . Cdecl ) ]
877
876
public static extern void DisposeModule ( LLVMModuleRef @M ) ;
878
877
@@ -1137,12 +1136,6 @@ public static partial class LLVM
1137
1136
[ DllImport ( libraryPath , EntryPoint = "LLVMIsAInlineAsm" , CallingConvention = CallingConvention . Cdecl ) ]
1138
1137
public static extern LLVMValueRef IsAInlineAsm ( LLVMValueRef @Val ) ;
1139
1138
1140
- [ DllImport ( libraryPath , EntryPoint = "LLVMIsAMDNode" , CallingConvention = CallingConvention . Cdecl ) ]
1141
- public static extern LLVMValueRef IsAMDNode ( LLVMValueRef @Val ) ;
1142
-
1143
- [ DllImport ( libraryPath , EntryPoint = "LLVMIsAMDString" , CallingConvention = CallingConvention . Cdecl ) ]
1144
- public static extern LLVMValueRef IsAMDString ( LLVMValueRef @Val ) ;
1145
-
1146
1139
[ DllImport ( libraryPath , EntryPoint = "LLVMIsAUser" , CallingConvention = CallingConvention . Cdecl ) ]
1147
1140
public static extern LLVMValueRef IsAUser ( LLVMValueRef @Val ) ;
1148
1141
@@ -1350,6 +1343,12 @@ public static partial class LLVM
1350
1343
[ DllImport ( libraryPath , EntryPoint = "LLVMIsAVAArgInst" , CallingConvention = CallingConvention . Cdecl ) ]
1351
1344
public static extern LLVMValueRef IsAVAArgInst ( LLVMValueRef @Val ) ;
1352
1345
1346
+ [ DllImport ( libraryPath , EntryPoint = "LLVMIsAMDNode" , CallingConvention = CallingConvention . Cdecl ) ]
1347
+ public static extern LLVMValueRef IsAMDNode ( LLVMValueRef @Val ) ;
1348
+
1349
+ [ DllImport ( libraryPath , EntryPoint = "LLVMIsAMDString" , CallingConvention = CallingConvention . Cdecl ) ]
1350
+ public static extern LLVMValueRef IsAMDString ( LLVMValueRef @Val ) ;
1351
+
1353
1352
[ DllImport ( libraryPath , EntryPoint = "LLVMGetFirstUse" , CallingConvention = CallingConvention . Cdecl ) ]
1354
1353
public static extern LLVMUseRef GetFirstUse ( LLVMValueRef @Val ) ;
1355
1354
@@ -1365,6 +1364,9 @@ public static partial class LLVM
1365
1364
[ DllImport ( libraryPath , EntryPoint = "LLVMGetOperand" , CallingConvention = CallingConvention . Cdecl ) ]
1366
1365
public static extern LLVMValueRef GetOperand ( LLVMValueRef @Val , uint @Index ) ;
1367
1366
1367
+ [ DllImport ( libraryPath , EntryPoint = "LLVMGetOperandUse" , CallingConvention = CallingConvention . Cdecl ) ]
1368
+ public static extern LLVMUseRef GetOperandUse ( LLVMValueRef @Val , uint @Index ) ;
1369
+
1368
1370
[ DllImport ( libraryPath , EntryPoint = "LLVMSetOperand" , CallingConvention = CallingConvention . Cdecl ) ]
1369
1371
public static extern void SetOperand ( LLVMValueRef @User , uint @Index , LLVMValueRef @Val ) ;
1370
1372
@@ -1413,12 +1415,21 @@ public static partial class LLVM
1413
1415
[ DllImport ( libraryPath , EntryPoint = "LLVMConstIntGetSExtValue" , CallingConvention = CallingConvention . Cdecl ) ]
1414
1416
public static extern long ConstIntGetSExtValue ( LLVMValueRef @ConstantVal ) ;
1415
1417
1418
+ [ DllImport ( libraryPath , EntryPoint = "LLVMConstRealGetDouble" , CallingConvention = CallingConvention . Cdecl ) ]
1419
+ public static extern double ConstRealGetDouble ( LLVMValueRef @ConstantVal , out LLVMBool @losesInfo ) ;
1420
+
1416
1421
[ DllImport ( libraryPath , EntryPoint = "LLVMConstStringInContext" , CallingConvention = CallingConvention . Cdecl ) ]
1417
1422
public static extern LLVMValueRef ConstStringInContext ( LLVMContextRef @C , [ MarshalAs ( UnmanagedType . LPStr ) ] string @Str , uint @Length , LLVMBool @DontNullTerminate ) ;
1418
1423
1419
1424
[ DllImport ( libraryPath , EntryPoint = "LLVMConstString" , CallingConvention = CallingConvention . Cdecl ) ]
1420
1425
public static extern LLVMValueRef ConstString ( [ MarshalAs ( UnmanagedType . LPStr ) ] string @Str , uint @Length , LLVMBool @DontNullTerminate ) ;
1421
1426
1427
+ [ DllImport ( libraryPath , EntryPoint = "LLVMIsConstantString" , CallingConvention = CallingConvention . Cdecl ) ]
1428
+ public static extern LLVMBool IsConstantString ( LLVMValueRef @c ) ;
1429
+
1430
+ [ DllImport ( libraryPath , EntryPoint = "LLVMGetAsString" , CallingConvention = CallingConvention . Cdecl ) ]
1431
+ public static extern string GetAsString ( LLVMValueRef @c , out int @out ) ;
1432
+
1422
1433
[ DllImport ( libraryPath , EntryPoint = "LLVMConstStructInContext" , CallingConvention = CallingConvention . Cdecl ) ]
1423
1434
public static extern LLVMValueRef ConstStructInContext ( LLVMContextRef @C , out LLVMValueRef @ConstantVals , uint @Count , LLVMBool @Packed ) ;
1424
1435
@@ -1431,6 +1442,9 @@ public static partial class LLVM
1431
1442
[ DllImport ( libraryPath , EntryPoint = "LLVMConstNamedStruct" , CallingConvention = CallingConvention . Cdecl ) ]
1432
1443
public static extern LLVMValueRef ConstNamedStruct ( LLVMTypeRef @StructTy , out LLVMValueRef @ConstantVals , uint @Count ) ;
1433
1444
1445
+ [ DllImport ( libraryPath , EntryPoint = "LLVMGetElementAsConstant" , CallingConvention = CallingConvention . Cdecl ) ]
1446
+ public static extern LLVMValueRef GetElementAsConstant ( LLVMValueRef @c , uint @idx ) ;
1447
+
1434
1448
[ DllImport ( libraryPath , EntryPoint = "LLVMConstVector" , CallingConvention = CallingConvention . Cdecl ) ]
1435
1449
public static extern LLVMValueRef ConstVector ( out LLVMValueRef @ScalarConstantVals , uint @Size ) ;
1436
1450
@@ -1905,6 +1919,12 @@ public static partial class LLVM
1905
1919
[ DllImport ( libraryPath , EntryPoint = "LLVMGetICmpPredicate" , CallingConvention = CallingConvention . Cdecl ) ]
1906
1920
public static extern LLVMIntPredicate GetICmpPredicate ( LLVMValueRef @Inst ) ;
1907
1921
1922
+ [ DllImport ( libraryPath , EntryPoint = "LLVMGetFCmpPredicate" , CallingConvention = CallingConvention . Cdecl ) ]
1923
+ public static extern LLVMRealPredicate GetFCmpPredicate ( LLVMValueRef @Inst ) ;
1924
+
1925
+ [ DllImport ( libraryPath , EntryPoint = "LLVMInstructionClone" , CallingConvention = CallingConvention . Cdecl ) ]
1926
+ public static extern LLVMValueRef InstructionClone ( LLVMValueRef @Inst ) ;
1927
+
1908
1928
[ DllImport ( libraryPath , EntryPoint = "LLVMSetInstructionCallConv" , CallingConvention = CallingConvention . Cdecl ) ]
1909
1929
public static extern void SetInstructionCallConv ( LLVMValueRef @Instr , uint @CC ) ;
1910
1930
@@ -1926,6 +1946,24 @@ public static partial class LLVM
1926
1946
[ DllImport ( libraryPath , EntryPoint = "LLVMSetTailCall" , CallingConvention = CallingConvention . Cdecl ) ]
1927
1947
public static extern void SetTailCall ( LLVMValueRef @CallInst , LLVMBool @IsTailCall ) ;
1928
1948
1949
+ [ DllImport ( libraryPath , EntryPoint = "LLVMGetNumSuccessors" , CallingConvention = CallingConvention . Cdecl ) ]
1950
+ public static extern uint GetNumSuccessors ( LLVMValueRef @Term ) ;
1951
+
1952
+ [ DllImport ( libraryPath , EntryPoint = "LLVMGetSuccessor" , CallingConvention = CallingConvention . Cdecl ) ]
1953
+ public static extern LLVMBasicBlockRef GetSuccessor ( LLVMValueRef @Term , uint @i ) ;
1954
+
1955
+ [ DllImport ( libraryPath , EntryPoint = "LLVMSetSuccessor" , CallingConvention = CallingConvention . Cdecl ) ]
1956
+ public static extern void SetSuccessor ( LLVMValueRef @Term , uint @i , LLVMBasicBlockRef @block ) ;
1957
+
1958
+ [ DllImport ( libraryPath , EntryPoint = "LLVMIsConditional" , CallingConvention = CallingConvention . Cdecl ) ]
1959
+ public static extern LLVMBool IsConditional ( LLVMValueRef @Branch ) ;
1960
+
1961
+ [ DllImport ( libraryPath , EntryPoint = "LLVMGetCondition" , CallingConvention = CallingConvention . Cdecl ) ]
1962
+ public static extern LLVMValueRef GetCondition ( LLVMValueRef @Branch ) ;
1963
+
1964
+ [ DllImport ( libraryPath , EntryPoint = "LLVMSetCondition" , CallingConvention = CallingConvention . Cdecl ) ]
1965
+ public static extern void SetCondition ( LLVMValueRef @Branch , LLVMValueRef @Cond ) ;
1966
+
1929
1967
[ DllImport ( libraryPath , EntryPoint = "LLVMGetSwitchDefaultDest" , CallingConvention = CallingConvention . Cdecl ) ]
1930
1968
public static extern LLVMBasicBlockRef GetSwitchDefaultDest ( LLVMValueRef @SwitchInstr ) ;
1931
1969
@@ -2370,12 +2408,18 @@ public static partial class LLVM
2370
2408
[ DllImport ( libraryPath , EntryPoint = "LLVMWriteBitcodeToFileHandle" , CallingConvention = CallingConvention . Cdecl ) ]
2371
2409
public static extern int WriteBitcodeToFileHandle ( LLVMModuleRef @M , int @Handle ) ;
2372
2410
2411
+ [ DllImport ( libraryPath , EntryPoint = "LLVMWriteBitcodeToMemoryBuffer" , CallingConvention = CallingConvention . Cdecl ) ]
2412
+ public static extern LLVMMemoryBufferRef WriteBitcodeToMemoryBuffer ( LLVMModuleRef @M ) ;
2413
+
2373
2414
[ DllImport ( libraryPath , EntryPoint = "LLVMCreateDisasm" , CallingConvention = CallingConvention . Cdecl ) ]
2374
2415
public static extern LLVMDisasmContextRef CreateDisasm ( [ MarshalAs ( UnmanagedType . LPStr ) ] string @TripleName , IntPtr @DisInfo , int @TagType , LLVMOpInfoCallback @GetOpInfo , LLVMSymbolLookupCallback @SymbolLookUp ) ;
2375
2416
2376
2417
[ DllImport ( libraryPath , EntryPoint = "LLVMCreateDisasmCPU" , CallingConvention = CallingConvention . Cdecl ) ]
2377
2418
public static extern LLVMDisasmContextRef CreateDisasmCPU ( [ MarshalAs ( UnmanagedType . LPStr ) ] string @Triple , [ MarshalAs ( UnmanagedType . LPStr ) ] string @CPU , IntPtr @DisInfo , int @TagType , LLVMOpInfoCallback @GetOpInfo , LLVMSymbolLookupCallback @SymbolLookUp ) ;
2378
2419
2420
+ [ DllImport ( libraryPath , EntryPoint = "LLVMCreateDisasmCPUFeatures" , CallingConvention = CallingConvention . Cdecl ) ]
2421
+ public static extern LLVMDisasmContextRef CreateDisasmCPUFeatures ( [ MarshalAs ( UnmanagedType . LPStr ) ] string @Triple , [ MarshalAs ( UnmanagedType . LPStr ) ] string @CPU , [ MarshalAs ( UnmanagedType . LPStr ) ] string @Features , IntPtr @DisInfo , int @TagType , LLVMOpInfoCallback @GetOpInfo , LLVMSymbolLookupCallback @SymbolLookUp ) ;
2422
+
2379
2423
[ DllImport ( libraryPath , EntryPoint = "LLVMSetDisasmOptions" , CallingConvention = CallingConvention . Cdecl ) ]
2380
2424
public static extern int SetDisasmOptions ( LLVMDisasmContextRef @DC , int @Options ) ;
2381
2425
@@ -2538,6 +2582,9 @@ public static partial class LLVM
2538
2582
[ DllImport ( libraryPath , EntryPoint = "LLVMInitializeX86AsmPrinter" , CallingConvention = CallingConvention . Cdecl ) ]
2539
2583
public static extern void InitializeX86AsmPrinter ( ) ;
2540
2584
2585
+ [ DllImport ( libraryPath , EntryPoint = "LLVMInitializeR600AsmParser" , CallingConvention = CallingConvention . Cdecl ) ]
2586
+ public static extern void InitializeR600AsmParser ( ) ;
2587
+
2541
2588
[ DllImport ( libraryPath , EntryPoint = "LLVMInitializeSystemZAsmParser" , CallingConvention = CallingConvention . Cdecl ) ]
2542
2589
public static extern void InitializeSystemZAsmParser ( ) ;
2543
2590
@@ -2562,6 +2609,9 @@ public static partial class LLVM
2562
2609
[ DllImport ( libraryPath , EntryPoint = "LLVMInitializeSystemZDisassembler" , CallingConvention = CallingConvention . Cdecl ) ]
2563
2610
public static extern void InitializeSystemZDisassembler ( ) ;
2564
2611
2612
+ [ DllImport ( libraryPath , EntryPoint = "LLVMInitializeHexagonDisassembler" , CallingConvention = CallingConvention . Cdecl ) ]
2613
+ public static extern void InitializeHexagonDisassembler ( ) ;
2614
+
2565
2615
[ DllImport ( libraryPath , EntryPoint = "LLVMInitializeXCoreDisassembler" , CallingConvention = CallingConvention . Cdecl ) ]
2566
2616
public static extern void InitializeXCoreDisassembler ( ) ;
2567
2617
@@ -2739,9 +2789,6 @@ public static partial class LLVM
2739
2789
[ DllImport ( libraryPath , EntryPoint = "LLVMAddAnalysisPasses" , CallingConvention = CallingConvention . Cdecl ) ]
2740
2790
public static extern void AddAnalysisPasses ( LLVMTargetMachineRef @T , LLVMPassManagerRef @PM ) ;
2741
2791
2742
- [ DllImport ( libraryPath , EntryPoint = "LLVMLinkInJIT" , CallingConvention = CallingConvention . Cdecl ) ]
2743
- public static extern void LinkInJIT ( ) ;
2744
-
2745
2792
[ DllImport ( libraryPath , EntryPoint = "LLVMLinkInMCJIT" , CallingConvention = CallingConvention . Cdecl ) ]
2746
2793
public static extern void LinkInMCJIT ( ) ;
2747
2794
@@ -2844,6 +2891,12 @@ public static partial class LLVM
2844
2891
[ DllImport ( libraryPath , EntryPoint = "LLVMGetPointerToGlobal" , CallingConvention = CallingConvention . Cdecl ) ]
2845
2892
public static extern IntPtr GetPointerToGlobal ( LLVMExecutionEngineRef @EE , LLVMValueRef @Global ) ;
2846
2893
2894
+ [ DllImport ( libraryPath , EntryPoint = "LLVMGetGlobalValueAddress" , CallingConvention = CallingConvention . Cdecl ) ]
2895
+ public static extern int GetGlobalValueAddress ( LLVMExecutionEngineRef @EE , [ MarshalAs ( UnmanagedType . LPStr ) ] string @Name ) ;
2896
+
2897
+ [ DllImport ( libraryPath , EntryPoint = "LLVMGetFunctionAddress" , CallingConvention = CallingConvention . Cdecl ) ]
2898
+ public static extern int GetFunctionAddress ( LLVMExecutionEngineRef @EE , [ MarshalAs ( UnmanagedType . LPStr ) ] string @Name ) ;
2899
+
2847
2900
[ DllImport ( libraryPath , EntryPoint = "LLVMCreateSimpleMCJITMemoryManager" , CallingConvention = CallingConvention . Cdecl ) ]
2848
2901
public static extern LLVMMCJITMemoryManagerRef CreateSimpleMCJITMemoryManager ( IntPtr @Opaque , LLVMMemoryManagerAllocateCodeSectionCallback @AllocateCodeSection , LLVMMemoryManagerAllocateDataSectionCallback @AllocateDataSection , LLVMMemoryManagerFinalizeMemoryCallback @FinalizeMemory , LLVMMemoryManagerDestroyCallback @Destroy ) ;
2849
2902
@@ -2887,7 +2940,7 @@ public static partial class LLVM
2887
2940
public static extern LLVMBool ParseIRInContext ( LLVMContextRef @ContextRef , LLVMMemoryBufferRef @MemBuf , out LLVMModuleRef @OutM , out IntPtr @OutMessage ) ;
2888
2941
2889
2942
[ DllImport ( libraryPath , EntryPoint = "LLVMLinkModules" , CallingConvention = CallingConvention . Cdecl ) ]
2890
- public static extern LLVMBool LinkModules ( LLVMModuleRef @Dest , LLVMModuleRef @Src , LLVMLinkerMode @Mode , out IntPtr @OutMessage ) ;
2943
+ public static extern LLVMBool LinkModules ( LLVMModuleRef @Dest , LLVMModuleRef @Src , uint @Unused , out IntPtr @OutMessage ) ;
2891
2944
2892
2945
[ DllImport ( libraryPath , EntryPoint = "llvm_create_optimizer" , CallingConvention = CallingConvention . Cdecl ) ]
2893
2946
public static extern llvm_lto_t llvm_create_optimizer ( ) ;
@@ -2928,6 +2981,12 @@ public static partial class LLVM
2928
2981
[ DllImport ( libraryPath , EntryPoint = "lto_module_create_from_memory_with_path" , CallingConvention = CallingConvention . Cdecl ) ]
2929
2982
public static extern lto_module_t lto_module_create_from_memory_with_path ( IntPtr @mem , int @length , [ MarshalAs ( UnmanagedType . LPStr ) ] string @path ) ;
2930
2983
2984
+ [ DllImport ( libraryPath , EntryPoint = "lto_module_create_in_local_context" , CallingConvention = CallingConvention . Cdecl ) ]
2985
+ public static extern lto_module_t lto_module_create_in_local_context ( IntPtr @mem , int @length , [ MarshalAs ( UnmanagedType . LPStr ) ] string @path ) ;
2986
+
2987
+ [ DllImport ( libraryPath , EntryPoint = "lto_module_create_in_codegen_context" , CallingConvention = CallingConvention . Cdecl ) ]
2988
+ public static extern lto_module_t lto_module_create_in_codegen_context ( IntPtr @mem , int @length , [ MarshalAs ( UnmanagedType . LPStr ) ] string @path , lto_code_gen_t @cg ) ;
2989
+
2931
2990
[ DllImport ( libraryPath , EntryPoint = "lto_module_create_from_fd" , CallingConvention = CallingConvention . Cdecl ) ]
2932
2991
public static extern lto_module_t lto_module_create_from_fd ( int @fd , [ MarshalAs ( UnmanagedType . LPStr ) ] string @path , int @file_size ) ;
2933
2992
@@ -2970,6 +3029,9 @@ public static partial class LLVM
2970
3029
[ DllImport ( libraryPath , EntryPoint = "lto_codegen_create" , CallingConvention = CallingConvention . Cdecl ) ]
2971
3030
public static extern lto_code_gen_t lto_codegen_create ( ) ;
2972
3031
3032
+ [ DllImport ( libraryPath , EntryPoint = "lto_codegen_create_in_local_context" , CallingConvention = CallingConvention . Cdecl ) ]
3033
+ public static extern lto_code_gen_t lto_codegen_create_in_local_context ( ) ;
3034
+
2973
3035
[ DllImport ( libraryPath , EntryPoint = "lto_codegen_dispose" , CallingConvention = CallingConvention . Cdecl ) ]
2974
3036
public static extern void lto_codegen_dispose ( lto_code_gen_t @param0 ) ;
2975
3037
@@ -3174,6 +3236,9 @@ public static partial class LLVM
3174
3236
[ DllImport ( libraryPath , EntryPoint = "LLVMAddAggressiveDCEPass" , CallingConvention = CallingConvention . Cdecl ) ]
3175
3237
public static extern void AddAggressiveDCEPass ( LLVMPassManagerRef @PM ) ;
3176
3238
3239
+ [ DllImport ( libraryPath , EntryPoint = "LLVMAddAlignmentFromAssumptionsPass" , CallingConvention = CallingConvention . Cdecl ) ]
3240
+ public static extern void AddAlignmentFromAssumptionsPass ( LLVMPassManagerRef @PM ) ;
3241
+
3177
3242
[ DllImport ( libraryPath , EntryPoint = "LLVMAddCFGSimplificationPass" , CallingConvention = CallingConvention . Cdecl ) ]
3178
3243
public static extern void AddCFGSimplificationPass ( LLVMPassManagerRef @PM ) ;
3179
3244
@@ -3225,6 +3290,9 @@ public static partial class LLVM
3225
3290
[ DllImport ( libraryPath , EntryPoint = "LLVMAddPartiallyInlineLibCallsPass" , CallingConvention = CallingConvention . Cdecl ) ]
3226
3291
public static extern void AddPartiallyInlineLibCallsPass ( LLVMPassManagerRef @PM ) ;
3227
3292
3293
+ [ DllImport ( libraryPath , EntryPoint = "LLVMAddLowerSwitchPass" , CallingConvention = CallingConvention . Cdecl ) ]
3294
+ public static extern void AddLowerSwitchPass ( LLVMPassManagerRef @PM ) ;
3295
+
3228
3296
[ DllImport ( libraryPath , EntryPoint = "LLVMAddPromoteMemoryToRegisterPass" , CallingConvention = CallingConvention . Cdecl ) ]
3229
3297
public static extern void AddPromoteMemoryToRegisterPass ( LLVMPassManagerRef @PM ) ;
3230
3298
@@ -3270,6 +3338,9 @@ public static partial class LLVM
3270
3338
[ DllImport ( libraryPath , EntryPoint = "LLVMAddTypeBasedAliasAnalysisPass" , CallingConvention = CallingConvention . Cdecl ) ]
3271
3339
public static extern void AddTypeBasedAliasAnalysisPass ( LLVMPassManagerRef @PM ) ;
3272
3340
3341
+ [ DllImport ( libraryPath , EntryPoint = "LLVMAddScopedNoAliasAAPass" , CallingConvention = CallingConvention . Cdecl ) ]
3342
+ public static extern void AddScopedNoAliasAAPass ( LLVMPassManagerRef @PM ) ;
3343
+
3273
3344
[ DllImport ( libraryPath , EntryPoint = "LLVMAddBasicAliasAnalysisPass" , CallingConvention = CallingConvention . Cdecl ) ]
3274
3345
public static extern void AddBasicAliasAnalysisPass ( LLVMPassManagerRef @PM ) ;
3275
3346
0 commit comments