• B
    Provide lower level access to the LLVM IR builder · 565a9bf2
    Björn Steinbrink 提交于
    Currently, the helper functions in the "build" module can only append
    at the end of a block. For certain things we'll want to be able to
    insert code at arbitrary locations inside a block though. Although can
    we do that by directly calling the LLVM functions, that is rather ugly
    and means that somethings need to be implemented twice. Once in terms
    of the helper functions and once in terms of low level LLVM functions.
    
    Instead of doing that, we should provide a Builder type that provides
    low level access to the builder, and which can be used by both, the
    helper functions in the "build" module, as well larger units of
    abstractions that combine several LLVM instructions.
    565a9bf2
builder.rs 29.6 KB