- Mar 18, 2011
-
-
Jim Grosbach authored
Add a bone-simple utility to load a MachO object into memory, look for a function (main) in it, and run that function directly. This will be used as a test and development platform for MC-JIT work regarding symbol resolution, dynamic lookup, etc.. Code by Daniel Dunbar. llvm-svn: 127885
-
Andrew Trick authored
For example, on 32-bit architecture, don't promote all uses of the IV to 64-bits just because one use is a 64-bit cast. Alternate implementation of the patch by Arnaud de Grandmaison. llvm-svn: 127884
-
Jim Grosbach authored
llvm-svn: 127883
-
Stephen Canon authored
Carefully written implementations of the 32-bit integer divide and modulus functions for ARM. These are still using a naive digit-by-digit algorithm, but the core loop has been carefully written. llvm-svn: 127882
-
Douglas Gregor authored
global using directives in C++ headers, from Elliot Glaysher! llvm-svn: 127881
-
Rafael Espindola authored
llvm-svn: 127879
-
Abramo Bagnara authored
llvm-svn: 127877
-
Abramo Bagnara authored
llvm-svn: 127876
-
Joerg Sonnenberger authored
For now, only the default segments are supported. llvm-svn: 127875
-
Che-Liang Chiou authored
llvm-svn: 127874
-
Che-Liang Chiou authored
llvm-svn: 127873
-
NAKAMURA Takumi authored
On MSVCRT and compatible, output of %e is incompatible to Posix by default. Number of exponent digits should be at least 2. "%+03d" FIXME: Implement our formatter in future! llvm-svn: 127872
-
Bill Wendling authored
makes valgrind stop complaining about uninitialized variables being read when it accesses a bitfield (category) that shares its bits with these variables. llvm-svn: 127871
-
Rafael Espindola authored
functions and initializers, just report the declarations present in the module. The motivation is to open the way for using the lazy module parsing, which should speed up clients that just want a symbol list (nm, ar). This is slightly less precise, but since both -strip-dead-prototypes and -globaldce are part of the standard pipeline, this shouldn't change the result for clang/dragonegg produced binaries. Any decl in an IL file was also put there because a FE expected it to be necessary, so this should not be a problem for "-O0 -emit-llvm". As a sanity check, I have bootstrapped clang on linux and built firefox on both linux and darwin. A clang bootstrap on darwin with LTO fails with or without this patch because, ironically, the linker doesn't like the combination of dead_strip and LTO when building libLTO.so :-) llvm-svn: 127870
-
NAKAMURA Takumi authored
llvm-svn: 127869
-
Jakob Stoklund Olesen authored
Stack slot real estate is virtually free compared to registers, so it is advantageous to spill earlier even though the same value is now kept in both a register and a stack slot. Also eliminate redundant spills by extending the stack slot live range underneath reloaded registers. This can trigger a dead code elimination, removing copies and even reloads that were only feeding spills. llvm-svn: 127868
-
Rafael Espindola authored
llvm-svn: 127867
-
John McCall authored
a while back. llvm-svn: 127866
-
Ted Kremenek authored
Tweak CrashRecoveryContextCleanup::createCleanup() to use the 'delete' cleanup as opposed to the 'destructor' cleanup (reclaims more memory). llvm-svn: 127865
-
Ted Kremenek authored
Construct 'Sema' object on the stack, so that crash recovery can recovery it's associated resources without walking over dead stack space. llvm-svn: 127864
-
NAKAMURA Takumi authored
llvm-svn: 127863
-
NAKAMURA Takumi authored
www/hacking.html: Cosmetic change, to detabify, eliminate whitespace, and add proper slashes to URL. llvm-svn: 127862
-
NAKAMURA Takumi authored
MSYS substitutes path (that begins with "/") to de-mounted Windows path, even if it were nonexistent. "/foo/bar" might be substituted to "C:/msysgit/foo/bar". llvm-svn: 127861
-
NAKAMURA Takumi authored
MSYS substitutes path (that begins with "/") to de-mounted Windows path. "/tmp" might be substituted as "C:/DOCUME~1/chapuni/LOCALS~1/Temp". llvm-svn: 127860
-
NAKAMURA Takumi authored
llvm-svn: 127859
-
NAKAMURA Takumi authored
llvm-svn: 127858
-
Jakob Stoklund Olesen authored
This is not supposed to happen, but I have seen the x86 rematter getting confused when rematerializing partial redefs. llvm-svn: 127857
-
Jakob Stoklund Olesen authored
and early clobbers. Assert when trying to find an undefined value. llvm-svn: 127856
-
Ted Kremenek authored
Add new CrashRecoveryContextCleanup subclass: CrashRecoveryContextDeleteCleanup. This deletes the object, not just calls its destructor. llvm-svn: 127855
-
John McCall authored
Issue this as an IR-gen error; it's not really worthwhile doing this "right", i.e. in Sema, because IR gen knows a lot of tricks beyond what the constant evaluator knows. llvm-svn: 127854
-
Rafael Espindola authored
llvm-svn: 127853
-
Eli Friedman authored
comparisons on x86. Essentially, the way this works is that SUB+SBB sets the relevant flags the same way a double-width CMP would. This is a substantial improvement over the generic lowering in LLVM. The output is also shorter than the gcc-generated output; I haven't done any detailed benchmarking, though. llvm-svn: 127852
-
Ted Kremenek authored
Use CrashRecoveryContextCleanup objects to recover an ASTUnit if we crash in ASTUnit::LoadFromCommandLine() and ASTUnit::LoadFromCompilerInvocation(). llvm-svn: 127851
-
Ted Kremenek authored
Use CrashRecoveryContextCleanup objects to release resources associated with Sema during a crash while parsing. llvm-svn: 127850
-
Ted Kremenek authored
Augment CrashRecoveryContext to have registered "cleanup" objects that can be used to release resources during a crash. llvm-svn: 127849
-
Ken Dyck authored
llvm-svn: 127848
-
Eli Friedman authored
llvm-svn: 127847
-
Ken Dyck authored
CharUnits. No change in functionality intended. llvm-svn: 127846
-
Eli Friedman authored
llvm-svn: 127845
-
Ken Dyck authored
functionality intended. llvm-svn: 127844
-