summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
AgeCommit message (Collapse)AuthorLines
2013-05-20rustllvm: Use target alignment for atomic load/storeBrian Anderson-6/+8
2013-05-17Fix AtomicLoad builder codeJames Miller-1/+1
2013-05-12Adds atomic_load, atomic_load_acq, atomic_store, and atomic_store_rel ↵Matthijs Hofstra-0/+22
intrinsics. The default versions (atomic_load and atomic_store) are sequentially consistent. The atomic_load_acq intrinsic acquires as described in [1]. The atomic_store_rel intrinsic releases as described in [1]. [1]: http://llvm.org/docs/Atomics.html
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-11/+11
2013-04-22Choose target featuresSeo Sanghyeon-1/+2
2013-04-19llvm: Fixes for RustWrapper.Patrick Walton-6/+0
2013-04-19rustllvm: Fix RustWrapper.cppPatrick Walton-7/+16
2013-04-19librustc: Implement fast-ffi and use it in various placesPatrick Walton-0/+1
2013-04-10rustllvm: Initialize target analysis passesBrian Anderson-1/+4
Without this the target info for certain optimizations will not be created and the compiler will sometimes crash
2013-04-10rustllvm: followup latest LLVMYoung-il Choi-7/+13
2013-04-05rustllvm: Only initialize command-line arguments onceTim Chevalier-4/+12
In my WIP on rustpkg, I was calling driver code that calls LLVMRustWriteOutputFile more than once. This was making LLVM unhappy, since that function has code that initializes the command-line options for LLVM, and I guess you can't do that more than once. So, check if they've already been initialized.
2013-03-19Enable arm error handling abi 2ILyoan-2/+3
2013-03-19Enable arm error handling abiILyoan-0/+5
2013-03-15Normalize target triple so that llvm can recognize target os correctlyILyoan-2/+2
2013-03-13Revamp foreign code not to consider the Rust modes. This requiresNiko Matsakis-2/+2
adjusting a few foreign functions that were declared with by-ref mode. This also allows us to remove by-val mode in the near future. With copy mode, though, we have to be careful because Rust will implicitly pass somethings by pointer but this may not be the C ABI rules. For example, rust will pass a struct Foo as a Foo*. So I added some code into the adapters to fix this (though the C ABI rules may put the pointer back, oh well). This patch also includes a lint mode for the use of by-ref mode in foreign functions as the semantics of this have changed.
2013-03-12Wrap llvm::InlineAsm::AsmDialectLuqman Aden-3/+3
2013-03-12Parse inline assembly.Luqman Aden-0/+12
2013-03-03rustc: MIPS32 supportJyun-Yan You-0/+12
2013-01-13Support ARM and Androidkyeongwoon-0/+12
Conflicts: src/libcore/os.rs src/librustc/back/link.rs src/librustc/driver/driver.rs src/librustc/metadata/loader.rs src/librustc/middle/trans/base.rs
2012-12-28Replace much of the REPL run code with a call to compile_uptoBrian Leibig-1/+1
2012-12-22rustllvm: Fix symbol resolution on Mac for rusti. rs=bugfixPatrick Walton-0/+7
2012-12-10Add license boilerplate to more files.Graydon Hoare-6/+9
2012-10-21rustc: add new intrinsics - atomic_cxchg{_acq,_rel}Luqman Aden-0/+8
2012-10-11Conditional usage of LLVM DebugFlagLuca Bruno-0/+2
DebugFlag is conditionally exported by LLVM in llvm/Support/Debug.h in-between an #ifndef NDEBUG block; RustWrapper should not unconditionally use it. This closes #3701. Signed-off-by: Luca Bruno <lucab@debian.org>
2012-09-28jit: Remove old crate loading code and don't search through loaded crates ↵Zack Corr-11/+2
(use llvm default instead)
2012-09-27jit: Initialize native parser so rust-repl worksZack Corr-0/+1
2012-09-27jit: Enable exception handlingZack Corr-0/+1
2012-09-27jit: Separate JIT execution into two functions and load crates before main ↵Zack Corr-19/+62
lookup
2012-08-31jit: Clean rustllvm code, let rustc expose __morestack instead of linking in ↵Zack Corr-27/+23
libmorestack and return _rust_main and call it from rustc
2012-08-31jit: Forgot header for inlining passZack Corr-0/+1
2012-08-31jit: Add passes and cleanup codeZack Corr-19/+15
2012-08-31jit: Link in __morestack and make it resolvable by JITZack Corr-9/+7
2012-08-31jit: Add custom memory manager (still segfaulting)Zack Corr-9/+236
2012-08-31Add experimental JIT compilerZack Corr-10/+61
2012-07-25Added debug flag to enable LLVM debug output.Elliott Slaughter-0/+5
2012-07-24Remove rustllvm functions which have moved upstream.Elliott Slaughter-14/+0
2012-07-24Only initialize targets that are actually supported / linked to in RustWrapperZack Corr-4/+16
2012-07-13Better error when rustc fails to write output.Glenn Willen-1/+6
2012-06-29Adding a bunch of atomic intrinsics.Eric Holk-0/+10
Adding a test cases for the atomic intrinsics.
2012-04-30Update llvm and integrate clang and compiler-rt.Graydon Hoare-1/+1
2012-01-13llvm: Switch back to LLVM trunkBrian Anderson-7/+0
2011-12-18Generate basic debug info for files, functions and compile units.Josh Matthews-0/+14
2011-12-04Upgrade LLVM to svn revision 145779Brian Anderson-18/+11
This pulls in commits 145765 & 145766, which are required for split stacks.
2011-11-25rustc: Fall back to intrinsics.ll if we can't parse the bcBrian Anderson-0/+15
This will allow us to transition to the new bitcode format.
2011-11-16temp workaround for failure to pass ulonglong successfullyNiko Matsakis-0/+10
2011-11-15rustllvm: Add a GetOrInsertFunction wrapperHaitao Li-0/+6
Fixes issue #1161 Test-case-by: Brian Anderson <banderson@mozilla.com> Signed-off-by: Haitao Li <lihaitao@gmail.com>
2011-11-07rustc: Add support of generating LLVM assemblyHaitao Li-0/+12
rustc generates output files in LLVM bitcode format if "--emit-llvm" option is given. When used with the "-S" option, rustc generates LLVM intermediate language assembly files. Fixes Issue #476
2011-10-31rustc: Enable segmented stacks in LLVM when --stack-growth is onPatrick Walton-0/+6
2011-10-21Get 'make tidy' to work rustllvm and rt againBrian Anderson-9/+10
2011-10-15Update LinkModules invocation to use new prototypeElly Jones-1/+1
LLVM revision 141606 changes the prototype of llvm::Linker::LinkModules. Signed-off-by: Elly Jones <elly@leptoquark.net>