Package org.lwjgl.llvm
Class LLVMAnalysis
java.lang.Object
org.lwjgl.llvm.LLVMAnalysis
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromLLVMCore.getLibrary(). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intEnum values:static final intEnum values:static final intEnum values: -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
LLVMAbortProcessAction
public static final int LLVMAbortProcessActionEnum values:
AbortProcessAction- verifier will print tostderrandabort()PrintMessageAction- verifier will print tostderrandreturn 1ReturnStatusAction- verifier will justreturn 1
- See Also:
-
LLVMPrintMessageAction
public static final int LLVMPrintMessageActionEnum values:
AbortProcessAction- verifier will print tostderrandabort()PrintMessageAction- verifier will print tostderrandreturn 1ReturnStatusAction- verifier will justreturn 1
- See Also:
-
LLVMReturnStatusAction
public static final int LLVMReturnStatusActionEnum values:
AbortProcessAction- verifier will print tostderrandabort()PrintMessageAction- verifier will print tostderrandreturn 1ReturnStatusAction- verifier will justreturn 1
- See Also:
-
-
Method Details
-
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)
-