| ... | @@ -93,17 +93,6 @@ pub const Context = opaque { | ... | @@ -93,17 +93,6 @@ pub const Context = opaque { |
| 93 | pub const constString = LLVMConstStringInContext; | 93 | pub const constString = LLVMConstStringInContext; |
| 94 | extern fn LLVMConstStringInContext(C: *Context, Str: [*]const u8, Length: c_uint, DontNullTerminate: Bool) *Value; | 94 | extern fn LLVMConstStringInContext(C: *Context, Str: [*]const u8, Length: c_uint, DontNullTerminate: Bool) *Value; |
| 95 | | 95 | |
| 96 | pub const constStruct = LLVMConstStructInContext; | | |
| 97 | extern fn LLVMConstStructInContext( | | |
| 98 | C: *Context, | | |
| 99 | ConstantVals: [*]const *Value, | | |
| 100 | Count: c_uint, | | |
| 101 | Packed: Bool, | | |
| 102 | ) *Value; | | |
| 103 | | | |
| 104 | pub const createBasicBlock = LLVMCreateBasicBlockInContext; | | |
| 105 | extern fn LLVMCreateBasicBlockInContext(C: *Context, Name: [*:0]const u8) *BasicBlock; | | |
| 106 | | | |
| 107 | pub const appendBasicBlock = LLVMAppendBasicBlockInContext; | 96 | pub const appendBasicBlock = LLVMAppendBasicBlockInContext; |
| 108 | extern fn LLVMAppendBasicBlockInContext(C: *Context, Fn: *Value, Name: [*:0]const u8) *BasicBlock; | 97 | extern fn LLVMAppendBasicBlockInContext(C: *Context, Fn: *Value, Name: [*:0]const u8) *BasicBlock; |
| 109 | | 98 | |
| ... | @@ -127,9 +116,6 @@ pub const Value = opaque { | ... | @@ -127,9 +116,6 @@ pub const Value = opaque { |
| 127 | pub const getFirstBasicBlock = LLVMGetFirstBasicBlock; | 116 | pub const getFirstBasicBlock = LLVMGetFirstBasicBlock; |
| 128 | extern fn LLVMGetFirstBasicBlock(Fn: *Value) ?*BasicBlock; | 117 | extern fn LLVMGetFirstBasicBlock(Fn: *Value) ?*BasicBlock; |
| 129 | | 118 | |
| 130 | pub const appendExistingBasicBlock = LLVMAppendExistingBasicBlock; | | |
| 131 | extern fn LLVMAppendExistingBasicBlock(Fn: *Value, BB: *BasicBlock) void; | | |
| 132 | | | |
| 133 | pub const addIncoming = LLVMAddIncoming; | 119 | pub const addIncoming = LLVMAddIncoming; |
| 134 | extern fn LLVMAddIncoming( | 120 | extern fn LLVMAddIncoming( |
| 135 | PhiNode: *Value, | 121 | PhiNode: *Value, |
| ... | @@ -138,9 +124,6 @@ pub const Value = opaque { | ... | @@ -138,9 +124,6 @@ pub const Value = opaque { |
| 138 | Count: c_uint, | 124 | Count: c_uint, |
| 139 | ) void; | 125 | ) void; |
| 140 | | 126 | |
| 141 | pub const getNextInstruction = LLVMGetNextInstruction; | | |
| 142 | extern fn LLVMGetNextInstruction(Inst: *Value) ?*Value; | | |
| 143 | | | |
| 144 | pub const setGlobalConstant = LLVMSetGlobalConstant; | 127 | pub const setGlobalConstant = LLVMSetGlobalConstant; |
| 145 | extern fn LLVMSetGlobalConstant(GlobalVar: *Value, IsConstant: Bool) void; | 128 | extern fn LLVMSetGlobalConstant(GlobalVar: *Value, IsConstant: Bool) void; |
| 146 | | 129 | |
| ... | @@ -162,30 +145,9 @@ pub const Value = opaque { | ... | @@ -162,30 +145,9 @@ pub const Value = opaque { |
| 162 | pub const deleteGlobal = LLVMDeleteGlobal; | 145 | pub const deleteGlobal = LLVMDeleteGlobal; |
| 163 | extern fn LLVMDeleteGlobal(GlobalVar: *Value) void; | 146 | extern fn LLVMDeleteGlobal(GlobalVar: *Value) void; |
| 164 | | 147 | |
| 165 | pub const getNextGlobalAlias = LLVMGetNextGlobalAlias; | | |
| 166 | extern fn LLVMGetNextGlobalAlias(GA: *Value) *Value; | | |
| 167 | | | |
| 168 | pub const getAliasee = LLVMAliasGetAliasee; | | |
| 169 | extern fn LLVMAliasGetAliasee(Alias: *Value) *Value; | | |
| 170 | | | |
| 171 | pub const setAliasee = LLVMAliasSetAliasee; | 148 | pub const setAliasee = LLVMAliasSetAliasee; |
| 172 | extern fn LLVMAliasSetAliasee(Alias: *Value, Aliasee: *Value) void; | 149 | extern fn LLVMAliasSetAliasee(Alias: *Value, Aliasee: *Value) void; |
| 173 | | 150 | |
| 174 | pub const constZExtOrBitCast = LLVMConstZExtOrBitCast; | | |
| 175 | extern fn LLVMConstZExtOrBitCast(ConstantVal: *Value, ToType: *Type) *Value; | | |
| 176 | | | |
| 177 | pub const constNeg = LLVMConstNeg; | | |
| 178 | extern fn LLVMConstNeg(ConstantVal: *Value) *Value; | | |
| 179 | | | |
| 180 | pub const constNSWNeg = LLVMConstNSWNeg; | | |
| 181 | extern fn LLVMConstNSWNeg(ConstantVal: *Value) *Value; | | |
| 182 | | | |
| 183 | pub const constNUWNeg = LLVMConstNUWNeg; | | |
| 184 | extern fn LLVMConstNUWNeg(ConstantVal: *Value) *Value; | | |
| 185 | | | |
| 186 | pub const constNot = LLVMConstNot; | | |
| 187 | extern fn LLVMConstNot(ConstantVal: *Value) *Value; | | |
| 188 | | | |
| 189 | pub const constAdd = LLVMConstAdd; | 151 | pub const constAdd = LLVMConstAdd; |
| 190 | extern fn LLVMConstAdd(LHSConstant: *Value, RHSConstant: *Value) *Value; | 152 | extern fn LLVMConstAdd(LHSConstant: *Value, RHSConstant: *Value) *Value; |
| 191 | | 153 | |
| ... | @@ -309,9 +271,6 @@ pub const Value = opaque { | ... | @@ -309,9 +271,6 @@ pub const Value = opaque { |
| 309 | pub const setVolatile = LLVMSetVolatile; | 271 | pub const setVolatile = LLVMSetVolatile; |
| 310 | extern fn LLVMSetVolatile(MemoryAccessInst: *Value, IsVolatile: Bool) void; | 272 | extern fn LLVMSetVolatile(MemoryAccessInst: *Value, IsVolatile: Bool) void; |
| 311 | | 273 | |
| 312 | pub const setAtomicSingleThread = LLVMSetAtomicSingleThread; | | |
| 313 | extern fn LLVMSetAtomicSingleThread(AtomicInst: *Value, SingleThread: Bool) void; | | |
| 314 | | | |
| 315 | pub const setAlignment = LLVMSetAlignment; | 274 | pub const setAlignment = LLVMSetAlignment; |
| 316 | extern fn LLVMSetAlignment(V: *Value, Bytes: c_uint) void; | 275 | extern fn LLVMSetAlignment(V: *Value, Bytes: c_uint) void; |
| 317 | | 276 | |
| ... | @@ -366,9 +325,6 @@ pub const Value = opaque { | ... | @@ -366,9 +325,6 @@ pub const Value = opaque { |
| 366 | pub const getAlignment = LLVMGetAlignment; | 325 | pub const getAlignment = LLVMGetAlignment; |
| 367 | extern fn LLVMGetAlignment(V: *Value) c_uint; | 326 | extern fn LLVMGetAlignment(V: *Value) c_uint; |
| 368 | | 327 | |
| 369 | pub const addByValAttr = ZigLLVMAddByValAttr; | | |
| 370 | extern fn ZigLLVMAddByValAttr(Fn: *Value, ArgNo: c_uint, type: *Type) void; | | |
| 371 | | | |
| 372 | pub const attachMetaData = ZigLLVMAttachMetaData; | 328 | pub const attachMetaData = ZigLLVMAttachMetaData; |
| 373 | extern fn ZigLLVMAttachMetaData(GlobalVar: *Value, DIG: *DIGlobalVariableExpression) void; | 329 | extern fn ZigLLVMAttachMetaData(GlobalVar: *Value, DIG: *DIGlobalVariableExpression) void; |
| 374 | | 330 | |
| ... | @@ -380,9 +336,6 @@ pub const Type = opaque { | ... | @@ -380,9 +336,6 @@ pub const Type = opaque { |
| 380 | pub const constNull = LLVMConstNull; | 336 | pub const constNull = LLVMConstNull; |
| 381 | extern fn LLVMConstNull(Ty: *Type) *Value; | 337 | extern fn LLVMConstNull(Ty: *Type) *Value; |
| 382 | | 338 | |
| 383 | pub const constAllOnes = LLVMConstAllOnes; | | |
| 384 | extern fn LLVMConstAllOnes(Ty: *Type) *Value; | | |
| 385 | | | |
| 386 | pub const constInt = LLVMConstInt; | 339 | pub const constInt = LLVMConstInt; |
| 387 | extern fn LLVMConstInt(IntTy: *Type, N: c_ulonglong, SignExtend: Bool) *Value; | 340 | extern fn LLVMConstInt(IntTy: *Type, N: c_ulonglong, SignExtend: Bool) *Value; |
| 388 | | 341 | |
| ... | @@ -476,9 +429,6 @@ pub const Module = opaque { | ... | @@ -476,9 +429,6 @@ pub const Module = opaque { |
| 476 | pub const addFunctionInAddressSpace = ZigLLVMAddFunctionInAddressSpace; | 429 | pub const addFunctionInAddressSpace = ZigLLVMAddFunctionInAddressSpace; |
| 477 | extern fn ZigLLVMAddFunctionInAddressSpace(*Module, Name: [*:0]const u8, FunctionTy: *Type, AddressSpace: c_uint) *Value; | 430 | extern fn ZigLLVMAddFunctionInAddressSpace(*Module, Name: [*:0]const u8, FunctionTy: *Type, AddressSpace: c_uint) *Value; |
| 478 | | 431 | |
| 479 | pub const getNamedFunction = LLVMGetNamedFunction; | | |
| 480 | extern fn LLVMGetNamedFunction(*Module, Name: [*:0]const u8) ?*Value; | | |
| 481 | | | |
| 482 | pub const printToString = LLVMPrintModuleToString; | 432 | pub const printToString = LLVMPrintModuleToString; |
| 483 | extern fn LLVMPrintModuleToString(*Module) [*:0]const u8; | 433 | extern fn LLVMPrintModuleToString(*Module) [*:0]const u8; |
| 484 | | 434 | |
| ... | @@ -488,18 +438,9 @@ pub const Module = opaque { | ... | @@ -488,18 +438,9 @@ pub const Module = opaque { |
| 488 | pub const addGlobalInAddressSpace = LLVMAddGlobalInAddressSpace; | 438 | pub const addGlobalInAddressSpace = LLVMAddGlobalInAddressSpace; |
| 489 | extern fn LLVMAddGlobalInAddressSpace(M: *Module, Ty: *Type, Name: [*:0]const u8, AddressSpace: c_uint) *Value; | 439 | extern fn LLVMAddGlobalInAddressSpace(M: *Module, Ty: *Type, Name: [*:0]const u8, AddressSpace: c_uint) *Value; |
| 490 | | 440 | |
| 491 | pub const getNamedGlobal = LLVMGetNamedGlobal; | | |
| 492 | extern fn LLVMGetNamedGlobal(M: *Module, Name: [*:0]const u8) ?*Value; | | |
| 493 | | | |
| 494 | pub const dump = LLVMDumpModule; | 441 | pub const dump = LLVMDumpModule; |
| 495 | extern fn LLVMDumpModule(M: *Module) void; | 442 | extern fn LLVMDumpModule(M: *Module) void; |
| 496 | | 443 | |
| 497 | pub const getFirstGlobalAlias = LLVMGetFirstGlobalAlias; | | |
| 498 | extern fn LLVMGetFirstGlobalAlias(M: *Module) *Value; | | |
| 499 | | | |
| 500 | pub const getLastGlobalAlias = LLVMGetLastGlobalAlias; | | |
| 501 | extern fn LLVMGetLastGlobalAlias(M: *Module) *Value; | | |
| 502 | | | |
| 503 | pub const addAlias = LLVMAddAlias2; | 444 | pub const addAlias = LLVMAddAlias2; |
| 504 | extern fn LLVMAddAlias2( | 445 | extern fn LLVMAddAlias2( |
| 505 | M: *Module, | 446 | M: *Module, |
| ... | @@ -541,9 +482,6 @@ pub const Module = opaque { | ... | @@ -541,9 +482,6 @@ pub const Module = opaque { |
| 541 | extern fn LLVMWriteBitcodeToFile(M: *Module, Path: [*:0]const u8) c_int; | 482 | extern fn LLVMWriteBitcodeToFile(M: *Module, Path: [*:0]const u8) c_int; |
| 542 | }; | 483 | }; |
| 543 | | 484 | |
| 544 | pub const lookupIntrinsicID = LLVMLookupIntrinsicID; | | |
| 545 | extern fn LLVMLookupIntrinsicID(Name: [*]const u8, NameLen: usize) c_uint; | | |
| 546 | | | |
| 547 | pub const disposeMessage = LLVMDisposeMessage; | 485 | pub const disposeMessage = LLVMDisposeMessage; |
| 548 | extern fn LLVMDisposeMessage(Message: [*:0]const u8) void; | 486 | extern fn LLVMDisposeMessage(Message: [*:0]const u8) void; |
| 549 | | 487 | |
| ... | @@ -604,12 +542,6 @@ pub const Builder = opaque { | ... | @@ -604,12 +542,6 @@ pub const Builder = opaque { |
| 604 | Instr: ?*Value, | 542 | Instr: ?*Value, |
| 605 | ) void; | 543 | ) void; |
| 606 | | 544 | |
| 607 | pub const positionBuilderAtEnd = LLVMPositionBuilderAtEnd; | | |
| 608 | extern fn LLVMPositionBuilderAtEnd(Builder: *Builder, Block: *BasicBlock) void; | | |
| 609 | | | |
| 610 | pub const getInsertBlock = LLVMGetInsertBlock; | | |
| 611 | extern fn LLVMGetInsertBlock(Builder: *Builder) *BasicBlock; | | |
| 612 | | | |
| 613 | pub const buildZExt = LLVMBuildZExt; | 545 | pub const buildZExt = LLVMBuildZExt; |
| 614 | extern fn LLVMBuildZExt( | 546 | extern fn LLVMBuildZExt( |
| 615 | *Builder, | 547 | *Builder, |
| ... | @@ -618,14 +550,6 @@ pub const Builder = opaque { | ... | @@ -618,14 +550,6 @@ pub const Builder = opaque { |
| 618 | Name: [*:0]const u8, | 550 | Name: [*:0]const u8, |
| 619 | ) *Value; | 551 | ) *Value; |
| 620 | | 552 | |
| 621 | pub const buildZExtOrBitCast = LLVMBuildZExtOrBitCast; | | |
| 622 | extern fn LLVMBuildZExtOrBitCast( | | |
| 623 | *Builder, | | |
| 624 | Val: *Value, | | |
| 625 | DestTy: *Type, | | |
| 626 | Name: [*:0]const u8, | | |
| 627 | ) *Value; | | |
| 628 | | | |
| 629 | pub const buildSExt = LLVMBuildSExt; | 553 | pub const buildSExt = LLVMBuildSExt; |
| 630 | extern fn LLVMBuildSExt( | 554 | extern fn LLVMBuildSExt( |
| 631 | *Builder, | 555 | *Builder, |
| ... | @@ -634,14 +558,6 @@ pub const Builder = opaque { | ... | @@ -634,14 +558,6 @@ pub const Builder = opaque { |
| 634 | Name: [*:0]const u8, | 558 | Name: [*:0]const u8, |
| 635 | ) *Value; | 559 | ) *Value; |
| 636 | | 560 | |
| 637 | pub const buildSExtOrBitCast = LLVMBuildSExtOrBitCast; | | |
| 638 | extern fn LLVMBuildSExtOrBitCast( | | |
| 639 | *Builder, | | |
| 640 | Val: *Value, | | |
| 641 | DestTy: *Type, | | |
| 642 | Name: [*:0]const u8, | | |
| 643 | ) *Value; | | |
| 644 | | | |
| 645 | pub const buildCall = LLVMBuildCall2; | 561 | pub const buildCall = LLVMBuildCall2; |
| 646 | extern fn LLVMBuildCall2( | 562 | extern fn LLVMBuildCall2( |
| 647 | *Builder, | 563 | *Builder, |
| ... | @@ -670,12 +586,6 @@ pub const Builder = opaque { | ... | @@ -670,12 +586,6 @@ pub const Builder = opaque { |
| 670 | pub const buildLoad = LLVMBuildLoad2; | 586 | pub const buildLoad = LLVMBuildLoad2; |
| 671 | extern fn LLVMBuildLoad2(*Builder, Ty: *Type, PointerVal: *Value, Name: [*:0]const u8) *Value; | 587 | extern fn LLVMBuildLoad2(*Builder, Ty: *Type, PointerVal: *Value, Name: [*:0]const u8) *Value; |
| 672 | | 588 | |
| 673 | pub const buildNeg = LLVMBuildNeg; | | |
| 674 | extern fn LLVMBuildNeg(*Builder, V: *Value, Name: [*:0]const u8) *Value; | | |
| 675 | | | |
| 676 | pub const buildNot = LLVMBuildNot; | | |
| 677 | extern fn LLVMBuildNot(*Builder, V: *Value, Name: [*:0]const u8) *Value; | | |
| 678 | | | |
| 679 | pub const buildFAdd = LLVMBuildFAdd; | 589 | pub const buildFAdd = LLVMBuildFAdd; |
| 680 | extern fn LLVMBuildFAdd(*Builder, LHS: *Value, RHS: *Value, Name: [*:0]const u8) *Value; | 590 | extern fn LLVMBuildFAdd(*Builder, LHS: *Value, RHS: *Value, Name: [*:0]const u8) *Value; |
| 681 | | 591 | |