What is the LLVM context?

What is the LLVM context? Is this an environment, such as a bitraiser, in which code is executed? What are the mwmbers of the LLVMContext class? I went through http://llvm.org/docs/doxygen/html/classllvm_1_1LLVMContext.html . But could not understand much.

+8
llvm
source share
1 answer

From the link you included:

This is an important class for using LLVM in a threaded context. This (opaquely) owns and manages the core "global" data of the LLVM core infrastructure, including type and constant tables.

Since he says โ€œopaqueโ€, you should not know what he contains, what he does or what he used. Think of it as a link to the main LLVM engine, which you must pass to the various methods that require the LLVMContext .

edit: just to clarify: no, it does not contain such things as bitize - those defined in TargetData.

+13
source share

All Articles