| ... | ... | @@ -93,17 +93,6 @@ pub const Context = opaque { |
| 93 | 93 | pub const constString = LLVMConstStringInContext; |
| 94 | 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 | 96 | pub const appendBasicBlock = LLVMAppendBasicBlockInContext; |
| 108 | 97 | extern fn LLVMAppendBasicBlockInContext(C: *Context, Fn: *Value, Name: [*:0]const u8) *BasicBlock; |
| 109 | 98 | |
| ... | ... | @@ -127,9 +116,6 @@ pub const Value = opaque { |
| 127 | 116 | pub const getFirstBasicBlock = LLVMGetFirstBasicBlock; |
| 128 | 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 | 119 | pub const addIncoming = LLVMAddIncoming; |
| 134 | 120 | extern fn LLVMAddIncoming( |
| 135 | 121 | PhiNode: *Value, |
| ... | ... | @@ -138,9 +124,6 @@ pub const Value = opaque { |
| 138 | 124 | Count: c_uint, |
| 139 | 125 | ) void; |
| 140 | 126 | |
| 141 | | pub const getNextInstruction = LLVMGetNextInstruction; |
| 142 | | extern fn LLVMGetNextInstruction(Inst: *Value) ?*Value; |
| 143 | | |
| 144 | 127 | pub const setGlobalConstant = LLVMSetGlobalConstant; |
| 145 | 128 | extern fn LLVMSetGlobalConstant(GlobalVar: *Value, IsConstant: Bool) void; |
| 146 | 129 | |
| ... | ... | @@ -162,30 +145,9 @@ pub const Value = opaque { |
| 162 | 145 | pub const deleteGlobal = LLVMDeleteGlobal; |
| 163 | 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 | 148 | pub const setAliasee = LLVMAliasSetAliasee; |
| 172 | 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 | 151 | pub const constAdd = LLVMConstAdd; |
| 190 | 152 | extern fn LLVMConstAdd(LHSConstant: *Value, RHSConstant: *Value) *Value; |
| 191 | 153 | |
| ... | ... | @@ -309,9 +271,6 @@ pub const Value = opaque { |
| 309 | 271 | pub const setVolatile = LLVMSetVolatile; |
| 310 | 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 | 274 | pub const setAlignment = LLVMSetAlignment; |
| 316 | 275 | extern fn LLVMSetAlignment(V: *Value, Bytes: c_uint) void; |
| 317 | 276 | |
| ... | ... | @@ -366,9 +325,6 @@ pub const Value = opaque { |
| 366 | 325 | pub const getAlignment = LLVMGetAlignment; |
| 367 | 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 | 328 | pub const attachMetaData = ZigLLVMAttachMetaData; |
| 373 | 329 | extern fn ZigLLVMAttachMetaData(GlobalVar: *Value, DIG: *DIGlobalVariableExpression) void; |
| 374 | 330 | |
| ... | ... | @@ -380,9 +336,6 @@ pub const Type = opaque { |
| 380 | 336 | pub const constNull = LLVMConstNull; |
| 381 | 337 | extern fn LLVMConstNull(Ty: *Type) *Value; |
| 382 | 338 | |
| 383 | | pub const constAllOnes = LLVMConstAllOnes; |
| 384 | | extern fn LLVMConstAllOnes(Ty: *Type) *Value; |
| 385 | | |
| 386 | 339 | pub const constInt = LLVMConstInt; |
| 387 | 340 | extern fn LLVMConstInt(IntTy: *Type, N: c_ulonglong, SignExtend: Bool) *Value; |
| 388 | 341 | |
| ... | ... | @@ -476,9 +429,6 @@ pub const Module = opaque { |
| 476 | 429 | pub const addFunctionInAddressSpace = ZigLLVMAddFunctionInAddressSpace; |
| 477 | 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 | 432 | pub const printToString = LLVMPrintModuleToString; |
| 483 | 433 | extern fn LLVMPrintModuleToString(*Module) [*:0]const u8; |
| 484 | 434 | |
| ... | ... | @@ -488,18 +438,9 @@ pub const Module = opaque { |
| 488 | 438 | pub const addGlobalInAddressSpace = LLVMAddGlobalInAddressSpace; |
| 489 | 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 | 441 | pub const dump = LLVMDumpModule; |
| 495 | 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 | 444 | pub const addAlias = LLVMAddAlias2; |
| 504 | 445 | extern fn LLVMAddAlias2( |
| 505 | 446 | M: *Module, |
| ... | ... | @@ -541,9 +482,6 @@ pub const Module = opaque { |
| 541 | 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 | 485 | pub const disposeMessage = LLVMDisposeMessage; |
| 548 | 486 | extern fn LLVMDisposeMessage(Message: [*:0]const u8) void; |
| 549 | 487 | |
| ... | ... | @@ -604,12 +542,6 @@ pub const Builder = opaque { |
| 604 | 542 | Instr: ?*Value, |
| 605 | 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 | 545 | pub const buildZExt = LLVMBuildZExt; |
| 614 | 546 | extern fn LLVMBuildZExt( |
| 615 | 547 | *Builder, |
| ... | ... | @@ -618,14 +550,6 @@ pub const Builder = opaque { |
| 618 | 550 | Name: [*:0]const u8, |
| 619 | 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 | 553 | pub const buildSExt = LLVMBuildSExt; |
| 630 | 554 | extern fn LLVMBuildSExt( |
| 631 | 555 | *Builder, |
| ... | ... | @@ -634,14 +558,6 @@ pub const Builder = opaque { |
| 634 | 558 | Name: [*:0]const u8, |
| 635 | 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 | 561 | pub const buildCall = LLVMBuildCall2; |
| 646 | 562 | extern fn LLVMBuildCall2( |
| 647 | 563 | *Builder, |
| ... | ... | @@ -670,12 +586,6 @@ pub const Builder = opaque { |
| 670 | 586 | pub const buildLoad = LLVMBuildLoad2; |
| 671 | 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 | 589 | pub const buildFAdd = LLVMBuildFAdd; |
| 680 | 590 | extern fn LLVMBuildFAdd(*Builder, LHS: *Value, RHS: *Value, Name: [*:0]const u8) *Value; |
| 681 | 591 | |