Package org.lwjgl.llvm
Class LLVMAnalysis
- java.lang.Object
-
- org.lwjgl.llvm.LLVMAnalysis
-
public class LLVMAnalysis extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LLVMAnalysis.Functions
Contains the function pointers loaded fromLLVMCore.getLibrary()
.
-
Field Summary
Fields Modifier and Type Field Description static int
LLVMAbortProcessAction
LLVMPrintMessageAction
LLVMReturnStatusActionEnum values:
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
LLVMVerifyFunction(long Fn, int Action)
Verifies that a single function is valid, taking the specified action.static boolean
LLVMVerifyModule(long M, int Action, org.lwjgl.PointerBuffer OutMessage)
Verifies that a module is valid, taking the specified action if not.static void
LLVMViewFunctionCFG(long Fn)
Open up a ghostview window that displays the CFG of the current function.static void
LLVMViewFunctionCFGOnly(long Fn)
static int
nLLVMVerifyModule(long M, int Action, long OutMessage)
Unsafe version of:VerifyModule
-
-
-
Field Detail
-
LLVMAbortProcessAction, LLVMPrintMessageAction, LLVMReturnStatusAction
Enum values:
AbortProcessAction
- verifier will print tostderr
andabort()
PrintMessageAction
- verifier will print tostderr
andreturn 1
ReturnStatusAction
- verifier will justreturn 1
-
-
Method Detail
-
nLLVMVerifyModule
public static int nLLVMVerifyModule(long M, int Action, long OutMessage)
Unsafe version of:VerifyModule
-
LLVMVerifyModule
public static boolean LLVMVerifyModule(long M, int Action, org.lwjgl.PointerBuffer OutMessage)
Verifies that a module is valid, taking the specified action if not. Optionally returns a human-readable description of any invalid constructs.OutMessage
must be disposed withDisposeMessage
.
-
LLVMVerifyFunction
public static boolean LLVMVerifyFunction(long Fn, int Action)
Verifies that a single function is valid, taking the specified action. Useful for debugging.
-
LLVMViewFunctionCFG
public static void LLVMViewFunctionCFG(long Fn)
Open up a ghostview window that displays the CFG of the current function. Useful for debugging.
-
LLVMViewFunctionCFGOnly
public static void LLVMViewFunctionCFGOnly(long Fn)
-
-