- May 27, 2010
-
-
Dan Gohman authored
llvm-svn: 104875
-
Dan Gohman authored
llvm-svn: 104873
-
- May 14, 2010
-
-
Dan Gohman authored
isn't doing lazy streaming. This also fixes a missing doFinalization call. llvm-svn: 103774
-
- Apr 17, 2010
-
-
Chris Lattner authored
to CallGraphSCCPass's instead of passing around a std::vector<CallGraphNode*>. No functionality change, but now we have a much tidier interface. llvm-svn: 101558
-
- Mar 24, 2010
-
-
Dan Gohman authored
llvm-svn: 99416
-
- Mar 22, 2010
-
-
Jeffrey Yasskin authored
llvm-svn: 99180
-
- Feb 18, 2010
-
-
Benjamin Kramer authored
llvm-svn: 96576
-
- Jan 27, 2010
-
-
Jeffrey Yasskin authored
Modules and ModuleProviders. Because the "ModuleProvider" simply materializes GlobalValues now, and doesn't provide modules, it's renamed to "GVMaterializer". Code that used to need a ModuleProvider to materialize Functions can now materialize the Functions directly. Functions no longer use a magic linkage to record that they're materializable; they simply ask the GVMaterializer. Because the C ABI must never change, we can't remove LLVMModuleProviderRef or the functions that refer to it. Instead, because Module now exposes the same functionality ModuleProvider used to, we store a Module* in any LLVMModuleProviderRef and translate in the wrapper methods. The bindings to other languages still use the ModuleProvider concept. It would probably be worth some time to update them to follow the C++ more closely, but I don't intend to do it. Fixes http://llvm.org/PR5737 and http://llvm.org/PR5735. llvm-svn: 94686
-
- Jan 22, 2010
-
-
Chris Lattner authored
llvm-svn: 94160
-
Chris Lattner authored
llvm-svn: 94159
-
- Jan 18, 2010
-
-
Eli Friedman authored
match. llvm-svn: 93798
-
- Jan 17, 2010
-
-
Dan Gohman authored
to a console, when --analyze is used. Similarly, avoid creating an empty output file when --disable-output is used. Print a warning when the -o option appears with either --analyze or --disable-output, to indicate that the option is being ignored. llvm-svn: 93685
-
- Jan 05, 2010
-
-
David Greene authored
llvm-svn: 92667
-
- Dec 09, 2009
-
-
Chris Lattner authored
Somehow opt was missed when this was added. llvm-svn: 90912
-
- Nov 03, 2009
-
-
Kenneth Uildriks authored
Make opt default to not adding a target data string and update tests that depend on target data to supply it within the test llvm-svn: 85900
-
- Oct 22, 2009
-
-
Chris Lattner authored
building opt. llvm-svn: 84816
-
Chris Lattner authored
used by opt when a module doesn't specify one. Patch from Kenneth Uildriks! llvm-svn: 84814
-
- Oct 14, 2009
-
-
Duncan Sands authored
Make it visible. llvm-svn: 84127
-
- Sep 11, 2009
-
-
Dan Gohman authored
working. To support this, add an is_displayed() function to raw_ostream, and generalize Process::StandardOutIsDisplayed and friends in order to support it. Also, call RemoveFileOnSignal before creating a file instead of after, so that the file isn't left behind if the program is interrupted between when the file is created and RemoveFileOnSignal is called. While here, add a -S to llvm-extract and port it to IRReader so that it supports assembly input. llvm-svn: 81568
-
- Sep 05, 2009
-
-
Daniel Dunbar authored
llvm-svn: 81082
-
- Sep 03, 2009
-
-
Dan Gohman authored
llvm-svn: 80922
-
- Aug 31, 2009
-
-
Chris Lattner authored
argpromotion and structretpromote. Basically, when replacing a function, they used the 'changeFunction' api which changes the entry in the function map (and steals/reuses the callgraph node). This has some interesting effects: first, the problem is that it doesn't update the "callee" edges in any callees of the function in the call graph. Second, this covers for a major problem in all the CGSCC pass stuff, which is that it is completely broken when functions are deleted if they *don't* reuse a CGN. (there is a cute little fixme about this though :). This patch changes the protocol that CGSCC passes must obey: now the CGSCC pass manager copies the SCC and preincrements its iterator to avoid passes invalidating it. This allows CGSCC passes to mutate the current SCC. However multiple passes may be run on that SCC, so if passes do this, they are now required to *update* the SCC to be current when they return. Other less interesting parts of this patch are that it makes passes update the CG more directly, eliminates changeFunction, and requires clients of replaceCallSite to specify the new callee CGN if they are changing it. llvm-svn: 80527
-
- Aug 25, 2009
-
-
Dan Gohman authored
This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990
-
- Aug 24, 2009
-
-
Dan Gohman authored
std::cout and outs(). llvm-svn: 79891
-
- Aug 23, 2009
-
-
Chris Lattner authored
change the raw_ostream one to take the raw_ostream byref instead of byptr. Prune #includes, eliminate a use of Streams.h llvm-svn: 79863
-
Chris Lattner authored
flush the right stream in opt.cpp. llvm-svn: 79837
-
Chris Lattner authored
update all code that this affects. llvm-svn: 79830
-
Chris Lattner authored
instead of as two bools. Use this to add a F_Append flag which has the obvious behavior. Other unrelated changes conflated into this patch: 1. REmove EH stuff from llvm-dis and llvm-as, the try blocks are dead. 2. Simplify the filename inference code in llvm-as/llvm-dis, because raw_fd_ostream does the right thing with '-'. 3. Switch machine verifier to use raw_ostream instead of ostream (Which is the thing that needed append in the first place). llvm-svn: 79807
-
- Aug 22, 2009
-
-
Eric Christopher authored
llvm-svn: 79698
-
Eric Christopher authored
llvm-svn: 79696
-
- Jul 17, 2009
-
-
Bob Wilson authored
being called so that Context was never initialized. I'm not sure if this is the right fix but at least it keeps opt from crashing. llvm-svn: 76220
-
Daniel Dunbar authored
llvm-svn: 76199
-
- Jul 16, 2009
-
-
Dan Gohman authored
llvm-svn: 76070
-
Owen Anderson authored
To simplify the upcoming context-on-type change, switch all command line tools to using the default global context for now. This will let us to hardwire stuff to the global context in the short term while the API is sorted out. llvm-svn: 75846
-
- Jul 15, 2009
-
-
Dan Gohman authored
an existing file is considered an error. Convert several tools to use raw_fd_ostream instead of std::ostream, and to use this new option instead of doing a manual check. llvm-svn: 75801
-
- Jul 01, 2009
-
-
Owen Anderson authored
llvm-svn: 74640
-
Owen Anderson authored
Add a pointer to the owning LLVMContext to Module. This requires threading LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. llvm-svn: 74614
-
- Jun 03, 2009
-
-
Daniel Dunbar authored
- No functionality change, but please check if you don't believe me. llvm-svn: 72789
-
- Feb 18, 2009
-
-
Dan Gohman authored
llvm-svn: 64888
-
- Dec 31, 2008
-
-
Duncan Sands authored
to work out (in a very simplistic way) which function arguments (pointer arguments only) are only dereferenced and so do not escape. Mark such arguments 'nocapture'. llvm-svn: 61525
-