|
1 | | -using CEnum |
| 1 | +using CEnum: CEnum, @cenum |
2 | 2 |
|
3 | 3 | const IS_LIBC_MUSL = occursin("musl", Base.MACHINE) |
4 | 4 |
|
@@ -840,11 +840,11 @@ end |
840 | 840 | end |
841 | 841 |
|
842 | 842 | """ |
843 | | - ##Ctag#230 |
| 843 | + ##Ctag#277 |
844 | 844 |
|
845 | 845 | Attribute index are either LLVMAttributeReturnIndex, LLVMAttributeFunctionIndex or a parameter number from 1 to N. |
846 | 846 | """ |
847 | | -@cenum var"##Ctag#230"::Int32 begin |
| 847 | +@cenum var"##Ctag#277"::Int32 begin |
848 | 848 | LLVMAttributeReturnIndex = 0 |
849 | 849 | LLVMAttributeFunctionIndex = -1 |
850 | 850 | end |
@@ -3350,6 +3350,14 @@ function LLVMGetAggregateElement(C, Idx) |
3350 | 3350 | ccall((:LLVMGetAggregateElement, libllvm), LLVMValueRef, (LLVMValueRef, Cuint), C, Idx) |
3351 | 3351 | end |
3352 | 3352 |
|
| 3353 | +""" |
| 3354 | + LLVMGetElementAsConstant(C, idx) |
| 3355 | +
|
| 3356 | +Get an element at specified index as a constant. |
| 3357 | +
|
| 3358 | +# See also |
| 3359 | +ConstantDataSequential::getElementAsConstant() |
| 3360 | +""" |
3353 | 3361 | function LLVMGetElementAsConstant(C, idx) |
3354 | 3362 | ccall((:LLVMGetElementAsConstant, libllvm), LLVMValueRef, (LLVMValueRef, Cuint), C, idx) |
3355 | 3363 | end |
@@ -3886,6 +3894,18 @@ function LLVMSetExternallyInitialized(GlobalVar, IsExtInit) |
3886 | 3894 | ccall((:LLVMSetExternallyInitialized, libllvm), Cvoid, (LLVMValueRef, LLVMBool), GlobalVar, IsExtInit) |
3887 | 3895 | end |
3888 | 3896 |
|
| 3897 | +""" |
| 3898 | + LLVMAddAlias(M, Ty, Aliasee, Name) |
| 3899 | +
|
| 3900 | +` LLVMCoreValueConstantGlobalAlias Global Aliases` |
| 3901 | +
|
| 3902 | +This group contains function that operate on global alias values. |
| 3903 | +
|
| 3904 | +@{ |
| 3905 | +
|
| 3906 | +# See also |
| 3907 | +llvm::GlobalAlias |
| 3908 | +""" |
3889 | 3909 | function LLVMAddAlias(M, Ty, Aliasee, Name) |
3890 | 3910 | ccall((:LLVMAddAlias, libllvm), LLVMValueRef, (LLVMModuleRef, LLVMTypeRef, LLVMValueRef, Cstring), M, Ty, Aliasee, Name) |
3891 | 3911 | end |
@@ -6534,11 +6554,11 @@ The amount of debug information to emit. |
6534 | 6554 | end |
6535 | 6555 |
|
6536 | 6556 | """ |
6537 | | - ##Ctag#231 |
| 6557 | + ##Ctag#278 |
6538 | 6558 |
|
6539 | 6559 | The kind of metadata nodes. |
6540 | 6560 | """ |
6541 | | -@cenum var"##Ctag#231"::UInt32 begin |
| 6561 | +@cenum var"##Ctag#278"::UInt32 begin |
6542 | 6562 | LLVMMDStringMetadataKind = 0 |
6543 | 6563 | LLVMConstantAsMetadataMetadataKind = 1 |
6544 | 6564 | LLVMLocalAsMetadataMetadataKind = 2 |
|
0 commit comments