aboutsummaryrefslogtreecommitdiff
path: root/llvm/examples/BrainF/BrainFDriver.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-05-25Fix some Include What You Use warnings in examples; other minor fixes.Eugene Zelenko1-4/+19
Differential revision: http://reviews.llvm.org/D20607 llvm-svn: 270645
2016-04-14Remove every uses of getGlobalContext() in LLVM (but the C API)Mehdi Amini1-1/+1
At the same time, fixes InstructionsTest::CastInst unittest: yes you can leave the IR in an invalid state and exit when you don't destroy the context (like the global one), no longer now. This is the first part of http://reviews.llvm.org/D19094 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266379
2015-11-07examples: Remove implicit ilist iterator conversions, NFCDuncan P. N. Exon Smith1-2/+2
llvm-svn: 252379
2014-09-02Reinstate "Nuke the old JIT."Eric Christopher1-1/+1
Approved by Jim Grosbach, Lang Hames, Rafael Espindola. This reinstates commits r215111, 215115, 215116, 215117, 215136. llvm-svn: 216982
2014-08-25Modernize raw_fd_ostream's constructor a bit.Rafael Espindola1-3/+2
Take a StringRef instead of a "const char *". Take a "std::error_code &" instead of a "std::string &" for error. A create static method would be even better, but this patch is already a bit too big. llvm-svn: 216393
2014-08-19Make it explicit that ExecutionEngine takes ownership of the modules.Rafael Espindola1-7/+7
llvm-svn: 215967
2014-08-07Temporarily Revert "Nuke the old JIT." as it's not quite ready toEric Christopher1-1/+1
be deleted. This will be reapplied as soon as possible and before the 3.6 branch date at any rate. Approved by Jim Grosbach, Lang Hames, Rafael Espindola. This reverts commits r215111, 215115, 215116, 215117, 215136. llvm-svn: 215154
2014-08-07Nuke the old JIT.Rafael Espindola1-1/+1
I am sure we will be finding bits and pieces of dead code for years to come, but this is a good start. Thanks to Lang Hames for making MCJIT a good replacement! llvm-svn: 215111
2014-04-29Try to fix the msvc build.Benjamin Kramer1-0/+1
llvm-svn: 207594
2014-02-24Replace the F_Binary flag with a F_Text one.Rafael Espindola1-1/+1
After this I will set the default back to F_None. The advantage is that before this patch forgetting to set F_Binary would corrupt a file on windows. Forgetting to set F_Text produces one that cannot be read in notepad, which is a better failure mode :-) llvm-svn: 202052
2014-01-13[cleanup] Re-sort the examples #include lines with my sort_includesChandler Carruth1-1/+1
script. llvm-svn: 199089
2014-01-13[cleanup] Fix the includes in the examples for r199082.Chandler Carruth1-1/+1
llvm-svn: 199087
2013-07-16Update the examples for an API change.Rafael Espindola1-1/+1
llvm-svn: 186453
2013-01-02Update the examples for the new header file locations.Chandler Carruth1-1/+1
Sorry for the fallout here, I forgot the examples aren't built by default any more. llvm-svn: 171371
2012-12-04Sort the #include lines of the examples/... tree.Chandler Carruth1-2/+2
llvm-svn: 169249
2012-04-19Remove llvm-ld and llvm-stub (which is only used by llvm-ld).Michael J. Spencer1-1/+0
llvm-ld is no longer useful and causes confusion and so it is being removed. * Does not work very well on Windows because it must call a gcc like driver to assemble and link. * Has lots of hard coded paths which are wrong on many systems. * Does not understand most of ld's options. * Can be partially replaced by llvm-link | opt | {llc | as, llc -filetype=obj} | ld, or fully replaced by Clang. I know of no production use of llvm-ld, and hacking use should be replaced by Clang's driver. llvm-svn: 155147
2011-08-24Move TargetRegistry and TargetSelect from Target to Support where they belong.Evan Cheng1-1/+1
These are strictly utilities for registering targets and components. llvm-svn: 138450
2010-01-27Kill ModuleProvider and ghost linkage by inverting the relationship betweenJeffrey Yasskin1-1/+0
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
2009-08-25Make LLVM command-line tools overwrite their output files without -f.Dan Gohman1-1/+0
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
2009-08-23eliminate the std::ostream forms of the bitcode writing APIs.Chris Lattner1-19/+20
llvm-svn: 79840
2009-08-13Push LLVMContexts through the IntegerType APIs.Owen Anderson1-4/+6
llvm-svn: 78948
2009-07-24Revert the ConstantInt constructors back to their 2.5 forms where possible, ↵Owen Anderson1-1/+1
thanks to contexts-on-types. More to come. llvm-svn: 77011
2009-07-18Add EngineBuilder to ExecutionEngine in favor of the five optional argument ↵Reid Kleckner1-2/+1
EE::create(). Also a test commit. llvm-svn: 76276
2009-07-16Move the ConstantInt uniquing table into LLVMContextImpl. This exposed a ↵Owen Anderson1-2/+2
number of issues in our current context-passing stuff, which is also fixed here llvm-svn: 76089
2009-07-01Hold the LLVMContext by reference rather than by pointer.Owen Anderson1-1/+1
llvm-svn: 74640
2009-07-01Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson1-1/+3
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
2009-06-17make sure that JIT examples link in their appropriate target.Chris Lattner1-0/+3
llvm-svn: 73613
2008-08-23use proper namespace qualificationsChris Lattner1-5/+4
llvm-svn: 55259
2008-04-06API changes for class Use size reduction, wave 1.Gabor Greif1-4/+4
Specifically, introduction of XXX::Create methods for Users that have a potentially variable number of Uses. llvm-svn: 49277
2007-12-29remove attributions from examples.Chris Lattner1-2/+2
llvm-svn: 45420
2007-12-17Change the PointerType api for creating pointer types. The old functionality ↵Christopher Lamb1-1/+1
of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space. llvm-svn: 45082
2007-09-12add a new BF->LLVM translator, contributed by Sterling Stein.Chris Lattner1-0/+156
llvm-svn: 41881