565a9bf20b
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.
45 lines
1.0 KiB
Rust
45 lines
1.0 KiB
Rust
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
|
|
// file at the top-level directory of this distribution and at
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
// except according to those terms.
|
|
|
|
pub mod macros;
|
|
pub mod inline;
|
|
pub mod monomorphize;
|
|
pub mod controlflow;
|
|
pub mod glue;
|
|
pub mod datum;
|
|
pub mod write_guard;
|
|
pub mod callee;
|
|
pub mod expr;
|
|
pub mod common;
|
|
pub mod context;
|
|
pub mod consts;
|
|
pub mod type_of;
|
|
pub mod build;
|
|
pub mod builder;
|
|
pub mod base;
|
|
pub mod _match;
|
|
pub mod uniq;
|
|
pub mod closure;
|
|
pub mod tvec;
|
|
pub mod meth;
|
|
pub mod cabi;
|
|
pub mod cabi_x86;
|
|
pub mod cabi_x86_64;
|
|
pub mod cabi_arm;
|
|
pub mod cabi_mips;
|
|
pub mod foreign;
|
|
pub mod reflect;
|
|
pub mod debuginfo;
|
|
pub mod type_use;
|
|
pub mod machine;
|
|
pub mod adt;
|
|
pub mod asm;
|
|
pub mod type_;
|