-
-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(llvm) target-init for more architectures
Added: AArch64, AMDGPU, ARM, Mips, PowerPC, RISCV, WebAssembly.
- Loading branch information
1 parent
b887187
commit 9734ed2
Showing
16 changed files
with
754 additions
and
5 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/LLVMTargetAArch64.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* Copyright LWJGL. All rights reserved. | ||
* License terms: https://www.lwjgl.org/license | ||
* MACHINE GENERATED FILE, DO NOT EDIT | ||
*/ | ||
package org.lwjgl.llvm; | ||
|
||
import org.lwjgl.system.*; | ||
|
||
import static org.lwjgl.system.APIUtil.*; | ||
import static org.lwjgl.system.JNI.*; | ||
|
||
public class LLVMTargetAArch64 { | ||
|
||
/** Contains the function pointers loaded from {@code LLVMCore.getLibrary()}. */ | ||
public static final class Functions { | ||
|
||
private Functions() {} | ||
|
||
/** Function address. */ | ||
public static final long | ||
InitializeAArch64TargetInfo = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAArch64TargetInfo"), | ||
InitializeAArch64Target = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAArch64Target"), | ||
InitializeAArch64TargetMC = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAArch64TargetMC"), | ||
InitializeAArch64AsmPrinter = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAArch64AsmPrinter"), | ||
InitializeAArch64AsmParser = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAArch64AsmParser"), | ||
InitializeAArch64Disassembler = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAArch64Disassembler"); | ||
|
||
} | ||
|
||
protected LLVMTargetAArch64() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
// --- [ LLVMInitializeAArch64TargetInfo ] --- | ||
|
||
public static void LLVMInitializeAArch64TargetInfo() { | ||
long __functionAddress = Functions.InitializeAArch64TargetInfo; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeAArch64Target ] --- | ||
|
||
public static void LLVMInitializeAArch64Target() { | ||
long __functionAddress = Functions.InitializeAArch64Target; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeAArch64TargetMC ] --- | ||
|
||
public static void LLVMInitializeAArch64TargetMC() { | ||
long __functionAddress = Functions.InitializeAArch64TargetMC; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeAArch64AsmPrinter ] --- | ||
|
||
public static void LLVMInitializeAArch64AsmPrinter() { | ||
long __functionAddress = Functions.InitializeAArch64AsmPrinter; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeAArch64AsmParser ] --- | ||
|
||
public static void LLVMInitializeAArch64AsmParser() { | ||
long __functionAddress = Functions.InitializeAArch64AsmParser; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeAArch64Disassembler ] --- | ||
|
||
public static void LLVMInitializeAArch64Disassembler() { | ||
long __functionAddress = Functions.InitializeAArch64Disassembler; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
} |
89 changes: 89 additions & 0 deletions
89
modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/LLVMTargetAMDGPU.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/* | ||
* Copyright LWJGL. All rights reserved. | ||
* License terms: https://www.lwjgl.org/license | ||
* MACHINE GENERATED FILE, DO NOT EDIT | ||
*/ | ||
package org.lwjgl.llvm; | ||
|
||
import org.lwjgl.system.*; | ||
|
||
import static org.lwjgl.system.APIUtil.*; | ||
import static org.lwjgl.system.Checks.*; | ||
import static org.lwjgl.system.JNI.*; | ||
|
||
public class LLVMTargetAMDGPU { | ||
|
||
/** Contains the function pointers loaded from {@code LLVMCore.getLibrary()}. */ | ||
public static final class Functions { | ||
|
||
private Functions() {} | ||
|
||
/** Function address. */ | ||
public static final long | ||
InitializeAMDGPUTargetInfo = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAMDGPUTargetInfo"), | ||
InitializeAMDGPUTarget = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAMDGPUTarget"), | ||
InitializeAMDGPUTargetMC = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAMDGPUTargetMC"), | ||
InitializeAMDGPUTargetMCA = apiGetFunctionAddressOptional(LLVMCore.getLibrary(), "LLVMInitializeAMDGPUTargetMCA"), | ||
InitializeAMDGPUAsmPrinter = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAMDGPUAsmPrinter"), | ||
InitializeAMDGPUAsmParser = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAMDGPUAsmParser"), | ||
InitializeAMDGPUDisassembler = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeAMDGPUDisassembler"); | ||
|
||
} | ||
|
||
protected LLVMTargetAMDGPU() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
// --- [ LLVMInitializeAMDGPUTargetInfo ] --- | ||
|
||
public static void LLVMInitializeAMDGPUTargetInfo() { | ||
long __functionAddress = Functions.InitializeAMDGPUTargetInfo; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeAMDGPUTarget ] --- | ||
|
||
public static void LLVMInitializeAMDGPUTarget() { | ||
long __functionAddress = Functions.InitializeAMDGPUTarget; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeAMDGPUTargetMC ] --- | ||
|
||
public static void LLVMInitializeAMDGPUTargetMC() { | ||
long __functionAddress = Functions.InitializeAMDGPUTargetMC; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeAMDGPUTargetMCA ] --- | ||
|
||
public static void LLVMInitializeAMDGPUTargetMCA() { | ||
long __functionAddress = Functions.InitializeAMDGPUTargetMCA; | ||
if (CHECKS) { | ||
check(__functionAddress); | ||
} | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeAMDGPUAsmPrinter ] --- | ||
|
||
public static void LLVMInitializeAMDGPUAsmPrinter() { | ||
long __functionAddress = Functions.InitializeAMDGPUAsmPrinter; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeAMDGPUAsmParser ] --- | ||
|
||
public static void LLVMInitializeAMDGPUAsmParser() { | ||
long __functionAddress = Functions.InitializeAMDGPUAsmParser; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeAMDGPUDisassembler ] --- | ||
|
||
public static void LLVMInitializeAMDGPUDisassembler() { | ||
long __functionAddress = Functions.InitializeAMDGPUDisassembler; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
} |
77 changes: 77 additions & 0 deletions
77
modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/LLVMTargetARM.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* Copyright LWJGL. All rights reserved. | ||
* License terms: https://www.lwjgl.org/license | ||
* MACHINE GENERATED FILE, DO NOT EDIT | ||
*/ | ||
package org.lwjgl.llvm; | ||
|
||
import org.lwjgl.system.*; | ||
|
||
import static org.lwjgl.system.APIUtil.*; | ||
import static org.lwjgl.system.JNI.*; | ||
|
||
public class LLVMTargetARM { | ||
|
||
/** Contains the function pointers loaded from {@code LLVMCore.getLibrary()}. */ | ||
public static final class Functions { | ||
|
||
private Functions() {} | ||
|
||
/** Function address. */ | ||
public static final long | ||
InitializeARMTargetInfo = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeARMTargetInfo"), | ||
InitializeARMTarget = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeARMTarget"), | ||
InitializeARMTargetMC = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeARMTargetMC"), | ||
InitializeARMAsmPrinter = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeARMAsmPrinter"), | ||
InitializeARMAsmParser = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeARMAsmParser"), | ||
InitializeARMDisassembler = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeARMDisassembler"); | ||
|
||
} | ||
|
||
protected LLVMTargetARM() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
// --- [ LLVMInitializeARMTargetInfo ] --- | ||
|
||
public static void LLVMInitializeARMTargetInfo() { | ||
long __functionAddress = Functions.InitializeARMTargetInfo; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeARMTarget ] --- | ||
|
||
public static void LLVMInitializeARMTarget() { | ||
long __functionAddress = Functions.InitializeARMTarget; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeARMTargetMC ] --- | ||
|
||
public static void LLVMInitializeARMTargetMC() { | ||
long __functionAddress = Functions.InitializeARMTargetMC; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeARMAsmPrinter ] --- | ||
|
||
public static void LLVMInitializeARMAsmPrinter() { | ||
long __functionAddress = Functions.InitializeARMAsmPrinter; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeARMAsmParser ] --- | ||
|
||
public static void LLVMInitializeARMAsmParser() { | ||
long __functionAddress = Functions.InitializeARMAsmParser; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeARMDisassembler ] --- | ||
|
||
public static void LLVMInitializeARMDisassembler() { | ||
long __functionAddress = Functions.InitializeARMDisassembler; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
} |
77 changes: 77 additions & 0 deletions
77
modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/LLVMTargetMips.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* Copyright LWJGL. All rights reserved. | ||
* License terms: https://www.lwjgl.org/license | ||
* MACHINE GENERATED FILE, DO NOT EDIT | ||
*/ | ||
package org.lwjgl.llvm; | ||
|
||
import org.lwjgl.system.*; | ||
|
||
import static org.lwjgl.system.APIUtil.*; | ||
import static org.lwjgl.system.JNI.*; | ||
|
||
public class LLVMTargetMips { | ||
|
||
/** Contains the function pointers loaded from {@code LLVMCore.getLibrary()}. */ | ||
public static final class Functions { | ||
|
||
private Functions() {} | ||
|
||
/** Function address. */ | ||
public static final long | ||
InitializeMipsTargetInfo = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeMipsTargetInfo"), | ||
InitializeMipsTarget = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeMipsTarget"), | ||
InitializeMipsTargetMC = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeMipsTargetMC"), | ||
InitializeMipsAsmPrinter = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeMipsAsmPrinter"), | ||
InitializeMipsAsmParser = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeMipsAsmParser"), | ||
InitializeMipsDisassembler = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMInitializeMipsDisassembler"); | ||
|
||
} | ||
|
||
protected LLVMTargetMips() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
// --- [ LLVMInitializeMipsTargetInfo ] --- | ||
|
||
public static void LLVMInitializeMipsTargetInfo() { | ||
long __functionAddress = Functions.InitializeMipsTargetInfo; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeMipsTarget ] --- | ||
|
||
public static void LLVMInitializeMipsTarget() { | ||
long __functionAddress = Functions.InitializeMipsTarget; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeMipsTargetMC ] --- | ||
|
||
public static void LLVMInitializeMipsTargetMC() { | ||
long __functionAddress = Functions.InitializeMipsTargetMC; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeMipsAsmPrinter ] --- | ||
|
||
public static void LLVMInitializeMipsAsmPrinter() { | ||
long __functionAddress = Functions.InitializeMipsAsmPrinter; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeMipsAsmParser ] --- | ||
|
||
public static void LLVMInitializeMipsAsmParser() { | ||
long __functionAddress = Functions.InitializeMipsAsmParser; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
// --- [ LLVMInitializeMipsDisassembler ] --- | ||
|
||
public static void LLVMInitializeMipsDisassembler() { | ||
long __functionAddress = Functions.InitializeMipsDisassembler; | ||
invokeV(__functionAddress); | ||
} | ||
|
||
} |
Oops, something went wrong.