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 classLLVMAnalysis.FunctionsContains the function pointers loaded fromLLVMCore.getLibrary().
-
Field Summary
Fields Modifier and Type Field Description static intLLVMAbortProcessAction
LLVMPrintMessageAction
LLVMReturnStatusActionEnum values:
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanLLVMVerifyFunction(long Fn, int Action)Verifies that a single function is valid, taking the specified action.static booleanLLVMVerifyModule(long M, int Action, org.lwjgl.PointerBuffer OutMessage)Verifies that a module is valid, taking the specified action if not.static voidLLVMViewFunctionCFG(long Fn)Open up a ghostview window that displays the CFG of the current function.static voidLLVMViewFunctionCFGOnly(long Fn)static intnLLVMVerifyModule(long M, int Action, long OutMessage)Unsafe version of:VerifyModule
-
-
-
Field Detail
-
LLVMAbortProcessAction, LLVMPrintMessageAction, LLVMReturnStatusAction
Enum values:
AbortProcessAction- verifier will print tostderrandabort()PrintMessageAction- verifier will print tostderrandreturn 1ReturnStatusAction- 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.OutMessagemust 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)
-
-